[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.
- [Bug gas/23956] New: RISC-V 4-operand add doesn't check for %tprel_add,
luismarques at lowrisc dot org <=
- [Bug gas/23956] RISC-V 4-operand add doesn't check for %tprel_add, luismarques at lowrisc dot org, 2018/12/06
- [Bug gas/23956] RISC-V 4-operand add doesn't check for %tprel_add, david.abdurachmanov at gmail dot com, 2018/12/06
- [Bug gas/23956] RISC-V 4-operand add doesn't check for %tprel_add, wilson at gcc dot gnu.org, 2018/12/06
- [Bug gas/23956] RISC-V 4-operand add doesn't check for %tprel_add, cvs-commit at gcc dot gnu.org, 2018/12/07
- [Bug gas/23956] RISC-V 4-operand add doesn't check for %tprel_add, wilson at gcc dot gnu.org, 2018/12/07