echo-server/link.ld
numzero 7ad6a3d3b6 Remove PHDRS
ld makes those well enough when the sections are laid out suitably
2024-08-12 00:30:19 +03:00

11 lines
288 B
Plaintext

ENTRY(_start)
SECTIONS {
. = 4M + SIZEOF_HEADERS;
.text ALIGN(16) : { *(.text) }
.rodata ALIGN(16) : { *(.rodata) }
. += 4K; /* put .data in the next page in memory while not actually moving it in the file */
.data ALIGN(16) : { *(.data) }
.bss ALIGN(4K) : { *(COMMON) *(.bss) }
}