Home | History | Annotate | Line # | Download | only in boot
boot.ldscript revision 1.1
      1 /* /boot must be a.out, OMAGIC starting from 0x8000. */
      2 OUTPUT_FORMAT("a.out-m68k-netbsd", "a.out-m68k-netbsd",
      3 	      "a.out-m68k-netbsd")
      4 OUTPUT_ARCH(m68k)
      5 ENTRY(start)
      6 SEARCH_DIR(/usr/lib);
      7 /*__DYNAMIC = 0; */
      8 PROVIDE (__stack = 0);
      9 SECTIONS
     10 {
     11   . = 0x6000;
     12   .text :
     13   {
     14     CREATE_OBJECT_SYMBOLS
     15     *(.text)
     16     *(.rodata)
     17     /* The next six sections are for SunOS dynamic linking.  The order
     18        is important.  */
     19     *(.dynrel)
     20     *(.hash)
     21     *(.dynsym)
     22     *(.dynstr)
     23     *(.rules)
     24     *(.need)
     25     etext = .;
     26     _etext = .;
     27   }
     28 /*  . = ALIGN(0x2000); */
     29   .data :
     30   {
     31     /* The first three sections are for SunOS dynamic linking.  */
     32     *(.dynamic)
     33     *(.got)
     34     *(.plt)
     35     *(.data)
     36     *(.linux-dynamic) /* For Linux dynamic linking.  */
     37     CONSTRUCTORS
     38     edata  =  .;
     39     _edata  =  .;
     40   }
     41   .bss :
     42   {
     43     __bss_start = .;
     44    *(.bss)
     45    *(COMMON)
     46    end = ALIGN(4) ;
     47    _end = ALIGN(4) ;
     48   }
     49   /DISCARD/ : { *(.ident) *(.stab) *(.stabstr) }
     50 }
     51