u-boot.lds 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. arch/riscv/cpu/ax25/start.o (.text)
  14. *(.text)
  15. }
  16. . = ALIGN(4);
  17. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  18. . = ALIGN(4);
  19. .data : {
  20. __global_pointer$ = . + 0x800;
  21. *(.data*)
  22. }
  23. . = ALIGN(4);
  24. .got : {
  25. __got_start = .;
  26. *(.got.plt) *(.got)
  27. __got_end = .;
  28. }
  29. . = ALIGN(4);
  30. .u_boot_list : {
  31. KEEP(*(SORT(.u_boot_list*)));
  32. }
  33. . = ALIGN(4);
  34. .efi_runtime : {
  35. __efi_runtime_start = .;
  36. *(efi_runtime_text)
  37. *(efi_runtime_data)
  38. __efi_runtime_stop = .;
  39. }
  40. .efi_runtime_rel : {
  41. __efi_runtime_rel_start = .;
  42. *(.relaefi_runtime_text)
  43. *(.relaefi_runtime_data)
  44. __efi_runtime_rel_stop = .;
  45. }
  46. . = ALIGN(4);
  47. /DISCARD/ : { *(.rela.plt*) }
  48. .rela.dyn : {
  49. __rel_dyn_start = .;
  50. *(.rela*)
  51. __rel_dyn_end = .;
  52. }
  53. . = ALIGN(4);
  54. .dynsym : {
  55. __dyn_sym_start = .;
  56. *(.dynsym)
  57. __dyn_sym_end = .;
  58. }
  59. . = ALIGN(4);
  60. _end = .;
  61. .bss : {
  62. __bss_start = .;
  63. *(.bss)
  64. . = ALIGN(4);
  65. __bss_end = .;
  66. }
  67. }