commit | 05b3e96495386ee41358c68b8787274ce77ae049 | [log] [tgz] |
---|---|---|
author | Lulu Cai <cailulu@loongson.cn> | Fri Aug 09 17:40:59 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Mon Aug 26 17:25:45 2024 +0800 |
tree | 4ae4d35b7fb12ea1083533cd6f017e1fd894d4dc | |
parent | 387f97a1b24e968e06dd62f91a26eb0a883fff58 [diff] |
LoongArch: Fix wrong relocation handling of symbols defined by PROVIDE If the symbol defined by PROVIDE in the link script is not in SECTION, the symbol is placed in the ABS section. The linker considers that symbols in the ABS section do not need to calculate PC relative offsets. Symbols in ABS sections should calculate PC relative offsets normally based on relocations.