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

Bug#888477: glibc FTBFS on arm64: dangerous relocation: unsupported relocation



control: tag -1 + fixed-upstream

On 2018-01-26 08:03, Helmut Grohne wrote:
> Source: glibc
> Version: 2.26-5
> Severity: serious
> User: helmutg@debian.org
> Usertags: rebootstrap
> 
> glibc fails to build from source on amd64. Very likely this is not
> caused by the particular glibc upload, but by the binutils upload
> instead. In any case, the build log (attached) ends with:
> 
> | make[4]: Leaving directory '/home/helmutg/glibc-2.26/elf'
> | aarch64-linux-gnu-gcc-7 -no-pie -fno-PIE   -nostdlib -nostartfiles -r -o /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/librtld.os '-Wl,-(' /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/dl-allobjs.os /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/rtld-libc.a -lgcc '-Wl,-)' \
> | 	  -Wl,-Map,/home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/librtld.os.map
> | aarch64-linux-gnu-gcc-7 -no-pie -fno-PIE   -nostdlib -nostartfiles -shared -o /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/ld.so.new		\
> | 	  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs 	\
> | 	  /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/librtld.os -Wl,--version-script=/home/helmutg/glibc-2.26/build-tree/arm64-libc/ld.map		\
> | 	  -Wl,-soname=ld-linux-aarch64.so.1			\
> | 	  -Wl,-defsym=_begin=0
> | /usr/bin/ld: /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/librtld.os: relocation R_AARCH64_ABS32 against `a local symbol' can not be used when making a shared object
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elfnn-aarch64.c:4386
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elfnn-aarch64.c:4386
> | /home/helmutg/glibc-2.26/build-tree/arm64-libc/elf/librtld.os: In function `process_envvars':

The bug has already been fixed upstream in the master branch. However I
am waiting the opinion of the patch author before backporting it to the
2.26 branch. See:

  https://sourceware.org/ml/libc-stable/2018-01/msg00053.html

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: