The genode_dyn.ld script was creating a dynamic section of invalid size, which causes problems with patchelf.