Hello Pirmin,

On 2/1/23 08:49, Duss Pirmin wrote:
On 31.01.23 19:39, Sebastian Sumpf wrote:
These are some very old issues (2011). Could you let me know how to reproduce this?

The Goa project can be found as follows:
  - repository: [email protected]:trimpim/wasmedge-genode.git
  - branch:     llvm-arm_v8a_failure

For Goa to build libraries the following version is required:
  - repository: [email protected]:/gapfruit-community/goa.git
  - branch:     library_support

This, I could not find and used the one from GitHub.

In the llvm directory execute the following commands:
```
goa build-dir
goa build
```

In theory `goa build` should suffice, but for some reason this fails with some compiler errors. As it works by issuing the commands separate, I did not investigate further.

The attached patch [1] resolves the linking error for me, somehow the .got ended up first in the DYNAMIC segment. Can you please check if it works for you? However, I see a lot of undefined references to cxx.lib.a and pthread stuff afterwards. Looks like "-Lllvm/var/abi/arm_v8a" is missing in the linking command of libc++.lib.so. Additionally, "-lgcc" seems a little dangerous.

Regards,

Sebastian

[1] dynamic.patch

Regards,
Pirmin

_______________________________________________
Genode users mailing list
[email protected]
https://lists.genode.org/listinfo/users

--
Sebastian Sumpf
Genode Labs

http://www.genode-labs.com · http://genode.org

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



diff --git a/share/goa/ld/genode_rel.ld b/share/goa/ld/genode_rel.ld
index 9b5add9..01b57ad 100644
--- a/share/goa/ld/genode_rel.ld
+++ b/share/goa/ld/genode_rel.ld
@@ -191,7 +191,7 @@ SECTIONS
   .data1          : { *(.data1) }
   .dynamic        : { *(.dynamic) } : dynamic : rw
   /* See: genode_dyn.ld */
-  .got            : { *(.got.plt) *(.got) }
+  .got            : { *(.got.plt) *(.got) } : rw
   /* Exception handling  */
   .eh_frame :
   {
_______________________________________________
Genode users mailing list
[email protected]
https://lists.genode.org/listinfo/users

Reply via email to