[PATCH v3] elf: Second ld.so relocation only if libc.so has been loaded
Andreas Schwab
schwab@suse.de
Tue Jan 7 15:04:57 GMT 2025
On Jan 07 2025, Florian Weimer wrote:
> * Andreas Schwab:
>
>> The tests fail to link on armv7:
>>
>> gcc -nostdlib -nostartfiles -o /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.712.g706209867/cc-base/elf/tst-nolink-libc-1 /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.712.g706209867/cc-base/elf/tst-nolink-libc.o \
>> -Wl,--dynamic-linker=/home/abuild/rpmbuild/BUILD/glibc-2.40.9000.712.g706209867/cc-base/elf/ld.so,--no-as-needed /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.712.g706209867/cc-base/elf/ld.so
>> /usr/lib/gcc/armv7hl-suse-linux-gnueabi/14/../../../../armv7hl-suse-linux-gnueabi/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.40.9000.712.g706209867/cc-base/elf/tst-nolink-libc.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
>> collect2: error: ld returned 1 exit status
>
> What are your compiler flags?
'CFLAGS= -O2 -Wall -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list