From patchwork Fri Jan 12 18:07:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 84012 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E9478385C413 for ; Fri, 12 Jan 2024 18:07:32 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.221]) by sourceware.org (Postfix) with ESMTPS id 29232385842B for ; Fri, 12 Jan 2024 18:07:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29232385842B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 29232385842B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=81.169.146.221 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1705082825; cv=pass; b=LaBOqPN2wM44PG454Q0w1TnxHptnEC8cSZEs90TyIMvjNDQ9kn1DlfTmr5CZ9P4K10e3A2kcBC6SAMulMN/wNjtX9rbLcxeWx2Wo+Z35vNpwrvp26tSU217rPeYtxF0SbKZ3sO8VHPZuX19JFXLHwi6MWqDNeuSr1/m9mow5H3s= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1705082825; c=relaxed/simple; bh=29jHSlrlVZPgj4Pyfv4mChL7TaJtj1UOE/GOJyFnVyI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=cmSB/TDsxRVxybUq+rxUvclH0gfUM13origeKoSQVibdPeKrj/5MDsDk5LUeVrq6eOL6Wzc7MaDwPiNTttMkSFiBrOnD4QAnfXvXT5l2GhzlFynxwKhnuLax+vHaW9f2a9N6xQWmpuvoWHWheJTFCk3yzDSMZyFkcZGYfKGGINo= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1705082822; cv=none; d=strato.com; s=strato-dkim-0002; b=prUipI9l7uS/0rQQ0CI9YrMoilsOt0kkpmUqvB9zE/VK1/miUvhrF/vupP1e4yZcgi g9bfNW4QbD6DaSY2LzJpVkEDQDFI91ApRW6458I18NLV5Kgci7FqBupUoZHNiJPFAh81 TDrfS3WHmNepKUsIS17iaOkOLuYae5iDMWv9NNPGAxZIMyATAHAnfRnybVM2SYtcwv0R /BCmxzQ60o4AB0Eu+PaUfvXAsFlSx2nABJXVVITKngI1x6PHVyQfQAZ6UAYj+wmBNtgc +3N5h5gocNWIw6coBlGpFgcTIkGMzcYZbXzNB9E0zH80S0HEMB5vHlBY4vqXESWS7Q7c bppw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1705082822; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=bsh7Npuia6RlLBc6P6zG0K0SpN8zav7ZIS8/OF0buSg=; b=j5syESOkuj2m3AiPQTvls2Igc/ZwYWfIFZGOOBbDJX/tLpVlBrw46kFO2cPSeX/Koc 7v1q8W81ao7bVh6o7U6STYLRtekeO+2eY2kGs7IstvVyl0XaKLzRz8TGtUON/aQFMwJ0 C9YC9AtcS8gv5JPrT+KAD5Rj6Fk6nkc0gFm1V9fHzPqdYK7yi5rvE30QCsosiG/r2bqm eyYj+dTxxWzAUf55/CoN2cVNHJaxXIZPDV2uKB9jhMIuFlY81cNKUgUXtS5G3w91EjuC ssG9fz7ivJrF4+2SpYJ0MxP1Wq+WCIqKaPpww48pVU5WJlK7Lk3KeQfatAOrp9swlqPD u8WQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1705082821; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=bsh7Npuia6RlLBc6P6zG0K0SpN8zav7ZIS8/OF0buSg=; b=YBBR0gqbQweHxCidIxuJbNLeKkwyTiBh5JQocu0C42G9AobNvROisHqQygemVGef0D oFVqqSvQ4UTdoUa9iEhr6HLCzXb/T8COo+JMVubS9nhT+k1WXqcjDCxJXxyqpyh6xFKi YDqUjT/84Z+c+MwI9PFWNVuVrxE37vwL6RYyM2/hG802I2Pg+cD38GwB8IY4jvrn9zTp rIXs9kKWXM7h0wHoP2bHzk67fLATYLEHUT6bc7ih9Co2sR/NVGF1Cl3P6On6q7ELSsgq v335ZN9wO9XaVPBd/nt+GVO+o5A8lEYk71sWSO5jH4j4mletC7UNyxwzIoGmMw0moJxZ 6VDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1705082821; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=bsh7Npuia6RlLBc6P6zG0K0SpN8zav7ZIS8/OF0buSg=; b=60XBUSO6Lun3PsRSlFgSroKYYr+Dlk1FTLH8rEX2EIvD0YfUKisycdiGdRi786CJY9 OP3iPRvfyZxJysf3dVAA== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkSjsSjq3WhKPVxx3mY" Received: from [192.168.2.102] by smtp.strato.de (RZmta 49.10.2 DYNA|AUTH) with ESMTPSA id g5de8600CI71Qza (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 12 Jan 2024 19:07:01 +0100 (CET) Message-ID: <0622968f-2662-4b03-ae59-a068db1f1b88@gjlay.de> Date: Fri, 12 Jan 2024 19:07:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Georg-Johann Lay To: gcc-patches@gcc.gnu.org Subject: [patch,avr,applied] Add link to sample ld-script in avr-gcc wiki. X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org This links an example from the avr-gcc wiki that shows how to set up a linker script for the __flashN avr address spaces in section AVR Named Address Spaces of the GCC user manual. Johann --- AVR: Documentation: Web-Link an example ld-Script for Address-Space __flashN. gcc/ * doc/extend.texi (AVR Named Address Spaces, Limitations and Caveats): Add web-link to the avr-gcc wiki. Any data or pointers to the non-generic address spaces must diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index eb4a42588c7..b9129d1b464 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1608,6 +1608,8 @@ supports reading across the 64@tie{}KiB flash segment boundaries is If you use one of the @code{__flash@var{N}} address spaces you must arrange your linker script to locate the @code{.progmem@var{N}.data} sections according to your needs. +For an example, see the +@w{@uref{https://gcc.gnu.org/wiki/avr-gcc#Address_Spaces,avr-gcc wiki}} @item