This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Ada: pragma Machine_Attribute doesn't work
- From: Bernd Trog <berndtrog at yahoo dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 6 May 2003 02:04:25 -0700 (PDT)
- Subject: Ada: pragma Machine_Attribute doesn't work
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 warning:
bootloader.adb:12: warning: `section (".bootloader")' attribute directive
ignored
And 'objdump -h' doesn't print a .bootloader section :-(
I'm using gcc-33-20030127.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com