Home | History | Annotate | Line # | Download | only in boot
      1  1.1  garbled /*	$NetBSD: ld.script,v 1.1 2007/12/17 19:09:51 garbled Exp $	*/
      2  1.1  garbled 
      3  1.1  garbled OUTPUT_ARCH(powerpc)
      4  1.1  garbled SEARCH_DIR(.); SEARCH_DIR(libc);
      5  1.1  garbled SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib);
      6  1.1  garbled /* Do we need any of these for elf?
      7  1.1  garbled    __DYNAMIC = 0;    */
      8  1.1  garbled SECTIONS
      9  1.1  garbled {
     10  1.1  garbled   /* Read-only sections, merged into text segment: */
     11  1.1  garbled   . = + SIZEOF_HEADERS;
     12  1.1  garbled   .interp : { *(.interp) }
     13  1.1  garbled   .hash          : { *(.hash)		}
     14  1.1  garbled   .dynsym        : { *(.dynsym)		}
     15  1.1  garbled   .dynstr        : { *(.dynstr)		}
     16  1.1  garbled   .rel.text      : { *(.rel.text)		}
     17  1.1  garbled   .rela.text     : { *(.rela.text) 	}
     18  1.1  garbled   .rel.data      : { *(.rel.data)		}
     19  1.1  garbled   .rela.data     : { *(.rela.data) 	}
     20  1.1  garbled   .rel.rodata    : { *(.rel.rodata) 	}
     21  1.1  garbled   .rela.rodata   : { *(.rela.rodata) 	}
     22  1.1  garbled   .rel.got       : { *(.rel.got)		}
     23  1.1  garbled   .rela.got      : { *(.rela.got)		}
     24  1.1  garbled   .rel.ctors     : { *(.rel.ctors)	}
     25  1.1  garbled   .rela.ctors    : { *(.rela.ctors)	}
     26  1.1  garbled   .rel.dtors     : { *(.rel.dtors)	}
     27  1.1  garbled   .rela.dtors    : { *(.rela.dtors)	}
     28  1.1  garbled   .rel.bss       : { *(.rel.bss)		}
     29  1.1  garbled   .rela.bss      : { *(.rela.bss)		}
     30  1.1  garbled   .rel.plt       : { *(.rel.plt)		}
     31  1.1  garbled   .rela.plt      : { *(.rela.plt)		}
     32  1.1  garbled   .init          : { *(.init)	} =0
     33  1.1  garbled   .plt : { *(.plt) }
     34  1.1  garbled   .text      :
     35  1.1  garbled   {
     36  1.1  garbled     *(.text)
     37  1.1  garbled     *(.rodata)
     38  1.1  garbled     *(.rodata1)
     39  1.1  garbled     *(.got1)
     40  1.1  garbled   }
     41  1.1  garbled   _etext = .;
     42  1.1  garbled   PROVIDE (etext = .);
     43  1.1  garbled   .fini      : { *(.fini)    } =0
     44  1.1  garbled   .ctors     : { *(.ctors)   }
     45  1.1  garbled   .dtors     : { *(.dtors)   }
     46  1.1  garbled   .rodata    : { *(.rodata)  }
     47  1.1  garbled   .rodata1   : { *(.rodata1) }
     48  1.1  garbled   /* Read-write section, merged into data segment: */
     49  1.1  garbled /*  . = (. + 0x0FFF) & 0xFFFFF000; */
     50  1.1  garbled   .data    :
     51  1.1  garbled   {
     52  1.1  garbled     *(.data)
     53  1.1  garbled     CONSTRUCTORS
     54  1.1  garbled   }
     55  1.1  garbled   .data1   : { *(.data1) }
     56  1.1  garbled   .got           : { *(.got.plt) *(.got) }
     57  1.1  garbled   .dynamic       : { *(.dynamic) }
     58  1.1  garbled   /* We want the small data sections together, so single-instruction offsets
     59  1.1  garbled      can access them all, and initialized data all before uninitialized, so
     60  1.1  garbled      we can shorten the on-disk segment size.  */
     61  1.1  garbled   .sdata     : { *(.sdata) }
     62  1.1  garbled   _edata  =  .;
     63  1.1  garbled   PROVIDE (edata = .);
     64  1.1  garbled   __bss_start = .;
     65  1.1  garbled   .sbss      : { *(.sbss) *(.scommon) }
     66  1.1  garbled   .bss       :
     67  1.1  garbled   {
     68  1.1  garbled    *(.dynbss)
     69  1.1  garbled    *(.bss)
     70  1.1  garbled    *(COMMON)
     71  1.1  garbled   }
     72  1.1  garbled   _end = . ;
     73  1.1  garbled   PROVIDE (end = .);
     74  1.1  garbled   /* These are needed for ELF backends which have not yet been
     75  1.1  garbled      converted to the new style linker.  */
     76  1.1  garbled   .stab 0 : { *(.stab) }
     77  1.1  garbled   .stabstr 0 : { *(.stabstr) }
     78  1.1  garbled   /* These must appear regardless of  .  */
     79  1.1  garbled }
     80