nds32.lds 662 B

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