commit | eb06e396416de9a609bf4adfdb9823ab2c8a395c | [log] [tgz] |
---|---|---|
author | Lulu Cai <cailulu@loongson.cn> | Tue Dec 03 19:37:26 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Tue Dec 03 19:52:35 2024 +0800 |
tree | eda7701a014d1b0bfe240d1984d089ede19c2f3f | |
parent | 6da184277006a211c7b18a7ad3ae918d372d3da2 [diff] |
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.