forward portability
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Mar 6 10:55:00 GMT 2020
On 06/03/2020 10:28, paul zimmermann wrote:
> Dear Andreas,
>
> thank you. I was able to build glibc back to version 2.22 on my machine
> (x86_64 under Debian). In some cases I had to use CFLAGS="-Wno-error -O1"
> to avoid some errors with -Werror. Also for <= 2.25 or before I had to use the
> patch in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869717.
>
> But building 2.18-2.21 fails with:
>
> /usr/bin/ld: /localdisk/zimmerma/glibc-2.20/build/csu/crt1.o: relocation R_X86_64_32S against symbol `__libc_csu_fini' can not be used when making a PIE object; recompile with -fPIE
>
> I tried compiling with CFLAGS="-fPIE -O1" but I get the same error.
> I also tried configure --disable-shared or configure --disable-static without
> anu success.
>
> Any clue?
crt1.o should not be linked as pie.
are you using an --enable-default-pie toolchain? try CC='gcc -no-pie' ?
>
> Paul
>
>> From: Andreas Schwab <schwab@suse.de>
>> Date: Thu, 05 Mar 2020 12:12:16 +0100
>>
>> https://sourceware.org/git/?p=glibc.git;a=commit;h=28d708c44b
>>
>> Andreas.
More information about the Libc-alpha
mailing list