This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [ARM] Fix ld.so crash when built using Binutils 2.29
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Jiong Wang <jiong dot wang at foss dot arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 12 Jul 2017 17:23:37 +0100
- Subject: Re: [ARM] Fix ld.so crash when built using Binutils 2.29
- Authentication-results: sourceware.org; auth=none
- References: <065a8567-cfca-989b-587b-70584035f529@foss.arm.com>
On Wed, Jul 12, 2017 at 5:13 PM, Jiong Wang <jiong.wang@foss.arm.com> wrote:
> Hi,
>
> There is bug report that ld.so in GLIBC 2.24 built by Binutils 2.29 will
> crash
> on arm-linux-gnueabihf. This is confirmed, and the details is at:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=21725.
>
> And I could also reproduce this crash using GLIBC master.
>
> As analyzed in the PR, the old code was with the assumption that assembler
> won't set bit0 of thumb function address if it comes from PC-relative
> instructions and the calculation can be finished during assembling. This
> assumption however does not hold after PR gas/21458.
>
> I think ARM backend in GLIBC should be fix to be more portable so it could
> work with various combinations of GLIBC and Binutils.
>
> OK for master and backport to all release branches?
Has a combination of a binutils that did not have the fix for 21458 +
glibc with this patch been tested ?
Ramana
>
>
> 2017-07-12 Jiong Wang <jiong.wang@arm.com>
>
> * sysdeps/arm/dl-machine.h (elf_machine_load_address): Also strip
> bit 0
> of pcrel_address under Thumb mode.
>