nds32.lds 662 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2011 Andes Technology Corporation
  3. * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
  4. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
  9. OUTPUT_ARCH(nds32)
  10. ENTRY(_start)
  11. SECTIONS
  12. {
  13. . = ALIGN(4);
  14. .text :
  15. {
  16. *(.text)
  17. }
  18. . = ALIGN(4);
  19. .data : { *(.data) }
  20. . = ALIGN(4);
  21. .got : {
  22. __got_start = .;
  23. *(.got)
  24. __got_end = .;
  25. }
  26. . = ALIGN(4);
  27. __bss_start = .;
  28. .bss : { *(.bss) }
  29. __bss_end = .;
  30. . = ALIGN(4);
  31. .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
  32. _end = .;
  33. }