From patchwork Thu Jul 27 14:10:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 126985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1128023vqo; Thu, 27 Jul 2023 07:10:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPfEY/RIkqjojlvkEL0nhI2+hgOCa8WyxzIlBDauvaWceZVn5jG3AEFeA9yUOwQtoA/34N X-Received: by 2002:aa7:d74b:0:b0:522:4cd7:efb0 with SMTP id a11-20020aa7d74b000000b005224cd7efb0mr1777399eds.17.1690467044554; Thu, 27 Jul 2023 07:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690467044; cv=none; d=google.com; s=arc-20160816; b=SVarvR9YUuH5GBFc5qrKn1OQVdS97KCIWdWmaVFuViuhI/fz9mGK9e/pWUP2P81mgS nplz9xWjvJXPg0Q1QAluuoVSO59gtf+FBzNhChbq0xkD76SatUnliEqszvcgZZP3yYKj vEoD/ZC7li7wDx5A61oljU2aq+3oXQUIahpQaRHeKhSaDDCO5JUw4FFakERc0yzjzVeT J7Om4EPeJiMPAvqSW/+l7uWwNRJg6f/WYuEHLxAWfJ27tp2DrDacUdC8BXZiSaopbYOk T8/6NYdijZblkCM0WlRhV36I5QwQ7+qNsqqDSxam4eC3qtFPgDK0ibIlGO3tvYTa5KZ3 HVBw== 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=7ERs1L/wokuOXqjM6soOi01sh0hsn0ww8O8FS+uDLmQ=; fh=HNIqzTA9Dp00ovCAyCdXfuEvWDT00OlFxFRPLybXRis=; b=nh8/dWwRacrP26Tf1+QLLc3zXlGG1eYpzrqRb1rNKe8b3GxrCzbA/XFXiwYkX4zCN8 Ni+Qp60s3YAyynWd7OwHcGzvQr4GcL5+e2U8ZZghDoYDjuKb+zUPDy/vN4yUQdbGps4q K48O5ksua22Z9oJye+FVFjT0gaJLlZaeJYba9BLEJrjWt5UqCTyk4EofaONz08g9BnNT 5WGk3tD8sL4Gy04AFLnVHK7GgMc8250nbLx+knW68JJBUpVcDx6xTYo7ozh7ld1x6yQR NyxFDgCcUSZS1KhsPx2b4qc7XBuO1UTs80J3NvETBRJm6A8FIEdHoUBPQ/HI8Ev8opP7 aFZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=LLTn9xPu; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s22-20020aa7d796000000b00522188e0e6asi1030182edq.635.2023.07.27.07.10.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 07:10:44 -0700 (PDT) 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=LLTn9xPu; 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 525C03854C44 for ; Thu, 27 Jul 2023 14:10:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525C03854C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690467035; bh=7ERs1L/wokuOXqjM6soOi01sh0hsn0ww8O8FS+uDLmQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=LLTn9xPun4wMiHbugQjkLgLMaAYHCWbAHRfoDQbZ7UHiOHPz6kVjOoEIfraAeyLF6 52EyOHp0wb0YbH0dHQ/QyItx3PDvnYm2e0SRuwyxhXLlPhO1PgvbdzHISI+3l9oJN8 jWBKwe7p5BLAzor4dYdxGxDbav3BJD/buErJM1MQ= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 9FF7A385AFA9 for ; Thu, 27 Jul 2023 14:10:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9FF7A385AFA9 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-686b879f605so698475b3a.1 for ; Thu, 27 Jul 2023 07:10:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690467023; x=1691071823; 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=7ERs1L/wokuOXqjM6soOi01sh0hsn0ww8O8FS+uDLmQ=; b=e6l9uDj7i1cVnSIgcYmWPlCgbwP+Q0Eeu9GEmztSnAR/alV/WEkR3Vg7WWq+d+xtpM TFCqi0TFns7sq/LTmgLho/GZSRjA4OigHe4PY8yGNLH6u3WdnpwpyHJXybAjx1lscYKg YJIJHbQX30cAs01Il0DWO7ehCZBk17o9s/uzCJ6gtaeOED5MvG47ufAvIuO17KuMoMZc zptbQJ+FERI3g8IzwUArxc9Zc+SUaT72vYN9okR1/F1Vy3/4LFxqwiNqnoiq/crSHu3N ZU7/rQcuvnQdj/jo6nfuk6VF/0Sg0vLIB79LMx9bMWfu/DvD2PkiAx0TGCbbXTVcJwoD KGYw== X-Gm-Message-State: ABy/qLYsVk/dfw9Q6PHYvSAREdh75sYt8uKaiiLzIst3f/DzC1DADBXg pEJ695/+/Fd03eomO8ttQA74nLqf5ew= X-Received: by 2002:a05:6a20:7286:b0:133:dd1b:aa57 with SMTP id o6-20020a056a20728600b00133dd1baa57mr4953121pzk.18.1690467022668; Thu, 27 Jul 2023 07:10:22 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:a39a:e9f1:fae7:bc25]) by smtp.gmail.com with ESMTPSA id a15-20020a62e20f000000b006783ee5df8asm1517340pfi.189.2023.07.27.07.10.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 07:10:21 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 9D00E11428CC; Thu, 27 Jul 2023 23:40:19 +0930 (ACST) Date: Thu, 27 Jul 2023 23:40:19 +0930 To: binutils@sourceware.org Subject: /DISCARD/ in ld testsuite Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.0 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.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: INBOX X-GMAIL-THRID: 1772583171787126433 X-GMAIL-MSGID: 1772583171787126433 The canonical form to discard all sections not mentioned earlier in the script is /DISCARD/ : { *(*) } not /DISCARD/ : { *(.*) } ".*" happens to work with the usual section names starting with a dot, but let's not promote something not quite right. diff --git a/ld/testsuite/ld-elf/expr1.t b/ld/testsuite/ld-elf/expr1.t index 9670e255bbd..684cffb862c 100644 --- a/ld/testsuite/ld-elf/expr1.t +++ b/ld/testsuite/ld-elf/expr1.t @@ -2,5 +2,5 @@ SECTIONS { .bar : AT ((ADDR(.foo) + 4095) & ~(4095)) { *(.bar) } .foo : { *(.foo) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/flags1.ld b/ld/testsuite/ld-elf/flags1.ld index c003ce72c19..14d17cbe443 100644 --- a/ld/testsuite/ld-elf/flags1.ld +++ b/ld/testsuite/ld-elf/flags1.ld @@ -9,5 +9,5 @@ SECTIONS { . += 0x160; } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/loadaddr.t b/ld/testsuite/ld-elf/loadaddr.t index 91e9ef294f0..e4036f15425 100644 --- a/ld/testsuite/ld-elf/loadaddr.t +++ b/ld/testsuite/ld-elf/loadaddr.t @@ -6,5 +6,5 @@ SECTIONS .foo : { *(.foo) } . = ALIGN(8192); .data : AT (ADDR(.data)) { *(.data) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/loadaddr3.t b/ld/testsuite/ld-elf/loadaddr3.t index 789f61eda1e..c70e36301f1 100644 --- a/ld/testsuite/ld-elf/loadaddr3.t +++ b/ld/testsuite/ld-elf/loadaddr3.t @@ -12,5 +12,5 @@ SECTIONS .data : {data_load = LOADADDR (.data); data_start = ADDR (.data); *(.data .data.*)} >ram AT>rom - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/noload-1.t b/ld/testsuite/ld-elf/noload-1.t index 768cd423e02..7c5c26dcb3e 100644 --- a/ld/testsuite/ld-elf/noload-1.t +++ b/ld/testsuite/ld-elf/noload-1.t @@ -5,5 +5,5 @@ SECTIONS { *(TEST) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/overlay.t b/ld/testsuite/ld-elf/overlay.t index 640af9650fb..ee37d05d2b5 100644 --- a/ld/testsuite/ld-elf/overlay.t +++ b/ld/testsuite/ld-elf/overlay.t @@ -11,7 +11,7 @@ SECTIONS } = 0 .silly-name3 : { *(.silly-name3) } = 0 .silly-name4 : { *(.silly-name4) } = 0 - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } ASSERT(ADDR(.text1)==ADDR(.text2), "overlay error") ASSERT(ADDR(.silly-name1)==ADDR(.silly-name2), "silly overlay error") } diff --git a/ld/testsuite/ld-elf/pr13839.t b/ld/testsuite/ld-elf/pr13839.t index 6baa2288193..59997198ae5 100644 --- a/ld/testsuite/ld-elf/pr13839.t +++ b/ld/testsuite/ld-elf/pr13839.t @@ -4,6 +4,6 @@ SECTIONS { *(.text) } _end = .; - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } . = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo"); diff --git a/ld/testsuite/ld-elf/pr14052.t b/ld/testsuite/ld-elf/pr14052.t index 84fffbd499b..ebc40f124ef 100644 --- a/ld/testsuite/ld-elf/pr14052.t +++ b/ld/testsuite/ld-elf/pr14052.t @@ -8,5 +8,5 @@ SECTIONS { _data_start = .; *(.data) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/pr14156c.t b/ld/testsuite/ld-elf/pr14156c.t index c8be2c57bfb..adf1f0a5076 100644 --- a/ld/testsuite/ld-elf/pr14156c.t +++ b/ld/testsuite/ld-elf/pr14156c.t @@ -1,5 +1,5 @@ SECTIONS { .text : { *(.text) } .foo : { *(SORT_NONE(.foo)) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/pr19005.t b/ld/testsuite/ld-elf/pr19005.t index 0e89e0b6342..e9170c37132 100644 --- a/ld/testsuite/ld-elf/pr19005.t +++ b/ld/testsuite/ld-elf/pr19005.t @@ -2,5 +2,5 @@ SECTIONS { .foo : { *(.foo) } .bar : { *(.bar) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-elf/relocatable.t b/ld/testsuite/ld-elf/relocatable.t index 2ec056ae338..0839555b731 100644 --- a/ld/testsuite/ld-elf/relocatable.t +++ b/ld/testsuite/ld-elf/relocatable.t @@ -4,5 +4,5 @@ SECTIONS .text : { *(.text) } . = 0x900000; .data : { *(.data) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-i386/alloc.t b/ld/testsuite/ld-i386/alloc.t index f7dd17a3001..1bbb9a6be17 100644 --- a/ld/testsuite/ld-i386/alloc.t +++ b/ld/testsuite/ld-i386/alloc.t @@ -8,5 +8,5 @@ SECTIONS .bar : AT(ADDR(.bar) - 0xC0000000) { *(.bar) } :text .bss : AT(ADDR(.bss) - 0xC0000000) { *(.bss) } .foo 0 : AT(ADDR(.bss) + SIZEOF(.bss) - 0xC0000000) { *(.foo) } :text - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-pe/image_size.t b/ld/testsuite/ld-pe/image_size.t index f646eca5921..93f2f50b10f 100644 --- a/ld/testsuite/ld-pe/image_size.t +++ b/ld/testsuite/ld-pe/image_size.t @@ -11,5 +11,5 @@ SECTIONS { *(.data) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-1.t b/ld/testsuite/ld-scripts/empty-address-1.t index a24f25a138b..a5796836935 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.t +++ b/ld/testsuite/ld-scripts/empty-address-1.t @@ -8,5 +8,5 @@ SECTIONS } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-2a.t b/ld/testsuite/ld-scripts/empty-address-2a.t index 0ab29a4db28..bc531158eb3 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.t +++ b/ld/testsuite/ld-scripts/empty-address-2a.t @@ -4,5 +4,5 @@ SECTIONS .data : { *(.data) } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-2b.t b/ld/testsuite/ld-scripts/empty-address-2b.t index c6d1e523fc2..788cd65da48 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.t +++ b/ld/testsuite/ld-scripts/empty-address-2b.t @@ -8,5 +8,5 @@ SECTIONS } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-3a.t b/ld/testsuite/ld-scripts/empty-address-3a.t index 28767a19c51..42128f8c0c0 100644 --- a/ld/testsuite/ld-scripts/empty-address-3a.t +++ b/ld/testsuite/ld-scripts/empty-address-3a.t @@ -7,5 +7,5 @@ SECTIONS } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-3b.t b/ld/testsuite/ld-scripts/empty-address-3b.t index 6da24218858..2b9e27d926a 100644 --- a/ld/testsuite/ld-scripts/empty-address-3b.t +++ b/ld/testsuite/ld-scripts/empty-address-3b.t @@ -8,5 +8,5 @@ SECTIONS } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-3c.t b/ld/testsuite/ld-scripts/empty-address-3c.t index 0829c58a3e4..13fe34e6cd2 100644 --- a/ld/testsuite/ld-scripts/empty-address-3c.t +++ b/ld/testsuite/ld-scripts/empty-address-3c.t @@ -8,5 +8,5 @@ SECTIONS } __data_end = .; .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/empty-address-4.t b/ld/testsuite/ld-scripts/empty-address-4.t index f25bbfea8ac..bb0c2f6aebc 100644 --- a/ld/testsuite/ld-scripts/empty-address-4.t +++ b/ld/testsuite/ld-scripts/empty-address-4.t @@ -7,5 +7,5 @@ SECTIONS ASSERT (. < 0x400, oops); } .bss : { *(.bss) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/phdrs.t b/ld/testsuite/ld-scripts/phdrs.t index 283e30c6799..1267322694a 100644 --- a/ld/testsuite/ld-scripts/phdrs.t +++ b/ld/testsuite/ld-scripts/phdrs.t @@ -12,5 +12,5 @@ SECTIONS . = 0x800000 + SIZEOF_HEADERS; .text : { *(.text) } :text .data : { *(.data) } :data - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/phdrs2.t b/ld/testsuite/ld-scripts/phdrs2.t index bccbcecbc8c..d5a4c2a34d7 100644 --- a/ld/testsuite/ld-scripts/phdrs2.t +++ b/ld/testsuite/ld-scripts/phdrs2.t @@ -19,5 +19,5 @@ SECTIONS LONG(EMPTY_START) ; } : Bar - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/phdrs3.t b/ld/testsuite/ld-scripts/phdrs3.t index 4bd4e858cf0..d86e2068962 100644 --- a/ld/testsuite/ld-scripts/phdrs3.t +++ b/ld/testsuite/ld-scripts/phdrs3.t @@ -12,5 +12,5 @@ SECTIONS . = 0x800000 + SIZEOF_HEADERS; .text : { *(.text) } :text .data : { *(.data) } :data - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/phdrs3a.t b/ld/testsuite/ld-scripts/phdrs3a.t index c07ff34b71f..4853b7b1018 100644 --- a/ld/testsuite/ld-scripts/phdrs3a.t +++ b/ld/testsuite/ld-scripts/phdrs3a.t @@ -11,5 +11,5 @@ SECTIONS . = 0x800000 + SIZEOF_HEADERS; .text : { *(.text) } :text .data : { *(.data) } :data - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/provide-9.t b/ld/testsuite/ld-scripts/provide-9.t index 00d906aa80a..b26051a22b8 100644 --- a/ld/testsuite/ld-scripts/provide-9.t +++ b/ld/testsuite/ld-scripts/provide-9.t @@ -20,6 +20,6 @@ SECTIONS *(.bss .bss.*) } >FOO - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort-file.t b/ld/testsuite/ld-scripts/sort-file.t index 559a0009256..f46f5748d3e 100644 --- a/ld/testsuite/ld-scripts/sort-file.t +++ b/ld/testsuite/ld-scripts/sort-file.t @@ -2,5 +2,5 @@ SECTIONS { .text : { SORT_BY_NAME(*)(.text*) } .data : { *(.data*) } - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort.t b/ld/testsuite/ld-scripts/sort.t index c53481f2f3d..a7bb88fe652 100644 --- a/ld/testsuite/ld-scripts/sort.t +++ b/ld/testsuite/ld-scripts/sort.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(.text .text.*)} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_a.t b/ld/testsuite/ld-scripts/sort_b_a.t index cbfd3c3a9e9..c53f6c2c30d 100644 --- a/ld/testsuite/ld-scripts/sort_b_a.t +++ b/ld/testsuite/ld-scripts/sort_b_a.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_ALIGNMENT(.text*))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_a_a.t b/ld/testsuite/ld-scripts/sort_b_a_a.t index 359cdffdd4e..df0b190bba1 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_a.t +++ b/ld/testsuite/ld-scripts/sort_b_a_a.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_ALIGNMENT(SORT_BY_ALIGNMENT(.text*)))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_a_n.t b/ld/testsuite/ld-scripts/sort_b_a_n.t index 04c3917b4b4..f5661bb0d78 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_n.t +++ b/ld/testsuite/ld-scripts/sort_b_a_n.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.text*)))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_n.t b/ld/testsuite/ld-scripts/sort_b_n.t index 26c2b6ea5dd..344d7f3218a 100644 --- a/ld/testsuite/ld-scripts/sort_b_n.t +++ b/ld/testsuite/ld-scripts/sort_b_n.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_NAME(.text*))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_n_a.t b/ld/testsuite/ld-scripts/sort_b_n_a.t index 49cbdd36047..532ba5276b9 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_a.t +++ b/ld/testsuite/ld-scripts/sort_b_n_a.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_NAME(SORT_BY_ALIGNMENT(.text*)))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_b_n_n.t b/ld/testsuite/ld-scripts/sort_b_n_n.t index b4eabfe256c..b8b091491b5 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_n.t +++ b/ld/testsuite/ld-scripts/sort_b_n_n.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(SORT_BY_NAME(SORT_BY_NAME(.text*)))} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-scripts/sort_no.t b/ld/testsuite/ld-scripts/sort_no.t index d797c796e29..7ddc3524f23 100644 --- a/ld/testsuite/ld-scripts/sort_no.t +++ b/ld/testsuite/ld-scripts/sort_no.t @@ -1,5 +1,5 @@ SECTIONS { .text : {*(.text*)} - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } } diff --git a/ld/testsuite/ld-x86-64/pr18176.t b/ld/testsuite/ld-x86-64/pr18176.t index 480c0cd99a7..0004a5e3607 100644 --- a/ld/testsuite/ld-x86-64/pr18176.t +++ b/ld/testsuite/ld-x86-64/pr18176.t @@ -35,5 +35,5 @@ SECTIONS . = ALIGN(64 / 8); _end = .; PROVIDE (end = .); . = DATA_SEGMENT_END (.); - /DISCARD/ : { *(.*) } + /DISCARD/ : { *(*) } }