purgatory.lds.S 763 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <asm-generic/vmlinux.lds.h>
  3. OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
  4. OUTPUT_ARCH(s390:64-bit)
  5. ENTRY(purgatory_start)
  6. SECTIONS
  7. {
  8. . = 0;
  9. .head.text : {
  10. _head = . ;
  11. HEAD_TEXT
  12. _ehead = . ;
  13. }
  14. .text : {
  15. _text = .; /* Text */
  16. *(.text)
  17. *(.text.*)
  18. _etext = . ;
  19. }
  20. .rodata : {
  21. _rodata = . ;
  22. *(.rodata) /* read-only data */
  23. *(.rodata.*)
  24. _erodata = . ;
  25. }
  26. .data : {
  27. _data = . ;
  28. *(.data)
  29. *(.data.*)
  30. _edata = . ;
  31. }
  32. . = ALIGN(256);
  33. .bss : {
  34. _bss = . ;
  35. *(.bss)
  36. *(.bss.*)
  37. *(COMMON)
  38. . = ALIGN(8); /* For convenience during zeroing */
  39. _ebss = .;
  40. }
  41. _end = .;
  42. /* Sections to be discarded */
  43. /DISCARD/ : {
  44. *(.eh_frame)
  45. *(*__ksymtab*)
  46. *(___kcrctab*)
  47. }
  48. }