From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 22CC83858C55 for ; Sat, 7 May 2022 09:13:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 22CC83858C55 Received: by mail-pf1-x436.google.com with SMTP id a11so8182621pff.1 for ; Sat, 07 May 2022 02:13:13 -0700 (PDT) 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:subject:message-id:mime-version :content-disposition; bh=n4C8kG9PBg3ImLdhizYe5bo0v//iYjmLlJYuEhQ0YcM=; b=7S/Tv63yOlLi5mW9G9S2ggqCAojiz9icpGhMhrIFYQ9xLM9liiN22qjIkiMnwqsiM5 gp5IGnIfxdLv3UG9SzSG1yVSWH8TvBxKtNHF3KwZD3YyDvWVJIk289pYTW2oAH9CZDqC NbbaN2Zcun4OwwberWEdCfx5Mb/Si/W1t1IcIczCBLqdTJNEA/GotTeJubPZF4NSdeEN Rah16xBuVS7ush2EpPfge1+zO0JYIy9psLCGGC4H/d/mMIJ1I5wiIOMAfdDviECKtlDa qIrYk+i5Y+MeqCw8FIiSUm/e7CmmKFlK6++FaFusGQAAPNSzTrM5MwD5mym/7dhZ+FC1 cg8w== X-Gm-Message-State: AOAM5309iJirH9rWcNcP2XqoOPmI2neDge+hY0nZEW6rKLIA4W7ha3I3 BNbuXGhWvPF95EOq9rHsC+5tJIFMHXQ= X-Google-Smtp-Source: ABdhPJy0XVM8WYSPoLr9HGrqgYd3rBe6w4LKo358teJNoGdlXEQtRiK9VhJJRB6LKLAuNfzVc5qamA== X-Received: by 2002:a63:d30e:0:b0:3c2:32c5:74cf with SMTP id b14-20020a63d30e000000b003c232c574cfmr5964913pgg.504.1651914791877; Sat, 07 May 2022 02:13:11 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:760e:9991:9e5b:99e2]) by smtp.gmail.com with ESMTPSA id w16-20020a170902d71000b0015e8d4eb24fsm3206519ply.153.2022.05.07.02.13.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 02:13:10 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id DD70E1142F5F; Sat, 7 May 2022 18:43:07 +0930 (ACST) Date: Sat, 7 May 2022 18:43:07 +0930 From: Alan Modra To: binutils@sourceware.org Subject: Re: Fix new linker testsuite failures due to rwx segment test problems Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3036.6 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.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: Sat, 07 May 2022 09:13:16 -0000 Fix it some more. bfd/ * elfnn-loongarch.c: Remove commented out elf_backend_* defines. ld/ * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Match arm*. Delete loongarch. diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 307757f5dd5..5b44901b9e0 100644 --- a/bfd/elfnn-loongarch.c +++ b/bfd/elfnn-loongarch.c @@ -125,14 +125,11 @@ struct loongarch_elf_link_hash_table #define elf_backend_want_plt_sym 0 #define elf_backend_plt_alignment 4 #define elf_backend_can_gc_sections 1 -/* #define elf_backend_can_refcount 1 */ #define elf_backend_want_got_sym 1 #define elf_backend_got_header_size (GOT_ENTRY_SIZE * 1) #define elf_backend_want_dynrelro 1 -/* #define elf_backend_rela_normal 1 -#define elf_backend_default_execstack 0 */ /* Generate a PLT header. */ diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 6d51d12a655..ebb5ba090bf 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -182,11 +182,10 @@ if { [check_gc_sections_available] && ![istarget "v850-*-*"] } { proc target_defaults_to_execstack {} { if { [istarget "aarch64*-*-*"] - || [istarget "arm-*-*"] + || [istarget "arm*-*-*"] || [istarget "*-*-nacl"] || [istarget "arc*-*-*"] || [istarget "ia64*-*-*"] - || [istarget "loongarch*-*-*"] || [istarget "nios2*-*-*"] || [istarget "powerpc64*-*-*"] || [istarget "riscv*-*-*"] -- Alan Modra Australia Development Lab, IBM