OUTPUT_FORMAT("elf64-x86-64") /* FLAT BINARY DOES NOT WORK, ELF WORKS */
ENTRY(start)

SECTIONS {
  . = 0x0000000000010000;

  .entry :
  {
    /* ensure that the kernel entry code is at the beginning */
    *(.entry)
  }
  .text : ALIGN(0x1000)
  {
    *(.text .text.*)
  }
  .rodata : ALIGN(0x1000)
  {
    *(.rodata .rodata.*)
  }

  .data : ALIGN(0x1000)
  {
    *(.data .data.*)
  }

  .data.rel.ro : ALIGN(0x1000)
  {
    *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
  }
}

OUTPUT_FORMAT("elf64-x86-64") /* FLAT BINARY DOES NOT WORK, ELF WORKS */
ENTRY(start)

SECTIONS {
  . = 0x0000000000010000;

  .entry :
  {
    /* ensure that the kernel entry code is at the beginning */
    *(.entry)
  }
  .text : ALIGN(0x200)
  {
    *(.text .text.*)
  }
  .rodata : ALIGN(0x200)
  {
    *(.rodata .rodata.*)
  }

  .data : ALIGN(0x200)
  {
    *(.data .data.*)
  }

  .data.rel.ro : ALIGN(0x200)
  {
    *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
  }
}

Reduce binary size by cutting aligments
