bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21725] [2.29 Regression] binutils fails to build glibc-2.2


From: jiwang at gcc dot gnu.org
Subject: [Bug binutils/21725] [2.29 Regression] binutils fails to build glibc-2.24 on aarch64-linux-gnu and arm-linux-gnueabihf
Date: Wed, 12 Jul 2017 13:54:43 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21725

--- Comment #8 from Jiong Wang <jiwang at gcc dot gnu.org> ---
sysdeps/arm/dl-machine.h:

elf_machine_load_address (void)
   extern Elf32_Addr internal_function __dl_start (void *) asm ("_dl_start");
   Elf32_Addr got_addr = (Elf32_Addr) &__dl_start;
   Elf32_Addr pcrel_addr;
#ifdef __thumb__
  /* Clear the low bit of the funciton address.  */
  got_addr &= ~(Elf32_Addr) 1;
#endif
   asm ("adr %0, _dl_start" : "=r" (pcrel_addr));
   return pcrel_addr - got_addr;

The __thumb__ hunk is suspicious, as Nick's patch will also update the low bit.

If I remove the "#ifdef __thumb__", the generated ld.so will also work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]