This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/10670] gcc ignors 'pragma Machine_Attribute' directive
- From: "berndtrog at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2003 17:04:37 -0000
- Subject: [Bug ada/10670] gcc ignors 'pragma Machine_Attribute' directive
- References: <20030507200600.10670.berndtrog@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10670
berndtrog at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
------- Additional Comments From berndtrog at yahoo dot com 2003-10-21 17:04 -------
That should be the C equivalent of my Ada code:
void
boot (void) __attribute__ ((section (".bootloader")));
void
boot (void)
{
puts ("Boot\n");
}
int main(void)
{
puts ("Test\n");
}
>objdump -h bootloader.o
bootloader.o: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
[..]
12 .bootloader 00000014 08048400 08048400 00000400 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
[..]
Release:
gcc version 3.3 20030127 (prerelease)