Message ID | a00c7a1c-2ed9-a50d-8668-e8c213210875@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On 12/01/2016 05:25 PM, Stefan Liebler wrote: > * elf/Makefile (CFLAGS-tst-latepthreadmod.c): Add > -fno-optimize-sibling-calls. Please commit this. Thanks for finding a way to make the test work on s390x. I had no idea it would break there, sorry. Florian
On 12/02/2016 07:11 AM, Florian Weimer wrote: > On 12/01/2016 05:25 PM, Stefan Liebler wrote: > >> * elf/Makefile (CFLAGS-tst-latepthreadmod.c): Add >> -fno-optimize-sibling-calls. > > Please commit this. Thanks for finding a way to make the test work on > s390x. I had no idea it would break there, sorry. > > Florian > Committed
diff --git a/elf/Makefile b/elf/Makefile index 33b003b..18b3e2a 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1271,6 +1271,9 @@ LDFLAGS-tst-audit12mod2.so = -Wl,--version-script=tst-audit12mod2.map # Force lazy binding for the same reason. LDFLAGS-tst-latepthreadmod.so = \ -Wl,-z,lazy -Wl,--unresolved-symbols=ignore-all +# Do not optimize sibling calls as the test relies on a JMP_SLOT relocation for +# function this_function_is_not_defined. +CFLAGS-tst-latepthreadmod.c = -fno-optimize-sibling-calls $(objpfx)tst-latepthreadmod.so: $(shared-thread-library) $(objpfx)tst-latepthread: $(libdl) $(objpfx)tst-latepthread.out: $(objpfx)tst-latepthreadmod.so