diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-01-09 16:35:26 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-01-16 09:05:46 +0800 |
commit | 87cb95ba8c4d86de23b6ba694a126995a17c5fcd (patch) | |
tree | 2ee2f645c6e7ebd3c9744df567839a52140e3950 /sim | |
parent | 9d131130d2f35f1515855d786a9905d8eb8cce8f (diff) | |
download | gdb-87cb95ba8c4d86de23b6ba694a126995a17c5fcd.zip gdb-87cb95ba8c4d86de23b6ba694a126995a17c5fcd.tar.gz gdb-87cb95ba8c4d86de23b6ba694a126995a17c5fcd.tar.bz2 |
LoongArch: ld: Fix hidden ifunc symbol linker error bug.
For hidden ifunc symbols, it not have GOT entry, only have gotplt entry. When
process R_LARCH_SOP_PUSH_GPREL, the offset is gotplt entry address minus GOT
address. When call bfd_put_NN(got->contents + offset), the absolute value of
offset is grather than got size, and other memory not belonging to GOT is be
overwritten.
bfd/ChangeLog:
* elfnn-loongarch.c (loongarch_elf_relocate_section): If hidden ifunc
symbol, don't call bfd_put_NN.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions