ldscript.head 616 B

123456789101112131415161718192021222324252627
  1. /* $OpenBSD: ldscript.head,v 1.2 2005/01/02 19:57:57 drahn Exp $ */
  2. /* $NetBSD: ldscript.evbarm,v 1.2 2003/03/05 23:54:22 thorpej Exp $
  3. */
  4. OUTPUT_ARCH(arm)
  5. ENTRY(KERNEL_BASE_phys)
  6. SECTIONS
  7. {
  8. KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
  9. KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
  10. /* Kernel start: */
  11. .start (KERNEL_BASE_phys) :
  12. {
  13. *(.start)
  14. } =0
  15. /* Read-only sections, merged into text segment: */
  16. .text (KERNEL_BASE_virt + SIZEOF(.start)) :
  17. AT (LOADADDR(.start) + SIZEOF(.start))
  18. {
  19. *(.text)
  20. *(.text.*)
  21. *(.stub)
  22. *(.glue_7t) *(.glue_7)
  23. *(.rodata) *(.rodata.*)