mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
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:
parent
2653fad0c4
commit
54643d6878
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user