From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal 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!feeder.eternal-september.org!aioe.org!.POSTED.jFK6OqqKW5bkmQ4H/i1UAQ.user.gioia.aioe.org!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: How can I get this data into the .data section of the binary? Date: Wed, 17 Jun 2020 16:17:49 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: jFK6OqqKW5bkmQ4H/i1UAQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Content-Language: en-GB X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:59109 List-Id: On 17/06/2020 15:01, Niklas Holsti wrote: > On 2020-06-17 15:37, Luke A. Guest wrote: >> Interesting though. >> >> I wrote the above before trying. Trying to place it in ".rodata..." >> caused a compiler error, placing it in .data worked, but there is still >> elaboration code. > > The compiler error probably resulted from the compiler generating > elaboration code to write something into the read-only ".rodata", right? Nope, turns out it was the assembler: /tmp/cc63XSy6.s: Assembler messages: /tmp/cc63XSy6.s:5: Warning: setting incorrect section attributes for .rodata.sdl__video__pixel_formats__pixel_format_index_1_lsb