Displaying 1 result from an estimated 1 matches for "l05".
Did you mean:
05
2017 Mar 23
4
[LLD] Can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment
Hi,
the attached example works with bfd-ld and with gold, but not with lld:
$ cat rodatareloc.s
...
.align 16
leaq .JTab(%rip), %r10
jmp *(%r10, %rdx, 8)
...
.section .rodata
.JTab:
.quad .L00, .L01, .L02, .L03, .L04, .L05, .L06, .L07
.quad .L08, .L09, .L10, .L11, .L12, .L13, .L14, .L15, .L16
$ gcc -o rodatareloc.s.o -c rodatareloc.s
$ lld -o rodatareloc.so -shared rodatareloc.s.o
ld: error: rodatareloc.s.o:(.rodata+0x0): can't create dynamic relocation
R_X86_64_64 against local symbol in readonly segment d...