This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]