Hi AllI'm trying to come up with some incantation to get a nexe that I can run but I'm failing, any help would be greatly appreciated.I'm just trying to compile the hello_world.c example on my own and with just the nacl_sdk (I've compiled it successfully after checking out native_client, with the built-in scons builder).Here's what I'm doing:Compiling with: ../thirdparty/nacl_sdk/pepper_44/toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc hello_world/hello_world.c -I../thirdparty/nacl_sdk/pepper_44/include -L../thirdparty/nacl_sdk/pepper_44/lib/glibc_x86_64/Release -o hello_world_x86_64.nexe -m64Running with: ../thirdparty/nacl_sdk/pepper_44/tools/sel_ldr_x86_64 -B ../thirdparty/nacl_sdk/pepper_44/tools/irt_core_x86_64.nexe -- ./hello_world_x86_64.nexe
Compiling works, but when I try to run I get:ELF executable text/rodata segment has wrong starting addressUsing the wrong type of nexe (nacl-x86-32 on an x86-64 or vice versa)or a corrupt nexe file may be responsible for this error.[30493,1430243136:18:32:27.715993] NaClAppStartModule: error loading moduleThe sel_ldr command works with the nexe that I got from native_client but not with the nexe I've compiled.Also I've tried linking it statically to no avail.I'm running linux x64.ThanksDavid
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/native-client-discuss/Q3xZ5qF9JCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to native-client-di...@googlegroups.com.
Ah, interesting. Good to know, thanks.Using a version of the command you suggest I got my nexe dynamically linked against glibc to run.New question:That "-a" argument is worrying as it makes the loader allow some syscalls it wouldn't (and shouldn't) otherwise right? (e.g. I get "BYPASSING ALL ACL CHECKS" in the output).This is, of course worrysome, but if I don't pass the "-a" argument I get "Permission denied"What's causing this?
Hum. I did know that open() was restricted and would actually like it for actual sandboxed programs, but being unable to run without opening the permissions is concerning.Is this connected with dynamic linking? I.e does this happen becuase glibc is dynamically linked at runtime.
What would be the way to avoid having to pass -a? static linking against newlib?
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-discuss+unsub...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/native-client-discuss/Q3xZ5qF9JCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to native-client-discuss+unsub...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-discuss+unsub...@googlegroups.com.