File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ If you're doing your development work on Linux or BSD then you need just
23
23
five files to get started. Here's what you do on Linux:
24
24
25
25
``` sh
26
- wget https://justine.lol/cosmopolitan/cosmopolitan.zip
27
- unzip cosmopolitan.zip
26
+ wget https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-2.0 .zip
27
+ unzip cosmopolitan-amalgamation-2.0 .zip
28
28
printf ' main() { printf("hello world\\n"); }\n' > hello.c
29
29
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
30
30
-fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs \
31
- -o hello.com.dbg hello.c -fuse-ld=bfd -Wl,-T,ape.lds \
31
+ -o hello.com.dbg hello.c -fuse-ld=bfd -Wl,-T,ape.lds -Wl,--gc-sections \
32
32
-include cosmopolitan.h crt.o ape-no-modify-self.o cosmopolitan.a
33
33
objcopy -S -O binary hello.com.dbg hello.com
34
34
```
You can’t perform that action at this time.
0 commit comments