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>
This commit is contained in:
Jinyang He
2023-08-11 16:10:40 +08:00
committed by liuzhensong
parent da5f9eb43f
commit 7c93730fe5

View File

@ -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