This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: forward portability
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: paul zimmermann <Paul dot Zimmermann at inria dot fr>, Andreas Schwab <schwab at suse dot de>
- Cc: nd at arm dot com, libc-alpha at sourceware dot org
- Date: Fri, 6 Mar 2020 10:55:17 +0000
- Subject: Re: forward portability
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZY9FEkE/Gr5XwZ95qhU/6BoqHXaVUVoqswtYW3xYS8o=; b=ioiWx9TytQPgYpAzlqumcKGpx0HsB1mqS0kdWMsFRSXEkyeTtDtmHf2KSv9i5uV5IlxVwpfeQwNJgVf+ok+lDWQ5IBKRIH77mUdK3MhakRu7Eph/Ay3JRXWSdgS1833uofyYu0+igT3Aw2pkBqifpADeyBeiv+nv3n5/Djvjoo9Gou3kGjkAA6NKsQqnDbpK50eYgGR4G3zEfZmDJTJPv1Gk3NXx2Tkn9f7vDKSK6C2OIMk257fE7b5zMtBPHkBK0cmwaX2sZKfJsyENenucnXOnz1fjXOohcCJLnOPL5L1Q79m+JQjqJZ3Pb6NnIca3FViJk7h+WC1o8GakUbUUQQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KTuUL+KjHCSEk9gYVXYSaLf4d+tCZceqddve1thgBzPXjS1lmd+MBrbiKKlvfQjffV19QoeQiHOwQZjpHb6hTKdJ3DG185mgMO6sgs2+Qf9llNF1gsnLb1SFOxBk6YSHQ8i6JkotK/uR6qJd5KRYjvmgzikLyexP0072RcR/e/+JClxQdBFJRoY6QppAFTa68pUt/Etpo3gmOm3aPychpt80Msp39eI/Nj6/+fimklt9jnuMVIfSJOklQMJkHQDbFZaIVBkODwA61BbtoyAjQvLCOrknPjDEAUaHsWFPHiojqASBo492UfdqA7ZSlFpWSftLPtR9adfGvcXaf4+RDQ==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- References: <mwwo7zxdzm.fsf@tomate.loria.fr> <mvmimjj9htb.fsf@suse.de> <mwpndpydzd.fsf@tomate.loria.fr>
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.