From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail01.asahi-net.or.jp (mail01.asahi-net.or.jp [202.224.55.13]) by sourceware.org (Postfix) with ESMTP id 142B2395A027 for ; Wed, 29 Apr 2020 12:47:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 142B2395A027 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=ysato@users.sourceforge.jp Received: from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp [153.127.30.23]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id ACBB2102427; Wed, 29 Apr 2020 21:47:39 +0900 (JST) Received: from yo-satoh-debian.localdomain (p003128.dynamic.ppp.asahi-net.or.jp [221.113.3.128]) by sakura.ysato.name (Postfix) with ESMTPSA id EFD8C1C0DCE; Wed, 29 Apr 2020 21:47:38 +0900 (JST) From: Yoshinori Sato To: binutils@sourceware.org Subject: [PATCH] gas: Change ELF flags initial value in rx-linux Date: Wed, 29 Apr 2020 21:47:24 +0900 Message-Id: <20200429124724.1894-2-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200429124724.1894-1-ysato@users.sourceforge.jp> References: <20200429124724.1894-1-ysato@users.sourceforge.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 12:47:43 -0000 rx-linux uses the common GCC ABI. Setting RX ABI in ELF flags is wrong. For rx-linux, change to generate GCC ABI objects. gas/ChangeLog 2020-04-27 Yoshinori Sato * config/tc-rx.c (elf_flags): Reset default value. (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI. --- gas/config/tc-rx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c index febdb5ab95..e3521d3193 100644 --- a/gas/config/tc-rx.c +++ b/gas/config/tc-rx.c @@ -42,12 +42,13 @@ const char EXP_CHARS[] = "eE"; const char FLT_CHARS[] = "dD"; /* ELF flags to set in the output file header. */ -static int elf_flags = E_FLAG_RX_ABI; +static int elf_flags; #ifndef TE_LINUX bfd_boolean rx_use_conventional_section_names = FALSE; #else bfd_boolean rx_use_conventional_section_names = TRUE; +static int elf_flags; #endif static bfd_boolean rx_use_small_data_limit = FALSE; @@ -129,6 +130,9 @@ struct cpu_type cpu_type_list[] = int md_parse_option (int c ATTRIBUTE_UNUSED, const char * arg ATTRIBUTE_UNUSED) { +#ifndef TE_LINUX + elf_flags = E_FLAG_RX_ABI; +#endif switch (c) { case OPTION_BIG: -- 2.20.1