From: berndtrog@yahoo.com (Bernd Trog)
Subject: pragma Machine_Attribute
Date: 3 May 2003 12:03:05 -0700
Date: 2003-05-03T19:03:06+00:00 [thread overview]
Message-ID: <cbdd91ae.0305031103.35be8143@posting.google.com> (raw)
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 :-(
next reply other threads:[~2003-05-03 19:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-03 19:03 Bernd Trog [this message]
2003-05-05 8:17 ` pragma Machine_Attribute Sergey Koshcheyev
2003-05-05 13:52 ` Bernd Trog
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox