vmlinux.lds.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * linux/arch/arm/boot/compressed/vmlinux.lds.in
  3. *
  4. * Copyright (C) 2000 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. OUTPUT_ARCH(arm)
  11. ENTRY(_start)
  12. SECTIONS
  13. {
  14. /DISCARD/ : {
  15. *(.ARM.exidx*)
  16. *(.ARM.extab*)
  17. /*
  18. * Discard any r/w data - this produces a link error if we have any,
  19. * which is required for PIC decompression. Local data generates
  20. * GOTOFF relocations, which prevents it being relocated independently
  21. * of the text/got segments.
  22. */
  23. *(.data)
  24. }
  25. . = TEXT_START;
  26. _text = .;
  27. .text : {
  28. _start = .;
  29. *(.start)
  30. *(.text)
  31. *(.text.*)
  32. *(.fixup)
  33. *(.gnu.warning)
  34. *(.rodata)
  35. *(.rodata.*)
  36. *(.glue_7)
  37. *(.glue_7t)
  38. *(.piggydata)
  39. . = ALIGN(4);
  40. }
  41. _etext = .;
  42. _got_start = .;
  43. .got : { *(.got) }
  44. _got_end = .;
  45. .got.plt : { *(.got.plt) }
  46. _edata = .;
  47. . = BSS_START;
  48. __bss_start = .;
  49. .bss : { *(.bss) }
  50. _end = .;
  51. . = ALIGN(8); /* the stack must be 64-bit aligned */
  52. .stack : { *(.stack) }
  53. .stab 0 : { *(.stab) }
  54. .stabstr 0 : { *(.stabstr) }
  55. .stab.excl 0 : { *(.stab.excl) }
  56. .stab.exclstr 0 : { *(.stab.exclstr) }
  57. .stab.index 0 : { *(.stab.index) }
  58. .stab.indexstr 0 : { *(.stab.indexstr) }
  59. .comment 0 : { *(.comment) }
  60. }