binutils-gdb/include/opcode
Xi Ruoyao bd94e7cd84 LoongArch: Fix resolution of undefined weak hidden/protected symbols
An undefined weak hidden/protect symbol should be resolved to runtime
address 0, but we were actually resolving it to link-time address 0.  So
in PIE or DSO the runtime address would be incorrect.

Fix the issue by rewriting pcalau12i to lu12i.w, and pcaddi to addi.w.
The latter does not always work because the immediate field of addi.w is
narrower, report an error in the case the addend is too large.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
2024-12-27 17:52:29 +08:00
..
aarch64.h aarch64: improve debuggability on array of enum 2024-11-08 11:35:46 +00:00
alpha.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
arc-attrs.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
arc-func.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
arc.h arc: Put DBNZ instruction to a separate class 2024-02-14 11:36:52 +01:00
arm.h arm, objdump: Make objdump use bfd's machine detection to drive disassembly 2024-11-08 10:06:38 +00:00
avr.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
bfin.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
bpf.h bpf: there is no ldinddw nor ldabsdw instructions 2024-01-29 19:22:41 +01:00
cgen.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ChangeLog-0415 binutils ChangeLog rotation 2016-01-01 22:59:17 +10:30
ChangeLog-9103 Add copyright notices 2012-12-10 12:48:03 +00:00
convex.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
cr16.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
cris.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
crx.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
csky.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
d10v.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
d30v.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
dlx.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ft32.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
h8300.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
hppa.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
i386.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ia64.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
kvx.h kvx: gas: rename: or -> ior, xor -> eor 2024-02-20 12:07:57 +01:00
loongarch.h LoongArch: Fix resolution of undefined weak hidden/protected symbols 2024-12-27 17:52:29 +08:00
m68hc11.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
m68k.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
metag.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
mips.h MIPS/opcodes: Rework documentation for instruction args 2024-09-15 13:27:33 +01:00
mmix.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
mn10200.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
mn10300.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
moxie.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
msp430-decode.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
msp430.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
nds32.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
nfp.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
np1.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ns32k.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pdp11.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pj.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pn.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ppc.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pru.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
pyr.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
riscv-opc.h RISC-V: Support SiFive extensions: xsfvqmaccdod, xsfvqmaccqoq and xsfvfnrclipxfqf 2024-11-22 09:56:54 +08:00
riscv.h RISC-V: Support SiFive extensions: xsfvqmaccdod, xsfvqmaccqoq and xsfvfnrclipxfqf 2024-11-22 09:56:54 +08:00
rl78.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
rx.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
s12z.h Enable building the s12z target on Solaris hosts where REG_Y is defined in system header files. 2020-01-02 12:04:40 +00:00
s390.h s390: Add arch15 instructions 2024-10-10 12:09:40 +02:00
score-datadep.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
score-inst.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sparc.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
spu-insns.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
spu.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic4x.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic6x-control-registers.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic6x-insn-formats.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic6x-opcode-table.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic6x.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic30.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tic54x.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tilegx.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
tilepro.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
v850.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
vax.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
visium.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
wasm.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
xgate.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30