u-boot.lds 1.4 KB

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