aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-util.c
diff options
context:
space:
mode:
authorLulu Cai <cailulu@loongson.cn>2023-12-27 19:42:01 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-01-04 16:44:12 +0800
commit1c729b7cd77ca69f0f41d6a92ccf67348f08e007 (patch)
treeda6e8cafa9b52c7778888871a3b35fd00a6943b0 /libctf/ctf-util.c
parent3fc4f11e0bf30abfcf0abe803c38eddc8da9e301 (diff)
downloadgdb-1c729b7cd77ca69f0f41d6a92ccf67348f08e007.zip
gdb-1c729b7cd77ca69f0f41d6a92ccf67348f08e007.tar.gz
gdb-1c729b7cd77ca69f0f41d6a92ccf67348f08e007.tar.bz2
LoongArch: Fix some macro that cannot be expanded properly
Suppose we want to use la.got to generate 32 pcrel and 32 abs instruction sequences respectively. According to the existing conditions, to generate 32 pcrel sequences use -mabi=ilp32*, and to generate 32 abs use -mabi=ilp32* and -mla-global-with-abs. Due to the fact that the conditions for generating 32 abs also satisfy 32 pcrel, using -mabi=ilp32* and -mla-global-with-abs will result in only generating instruction sequences of 32 pcrel. By modifying the conditions for macro expansion and adjusting the matching order of macro instructions, it is ensured that the correct sequence of instructions can be generated.
Diffstat (limited to 'libctf/ctf-util.c')
0 files changed, 0 insertions, 0 deletions