bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/32022] Assembler shouldn't accept invalid TLS instructions


From: sam at gentoo dot org
Subject: [Bug gas/32022] Assembler shouldn't accept invalid TLS instructions
Date: Mon, 29 Jul 2024 11:36:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32022

--- Comment #6 from Sam James <sam at gentoo dot org> ---
(In reply to Jan Beulich from comment #5)
> (In reply to H.J. Lu from comment #0)
> > [hjl@gnu-tgl-3 tmp]$ ld y.o
> > ld: warning: cannot find entry symbol _start; defaulting to 0000000000401000
> > ld: y.o: TLS transition from R_X86_64_GOTTPOFF to R_X86_64_TPOFF32 against
> > `foo' at 0x3 in section `.text' failed
> > ld: final link failed: bad value
> 
> And why exactly does linking need to fail is such a situation? The TLS
> transitions are optional, aren't they? Not being able to do carry one out
> may indeed deserve a warning (with a control to silence), but not more.
> 

We would need a way to make it error out by default when invoked by GCC then,
given it exposed an x86 backend issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]