Re: [PATCH] Use -lgcc in libgcc_so linker script

2012-09-10 Thread Ian Lance Taylor
On Sun, Sep 9, 2012 at 12:29 PM, Andreas Schwab wrote: > > PR target/46191 > * config/t-slibgcc-libgcc (SHLIB_MAKE_SOLINK): Use -lgcc instead > of libgcc.a. This is OK. Thanks. Ian

[PATCH] Use -lgcc in libgcc_so linker script

2012-09-09 Thread Andreas Schwab
The libgcc_s.so linker script (as used by targets using t-slibgcc-libgcc) refers to libgcc.a, which causes the linker to search in cwd first, where it might find a completely unrelated libgcc.a (eg. while building a cross gcc). Use -lgcc instead so that it is searched on the library path. Andreas