From 7c93730fe50c22129e751d8479e64bc970b75aac Mon Sep 17 00:00:00 2001 From: Jinyang He Date: Fri, 11 Aug 2023 16:10:40 +0800 Subject: 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 --- 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 d353f18..fd09435 100644 --- a/gas/config/tc-loongarch.h +++ b/gas/config/tc-loongarch.h @@ -123,6 +123,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 -- cgit v1.1