From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 7A4573858D3C for ; Mon, 22 Nov 2021 00:09:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A4573858D3C Received: by mail-pf1-x432.google.com with SMTP id x131so14493288pfc.12 for ; Sun, 21 Nov 2021 16:09:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=I6kARBHnDk6b702XBdV25gduGAjHVM1me0NRkHpV7zk=; b=vio52Ct9PTc0ijVWSdrhHJtzSFviluQakQCSzPvomJ1hu2AMxymcQMbADNUvLkVgNK 9BAK6+Ln7SQZQjh/K3xZ78ZLZ1txPTtfKIq/QQgERHeoSVhT0Uy6qIJRfzocgWS6KpY4 oiiAXa5HTSHb4sLqJU23Xhi6FjAJiIcImmJ/4ku8o3bkJ240FwI1SGUYrZ6xT1kFMZu2 TkV7FA/nCs9j+1Hs3DIraGkbWUZGTR+kMq4hU4D4aAIVFa3ssbIyVOjJOkE7e6A/5s8P BKYwjedgRn5u5q7NE0VD4WR4e+Q8Q0QUINRY5uisjnQFOk7ouXjdpp/bs94t9Zfw2xtC 445A== X-Gm-Message-State: AOAM531RYtN6GrWTiap4OH7mBBXZcd1irdZjfGhVcFx2VKXRim/mllAd 6EHdCv6YkCmlrS3r+dTIyyrzjpvbUW0= X-Google-Smtp-Source: ABdhPJxoF3cie0HdbSh+Wir+HrPB8JyDJMb3djpxohWfLvBm7hnXvAk58DS7rByzEwcKp2QnDavBUg== X-Received: by 2002:a63:90c4:: with SMTP id a187mr30559646pge.204.1637539740465; Sun, 21 Nov 2021 16:09:00 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:b91f:f17d:a0aa:df10]) by smtp.gmail.com with ESMTPSA id q11sm978618pgt.54.2021.11.21.16.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 16:08:59 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id DAF9E1141D16; Mon, 22 Nov 2021 10:38:56 +1030 (ACDT) Date: Mon, 22 Nov 2021 10:38:56 +1030 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: [PATCH] elf/x86: Issue an error on discarded output .plt section Message-ID: References: <20211118155811.288499-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211118155811.288499-1-hjl.tools@gmail.com> X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: Mon, 22 Nov 2021 00:09:03 -0000 On Thu, Nov 18, 2021 at 07:58:11AM -0800, H.J. Lu via Binutils wrote: > Issue an error, instead of crash, on discarded output .plt section. Are you sure you want an error? There may be uses of the linker where discarding the .plt via a linker script is deliberate. Obviously it wouldn't be to create a runnable executable, but ld output is used in weird ways. -- Alan Modra Australia Development Lab, IBM