Home | History | Annotate | Line # | Download | only in boot
boot.ldscript revision 1.4
      1 /* /boot must be a.out, OMAGIC starting from 0x6000. */
      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     *(.rodata.str1.1)
     18     /* The next six sections are for SunOS dynamic linking.  The order
     19        is important.  */
     20     *(.dynrel)
     21     *(.hash)
     22     *(.dynsym)
     23     *(.dynstr)
     24     *(.rules)
     25     *(.need)
     26     etext = .;
     27     _etext = .;
     28   }
     29 /*  . = ALIGN(0x2000); */
     30   .data :
     31   {
     32     /* The first three sections are for SunOS dynamic linking.  */
     33     *(.dynamic)
     34     *(.got)
     35     *(.plt)
     36     *(.data)
     37     *(.linux-dynamic) /* For Linux dynamic linking.  */
     38     CONSTRUCTORS
     39     edata  =  .;
     40     _edata  =  .;
     41   }
     42   .bss :
     43   {
     44     __bss_start = .;
     45    *(.bss)
     46    *(COMMON)
     47    end = ALIGN(4) ;
     48    _end = ALIGN(4) ;
     49   }
     50   /DISCARD/ : {
     51       *(.ident)
     52       *(.stab)
     53       *(.stabstr)
     54       *(.comment)
     55       *(.debug_abbrev)
     56       *(.debug_info)
     57       *(.debug_line)
     58       *(.debug_loc)
     59       *(.debug_pubnames)
     60       *(.debug_pubtypes)
     61       *(.debug_aranges)
     62       *(.debug_ranges)
     63       *(.debug_str)
     64       *(.debug_frame)
     65   }
     66 }
     67