public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] LoongArch: Enable gas sort relocs
@ 2023-09-15  9:06 liu & zhensong
  0 siblings, 0 replies; only message in thread
From: liu & zhensong @ 2023-09-15  9:06 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7c93730fe50c22129e751d8479e64bc970b75aac

commit 7c93730fe50c22129e751d8479e64bc970b75aac
Author: Jinyang He <hejinyang@loongson.cn>
Date:   Fri Aug 11 16:10:40 2023 +0800

    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>

Diff:
---
 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 d353f18d0d2..fd09435640b 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-15  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-15  9:06 [binutils-gdb] LoongArch: Enable gas sort relocs liu & zhensong

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).