]> sourceware.org Git - glibc.git/commit
[ARM] Fix ld.so crash when built using Binutils 2.29
authorJiong Wang <jiong.wang@arm.com>
Thu, 13 Jul 2017 14:48:41 +0000 (15:48 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 13 Jul 2017 14:48:41 +0000 (15:48 +0100)
commit5ba6405338c280a3d84dcab1a11dcd1df9b5bee8
tree91058ccecdbeea948e8d2763924bd0f9c355274c
parent1dd577fd3382868d03ff4756dd5f7d3b8099b76a
[ARM] Fix ld.so crash when built using Binutils 2.29

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.

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.

* sysdeps/arm/dl-machine.h (elf_machine_load_address):  Also strip bit 0
of pcrel_address under Thumb mode.
ChangeLog
sysdeps/arm/dl-machine.h
This page took 0.506697 seconds and 5 git commands to generate.