vmlinux.lds.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. *(.glue_7t)
  35. *(.glue_7)
  36. }
  37. .rodata : {
  38. *(.rodata)
  39. *(.rodata.*)
  40. }
  41. .piggydata : {
  42. *(.piggydata)
  43. }
  44. . = ALIGN(4);
  45. _etext = .;
  46. .got.plt : { *(.got.plt) }
  47. _got_start = .;
  48. .got : { *(.got) }
  49. _got_end = .;
  50. _edata = .;
  51. . = BSS_START;
  52. __bss_start = .;
  53. .bss : { *(.bss) }
  54. _end = .;
  55. . = ALIGN(8); /* the stack must be 64-bit aligned */
  56. .stack : { *(.stack) }
  57. .stab 0 : { *(.stab) }
  58. .stabstr 0 : { *(.stabstr) }
  59. .stab.excl 0 : { *(.stab.excl) }
  60. .stab.exclstr 0 : { *(.stab.exclstr) }
  61. .stab.index 0 : { *(.stab.index) }
  62. .stab.indexstr 0 : { *(.stab.indexstr) }
  63. .comment 0 : { *(.comment) }
  64. }