Blame SOURCES/gcc32-libgcc_eh-hidden.patch

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