Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRustc produces shared objects rather than executables #19688
Comments
thestinger
added
the
B-notabug
label
Dec 10, 2014
This comment has been minimized.
This comment has been minimized.
|
Your file manager is buggy and doesn't know how to run executables with ASLR support. It's using the output of Rust defaults to producing position independent executables to enable ASLR. This can be enabled with |
thestinger
closed this
Dec 10, 2014
thestinger
added
the
A-linkage
label
Dec 10, 2014
This comment has been minimized.
This comment has been minimized.
|
Here's the |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the link. Hopefully this issue will be resolved soon. |
mitchelldm commentedDec 10, 2014
Running
fileon Rust executables produces this output:Executables produced by other compilers, such as Clang and GCC, have a different result:
The result of this difference is that while executing Rust programs from the command line works fine, opening them through GUI file managers produces this error, which is the same as when you try to open shared libraries (.so):

This issue is present in all Rust executables I have encountered, including those obtained from rustup.sh.