From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id C70DF3852221 for ; Fri, 18 Nov 2022 08:52:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C70DF3852221 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-x62f.google.com with SMTP id i10so11379809ejg.6 for ; Fri, 18 Nov 2022 00:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NDo2nS8Ra17gGUuu5VXPjE4IZhSd7MoD0XKvd4bpRSk=; b=vdutY4ma8PuYdWjuu5yFjA6T/udZ71OThL8BwB8ghxtugF2yfgwo/A/nUaSo2rOtIR ldbZllRpMTW3E8cALC0XGHhyG1JlVMGkpZwESLdBJU8H+NgKhyazl/eQOQ5az1bFM02e R4iXzpPgJ2vJwgXNK2IvLfOEztnNeQNuxF2AiRGESNJS68pNWRwHK4lug0z6xk015em0 vxHK/L/vJQnX4QIbBvhGZqpajjTdOQMjS7lNqFAMumijIzpuz7a5rR6zck9iCMYEYAe6 IlPfSe9QjabU6iHuQSGyNuGBo00hgq0LIDTFhYhEAig5mL+KOWUAdUGE6tcA8yqyJeO+ fxrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NDo2nS8Ra17gGUuu5VXPjE4IZhSd7MoD0XKvd4bpRSk=; b=IuRzeIkSb0DVFzmUrKDUbDFOKv5XUmQTBEvD8inGWKPRitYJhPN9iW5JMEMmulC3Lx fwFjbuYOh8RdX0jBqBcQ9KB1EaN9TslJoFQ55UTxPuWB3aODf7nqEXaKEwX6Lzkxm9tQ ZxefS6/QRoZkNpYX/nvDVnDy+y+BrkDYgwkFRBf6ic/htOEbby7QnPgAi1QwOPzX18KE tO0tZx+CNEHCf5w0mP6CwVvm0PDzw2l5i6cGIllRkEcZFMfv5fwqNH6ka6tD+MCOfNxX l5wmwu4aBUhhFR2gJZxhp4VfF/2wWlDdvf6UCuKznScMdcgMXgecn/MC+NM7jSpdQj5X 2GHg== X-Gm-Message-State: ANoB5pndQmpbl4fl6Iqx7sU/N8en4s9XbkvQ7EhXSxZpSkcsxMJGbCmW E7cr5qCsSZNVnYIjZqYaW9+ubEcfZKrEYA== X-Google-Smtp-Source: AA0mqf79v8Dp71PrZ3+m93sMvF5dAI6n8Hi7IprruQz8duZmkZRyIvr6fsCS6F1oQ/8pWhpe/kxXAA== X-Received: by 2002:a17:906:a147:b0:7b2:7b45:2cd2 with SMTP id bu7-20020a170906a14700b007b27b452cd2mr5191293ejb.615.1668761529547; Fri, 18 Nov 2022 00:52:09 -0800 (PST) Received: from zach1 ([94.230.145.250]) by smtp.gmail.com with ESMTPSA id mh23-20020a170906eb9700b007af105a87cbsm1384660ejb.152.2022.11.18.00.52.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2022 00:52:09 -0800 (PST) From: To: "'Alan Modra'" Cc: "'Nick Clifton'" , References: <1fc98550-06e7-284e-3f1c-dda991bdd0e5@redhat.com> <584ecd9c-7876-8e2f-4610-8b51cab366b8@linaro.org> <22f1fa23-8d3d-dedf-e7fd-2f3a0ecf9928@linaro.org> In-Reply-To: Subject: RE: aarch64-pe can't fill 16 bytes in section .text Date: Fri, 18 Nov 2022 09:52:08 +0100 Message-ID: <022601d8fb2b$0ae69a00$20b3ce00$@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFVLC9YEbRzo96uyjiWprg6cTaGPgFwq67oAmUuZ5MCBJlb0gHxzkOgAq7kF3iu+CAgUA== Content-Language: en-gb X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: Patch merged just now. (Was a holiday here yesterday) I am still investigating another alignment problem so might be another follow up patch. This code from OpenBLAS: data_ar: .word 0x3e44fae6 data_ai: .word 0x3d320fa2 start: ldr s20, data_ar ldr s21, data_ai Produces: zscal-min.s:2: Warning: value 0x3e44fae6 truncated to 0xfae6 zscal-min.s:4: Warning: value 0x3d320fa2 truncated to 0xfa2 zscal-min.s:7: Error: pc-relative load offset not word aligned Works ok with clang. I am not sure if .word data should be aligned by default in gas or this is just a difference in behaviour. Thanks, Zac -----Original Message----- From: Alan Modra Sent: 17 November 2022 04:02 To: Zac Walker Cc: Nick Clifton ; binutils@sourceware.org Subject: Re: aarch64-pe can't fill 16 bytes in section .text On Wed, Nov 16, 2022 at 06:03:56PM +0100, Zac Walker wrote: > Thanks Alan, > > Do you think my SUB_SEGMENT_ALIGN patch is still needed. I didn't merge it yet because I wanted to do more testing with your fix. Huh, I thought it had already gone in, but it was just in my local tree. Your patch isn't needed with my fix to obj-coff.c, but it wouldn't be a bad idea to apply it anyway. We have a few too many places doing section padding. It would be nice to get rid of the alignment code in coff_frob_section. -- Alan Modra Australia Development Lab, IBM