* [PATCH] LoongArch: Enable gas sort relocs
@ 2023-08-11 8:10 Jinyang He
0 siblings, 0 replies; only message in thread
From: Jinyang He @ 2023-08-11 8:10 UTC (permalink / raw)
To: Chenghua Xu, Zhensong Liu, mengqinggang
Cc: Rui Ueyama, WANG Xuerui, Xi Ruoyao, binutils, Xing Li
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>
---
gas/config/tc-loongarch.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gas/config/tc-loongarch.h b/gas/config/tc-loongarch.h
index a9f2a0a17..c75d8887f 100644
--- a/gas/config/tc-loongarch.h
+++ b/gas/config/tc-loongarch.h
@@ -115,6 +115,7 @@ extern void tc_loongarch_parse_to_dw2regnum (expressionS *);
extern void loongarch_pre_output_hook (void);
#define md_pre_output_hook loongarch_pre_output_hook ()
+#define GAS_SORT_RELOCS 1
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
--
2.34.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-11 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 8:10 [PATCH] LoongArch: Enable gas sort relocs Jinyang He
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).