commit | 6f779908fd6d7c85197ab13949a9dc5e6d4f1458 | [log] [tgz] |
---|---|---|
author | mengqinggang <mengqinggang@loongson.cn> | Wed May 22 14:27:08 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Mon May 27 17:41:04 2024 +0800 |
tree | 00725fade1e0d17330a79b2b5a8aa10cae0edb14 | |
parent | 4250085217f2011335257fd3291cb50c939e9746 [diff] |
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.