commit | 035068a0cd846653e1fb0903aece42f4258803fb | [log] [tgz] |
---|---|---|
author | Jinyang He <hejinyang@loongson.cn> | Mon Apr 22 17:49:50 2024 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Thu Apr 25 11:53:15 2024 +0800 |
tree | 70219d99f339e89d9312cc8a3096465fd775fcd6 | |
parent | 66156bae7a0581879763514382d112716464db8a [diff] |
LoongArch: gas: Simplify relocations in sections without code flag Gas should not emit ADD/SUB relocation pairs for label differences if they are in the same section without code flag even relax enabled. Because the real value is not be affected by relaxation and it can be compute out in assembly stage. Thus, correct the `TC_FORCE_RELOCATION _SUB_SAME` and the label differences in same section without code flag can be resolved in fixup_segment().