projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da5f9eb
)
LoongArch: Enable gas sort relocs
author
Jinyang He
<hejinyang@loongson.cn>
Fri, 11 Aug 2023 08:10:40 +0000
(16:10 +0800)
committer
liuzhensong
<liuzhensong@loongson.cn>
Fri, 15 Sep 2023 09:01:44 +0000
(17:01 +0800)
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
patch
|
blob
|
history
diff --git
a/gas/config/tc-loongarch.h
b/gas/config/tc-loongarch.h
index d353f18d0d2786978c2046cbb0dfb24786080bdc..fd09435640bb62476ad84568ad48682a45acc08f 100644
(file)
--- 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