This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] alpha: Do not build with -fpic
- From: Jeff Law <law at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Date: Mon, 02 Mar 2020 09:19:24 -0700
- Subject: Re: [PATCH] alpha: Do not build with -fpic
- References: <87zhcykatj.fsf@oldenburg2.str.redhat.com>
- Reply-to: law at redhat dot com
On Mon, 2020-03-02 at 16:58 +0100, Florian Weimer wrote:
> The combination of GCC 10 and binutils 2.35 (both unreleased) is no
> longer able to link the dynamic linker, due to a GP16 relocation
> overflow error:
>
> glibc/alpha-linux-gnu/elf/librtld.os: in function `calloc':
> glibc/elf/../include/rtld-malloc.h:44:(.text+0xd98): relocation truncated to
> fit: GPREL16 against symbol `__rtld_calloc' defined in .data.rel.ro section
> in glibc/alpha-linux-gnu/elf/librtld.os
> glibc/alpha-linux-gnu/elf/librtld.os: in function `malloc':
> glibc/elf/../include/rtld-malloc.h:56:(.text+0x2978): relocation truncated to
> fit: GPREL16 against symbol `__rtld_malloc' defined in .data.rel.ro section
> in glibc/alpha-linux-gnu/elf/librtld.os
>
> This is arguably a linker bug; the object files and their section size
> requirements look reasonable enough.
>
> Using -fPIC (the default) works around this issue.
Thanks. I was literally just about to start chasing this down. Everything was
fine last build (a week ago) and blew up in last night's test:
http://3.14.90.209:8080/job/alpha-linux-gnu/lastFailedBuild/
Jeff