From patchwork Mon Jan 16 12:56:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 44109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1175570wrn; Mon, 16 Jan 2023 04:56:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8EPmzfLobrOu7Crk+5r7+t9qZGQ83V3U0KRYTRrLDYUrwvCKTtJZ2L7nLT4UhErXiMX+6 X-Received: by 2002:a05:6402:2990:b0:49c:d9c3:ca74 with SMTP id eq16-20020a056402299000b0049cd9c3ca74mr11225681edb.13.1673873793234; Mon, 16 Jan 2023 04:56:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673873793; cv=none; d=google.com; s=arc-20160816; b=Ez188kJUCW+kADpQuIJhWClnP9SHaKfqmYnofxW0+FwZFG3DYFPkroMNx+JFdFUGkZ F/7/RVG2IjmD2/Z2Z587x6x3D0Xjua+EDbUVRM7Mn0O5Rfpoqituw4BPHtntvDLyHTli YAR7jsvX+J1WDeMzN+8ZwRecQ6n2nraT0dTiVLX7fLyMibkAMwabTS4gjkZLpygBOeg/ Ff+rr/K8xaFZr450vV28lS/0a/1ZXiAEfZ/x/UvG+6P2pjcG1+GLts4rSHan44bf3Gjd gy1YcGz5zRtW5z/7f0AJ1vFoP4mc7DELixIYofVHeQhruspzOUjlJyS5QnhKDawEK6Q/ iltw== 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=M+iqTqUXQda6zbtDJBb3723/RMDYNGRXHLdBcCjwpKY=; b=VRWNGNkXYfhnEOzPD/2XKOKSwLvPZWWfon91rVqatE2I7yzvyZbnz59bHqRAawhoPn 4sunArlxO7oi/7ayh/xKgcagHI3hz7nIlI2Gft3n5XnAsvw8L3RPP/IO4rysgNne48// mxH4TDx18O9rcKpsayz2PQ1RYDbVPjJqicumf4JJZaG5hFheu5saTwstVZirm1FIqxeO +1RJETcMSFQmfWS6bboZOTo3qy+yIaRuohz/E4pC4EM/JMZ5qNhQlKBV/KR9wbpCY4HP jeZCwxBfKw6H2qYX9FrIq3pw1SzEhocnyJNsvn2Q3VBlN1FiNL9Iv4yjc6yEK57EcqoS 418A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=G4VfG17y; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c18-20020a05640227d200b004761d56a66asi9082735ede.271.2023.01.16.04.56.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:56:33 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=G4VfG17y; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 402093858C53 for ; Mon, 16 Jan 2023 12:56:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 402093858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673873792; bh=M+iqTqUXQda6zbtDJBb3723/RMDYNGRXHLdBcCjwpKY=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=G4VfG17yyHxGqnp72Q2dX42esytFFnqqcsI1pGbHJVTp7BPgZ6tfxmMLGGqvVv5Vm bnzOJaFRQ2e4WnwDrAGkwVsXfv7foLNhmFmeSAt899VpozDi6sc6+Rkjxmx+pQp7Fk 8/CccqxUWcA7YQJ6ZDtnH8JzLtXw+WksimVNvkKw= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id DA10C3858D33 for ; Mon, 16 Jan 2023 12:56:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA10C3858D33 Received: by mail-pf1-x42e.google.com with SMTP id 20so15457845pfu.13 for ; Mon, 16 Jan 2023 04:56:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=M+iqTqUXQda6zbtDJBb3723/RMDYNGRXHLdBcCjwpKY=; b=1ynID6+B/xFCJR+2z3hPi7hn2DoF2W+YCL3BzQ+Xy9iReiqxyK+teqQjfWVssIvp9a Esu6QxVXSHIZZn7BX4kmlWL0rkbnNuwqf1tdcEq9OUKF7up1kVgvlYEy3wkmw4qeiB/i RxbQM4Hs0IEnxalC/71/9GOLUvz54729dMW5c+9kwCIaUQD/vHaJt9ilZpZTwoM1b98r pVC451fc0Vtv1lmfwbcBiWaDqQGaW3w3G7E2DZ2BZDiNbvXY0/YCTGgwpJkvw2s/DK9v zABg1pQBSg55vy/5nFQKgihq7c9tFtI1Nt0SmpqYsW8wGXy+tEh9HMnKjPuKQRjPV1NC /JmA== X-Gm-Message-State: AFqh2kr99PUSJCMmEPlBBd8zQrEYT7i8jtnuhT617Ly66pq01+TCl1Mo JkmDTS7EQng1DXAfp9bOhztwM0Pp1ZM= X-Received: by 2002:a05:6a00:2281:b0:581:a8dc:8f95 with SMTP id f1-20020a056a00228100b00581a8dc8f95mr80893723pfe.12.1673873782853; Mon, 16 Jan 2023 04:56:22 -0800 (PST) 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 x1-20020aa78f01000000b005882b189a44sm14709904pfr.104.2023.01.16.04.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:56:22 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 6DF9A1142F1B; Mon, 16 Jan 2023 23:26:20 +1030 (ACDT) Date: Mon, 16 Jan 2023 23:26:20 +1030 To: binutils@sourceware.org Subject: Leftover hack from i960-coff Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3035.7 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 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?1755183886643891333?= X-GMAIL-MSGID: =?utf-8?q?1755183886643891333?= * reloc.c (bfd_perform_relocation, bfd_install_relocation): Remove i960-coff target hack. diff --git a/bfd/reloc.c b/bfd/reloc.c index db4f30d36d0..c543097b4d7 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -801,9 +801,7 @@ bfd_perform_relocation (bfd *abfd, reloc_entry->address += input_section->output_offset; /* WTF?? */ - if (abfd->xvec->flavour == bfd_target_coff_flavour - && strcmp (abfd->xvec->name, "coff-Intel-little") != 0 - && strcmp (abfd->xvec->name, "coff-Intel-big") != 0) + if (abfd->xvec->flavour == bfd_target_coff_flavour) { /* For m68k-coff, the addend was being subtracted twice during relocation with -r. Removing the line below this comment @@ -1134,9 +1132,7 @@ bfd_install_relocation (bfd *abfd, reloc_entry->address += input_section->output_offset; /* WTF?? */ - if (abfd->xvec->flavour == bfd_target_coff_flavour - && strcmp (abfd->xvec->name, "coff-Intel-little") != 0 - && strcmp (abfd->xvec->name, "coff-Intel-big") != 0) + if (abfd->xvec->flavour == bfd_target_coff_flavour) { /* For m68k-coff, the addend was being subtracted twice during