From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id EB9133858D39 for ; Fri, 31 Dec 2021 15:18:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EB9133858D39 Received: by mail-pj1-x102c.google.com with SMTP id jw3so23517272pjb.4 for ; Fri, 31 Dec 2021 07:18:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=gPnIIdwbONLUpTJUoUsKtAH5vc8OOaVeSYw/JGYi5eg=; b=gd6f3IU+8OJH02oNTqcPPWvYPwvJN6jyi3mVCWvXNdRmo7ptqH6ajm0aczKFgmxGJR K1UAc8+JpcpN4/td00B8FizmJk/DG198iZdAWHLrpA8dCXlTiKmvYmRkja/+Ru9NUuuD FQIxhszrs2yHISU8E3NcjxX19VgocLvoDvixZ2/jcfDj9z+eRHFx436AKtAPR8TtMIu0 Fq2ysoMAaM571FzwJJy//w7rAnu3mtgK4PMKVsVdhU0iQ+oJwhxPMH0VY9Tp666KAzOq ITyIlBzZdqKAmax1YFHFRC3FfUG0B9+r78pdF0ExiRixuq+GIB744pd+LgEXzEGZyQWI Racw== X-Gm-Message-State: AOAM532jj9VFsEKiM/y9N1zVskYe3h6heRt81p8akrus1H8zYE773xja LbG8L4ubQG3+dMIk5XuCKVxuEGktLUY= X-Google-Smtp-Source: ABdhPJzGFWCRqZn4ek2Q1HqbzBQ1jk7fNT8m0bFCYISXKd01NryB+qDlVRKS+g57azBccix+03fuDA== X-Received: by 2002:a17:903:188:b0:149:512a:e69c with SMTP id z8-20020a170903018800b00149512ae69cmr35568112plg.40.1640963887861; Fri, 31 Dec 2021 07:18:07 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id 13sm31262576pfm.161.2021.12.31.07.18.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Dec 2021 07:18:07 -0800 (PST) Received: from gnu-tgl-2.localdomain (gnu-tgl-2 [192.168.1.42]) by gnu-tgl-3.localdomain (Postfix) with ESMTPS id 47E31C02D4 for ; Fri, 31 Dec 2021 07:18:06 -0800 (PST) Received: from gnu-tgl-2.. (localhost [IPv6:::1]) by gnu-tgl-2.localdomain (Postfix) with ESMTP id 94155300324 for ; Fri, 31 Dec 2021 07:18:02 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH] x86: Define check_relocs_failed in elfxx-x86.h Date: Fri, 31 Dec 2021 07:18:02 -0800 Message-Id: <20211231151802.3547030-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3029.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Fri, 31 Dec 2021 15:18:12 -0000 * elf32-i386.c (check_relocs_failed): Moved to ... * elfxx-x86.h (check_relocs_failed): Here. New. * elf64-x86-64.c (check_relocs_failed): Removed. --- bfd/elf32-i386.c | 4 ---- bfd/elf64-x86-64.c | 4 ---- bfd/elfxx-x86.h | 4 ++++ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 5660e9539af..abc34a9b847 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1451,10 +1451,6 @@ elf_i386_convert_load_reloc (bfd *abfd, Elf_Internal_Shdr *symtab_hdr, return true; } -/* Rename some of the generic section flags to better document how they - are used here. */ -#define check_relocs_failed sec_flg0 - /* Look through the relocs for a section during the first phase, and calculate needed space in the global offset table, procedure linkage table, and dynamic reloc sections. */ diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 637f7464d94..6d201dfe5bc 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1377,10 +1377,6 @@ elf_x86_64_tls_transition (struct bfd_link_info *info, bfd *abfd, return true; } -/* Rename some of the generic section flags to better document how they - are used here. */ -#define check_relocs_failed sec_flg0 - static bool elf_x86_64_need_pic (struct bfd_link_info *info, bfd *input_bfd, asection *sec, diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index 91a141f1363..79862d09209 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -615,6 +615,10 @@ struct elf_x86_plt && elf_tdata (bfd) != NULL \ && elf_object_id (bfd) == (htab)->elf.hash_table_id) +/* Rename some of the generic section flags to better document how they + are used here. */ +#define check_relocs_failed sec_flg0 + extern bool _bfd_x86_elf_mkobject (bfd *); -- 2.33.1