From patchwork Tue May 30 04:22:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 100529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1926306vqr; Mon, 29 May 2023 21:24:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ff7xe3TLHosUcyP7CFWael8P7gf07ea92lBzYNOY7CdqJvtNdzJexOzybZ5TwCOk/Q1gk X-Received: by 2002:a17:907:6e1d:b0:96f:45cd:6c24 with SMTP id sd29-20020a1709076e1d00b0096f45cd6c24mr1237016ejc.23.1685420648908; Mon, 29 May 2023 21:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685420648; cv=none; d=google.com; s=arc-20160816; b=k1TwDDBNNqq2+4BQyFsP2EBpS00MGyNu3gkAnsy9IL02rNNTiHFZKzXH0glqasUxdl 0cY1+Ag1fPugdjFmRW8wpquHGL/wT/7HOtKT5Ql/CzAWEvivLj4Sa3rb5RlQx5GyLxT/ UvT1C4wrDM20jfZ8MOdy79IwyMYRY/CoBHHHhcYqF0f+lxLjr7rJ0kp405u0swaK6wCU OvYxPWS90Xpd+c8fjx5dtDxn7vdDdmqIlOzafW3lkwGRBrx4P7Anko/hDr/o7Uw317Tp 3t+S+K0b3IwoIUnCoQQqlBlJUFXMnQJAPoQZVmA8z1Tmv3VG+ejW8i/3OZ4/XPw2bAGd FS9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=SWuNrCA7p7fY5cpCCRnmjNCZkABkV78WNzVU4awVKLc=; b=iiFvHtN7C+aD6Fno6BdYiLCZ13/Pfyid3KRNiYMy41VRMpGBN4qqAuT1hiTbwtLck/ sLeA2PwaSgItBrxabnzM5zfO1bsM7Rwkj0FkuJ5uNe1LQC38ru/dJuV+/lIOLVBWnLA2 kIkWGUuhjzMS23h599eNmCjwhxCIS8tmlWLzBieuDI73KJEiLITiDknjL3lMJPYoLlVK sefUP71i6r9pmdBWqfsqtOEUkQ9XoLbk1wl1dtloYaqD9MDYY1QfA8HOsc7u7n4Vr09p QXUqo+OHIHyLB94fQeN0Whe+bMHjgU+i/JIh9sSmHdTlbMDypg/N52rIY4tAN/06mefJ Gtgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=cWaWhhN9; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id kw21-20020a170907771500b0096f5b49859dsi3332279ejc.818.2023.05.29.21.24.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 21:24:08 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=cWaWhhN9; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CFF863855587 for ; Tue, 30 May 2023 04:23:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFF863855587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685420627; bh=SWuNrCA7p7fY5cpCCRnmjNCZkABkV78WNzVU4awVKLc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cWaWhhN91mxBIP9yacouZ2zivT+/32NAgkCgvON0F430PfLY2WzU5rOHF8o+GRlFX /3GKe4tXj9/O9Og++BMwXMbEuryFKHb9dq3dVYZQo3fShT2crcEnkdqt09u9WUbctv kiyd1MhKoo6HTZUFouycGkNBVch1CDYLR2qPAxhc= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id EB34B385661F for ; Tue, 30 May 2023 04:22:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB34B385661F Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b021cddb74so19151175ad.0 for ; Mon, 29 May 2023 21:22:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685420546; x=1688012546; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SWuNrCA7p7fY5cpCCRnmjNCZkABkV78WNzVU4awVKLc=; b=KvvCxpz9h7AVYohFmVJ4jFsxFb4iJ5+XAeGsfDr0h6gfzTFCHvnJx9pCU1g2BX0zC3 2Lgq/neIKfHPMQrd/XFnkVJI3Mm62SNkEGybSk4LN9cqYP49fcicqjz6ddNNEvLQlvlt 6XWrXhHJ6uHInFwHmBuv1RiUUkE05hoHm7GylgcDFeg8eM5aHAjpjjuT7Eu3ImRN6+XG Xp6gbZwn4YMwaGMophI3QkDCbt0VMXsH5HZxSErfJpkB48DhkZlZG5wwFLekmi7+W/tC 7pSmCY/ol4cYp2PTlfGy3NRM+HNtoeqxW0NCOTJvZ9UVR2EnVdjxmf7Mjd0V5QAgO9D0 JIFQ== X-Gm-Message-State: AC+VfDzNZ0K+ns5w0Dah5VeWYQ8xeQGvrYlHwnQEPY432+qpIPzAw7gV Hlr6ccqLE1rU965Dx+xfIyHFz0eXDi8= X-Received: by 2002:a17:903:11c8:b0:1ab:1a73:7c7f with SMTP id q8-20020a17090311c800b001ab1a737c7fmr1347111plh.63.1685420546529; Mon, 29 May 2023 21:22:26 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id t8-20020a170902b20800b001ae0a4b1d3fsm9068889plr.153.2023.05.29.21.22.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 21:22:26 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id EE5241142C22; Tue, 30 May 2023 13:52:23 +0930 (ACST) Date: Tue, 30 May 2023 13:52:23 +0930 To: binutils@sourceware.org Subject: Don't define COFF_MAGIC Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767291642060638868?= X-GMAIL-MSGID: =?utf-8?q?1767291642060638868?= This macro was unused apart from aout/encap.h, which has been deleted. * config/tc-arm.h (COFF_MAGIC): Don't define. * config/tc-sh.h (COFF_MAGIC): Don't define. * config/tc-z80.h (COFF_MAGIC): Don't define. * config/tc-z8k.h (COFF_MAGIC): Don't define. diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h index 95fe5255746..9d6b303842b 100644 --- a/gas/config/tc-arm.h +++ b/gas/config/tc-arm.h @@ -28,7 +28,6 @@ #define WORKING_DOT_WORD -#define COFF_MAGIC ARMMAGIC #define TARGET_ARCH bfd_arch_arm #define DIFF_EXPR_OK diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h index 23875ab1ad1..b157bd4dab9 100644 --- a/gas/config/tc-sh.h +++ b/gas/config/tc-sh.h @@ -130,8 +130,6 @@ extern void sh_frob_file (void); #ifdef OBJ_COFF /* COFF specific definitions. */ -#define COFF_MAGIC (!target_big_endian ? SH_ARCH_MAGIC_LITTLE : SH_ARCH_MAGIC_BIG) - #define tc_coff_symbol_emit_hook(a) ; /* Not used. */ #define TC_KEEP_FX_OFFSET 1 diff --git a/gas/config/tc-z80.h b/gas/config/tc-z80.h index ef17ccecc70..c86a1ea10ff 100644 --- a/gas/config/tc-z80.h +++ b/gas/config/tc-z80.h @@ -28,7 +28,6 @@ #define TARGET_FORMAT "elf32-z80" #endif #define BFD_ARCH TARGET_ARCH -#define COFF_MAGIC 0x5A80 #define TARGET_BYTES_BIG_ENDIAN 0 /* If you define this macro, GAS will warn about the diff --git a/gas/config/tc-z8k.h b/gas/config/tc-z8k.h index 463f1a89613..4f511e9c542 100644 --- a/gas/config/tc-z8k.h +++ b/gas/config/tc-z8k.h @@ -27,7 +27,6 @@ struct internal_reloc; #define WORKING_DOT_WORD -#define COFF_MAGIC 0x8000 #define IGNORE_NONSTANDARD_ESCAPES #undef WARN_SIGNED_OVERFLOW_WORD