bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/23956] New: RISC-V 4-operand add doesn't check for %tprel_add


From: luismarques at lowrisc dot org
Subject: [Bug gas/23956] New: RISC-V 4-operand add doesn't check for %tprel_add
Date: Thu, 06 Dec 2018 10:53:06 +0000

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

            Bug ID: 23956
           Summary: RISC-V 4-operand add doesn't check for %tprel_add
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: luismarques at lowrisc dot org
  Target Milestone: ---

In RISC-V assembly, there's a fictitious 4-operand ADD that's used to add a
TP-relative relocation. It's usually used like "add a0,a0,tp,%tprel_add(sym)",
but binutils allows a plain 0 as the 4th operand:

$ cat test.s
add a0, a0, tp, 0

$ riscv32-unknown-elf-as test.s 
$

Is this just loose error checking, or is it actually needed in some cases?
There's a patch for TLS support in LLVM that requires the presence of
%tprel_add in the 4-operand add. It's important, then, to clarify if the "add
a0,a0,tp,0" should be accepted or not.

-- 
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]