[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27998] New: relocation R_386_GOTOFF against STT_GNU_IFUNC symbol
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/27998] New: relocation R_386_GOTOFF against STT_GNU_IFUNC symbol `foo' isn't supported |
Date: |
Sun, 20 Jun 2021 02:29:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27998
Bug ID: 27998
Summary: relocation R_386_GOTOFF against STT_GNU_IFUNC symbol
`foo' isn't supported
Product: binutils
Version: 2.37 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
Target: i386
[hjl@gnu-tgl-2 pr83782]$ cat test.s
.text
.p2align 4
.type my_foo, @function
my_foo:
ret
.size my_foo, .-my_foo
.p2align 4
.type resolve_foo, @function
resolve_foo:
leal my_foo@GOTOFF(%eax), %eax
ret
.size resolve_foo, .-resolve_foo
.type foo, @gnu_indirect_function
.set foo,resolve_foo
.p2align 4
.globl bar
.type bar, @function
bar:
leal foo@GOTOFF(%eax), %eax
ret
[hjl@gnu-tgl-2 pr83782]$ gcc -m32 -c test.s
[hjl@gnu-tgl-2 pr83782]$ ld -m elf_i386 -o libtest.so -shared test.o
ld: test.o: relocation R_386_GOTOFF against STT_GNU_IFUNC symbol `foo' isn't
supported
ld: final link failed: bad value
[hjl@gnu-tgl-2 pr83782]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27998] New: relocation R_386_GOTOFF against STT_GNU_IFUNC symbol `foo' isn't supported,
hjl.tools at gmail dot com <=