link error when trying to run XS JavaScript engine

Christian Helmuth christian.helmuth at genode-labs.com
Mon Aug 9 14:58:28 CEST 2021


Hello Dan,

On Thu, Aug 05, 2021 at 04:20:26 CEST, Dan Connolly wrote:
> In my most recent episode, I can get goa build to work, but when I try
> goa run, I get:
> 
> [init -> genode-js-xs] Error: LD: ELF without DYNAMIC segment appears
> to be statically linked (ld="no")
> 
> `file hello` says:
> 
> ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically
> linked, interpreter ld.lib.so, with debug_info, not stripped
> 
> I put the full link command in https://github.com/dckc/genode-js-xs/pull/12

I had a look at your command line and it duplicates some arguments
(see below) which may be the cause of this error.

  /usr/local/genode/tool/current/bin/genode-x86-gcc
  [...]
  -Wl,-melf_x86_64
  -Wl,-gc-sections
  -Wl,-z
  -Wl,max-page-size=0x1000
  -Wl,-Ttext=0x01000000
  -Wl,--dynamic-linker=ld.lib.so
  -Wl,--dynamic-list=/home/connolly/projects/goa/share/goa/ld/genode_dyn.dl
  -Wl,--eh-frame-hdr
  -Wl,-rpath-link=.
  -Wl,-T
  -Wl,/home/connolly/projects/goa/share/goa/ld/genode_dyn.ld
  [...]
  -Wl,-melf_x86_64
  -Wl,-gc-sections
  -Wl,-z
  -Wl,max-page-size=0x1000
  -Wl,-Ttext=0x01000000
  -Wl,--dynamic-linker=ld.lib.so
  -Wl,--dynamic-list=/home/connolly/projects/goa/share/goa/ld/genode_dyn.dl
  -Wl,--eh-frame-hdr
  -Wl,-rpath-link=.
  -Wl,-T
  -Wl,/home/connolly/projects/goa/share/goa/ld/genode_dyn.ld
  [...]

Please retry without the duplicate and report back.

Greets
-- 
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · https://www.genodians.org/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth



More information about the users mailing list