base: add entry to .dynanmic section in genode_dyn.ld

Make sure that at least entry is present in the .dynamic section, so the
PT_DYNAMIC segment points to something valid in case there are no
dynamic symbols.

issue #3537
This commit is contained in:
Sebastian Sumpf 2019-11-01 13:39:07 +01:00 committed by Christian Helmuth
parent 2653fad0c4
commit 54643d6878
1 changed files with 11 additions and 1 deletions

View File

@ -213,7 +213,17 @@ SECTIONS
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
.dynamic : { *(.dynamic) } : rw : dynamic
.dynamic :
{
*(.dynamic)
/*
* Make sure to have a least one entry within the dynamic section, so the
* dynamic sgement point to something valid in case there are no dynamic
* symbols
*/
LONG(0x0);
} : rw : dynamic
/* merge .got.plt and .got into .got, since the ARM toolchain for OKL4
* set's * DT_PLTGOT to .got instead of .got.plt */