commit | 4cb77761d68791aa3fd9e7c0ec37fce86a4661f3 | [log] [tgz] |
---|---|---|
author | Lulu Cai <cailulu@loongson.cn> | Mon Sep 30 16:08:59 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Thu Oct 17 21:01:52 2024 +0800 |
tree | 4f42397fc534c700475a7b6134742985fade00d6 | |
parent | 7721dcad5c61b0ba7cc673958ae06315dc2ffa28 [diff] |
LoongArch: Check PC-relative relocations for shared libraries Building shared libraries should not be allowed for PC-relative relocations against external symbols. Currently LoongArch has no corresponding checks and silently generates wrong shared libraries. However, In the first version of the medium cmodel, pcalau12i+jirl was used for function calls, in which case PC-relative relocations were allowed.