diff options
author | Jinyang He <hejinyang@loongson.cn> | 2023-08-11 16:10:40 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-11-11 11:48:06 +0800 |
commit | a8944c558e1fb22a8349ea02258d246229cd1a6f (patch) | |
tree | 2a1493be567f24a24775348ce05210de7c808bb7 | |
parent | 1ff59168d0e8a6462655f625bef9b5f38ed65b64 (diff) | |
download | binutils-a8944c558e1fb22a8349ea02258d246229cd1a6f.zip binutils-a8944c558e1fb22a8349ea02258d246229cd1a6f.tar.gz binutils-a8944c558e1fb22a8349ea02258d246229cd1a6f.tar.bz2 |
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)
-rw-r--r-- | gas/config/tc-loongarch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-loongarch.h b/gas/config/tc-loongarch.h index a9f2a0a..c75d888 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 |