[binutils-gdb/binutils-2_40-branch] LoongArch: Enable gas sort relocs
liu & zhensong
liuzhensong@sourceware.org
Mon Nov 11 03:51:24 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c3817e092dd01d85dc4145aab9f292bfc19bca05
commit c3817e092dd01d85dc4145aab9f292bfc19bca05
Author: Jinyang He <hejinyang@loongson.cn>
Date: Fri Aug 11 16:10:40 2023 +0800
LoongArch: Enable gas sort relocs
The md_pre_output_hook creating fixup is asynchronous, causing relocs
may be out of order in .eh_frame. Define GAS_SORT_RELOCS so that reorder
relocs when write_relocs.
Reported-by: Rui Ueyama <rui314@gmail.com>
(cherry picked from commit 7c93730fe50c22129e751d8479e64bc970b75aac)
Diff:
---
gas/config/tc-loongarch.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gas/config/tc-loongarch.h b/gas/config/tc-loongarch.h
index c75a8192cb0..3c3e1b31d3d 100644
--- a/gas/config/tc-loongarch.h
+++ b/gas/config/tc-loongarch.h
@@ -73,6 +73,8 @@ extern void tc_loongarch_parse_to_dw2regnum (expressionS *);
Here is the type 0, will fill andi insn later. */
#define NOP_OPCODE (0x00)
+#define GAS_SORT_RELOCS 1
+
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
#define HANDLE_ALIGN(fragp) loongarch_handle_align (fragp)
More information about the Binutils-cvs
mailing list