[llvm-bugs] [Bug 43534] New: lld tries to create dynamic relocations for `__start_section`/`__stop_section` symbols
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 1 19:50:56 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43534
Bug ID: 43534
Summary: lld tries to create dynamic relocations for
`__start_section`/`__stop_section` symbols
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: arcata at gmail.com
CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org
If you assemble and link the following with lld:
```
.text
.section "blah"
.globl foo
foo:
.long __start_blah - .
.globl main
main:
xor %eax, %eax
ret
```
then lld complains that the symbol can't be resolved at link time:
```
$ clang -fuse-ld=lld test.o
/usr/bin/ld.lld: error: test.o:(blah+0x0): has non-ABS relocation R_X86_64_PC32
against symbol '__start_blah'
```
The symbol should be resolved. gold and BFD don't have a problem with this.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191002/708eb051/attachment.html>
More information about the llvm-bugs
mailing list