riscv.lds 642 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2017 Andes Technology Corporation
  4. * Rick Chen, Andes Technology Corporation <rick@andestech.com>
  5. */
  6. OUTPUT_ARCH(riscv)
  7. ENTRY(_start)
  8. SECTIONS
  9. {
  10. . = ALIGN(4);
  11. .text :
  12. {
  13. *(.text)
  14. }
  15. . = ALIGN(4);
  16. .data : {
  17. __global_pointer$ = . + 0x800;
  18. *(.data)
  19. }
  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. }