vmlinux.lds.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * linux/arch/unicore/boot/compressed/vmlinux.lds.in
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. OUTPUT_ARCH(unicore32)
  13. ENTRY(_start)
  14. SECTIONS
  15. {
  16. /DISCARD/ : {
  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. *(.piggydata)
  37. . = ALIGN(4);
  38. }
  39. _etext = .;
  40. /* Assume size of decompressed image is 4x the compressed image */
  41. _image_size = (_etext - _text) * 4;
  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. .stack : { *(.stack) }
  52. .comment 0 : { *(.comment) }
  53. }