PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/x86/boot/setup.ld

https://bitbucket.org/erm/linux-kernel
Unknown | 64 lines | 52 code | 12 blank | 0 comment | 0 complexity | 2efaa144f20ec2eed43a16b3416785b0 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * setup.ld
  3. *
  4. * Linker script for the i386 setup code
  5. */
  6. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
  7. OUTPUT_ARCH(i386)
  8. ENTRY(_start)
  9. SECTIONS
  10. {
  11. . = 0;
  12. .bstext : { *(.bstext) }
  13. .bsdata : { *(.bsdata) }
  14. . = 497;
  15. .header : { *(.header) }
  16. .entrytext : { *(.entrytext) }
  17. .inittext : { *(.inittext) }
  18. .initdata : { *(.initdata) }
  19. __end_init = .;
  20. .text : { *(.text) }
  21. .text32 : { *(.text32) }
  22. . = ALIGN(16);
  23. .rodata : { *(.rodata*) }
  24. .videocards : {
  25. video_cards = .;
  26. *(.videocards)
  27. video_cards_end = .;
  28. }
  29. . = ALIGN(16);
  30. .data : { *(.data*) }
  31. .signature : {
  32. setup_sig = .;
  33. LONG(0x5a5aaa55)
  34. }
  35. . = ALIGN(16);
  36. .bss :
  37. {
  38. __bss_start = .;
  39. *(.bss)
  40. __bss_end = .;
  41. }
  42. . = ALIGN(16);
  43. _end = .;
  44. /DISCARD/ : { *(.note*) }
  45. /*
  46. * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
  47. */
  48. . = ASSERT(_end <= 0x8000, "Setup too big!");
  49. . = ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!");
  50. /* Necessary for the very-old-loader check to work... */
  51. . = ASSERT(__end_init <= 5*512, "init sections too big!");
  52. }