Home | History | Annotate | Line # | Download | only in bootx64
ldscript revision 1.1
      1 /*	$NetBSD: ldscript,v 1.1 2017/01/24 11:09:14 nonaka Exp $	*/
      2 /* Same as elf_x86_64_fbsd_efi.lds, except for OUTPUT_FORMAT below - KEEP IN SYNC */
      3 OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
      4 OUTPUT_ARCH(i386:x86-64)
      5 ENTRY(_start)
      6 SECTIONS
      7 {
      8   . = 0;
      9   ImageBase = .;
     10   .hash : { *(.hash) }	/* this MUST come first! */
     11   . = ALIGN(4096);
     12   .eh_frame :
     13   {
     14     *(.eh_frame)
     15   }
     16   . = ALIGN(4096);
     17   .text :
     18   {
     19    *(.text)
     20    *(.text.*)
     21    *(.gnu.linkonce.t.*)
     22   }
     23   . = ALIGN(4096);
     24   .reloc :
     25   {
     26    *(.reloc)
     27   }
     28   . = ALIGN(4096);
     29   .data :
     30   {
     31    *(.rodata*)
     32    *(.got.plt)
     33    *(.got)
     34    *(.data*)
     35    *(.sdata)
     36    /* the EFI loader doesn't seem to like a .bss section, so we stick
     37       it all into .data: */
     38    *(.sbss)
     39    *(.scommon)
     40    *(.dynbss)
     41    *(.bss)
     42    *(COMMON)
     43    *(.rel.local)
     44   }
     45   . = ALIGN(4096);
     46   .dynamic  : { *(.dynamic) }
     47   . = ALIGN(4096);
     48   .rela :
     49   {
     50     *(.rela.data*)
     51     *(.rela.got)
     52     *(.rela.stab)
     53   }
     54   . = ALIGN(4096);
     55   .dynsym   : { *(.dynsym) }
     56   . = ALIGN(4096);
     57   .dynstr   : { *(.dynstr) }
     58   . = ALIGN(4096);
     59   .ignored.reloc :
     60   {
     61     *(.rela.reloc)
     62     *(.eh_frame)
     63     *(.note.GNU-stack)
     64   }
     65   .comment 0 : { *(.comment) }
     66 }
     67