bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/23305] RISC-V illegal operands with lla and .set


From: wilson at gcc dot gnu.org
Subject: [Bug gas/23305] RISC-V illegal operands with lla and .set
Date: Mon, 18 Jun 2018 18:42:38 +0000

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

--- Comment #2 from Jim Wilson <wilson at gcc dot gnu.org> ---
lla is only valid for symbol addresses.  It isn't meant to be used for
constants.  But that is an interesting testcase.  Did this come from real code?
 If so then we need to fix this.

You can make medlow fail with -fpic, though I'm not sure if this makes much
sense, since it isn't pic if you are giving a symbol an explicit address.

You can make both medlow and medany fail by adding __thread, but I'm not sure
if this case make any sense either.  You can't give an address to a symbol and
still have it be a valid TLS symbol.

This looks simple enough to fix, we can add lines like the M_LI line in
opcodes/riscv-opc.c, except with opcode lla instead of li.  And likewise with
la if we need to fix that also.

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