[PATCH] LoongArch: Disallow TLS transition when a section contains TLS_IE64 or TLS_DESC64 reloc
Xi Ruoyao
xry111@xry111.site
Fri Jan 26 08:12:15 GMT 2024
On Fri, 2024-01-26 at 09:43 +0800, mengqinggang wrote:
> Hi,
>
> For TLS transition, we want to change to that the instructions that can be
> converted must have a R_LARCH_RELAX relocation.
>
> After 32ee2b4b71c78d3dc0c0b1f87f25fe5df8786b71 commit, the gas not
> emit R_LARCH_RELAX for two register macros.
But with master branch at e14f7abaf81d5d0aa7898570024286de8c188817:
$ cat t.s
.globl _start
_start:
la.tls.ie $a0, $a1, foo
.section .tdata
foo: .word 114514
$ gas/as-new t.s -o t.o
$ ld/ld-new t.o
[1] 7202 segmentation fault (core dumped) ld/ld-new t.o
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Binutils
mailing list