Blame SOURCES/gcc32-libgcc_eh-hidden.patch

727081
--- gcc/mklibgcc.in.jj	2006-05-22 14:03:31.000000000 -0400
727081
+++ gcc/mklibgcc.in	2006-05-22 14:03:31.000000000 -0400
727081
@@ -310,10 +310,24 @@ for ml in $MULTILIBS; do
727081
 
727081
   if [ "$SHLIB_LINK" ]; then
727081
 
727081
+    if [ "@libgcc_visibility@" = yes ]; then
727081
+      libgcc_eh_objS=
727081
+      echo ""
727081
+      for o in $libgcc_eh_objs; do
727081
+	# .oS objects will have all non-local symbol definitions .hidden
727081
+	oS=`echo ${o} | sed s~${objext}'$~.oS~g'`
727081
+	echo "${oS}: stmp-dirs libgcc/${dir}/stacknote.s ${o}"
727081
+	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 -'
727081
+	libgcc_eh_objS="${libgcc_eh_objS} ${oS}"
727081
+      done
727081
+    else
727081
+      libgcc_eh_objS="$libgcc_eh_objs"
727081
+    fi
727081
+
727081
     echo ""
727081
-    echo "${dir}/libgcc_eh.a: $libgcc_eh_objs"
727081
+    echo "${dir}/libgcc_eh.a: $libgcc_eh_objS"
727081
     echo "	-rm -rf ${dir}/libgcc_eh.a"
727081
-    echo '	$(AR_CREATE_FOR_TARGET)' ${dir}/libgcc_eh.a $libgcc_eh_objs
727081
+    echo '	$(AR_CREATE_FOR_TARGET)' ${dir}/libgcc_eh.a $libgcc_eh_objS
727081
     echo '	if $(RANLIB_TEST_FOR_TARGET) ; then' \\
727081
     echo '	  $(RANLIB_FOR_TARGET)' ${dir}/libgcc_eh.a ';' \\
727081
     echo '	else true; fi;'