diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2024-05-22 14:27:08 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-05-27 17:41:04 +0800 |
commit | 6f779908fd6d7c85197ab13949a9dc5e6d4f1458 (patch) | |
tree | 00725fade1e0d17330a79b2b5a8aa10cae0edb14 /libsframe | |
parent | 4250085217f2011335257fd3291cb50c939e9746 (diff) | |
download | binutils-6f779908fd6d7c85197ab13949a9dc5e6d4f1458.zip binutils-6f779908fd6d7c85197ab13949a9dc5e6d4f1458.tar.gz binutils-6f779908fd6d7c85197ab13949a9dc5e6d4f1458.tar.bz2 |
LoongArch: Fix relaxation overflow caused by ld -z separate-code
ld -z separate-code let .text and .rodata in two different but read only
segment. If the symbol and pc in two segment, the offset from pc to
symbol need to consider segment alignment.
Add a function 'loongarch_two_sections_in_same_segment' to determine
whether two sections are in the same segment.
Diffstat (limited to 'libsframe')
0 files changed, 0 insertions, 0 deletions