Commit 538165cd authored by jakub's avatar jakub
Browse files

* mklibgcc.in: Propagate .note.GNU-stack section if needed into

	the .hidden assembly stubs.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67545 138bc75d-0d04-0410-961f-82ee72b054a4
parent 3024f45d
2003-06-06 Jakub Jelinek <jakub@redhat.com>
* mklibgcc.in: Propagate .note.GNU-stack section if needed into
the .hidden assembly stubs.
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
 
* config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
......
......@@ -339,11 +339,15 @@ EOF
if [ "@libgcc_visibility@" = yes -a "$SHLIB_LINK" ]; then
libgcc_a_objs=
echo ""
echo "libgcc/${dir}/stacknote.s: stmp-dirs"
echo ' @( echo | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) '${flags}' -S -o - -xc - | grep .note.GNU-stack || : ) > $@.tmp'
echo ' @mv -f $@.tmp $@'
echo ""
for o in $libgcc_objs $libgcc_st_objs; do
# .oS objects will have all non-local symbol definitions .hidden
oS=`echo ${o} | sed s~${objext}'$~.oS~g'`
echo "${oS}: stmp-dirs ${o}"
echo ' $(NM_FOR_TARGET) '${SHLIB_NM_FLAGS} ${o}' | $(AWK) '\''NF == 3 { print "\t.hidden", $$3 }'\'' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) '${flags}' -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
echo "${oS}: stmp-dirs libgcc/${dir}/stacknote.s ${o}"
echo ' ( $(NM_FOR_TARGET) '${SHLIB_NM_FLAGS} ${o}' | $(AWK) '\''NF == 3 { print "\t.hidden", $$3 }'\''; cat libgcc/${dir}/stacknote.s ) | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) '${flags}' -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
libgcc_a_objs="${libgcc_a_objs} ${oS}"
done
fi
......@@ -430,6 +434,7 @@ echo ' if [ -d $(stage)/$$dir ]; then true; else '$mkinstalldirs' $(stage)/$$d
echo ' done'
echo ' -for dir in '"${dirs}"'; do \'
echo ' mv $$dir/*'"${objext}"' $(stage)/$$dir; \'
echo ' test ! -f $$dir/stacknote.s || mv $$dir/stacknote.s $(stage)/$$dir; \'
echo ' test ! -f $$dir/libgcc.a || mv $$dir/lib* $(stage)/$$dir; \'
echo ' done'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment