From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by sourceware.org (Postfix) with ESMTPS id 7B1CC3858D28 for ; Mon, 25 Apr 2022 14:59:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7B1CC3858D28 Received: by mail-qk1-x732.google.com with SMTP id s4so10981959qkh.0 for ; Mon, 25 Apr 2022 07:59:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Hloj929ig635z4yMVM2Zn14c64x4sBgsTZXxWh7Zv2w=; b=liumMCP2E0nToTBJMmouUdYx9Gsshh5JiKc/xfrW90pcqQkyH0pFR3JyV/ec0zLdAd tre6oOd65aBI3738tv1Ooojz4eWdX2phYIJmLHneVFTFkqcVRTUDRH2nZ7rm7P0WQ6j/ b4jUO17gbOBQgmPv5kpB/MS9bbr+zTpw2TVNfxmd8N9a/UHclYXefADo60JOAivxn0bF Uekz17hSEFT+hV6emhBYGXkw5vWgDGlGuemBt8cXk4blUOM+IJ3CHsJpsCsPEulAZofR sqngPtmKm81KxQ0jgqbus67nRNud8k34wkpX1Ts6saPLj8gkbVhZeMjOksXrrG715+ca Rpwg== X-Gm-Message-State: AOAM532/IGUtkOUJgFAdw2rduCclXp0H4iE9vhvZ6fjufToy87RhJprv eTCzZ64+ssgtN+u7FgWC18c= X-Google-Smtp-Source: ABdhPJwPLziFAkln/DvHmHR5Wx8+Xv11jTMMNNQ58OTEf3TAuEAKIFRwGACZbjjI9tAlalnr01qDvA== X-Received: by 2002:a37:8d43:0:b0:699:b613:be6 with SMTP id p64-20020a378d43000000b00699b6130be6mr10360999qkd.484.1650898762703; Mon, 25 Apr 2022 07:59:22 -0700 (PDT) Received: from [172.31.0.204] (c-73-63-24-84.hsd1.ut.comcast.net. [73.63.24.84]) by smtp.gmail.com with ESMTPSA id v21-20020ac85795000000b002f369abd498sm1739935qta.10.2022.04.25.07.59.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 07:59:22 -0700 (PDT) Message-ID: Date: Mon, 25 Apr 2022 08:59:20 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [committed] exec-stack warning for test which wants executable stacks Content-Language: en-US To: Nick Clifton , =?UTF-8?Q?Martin_Li=c5=a1ka?= , gcc@gcc.gnu.org, binutils@sourceware.org References: <8e46710d-573b-bd06-cb80-518575dceefc@suse.cz> From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 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 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: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2022 14:59:25 -0000 On 4/25/2022 8:42 AM, Nick Clifton wrote: > Hi Jeff, > >>>> I used -z execstack rather than --no-warn-execstack as the former >>>> is recognized by older versions of ld, but the latter is a new option. >>> Thanks for it. >> Unfortunately, I should have looked at the other failures that have >> popped up over the last week.  Essentially all the nested function >> tests are failing on some targets due to the same linker warning. >> >> Either pruning or adding  the option to all those tests is going to >> be necessary ;( > > Sorry for causing you so much hassle. No worries.  It's a very reasonable warning.  And it's only if you're testing with the latest binutils that it causes problems -- which is one of the goals of the tester -- to find this stuff when it happens, not 6-12 months later. >   If it helps, Alan has already added > some pruning code to binutils/testsuite/lib/binutils-common.exp in the > prune_extra_warnings proc... Yea.  I saw that.  I ultimately decided against pruning as it would be useful to know if a test suddenly needs execstack.   That would generally be a sign of something gone horribly wrong.  I just (locally) added the magic to the rest of the affected tests and I'm testing it now. jeff