public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: mengqinggang <mengqinggang@loongson.cn>
To: binutils@sourceware.org
Cc: xuchenghua@loongson.cn, liuzhensong@loongson.cn,
	chenglulu@loongson.cn, xry111@xry111.site, i.swmail@xen0n.name,
	maskray@google.com, hp@bitrange.com,
	mengqinggang <mengqinggang@loongson.cn>
Subject: [PATCH v3 3/6] LoongArch: opcodes: Add support for linker relaxation.
Date: Fri, 16 Dec 2022 15:23:33 +0800	[thread overview]
Message-ID: <20221216072336.1087469-4-mengqinggang@loongson.cn> (raw)
In-Reply-To: <20221216072336.1087469-1-mengqinggang@loongson.cn>

Set gas default to enable relax.

opcodes/ChangeLog:

	* loongarch-opc.c (struct loongarch_ASEs_option): New member relax
	with the default value 1.
---
 opcodes/loongarch-opc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
index 1b510048c29..aa43fbc3fb7 100644
--- a/opcodes/loongarch-opc.c
+++ b/opcodes/loongarch-opc.c
@@ -22,7 +22,10 @@
 #include "opcode/loongarch.h"
 #include "libiberty.h"
 
-struct loongarch_ASEs_option LARCH_opts;
+struct loongarch_ASEs_option LARCH_opts =
+{
+  .relax = 1
+};
 
 size_t
 loongarch_insn_length (insn_t insn ATTRIBUTE_UNUSED)
-- 
2.36.0


  parent reply	other threads:[~2022-12-16  7:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16  7:23 [PATCH v3 0/6] LoongArch linker relaxation support mengqinggang
2022-12-16  7:23 ` [PATCH v3 1/6] LoongArch: include: Add support for linker relaxation mengqinggang
2022-12-16  7:23 ` [PATCH v3 2/6] LoongArch: bfd: " mengqinggang
2022-12-16  7:23 ` mengqinggang [this message]
2022-12-16  7:23 ` [PATCH v3 4/6] LoongArch: binutils: " mengqinggang
2022-12-16  7:23 ` [PATCH v3 5/6] LoongArch: gas: " mengqinggang
2022-12-16  7:23 ` [PATCH v3 6/6] LoongArch: ld: " mengqinggang
2022-12-24 18:10 ` [PATCH v3 0/6] LoongArch linker relaxation support Fangrui Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221216072336.1087469-4-mengqinggang@loongson.cn \
    --to=mengqinggang@loongson.cn \
    --cc=binutils@sourceware.org \
    --cc=chenglulu@loongson.cn \
    --cc=hp@bitrange.com \
    --cc=i.swmail@xen0n.name \
    --cc=liuzhensong@loongson.cn \
    --cc=maskray@google.com \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).