From 402ec77bc0a8f07ddd524f1eb006017c4998ba5f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 13 Apr 2017 17:56:41 +0200 Subject: [PATCH] Reduce number of ELF section by merging `.text.*` (etc.) sections together --- src/arch/x86_64/linker.ld | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/linker.ld b/src/arch/x86_64/linker.ld index 25420550..f763e62c 100644 --- a/src/arch/x86_64/linker.ld +++ b/src/arch/x86_64/linker.ld @@ -11,6 +11,14 @@ SECTIONS { .text : { - *(.text) + *(.text .text.*) + } + + .rodata : { + *(.rodata .rodata.*) + } + + .data.rel.ro : { + *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*) } }