From cc98cef770adf22e4a3074d88e6310b87e2ddd94 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 2 Dec 2016 14:44:07 +0100 Subject: [PATCH] genode_rel.ld: add .gcc_except_table to RO segment By moving .gcc_except_table section to the read-only ELF segment, this patch reduces the size of the dynamically allocated data/bss segment. --- repos/base/src/ld/genode_rel.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/src/ld/genode_rel.ld b/repos/base/src/ld/genode_rel.ld index d6891f760f..acf547f249 100644 --- a/repos/base/src/ld/genode_rel.ld +++ b/repos/base/src/ld/genode_rel.ld @@ -85,6 +85,7 @@ SECTIONS .rodata1 : { *(.rodata1) } .eh_frame_hdr : { *(.eh_frame_hdr) } : eh_frame : ro + .gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) } /* * Adjust the address for the data segment. We want to adjust up to @@ -198,7 +199,6 @@ SECTIONS KEEP (*(.eh_frame)) LONG(0) } - .gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) } _edata = .; PROVIDE (edata = .); __bss_start = .; .bss :