diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-20 06:48:29 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-20 06:48:29 +0000 |
commit | 2851e3b018ba0380e8cfeff07f7b3b248cd57cac (patch) | |
tree | 495093fe023c312279137e8abae47034f643b366 /toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch | |
parent | 74237e4c90f9dfd0a4ca5b7be2b391bfbe1029e8 (diff) |
gcc: backport libgcc_pic changes to older gcc4 versions, install the libgcc map file as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18087 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch')
-rw-r--r-- | toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch b/toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch new file mode 100644 index 000000000..ab29b528b --- /dev/null +++ b/toolchain/gcc/patches/4.2.4/820-libgcc_pic.patch @@ -0,0 +1,75 @@ +--- a/gcc/mklibgcc.in ++++ b/gcc/mklibgcc.in +@@ -214,6 +214,7 @@ for ml in $MULTILIBS; do + flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; + shlib_slibdir_qual= + libgcc_a=$dir/libgcc.a ++ libgcc_pic_a=$dir/libgcc_pic.a + libgcov_a=$dir/libgcov.a + libgcc_eh_a= + libgcc_s_so= +@@ -320,6 +321,7 @@ for ml in $MULTILIBS; do + -c '$(srcdir)/libgcc2.c' -o $out + + echo $libgcc_a: $out ++ echo $libgcc_pic_a: $outS + echo $libgcc_s_so: $outS + if [ "$SHLIB_MKMAP" ]; then + echo libgcc/${dir}/libgcc.map: $outS +@@ -355,6 +357,7 @@ for ml in $MULTILIBS; do + -fexceptions -fnon-call-exceptions -c '$(srcdir)/libgcc2.c' -o $out + + echo $libgcc_a: $out ++ echo $libgcc_pic_a: $outS + echo $libgcc_s_so: $outS + if [ "$SHLIB_MKMAP" ]; then + echo libgcc/${dir}/libgcc.map: $outS +@@ -397,6 +400,7 @@ for ml in $MULTILIBS; do + '$(vis_hide)' -c $fpbit -o $out + + echo $libgcc_a: $out ++ echo $libgcc_pic_a: $outS + echo $libgcc_s_so: $outS + if [ "$SHLIB_MKMAP" ]; then + echo libgcc/${dir}/libgcc.map: $outS +@@ -502,6 +506,7 @@ for ml in $MULTILIBS; do + esac + + echo $libgcc_a: $out ++ echo $libgcc_pic_a: $outS + echo $libgcc_s_so: $outS + if [ "$SHLIB_MKMAP" ]; then + echo libgcc/${dir}/libgcc.map: $outS +@@ -621,6 +626,7 @@ for ml in $MULTILIBS; do + *) echo "Unhandled extension: $file">&2; exit 1 ;; + esac + ++ echo $libgcc_pic_a: $outS + echo $libgcc_s_so: $outS + if [ "$SHLIB_MKMAP" ]; then + echo libgcc/${dir}/libgcc.map: $outS +@@ -793,6 +799,13 @@ EOF + echo "all: $libgcc_a" + + echo "" ++ echo "$libgcc_pic_a: stmp-dirs" ++ echo " -rm -f $libgcc_pic_a" ++ echo ' $(AR_CREATE_FOR_TARGET)' $libgcc_pic_a '$(objects)' ++ echo ' $(RANLIB_FOR_TARGET)' $libgcc_pic_a ++ echo "all: $libgcc_pic_a" ++ ++ echo "" + echo "$libgcov_a: stmp-dirs" + echo " -rm -f $libgcov_a" + echo ' $(AR_CREATE_FOR_TARGET)' $libgcov_a '$(objects)' +@@ -894,6 +907,10 @@ for ml in $MULTILIBS; do + echo ' chmod 644' ${ldir}/libgcc_eh.a + echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a + ++ echo ' $(INSTALL_DATA)' ${dir}/libgcc_pic.a ${mapfile} ${ldir}/ ++ echo ' chmod 644' ${ldir}/libgcc_pic.a ++ echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_pic.a ++ + shlib_slibdir_qual= + os_multilib_dir=`$GCC_FOR_TARGET $flags --print-multi-os-directory` + if [ "$os_multilib_dir" != . ]; then |