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