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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,52b1fbc02aefcd3,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-03 12:03:07 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: berndtrog@yahoo.com (Bernd Trog) Newsgroups: comp.lang.ada Subject: pragma Machine_Attribute Date: 3 May 2003 12:03:05 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 212.185.252.193 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1051988586 22676 127.0.0.1 (3 May 2003 19:03:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 May 2003 19:03:06 GMT Xref: archiver1.google.com comp.lang.ada:36916 Date: 2003-05-03T19:03:06+00:00 List-Id: Hi, I have this C stuff: void boot(void) __attribute__ ((section (".bootloader"))); and this part of the Makefile to set the address at link-time: gcc [...] -Wl,--section-start=.bootloader=0x1E000 Now I'd like to do the same in GNAT Ada. I've tried: procedure Boot; pragma Machine_Attribute (Entity => Boot, Attribute_Name => "section (.bootloader)" ); procedure Boot is begin null; end; and got this waring: bootloader.adb:12: warning: `section (.bootloader)' attribute directive ignored And 'objdump -h' doesn't print a .bootloader section :-(