From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id en/7IU+Ai2dxYhMAWB0awg (envelope-from ) for ; Sat, 18 Jan 2025 05:19:59 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=unseen.parts header.i=@unseen.parts header.a=rsa-sha256 header.s=sig header.b=trt89ZIY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 772001E100; Sat, 18 Jan 2025 05:19:59 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D28A71E08E for ; Sat, 18 Jan 2025 05:19:58 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 748213858CD9 for ; Sat, 18 Jan 2025 10:19:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 748213858CD9 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, secure) header.d=unseen.parts header.i=@unseen.parts header.a=rsa-sha256 header.s=sig header.b=trt89ZIY Received: from minute.unseen.parts (minute.unseen.parts [IPv6:2a01:7e01:e001:66::1]) by sourceware.org (Postfix) with ESMTPS id E78BA3858D1E; Sat, 18 Jan 2025 10:17:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E78BA3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=unseen.parts Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=unseen.parts ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E78BA3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a01:7e01:e001:66::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737195470; cv=none; b=taii3H/rXZHEd3X0TckOBtWXbXKnDxp3AI4eB0tZ8vdmUlOmP1Ie5yRFsfSDOCrksFp+l1y0EpPchBxJuJ23zKqnK82ZXFmG5WBoWQbm1CoWVlyk5rSPBCVdjBZfK7V1jg2FSwmGNNviWiF23OUmbvx3LSU8BKa6/5WuSY/gYqs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737195470; c=relaxed/simple; bh=FohbomwHtvXCg7zu9g0NcVLy/tP4MdkSa4ciUQagcj0=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=joGCwyMyJnk0FqDwD1+juZ+4/nZ/N7h3V2MCPlQirtOif9VwfqKSwOTXnPzbNFFAwpJWV4Ywr3Q09FoZNCgJ2BKgryfkDeUU0MC6mxJsqGR9hgWCYOLD+zEilrGsFE/XxrzjdI4WCK4rMTXVkvNDEthVNaIWPKm1WhQuXYtxt6c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E78BA3858D1E DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unseen.parts; s=sig; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gq00++70aMXuc3aV+vDu+9SkY8JT3/ruYAdHS/r+MDo=; b=trt89ZIYx5rQd5wmAAZ62kvwJ5 ENNdH7PAO/NcnAvHlG/92Lc3X7FzK+c1z5gLXhhUvWji3dbIeud88nJajrcCr8OJ4jBlONDcXgiGH AlmC3H7OftIjV40pJJqgEhq7ky5mPVOLNsa9yadIXDK/AHL+Lmrk7Qwffs9Iwpcl82qs5Yg9xSKH+ uNr9WbxFYaaT8gnF4un8/lLKM7XY0AvuGjhar6oI6nIyT6tWx6bOlQDc2SJ5RdkliY1KRju497H0y Rsm2RVvVhRoYxrYrcCaXZcWXmO42cGmS5YjdqwJIFqt7mhfVtbNpBRCA+UhX+HSbwfsYQPhiAPHIx 6s9MRxag==; Received: from minute.unseen.parts ([139.162.151.61]:44110 helo=minute) by minute.unseen.parts with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1tZ5tj-0006Ij-30; Sat, 18 Jan 2025 11:17:47 +0100 Date: Sat, 18 Jan 2025 11:17:46 +0100 From: Ivan Kokshaysky To: "Maciej W. Rozycki" Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: [PATCH v2] alpha, ld: remove -taso option Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org The -taso switch was quite useful 25 years ago for porting 32-bit code with broken integer-pointer casting. Not anymore. The EF_ALPHA_32BIT Linux support is going to be dropped in kernel v6.14 [1], NetBSD and OpenBSD never had it, so there is no point in keeping the -taso option around. Also remove alpha special case that uses -taso from gdb.base/dump.exp in gdb testsuite. [1] https://lore.kernel.org/all/87jzb2tdb7.fsf_-_@email.froward.int.ebiederm.org Signed-off-by: Ivan Kokshaysky --- Changes in v2, suggested by Maciej W. Rozycki: - leave the translations alone; - remove OPTION_TASO from ld/ldlex.h; - add entries to ld/NEWS and binutils/NEWS. --- binutils/NEWS | 3 +++ gdb/testsuite/gdb.base/dump.exp | 6 ------ ld/NEWS | 3 +++ ld/emultempl/alphaelf.em | 31 ------------------------------- ld/ldlex.h | 1 - 5 files changed, 6 insertions(+), 38 deletions(-) diff --git a/binutils/NEWS b/binutils/NEWS index f4687e6c2bc..9c1a54c9355 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,5 +1,8 @@ -*- text -*- +* Remove the linker -taso option for Alpha target, as Linux/Alpha kernel + support for 32-bit pointers has been removed. + * Support for Nios II targets has been removed except in the readelf utility, as this architecture has been EOL'ed by Intel. diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 58fedb1d36b..54efe51fbaa 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -26,12 +26,6 @@ set endian "auto" set formats {binary ihex srec tekhex verilog} -if {[istarget "alpha*-*-*"]} { - # SREC etc cannot handle 64-bit addresses. Force the test - # program into the low 31 bits of the address space. - lappend options "ldflags=-Wl,-taso" -} - # Runs the command 'print zero_all ()'. Uses the PRINT_ZERO_ALL_COUNT # global to ensure the test names are unique. set print_zero_all_count 0 diff --git a/ld/NEWS b/ld/NEWS index aa3d3e83f35..ccdfc56ac84 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,5 +1,8 @@ -*- text -*- +* Remove the linker -taso option for Alpha target, as Linux/Alpha kernel + support for 32-bit pointers has been removed. + * Support for Nios II target has been removed, as this architecture has been EOL'ed by Intel. diff --git a/ld/emultempl/alphaelf.em b/ld/emultempl/alphaelf.em index 5ae2587a653..995d7f07a7f 100644 --- a/ld/emultempl/alphaelf.em +++ b/ld/emultempl/alphaelf.em @@ -28,14 +28,8 @@ fragment <e_flags |= EF_ALPHA_32BIT; - - ldelf_finish (); -} EOF # Define some shell vars to insert bits of code into the standard elf # parse_args and list_options functions. # PARSE_AND_LIST_LONGOPTS=' - { "taso", no_argument, NULL, OPTION_TASO }, { "secureplt", no_argument, NULL, OPTION_SECUREPLT }, { "no-secureplt", no_argument, NULL, OPTION_NO_SECUREPLT }, ' PARSE_AND_LIST_OPTIONS=' fprintf (file, _("\ - --taso Load executable in the lower 31-bit addressable\n\ - virtual address range\n")); - fprintf (file, _("\ --secureplt Force PLT in text segment\n")); fprintf (file, _("\ --no-secureplt Force PLT in data segment\n")); ' PARSE_AND_LIST_ARGS_CASES=' - case OPTION_TASO: - limit_32bit = 1; - break; case OPTION_SECUREPLT: elf64_alpha_use_secureplt = true; break; @@ -144,4 +114,3 @@ PARSE_AND_LIST_ARGS_CASES=' LDEMUL_AFTER_OPEN=alpha_after_open LDEMUL_AFTER_PARSE=alpha_after_parse LDEMUL_BEFORE_ALLOCATION=alpha_before_allocation -LDEMUL_FINISH=alpha_finish diff --git a/ld/ldlex.h b/ld/ldlex.h index b8b7d6b6829..999d0defc61 100644 --- a/ld/ldlex.h +++ b/ld/ldlex.h @@ -246,7 +246,6 @@ enum option_values OPTION_LIBPATH, OPTION_NOLIBPATH, /* Used by emultempl/alphaelf.em. */ - OPTION_TASO, OPTION_SECUREPLT, OPTION_NO_SECUREPLT, /* Used by emultempl/armelf.em. */