racket / ChezScheme

Chez Scheme
Apache License 2.0
110 stars 8 forks source link

Can't load GNU ld script #37

Closed L-as closed 2 years ago

L-as commented 3 years ago

I have this libc.so:

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-littleaarch64)
GROUP ( /nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/libc.so.6 /nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/libc_nonshared.a  AS_NEEDED ( /nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/ld-linux-aarch64.so.1 ) )

When trying to load it, I get this:

> (load-shared-object "/nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/libc.so")
Exception: (while loading /nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/libc.so) /nix/store/081f9rv8l22zhsns0gdw6mgpd5fcdffh-glibc-2.32-37/lib/libc.so: invalid ELF header

Is this expected?

L-as commented 2 years ago

Since this I've found out that Chez Scheme has never supported this. I'll close this since it's not an important issue.