XS is a JavaScript engine designed for microcontrollers. I have been working on getting it running under genode in fits and starts. https://github.com/dckc/genode-js-xs
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
Any clues on how to diagnose / fix? What does (ld="no") mean?
Hello,
On 05.08.21 04:20, Dan Connolly wrote:
XS is a JavaScript engine designed for microcontrollers. I have been working on getting it running under genode in fits and starts. https://github.com/dckc/genode-js-xs
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
Any clues on how to diagnose / fix? What does (ld="no") mean?
Does readelf -l hello shows a DYNAMIC program header ?
In case your file is statically linked, you need the ld="no" option, e.g. <start name="hello" ld="no"> ... </start>
Cheers,
Alex.
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
On Mon, Aug 9, 2021 at 7:59 AM Christian Helmuth christian.helmuth@genode-labs.com wrote:
I had a look at your command line and it duplicates some arguments (see below) which may be the cause of this error. ... Please retry without the duplicate and report back.
It works!
Thank you very much.