[PATCH] Make libgcc.a symbols .hidden (fix for non-GNU make, take 2)

Jakub Jelinek jakub@redhat.com
Fri Mar 1 09:14:00 GMT 2002


On Fri, Mar 01, 2002 at 12:09:32PM -0500, John David Anglin wrote:
> /tmp/hidden.s:
> .hidden $$divI
> .hidden $$divoI
> 
> On the PA, there needs to be whitespace (e.g., a tab) before the
> ".hidden" directive.

If so, does the following work?

--- gcc/mklibgcc.in.jj	Thu Feb 28 18:01:09 2002
+++ gcc/mklibgcc.in	Fri Mar  1 18:20:15 2002
@@ -279,7 +279,7 @@ for ml in $MULTILIBS; 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 ".hidden", $$3 }'\'' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
+      echo '	@$(NM_FOR_TARGET) '${SHLIB_NM_FLAGS} ${o}' | $(AWK) '\''NF == 3 { print "\t.hidden", $$3 }'\'' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
       libgcc_a_objs="${libgcc_a_objs} ${oS}"
     done
   fi


	Jakub



More information about the Gcc-patches mailing list