Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static compilation isssue #15

Open
asdfhklrweq opened this issue Mar 29, 2017 · 1 comment
Open

Static compilation isssue #15

asdfhklrweq opened this issue Mar 29, 2017 · 1 comment

Comments

@asdfhklrweq
Copy link

The static compilation flag does not seem to work, or I don't understand the compilation options.

From the help menu:

-static	specify static libraries (default is dynamic)

For example, using the following basic code:

#include<stdio.h>
main(){ printf("Hello World"); }

Compiling as follows:

movcc -static test.c -o test

Testing dependencies:

ldd test
	linux-gate.so.1 =>  (0xf778d000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75a3000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7556000)
	/lib/ld-linux.so.2 (0x565a4000)
@GregoryMorse
Copy link

Perhaps try linking to the crt*.o files directly but since they seem to be stubs with a stack reserve, likely static linking is just something never addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants