diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-12-03 19:37:26 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-12-03 19:52:35 +0800 |
commit | eb06e396416de9a609bf4adfdb9823ab2c8a395c (patch) | |
tree | eda7701a014d1b0bfe240d1984d089ede19c2f3f /gdb/testsuite/gdb.python | |
parent | 6da184277006a211c7b18a7ad3ae918d372d3da2 (diff) | |
download | binutils-eb06e396416de9a609bf4adfdb9823ab2c8a395c.zip binutils-eb06e396416de9a609bf4adfdb9823ab2c8a395c.tar.gz binutils-eb06e396416de9a609bf4adfdb9823ab2c8a395c.tar.bz2 |
LoongArch: Fix the infinite loop caused by calling undefweak symbol
The undefweak symbol value of non-default visibility is 0 and does
not use plt entry, and will not be relocated in the relocate_secion
function. As a result, an infinite loop is generated because
bl %plt(sym) => bl 0.
Fix this by converting the call into a jump address 0.
Diffstat (limited to 'gdb/testsuite/gdb.python')
0 files changed, 0 insertions, 0 deletions