1 --- a/gcc/config/arm/linux-eabi.h
2 +++ b/gcc/config/arm/linux-eabi.h
5 #define LINK_SPEC LINUX_TARGET_LINK_SPEC BE8_LINK_SPEC TARGET_FIX_V4BX_SPEC
7 -/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we
8 - do not use -lfloat. */
11 /* Clear the instruction cache from `beg' to `end'. This is
12 implemented in lib1funcs.asm, so ensure an error if this definition
14 --- a/gcc/config/arm/linux-elf.h
15 +++ b/gcc/config/arm/linux-elf.h
18 %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
20 -#define LIBGCC_SPEC "-lgcc"
22 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
24 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
25 --- a/gcc/config/linux.h
26 +++ b/gcc/config/linux.h
28 #define USE_LD_AS_NEEDED 1
32 +#define LIBGCC_SPEC "%{static|static-libgcc:-lgcc}%{!static:%{!static-libgcc:-lgcc_s}}"
35 /* Determine which dynamic linker to use depending on whether GLIBC or
36 uClibc is the default C library and whether -muclibc or -mglibc has
37 been passed to change the default. */
38 --- a/gcc/mkmap-symver.awk
39 +++ b/gcc/mkmap-symver.awk
41 else if (inherit[lib])
42 printf("} %s;\n", inherit[lib]);
44 - printf ("\n local:\n\t*;\n};\n");
45 + printf ("\n\t*;\n};\n");
47 --- a/libgcc/Makefile.in
48 +++ b/libgcc/Makefile.in
50 # For -fvisibility=hidden. We need both a -fvisibility=hidden on
51 # the command line, and a #define to prevent libgcc2.h etc from
52 # overriding that with #pragmas.
53 -vis_hide = @vis_hide@
58 --- a/gcc/config/rs6000/linux.h
59 +++ b/gcc/config/rs6000/linux.h
61 #define USE_LD_AS_NEEDED 1
64 +#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc"
67 #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");