diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-09-30 16:08:59 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-10-17 21:01:52 +0800 |
commit | 4cb77761d68791aa3fd9e7c0ec37fce86a4661f3 (patch) | |
tree | 4f42397fc534c700475a7b6134742985fade00d6 /gdb/gdb_bfd.c | |
parent | 7721dcad5c61b0ba7cc673958ae06315dc2ffa28 (diff) | |
download | binutils-4cb77761d68791aa3fd9e7c0ec37fce86a4661f3.zip binutils-4cb77761d68791aa3fd9e7c0ec37fce86a4661f3.tar.gz binutils-4cb77761d68791aa3fd9e7c0ec37fce86a4661f3.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdb_bfd.c')
0 files changed, 0 insertions, 0 deletions