From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 13BEB3858CDB for ; Thu, 4 May 2023 11:44:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 13BEB3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683200652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRP4UcLZ/uwKaJi3TSE2y3h6UX4HNFDgi8B5kv5B6OU=; b=ELnMGbUhgvlMcX7ANT+3Ak5QRz2rd5WJFUT3UAD/YmZoiBqATqQc9KiSScqiPnuRXmXsn9 hz1DC54h+Vn1mNiQB6izW54IhFrkBgIxBgN+p+tXiuEVLuEQJ4sohwEk6ygcsUc/1Vq9WK OyO1CUtEJmPpYwCUMMEcKWZzXG/can8= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-41-MnKCEmpMMqWbHhAT6z8uhA-1; Thu, 04 May 2023 07:44:03 -0400 X-MC-Unique: MnKCEmpMMqWbHhAT6z8uhA-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-2ff4bc7a770so161124f8f.3 for ; Thu, 04 May 2023 04:44:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683200642; x=1685792642; 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=cRP4UcLZ/uwKaJi3TSE2y3h6UX4HNFDgi8B5kv5B6OU=; b=lVtlQ+peHgQ7mp6wnDL2E0laq6Cbofwp7nfnhUuUG11QyhEnBL7zbi5uYKPoMtX6LC mdh5A6tQ+2BPgpGQaVyrUJ3L4f7kU4AV8DZxxbton/+529wxh4FDHGs/h9PttETgRh6x osd0n8AfrEePN+bz+TQYLPHFp9b+xM45HvY5KVvIjQItW4wuba0yADBQhYWjO/5rL6fY lUXBKZfxL4qpCzv/ssfXsdLbDRuNnYSKJ9mznfddd3h4RQwB4eE/cv+Etm6jdPjG11cD GB7NwfRQC7OXwyMlZuIWKnd56QVcvVZric2aivR88H2nQw/i0BFjCJE7/IVAoI6Jga5u 0Dmw== X-Gm-Message-State: AC+VfDzW80jN/ulhlOhNpv+7vhdE0QefoR3Begb3k1Xm984FLq/7AgXr qNIhdxbf7Z3a9tgfB0qT5cCF3BvDpiwhkCcOINverJk3iXyFGCnmyJB63UbcuIADGjVNCW4U5lR A2kHfE6bvYts+8eUgxmkzHQCHpA== X-Received: by 2002:adf:e3c7:0:b0:306:30ea:a060 with SMTP id k7-20020adfe3c7000000b0030630eaa060mr2121277wrm.51.1683200642259; Thu, 04 May 2023 04:44:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VADxGseTETquzbL1MWKyd94nf63QRplgKC9NVbPEQQn57dhV1A38TMZGnrJlbX/SfPjMCmg== X-Received: by 2002:adf:e3c7:0:b0:306:30ea:a060 with SMTP id k7-20020adfe3c7000000b0030630eaa060mr2121270wrm.51.1683200641958; Thu, 04 May 2023 04:44:01 -0700 (PDT) Received: from [192.168.1.7] ([79.123.86.193]) by smtp.gmail.com with ESMTPSA id v12-20020adfe28c000000b0030497b3224bsm23429567wri.64.2023.05.04.04.44.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 04:44:01 -0700 (PDT) Message-ID: Date: Thu, 4 May 2023 12:43:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] ld: pru: Place exception-handling sections correctly To: Dimitar Dimitrov , binutils@sourceware.org References: <20230503171124.6710-1-dimitar@dinux.eu> From: Nick Clifton In-Reply-To: <20230503171124.6710-1-dimitar@dinux.eu> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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: Hi Dimitar, > A recent GCC commit [1] exposed a latent bug in the PRU default linker > script. The exception-handling sections were not described in the linker > script. When GCC started outputting read-only EH sections, their > contents would erroneously be placed in the instruction memory (IMEM), > which in turn is not readable at runtime. Thus any access to the > read-only exception-handling data results in a runtime crash. > > Fix by declaring the EH output sections. Do not split in read-only and > read-write sections because PRU has no true support for rodata. It has > only one memory for data (DMEM). Patch approved and applied. Note - I extended the ChangeLog entry to also mention the updated to the .data and .resource_table sections. Cheers Nick