From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 741553858D35 for ; Sun, 30 Apr 2023 16:35:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 741553858D35 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-pf1-x433.google.com with SMTP id d2e1a72fcca58-64115eef620so22517561b3a.1 for ; Sun, 30 Apr 2023 09:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682872514; x=1685464514; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XzYTDcSNnV4Q6SiPxGHre2gyI+CDPFPrbaVg5nXWTug=; b=kmhVz8LffyKM4Z8AbomhFg3jxAKMOcCFCDUjHluIy0u5n294QZxLxK33s7K9ZlLf4N MmoiO6X6p6tQ7f/BwXtKfcbyeS3o/4XE042EvMRm1CCA6mNHbdyWbF+uzanBUVf17x75 DUS0CpsTNduMjAsRk2ggK+eVXio1L3jB9xB+ki5oZRgyISnalc8suNQlFKMZCReuSCGL Kq9Ee4ZHrZwYMRYUOpl17DaxaPISJHMTCw4XBB4orzGzRwiBlyjd0x3Xncyh2jih/Xxj /kTNeBMKO2kADnYGEWlhXnwtwunY8MtEC+yWcARfkq+Hx+smJagzw6hi7JFneuhLragU N8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682872514; x=1685464514; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XzYTDcSNnV4Q6SiPxGHre2gyI+CDPFPrbaVg5nXWTug=; b=ThMwV5WJZ8d7um0J74HfhztnQ4Drg+CHDB6vn5u77L/XXQMyaTz+jA32yXBUPTA1EV nmSqMYZJcxHS1dC0dCUmmezE7CkGsdJWpffZt+H3yArDvcAOTeBa9pu9+DPXXYtQVIsT ybM8aZDwvZMtjvoThuGBDsknquNdFOvM8QAXXhNKbTQ390vOYacWBvxCccjXd8KFe5HK tFprcHcXZjO2vISyhperhIFD0vgK45E8rhKnSn6TKc79+R/wneBUO/r1indRxEa1bw/b /FjJAOYhE2M7LBjwA9se6iolrR+Z8H9z0F9ZwdGTvEYLEuZ5lE2rGstr9FvWDfvU/3Vh v0Aw== X-Gm-Message-State: AC+VfDyLH3R3aLALBwGhBkg6hdM0/qltAuN8ffdUUTaH7xkHZ2OvpMbq dCW8il6uQr7j5CYd6ja11GQAHo8cXD4= X-Google-Smtp-Source: ACHHUZ4+tZ4VkviRRU3MLKVfr9lv+J8Ybz7pr/DwYKk4QYy2GfDSMgtXRjO0+Pu6gaUwMuh1tudpBw== X-Received: by 2002:a05:6a00:1791:b0:63b:8dcc:84de with SMTP id s17-20020a056a00179100b0063b8dcc84demr15767532pfg.4.1682872514130; Sun, 30 Apr 2023 09:35:14 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id h125-20020a628383000000b0063b87717661sm18599523pfe.85.2023.04.30.09.35.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Apr 2023 09:35:13 -0700 (PDT) Message-ID: <6ea6d799-1c30-db9f-45d9-3164893f2d30@gmail.com> Date: Sun, 30 Apr 2023 10:35:12 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2] gcc: Use ld -r when checking for HAVE_LD_RO_RW_SECTION_MIXING Content-Language: en-US To: =?UTF-8?Q?Joakim_Nohlg=c3=a5rd?= , gcc-patches@gcc.gnu.org References: <20221205134349.1730053-1-joakim@nohlgard.se> From: Jeff Law In-Reply-To: <20221205134349.1730053-1-joakim@nohlgard.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 List-Id: On 12/5/22 06:43, Joakim NohlgÄrd wrote: > Fall back to ld -r if ld -shared fails during configure. The check for > HAVE_LD_RO_RW_SECTION_MIXING can fail on targets where ld does not > support shared objects, even though the answer to the test should be > 'read-write'. One such target is riscv64-unknown-elf. Failing this test > results in a libgcc crtbegin.o which has a writable .eh_frame section > leading to the default linker scripts placing the .eh_frame section in a > writable memory segment, or a linker warning when using ld scripts that > place .eh_frame unconditionally in ROM. > > gcc/ChangeLog: > > * configure: Regenerate. > * configure.ac: Use ld -r in the check for HAVE_LD_RO_RW_SECTION_MIXING Thanks. I've pushed this to the trunk. jeff