u-boot.lds 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2000
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. *
  6. * Copyright (C) 2011 Andes Technology Corporation
  7. * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
  8. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  9. */
  10. OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
  11. OUTPUT_ARCH(nds32)
  12. ENTRY(_start)
  13. SECTIONS
  14. {
  15. . = ALIGN(4);
  16. .text :
  17. {
  18. arch/nds32/cpu/n1213/start.o (.text)
  19. *(.text)
  20. }
  21. . = ALIGN(4);
  22. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  23. . = ALIGN(4);
  24. .data : { *(.data*) }
  25. . = ALIGN(4);
  26. .got : {
  27. __got_start = .;
  28. *(.got.plt) *(.got)
  29. __got_end = .;
  30. }
  31. . = ALIGN(4);
  32. .u_boot_list : {
  33. KEEP(*(SORT(.u_boot_list*)));
  34. }
  35. . = ALIGN(4);
  36. /DISCARD/ : { *(.rela.plt*) }
  37. .rela.dyn : {
  38. __rel_dyn_start = .;
  39. *(.rela*)
  40. __rel_dyn_end = .;
  41. }
  42. _end = .;
  43. .bss : {
  44. __bss_start = .;
  45. *(.bss)
  46. . = ALIGN(4);
  47. __bss_end = .;
  48. }
  49. }