[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerp
From: |
slyfox at inbox dot ru |
Subject: |
[Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc |
Date: |
Sun, 17 Dec 2017 21:21:37 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22626
--- Comment #2 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Same for master from
commit 390c91cfcffe1a0d75b6100d1542cda2544993b3 (HEAD -> master,
origin/master, origin/HEAD)
Author: H.J. Lu <address@hidden>
Date: Sun Dec 17 09:40:54 2017 -0800
x86: Check pseudo prefix without instruction
built as:
$ ../binutils-gdb/configure --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=powerpc-unknown-linux-gnu --disable-werror
tested as (exact linker invocation):
./link-dev.sh
GNU ld (GNU Binutils) 2.29.51.20171217
Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim
elf32lppclinux
elf32lppc
elf32lppcsim
elf64ppc
elf64lppc
00000502 00000906 R_PPC_ADDR16_HA readelf: Error: bad symbol index: 00000009
in reloc
0000050a 00000904 R_PPC_ADDR16_LO readelf: Error: bad symbol index: 00000009
in reloc
00000532 00000906 R_PPC_ADDR16_HA readelf: Error: bad symbol index: 00000009
in reloc
0000053a 00000904 R_PPC_ADDR16_LO readelf: Error: bad symbol index: 00000009
in reloc
$ cat ./link-dev.sh
#!/bin/bash
ld/ld-new \
--sysroot=/usr/powerpc-unknown-linux-gnu \
--eh-frame-hdr \
-V \
--secure-plt \
-m elf32ppclinux \
-dynamic-linker /lib/ld.so.1 \
-pie \
-o a \
/usr/powerpc-unknown-linux-gnu/usr/lib/../lib/crt1.o \
/usr/powerpc-unknown-linux-gnu/usr/lib/../lib/crti.o \
/usr/lib/gcc/powerpc-unknown-linux-gnu/7.2.0/crtbegin.o \
-L/usr/lib/gcc/powerpc-unknown-linux-gnu/7.2.0 \
-L/usr/lib/gcc/powerpc-unknown-linux-gnu/7.2.0/../../../../powerpc-unknown-linux-gnu/lib/../lib
\
-L/usr/powerpc-unknown-linux-gnu/lib/../lib \
-L/usr/powerpc-unknown-linux-gnu/usr/lib/../lib \
-L/usr/lib/gcc/powerpc-unknown-linux-gnu/7.2.0/../../../../powerpc-unknown-linux-gnu/lib
\
-L/usr/powerpc-unknown-linux-gnu/lib \
-L/usr/powerpc-unknown-linux-gnu/usr/lib \
\
a.o \
\
-lgcc \
--as-needed -lgcc_s --no-as-needed \
-lc -lgcc \
--as-needed -lgcc_s --no-as-needed \
/usr/lib/gcc/powerpc-unknown-linux-gnu/7.2.0/crtend.o \
/usr/powerpc-unknown-linux-gnu/usr/lib/../lib/crtn.o
LANG=C readelf -a ./a >log 2>&1
fgrep 'bad symbol index' log
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/22626] New: [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, slyfox at inbox dot ru, 2017/12/17
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, slyfox at inbox dot ru, 2017/12/17
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, hjl.tools at gmail dot com, 2017/12/17
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc,
slyfox at inbox dot ru <=
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, slyfox at inbox dot ru, 2017/12/17
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, hjl.tools at gmail dot com, 2017/12/17
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, amodra at gmail dot com, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, slyfox at inbox dot ru, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, slyfox at inbox dot ru, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, amodra at gmail dot com, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, amodra at gmail dot com, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, amodra at gmail dot com, 2017/12/18
- [Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc, amodra at gmail dot com, 2017/12/18
- [Bug ld/22626] invalid dynindx used for dynamic relocs against section syms, amodra at gmail dot com, 2017/12/18