aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/fill2.d
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2025-08-06 12:19:22 +0800
committercailulu <cailulu@loongson.cn>2025-08-07 09:21:38 +0800
commit3eede6b04a30243fdc4acece156be95b17c16f83 (patch)
treec0da5f315d3bcf6e91065847c84b4a789d8dd482 /ld/testsuite/ld-scripts/fill2.d
parent081bf6a3a18da20293693bf30617c5736ef270bc (diff)
downloadbinutils-master.zip
binutils-master.tar.gz
binutils-master.tar.bz2
LoongArch: Fix symbol size after relaxationHEADmaster
There's a logic error in loongarch_relax_perform_deletes: when there's not any delete operation of which the start address is strictly smaller than the symbol address, splay_tree_predecessor() will return nullptr and the symbol size will be unchanged even if some bytes of it are removed. Make the logic more complete to fix this issue. Also factor out the symbol size adjustment logic into a function to avoid code bloating. Tested-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'ld/testsuite/ld-scripts/fill2.d')
0 files changed, 0 insertions, 0 deletions