Created
December 1, 2021 13:28
-
-
Save paranlee/dc8ded2a1f37400b5987755f161f826d to your computer and use it in GitHub Desktop.
Build a static executable this way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build a static executable this way : | |
| $ gcc -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ | |
| -static -include nolibc.h -lgcc -o hello hello.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment