abd0cdc9c0
We shouldn't call external function, __cpu_indicator_init, while an object is being relocated since its .got.plt section hasn't been updated. It works for non-PIE since no update on .got.plt section is required. This patch creates libgcc.so as a linker script, hides __cpu_indicator_init and __cpu_model in libgcc.so.1 from linker, forces linker to resolve __cpu_indicator_init and __cpu_model to their hidden definitions in libgcc.a while providing backward binary compatibility. gcc/testsuite/ PR target/65612 * g++.dg/ext/mv18.C: New test. * g++.dg/ext/mv19.C: Likewise. * g++.dg/ext/mv20.C: Likewise. * g++.dg/ext/mv21.C: Likewise. * g++.dg/ext/mv22.C: Likewise. * g++.dg/ext/mv23.C: Likewise. libgcc/ PR target/65612 * config.host (tmake_file): Add t-slibgcc-libgcc for Linux/x86. * config/i386/cpuinfo.c (__cpu_model): Initialize. (__cpu_indicator_init@GCC_4.8.0): New. (__cpu_model@GCC_4.8.0): Likewise. * config/i386/t-linux (HOST_LIBGCC2_CFLAGS): Add -DUSE_ELF_SYMVER. From-SVN: r222178 |
||
---|---|---|
.. | ||
32 | ||
64 | ||
cpuinfo.c | ||
crtfastmath.c | ||
crti.S | ||
crtn.S | ||
crtprec.c | ||
cygming-crtbegin.c | ||
cygming-crtend.c | ||
cygwin.S | ||
darwin-lib.h | ||
dragonfly-unwind.h | ||
elf-lib.h | ||
enable-execute-stack-mingw32.c | ||
gthr-win32.c | ||
gthr-win32.h | ||
libgcc-bsd.ver | ||
libgcc-cygming.ver | ||
libgcc-darwin.10.4.ver | ||
libgcc-darwin.10.5.ver | ||
libgcc-glibc.ver | ||
libgcc-sol2.ver | ||
linux-unwind.h | ||
morestack.S | ||
sfp-exceptions.c | ||
sfp-machine.h | ||
sol2-c1.S | ||
sol2-unwind.h | ||
t-chkstk | ||
t-cpuinfo | ||
t-crtfm | ||
t-crtpc | ||
t-crtstuff | ||
t-cygming | ||
t-cygwin | ||
t-darwin | ||
t-dlldir | ||
t-dlldir-x | ||
t-dw2-eh | ||
t-freebsd | ||
t-gthr-win32 | ||
t-interix | ||
t-linux | ||
t-mingw32 | ||
t-mingw-pthread | ||
t-nto | ||
t-seh-eh | ||
t-sjlj-eh | ||
t-slibgcc-cygming | ||
t-softfp | ||
t-sol2 | ||
t-stack-i386 | ||
value-unwind.h | ||
w32-unwind.h |