[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28523] New: ld.bfd created undefined symbols on ppc64
From: |
mliska at suse dot cz |
Subject: |
[Bug binutils/28523] New: ld.bfd created undefined symbols on ppc64 |
Date: |
Mon, 01 Nov 2021 13:52:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28523
Bug ID: 28523
Summary: ld.bfd created undefined symbols on ppc64
Product: binutils
Version: 2.36.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
Considering the following test-case:
$ cat 0.s
.cfi_startproc
bl .LTHUNK32.lto_priv.0
.cfi_endproc
$ cat 1.s
_ZN8CryptoPP5Weak19ARC4_Base11ProcessDataEPhPKhm:
.globl .LTHUNK32.lto_priv.0
.hidden .LTHUNK32.lto_priv.0
.set
.LTHUNK32.lto_priv.0,_ZN8CryptoPP5Weak19ARC4_Base11ProcessDataEPhPKhm
.cfi_startproc
.cfi_endproc
$ gcc [01].s -shared -fPIC -o libx.so -fuse-ld=bfd && nm libx.so | grep THUNK
0000000000000738 t .LTHUNK32.lto_priv.0
U LTHUNK32.lto_priv.0
$ echo 'int main() {}' | gcc -x c - -lx -L.
/usr/lib64/gcc/powerpc64-suse-linux/11/../../../../powerpc64-suse-linux/bin/ld:
./libx.so: undefined reference to `LTHUNK32.lto_priv.0'
collect2: error: ld returned 1 exit status
while ld.gold does not created the undefined symbol:
$ gcc [01].s -shared -fPIC -o libx.so -fuse-ld=gold && nm libx.so | grep THUNK
0000000000000758 t .LTHUNK32.lto_priv.0
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28523] New: ld.bfd created undefined symbols on ppc64,
mliska at suse dot cz <=
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, mliska at suse dot cz, 2021/11/01
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, mliska at suse dot cz, 2021/11/01
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, mliska at suse dot cz, 2021/11/01
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, amodra at gmail dot com, 2021/11/02
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, mliska at suse dot cz, 2021/11/02
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, cvs-commit at gcc dot gnu.org, 2021/11/02
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, cvs-commit at gcc dot gnu.org, 2021/11/02
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, amodra at gmail dot com, 2021/11/02
- [Bug binutils/28523] ld.bfd created undefined symbols on ppc64, mliska at suse dot cz, 2021/11/03