vmlinux.lds.in 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. /* Assume size of decompressed image is 4x the compressed image */
  43. _image_size = (_etext - _text) * 4;
  44. _got_start = .;
  45. .got : { *(.got) }
  46. _got_end = .;
  47. .got.plt : { *(.got.plt) }
  48. _edata = .;
  49. . = BSS_START;
  50. __bss_start = .;
  51. .bss : { *(.bss) }
  52. _end = .;
  53. .stack (NOLOAD) : { *(.stack) }
  54. .stab 0 : { *(.stab) }
  55. .stabstr 0 : { *(.stabstr) }
  56. .stab.excl 0 : { *(.stab.excl) }
  57. .stab.exclstr 0 : { *(.stab.exclstr) }
  58. .stab.index 0 : { *(.stab.index) }
  59. .stab.indexstr 0 : { *(.stab.indexstr) }
  60. .comment 0 : { *(.comment) }
  61. }