riscv.lds 642 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2017 Andes Technology Corporation
  3. * Rick Chen, Andes Technology Corporation <rick@andestech.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. OUTPUT_ARCH(riscv)
  8. ENTRY(_start)
  9. SECTIONS
  10. {
  11. . = ALIGN(4);
  12. .text :
  13. {
  14. *(.text)
  15. }
  16. . = ALIGN(4);
  17. .data : {
  18. __global_pointer$ = . + 0x800;
  19. *(.data)
  20. }
  21. . = ALIGN(4);
  22. .got : {
  23. __got_start = .;
  24. *(.got)
  25. __got_end = .;
  26. }
  27. . = ALIGN(4);
  28. __bss_start = .;
  29. .bss : { *(.bss) }
  30. __bss_end = .;
  31. . = ALIGN(4);
  32. .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
  33. _end = .;
  34. }