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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils