Back to index

cell-binutils  2.17cvs20070401
2.c
Go to the documentation of this file.
00001 /* Normally we should loose foo and keep _start and _init. 
00002    With -u foo, we should keep that as well.  */
00003 
00004 void _start() __asm__("_start");
00005 void _start()
00006 {
00007 }
00008 
00009 void __attribute__((section(".init")))
00010 _init()
00011 {
00012 }
00013 
00014 int foo() __asm__("foo");
00015 int foo()
00016 {
00017   static int x = 1;
00018   return x++;
00019 }