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: unassignedb...@nondot.org
Reporter: arc...@gmail.com
CC: llvm-bugs@lists.llvm.org, peter.sm...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs