From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT GPL2016 on Ubuntu 15.04 and Debian 8 Date: Tue, 04 Oct 2016 18:10:57 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="e5f31545d127a6738a4229c67d648b1c"; logging-data="25448"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mj1WYpdKuEe/JrsnfJT5G41s6S6lGR50=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:43F0noS6XDVDlRW1GwINxm9l+ZU= sha1:vkbXyz5ZE68LGWe9L1O4E/ZBcxM= Xref: news.eternal-september.org comp.lang.ada:31993 Date: 2016-10-04T18:10:57+01:00 List-Id: "M. Enzmann" writes: > Ah! Okay! There is a section .ccmdata in common-RAM.ld and > common-ROM.ld and start-rom.S does some work there. I'll have to > figure out what happens.. .data is for read/write data that isn't initially blank; the initial values are placed at __data_load in Flash, and the startup copies data starting from there to the area __data_start .. __data_end. .ccmdata is going to be the same, but your code would have to tell the compiler what linker section to use: X : Integer; pragma Linker_Section (X, ".ccmdata");