From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id A3B653857803 for ; Thu, 16 Mar 2023 07:01:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3B653857803 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x635.google.com with SMTP id c18so723125ple.11 for ; Thu, 16 Mar 2023 00:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678950113; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=668hCWog+EV0ovReXhX4cRzRBbPQONt210bfMjNT+0Q=; b=XFUwLfh/v/EHF3bs6iugBcMHg69nLAWEUKqWodvx6/RNnZ3MxmKRH/2g5a3T8RUKQ2 gFgNcVxdgEwitcZLKs+436HeFqkRCGQnchKmjJP2S9R6b4wAaUbpd3jYmLb8Ojgkut1A O1CczEwiXWlIyuQbZb3YHsC2OLUVH4U87pERktzfaxXroaf5zgg3rOH0EB14oEgn5QM6 ghGz/4mwB6CnBjCWnjt84X8P3ZstM4kpXtVcBCTw70k0oz6pE8Aan/dEGxOX8arQ1eRW BMmgLfK/2SI/aoM/p6GgEuPgUlxq1u73IFZIOUCXwiP+XCS1+iFCZ1Qv09x4yJNcue4m kPcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678950113; 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=668hCWog+EV0ovReXhX4cRzRBbPQONt210bfMjNT+0Q=; b=Fq4LP/jMrqxVLhYJZzCvrsWP2FOXGhps64Tm7zhH4he1N2XEeWDw6KbMsBYFqpUsMt 2ZDBFO2PXH4fb5ZkPK0ucIV9G+X4HfoeqXJ+N45lgtpEwwMIyu2G0yx9mNrJ8iVrZ/AB VH4G9/FZ/dhslZaeFSzfneljQ1/o5TWT8zW210aSMCZJvYWJHSb30vimr6XXvGt64+UB B/P1G6RbvzLkIba0N2xR8B0F6xTQVfehCYEtxRmlY0viTJbkt0IMrj8X3WbiejOxGel4 T6CrqOvRg4jpxQ62UDgDbcxXb1XIPMQMZBjCW0k3SNHpNEQ2piwwPB4GZ3t+yBG/Re0r o7eA== X-Gm-Message-State: AO0yUKXYb9WdTzzlBV/IEc5JpyRan5Qf3iyMtFAYxUKl6qW5KTqQvLYd FiHv+hg8qoYvdzGidm36RdMDhJ/ZjsA= X-Google-Smtp-Source: AK7set9UwkTKwExViLgCAg3TIH9NxFxQyvqU4HRft2kcS+84r0wcO3sK4qpYIjU+mJxHCnGVDlLHeA== X-Received: by 2002:a17:902:e54d:b0:19a:70f9:affb with SMTP id n13-20020a170902e54d00b0019a70f9affbmr2710175plf.2.1678950113266; Thu, 16 Mar 2023 00:01:53 -0700 (PDT) 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 p2-20020a170902bd0200b001a053446764sm2738483pls.63.2023.03.16.00.01.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 00:01:53 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 72C6B1142CEE; Thu, 16 Mar 2023 17:31:50 +1030 (ACDT) Date: Thu, 16 Mar 2023 17:31:50 +1030 From: Alan Modra To: binutils@sourceware.org Subject: Re: Add --enable-linker-verssion Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3035.2 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 List-Id: Output sections without any input sections to initialise their flags have their flags initialised by data statements to LOAD, ALLOC, HAS_CONTENTS by default. This is wrong for .comment. Fix that by making the script initialise the section type to INFO, one of the noalloc section types. That also allows the address of .comment to be set to zero, as is usual for non-alloc sections. Also, use source_sh for all of the sourced scripts to set up make dependencies. PR 30187 * scripttempl/misc-sections.sc: Set .comment address to zero and type to INFO. * scripttempl/ft32.sc: Fix breakages from last edit. * scripttempl/arclinux.sc: Use source_sh to source DWARF.sc and misc-sections.sc. * scripttempl/avr.sc: Likewise. * scripttempl/dlx.sc: Likewise. * scripttempl/elf.sc: Likewise. * scripttempl/elf32cr16.sc: Likewise. * scripttempl/elf32crx.sc: Likewise. * scripttempl/elf32msp430.sc: Likewise. * scripttempl/elf64bpf.sc: Likewise. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/elfarc.sc: Likewise. * scripttempl/elfarcv2.sc: Likewise. * scripttempl/elfd10v.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise. * scripttempl/elfm9s12z.sc: Likewise. * scripttempl/elfmicroblaze.sc: Likewise. * scripttempl/elfxgate.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/epiphany_4x4.sc: Likewise. * scripttempl/i386beos.sc: Likewise. * scripttempl/i386go32.sc: Likewise. * scripttempl/ia64vms.sc: Likewise. * scripttempl/ip2k.sc: Likewise. * scripttempl/iq2000.sc: Likewise. * scripttempl/mep.sc: Likewise. * scripttempl/mmo.sc: Likewise. * scripttempl/nds32elf.sc: Likewise. * scripttempl/pru.sc: Likewise. * scripttempl/v850.sc: Likewise. * scripttempl/v850_rh850.sc: Likewise. * scripttempl/visium.sc: Likewise. * scripttempl/xstormy16.sc: Likewise. * scripttempl/z80.sc: Likewise. * testsuite/ld-scripts/ld-version-2.d: Don't skip ft32 or pru. diff --git a/ld/scripttempl/arclinux.sc b/ld/scripttempl/arclinux.sc index 9c24e5bc12c..20429df45a8 100644 --- a/ld/scripttempl/arclinux.sc +++ b/ld/scripttempl/arclinux.sc @@ -656,9 +656,8 @@ EOF test -z "${NON_ALLOC_DYN}" || emit_dyn -. $srcdir/scripttempl/misc-sections.sc - -. $srcdir/scripttempl/DWARF.sc +source_sh $srcdir/scripttempl/misc-sections.sc +source_sh $srcdir/scripttempl/DWARF.sc cat <