-
Notifications
You must be signed in to change notification settings - Fork 0
/
linker_command.sh
executable file
·136 lines (135 loc) · 6.62 KB
/
linker_command.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#
#replace these directories with the location of your emsdk & wasm-ld
ld=~/Extras/emsdk/llvm/git/build_main_64/bin/lld
emsdk=~/Extras/emsdk/
$ld -flavor wasm --verbose \
-o ./target/wasm32-unknown-emscripten/debug/deps/Example.wasm \
./target/wasm32-unknown-emscripten/debug/deps/Example.1b0wam0nd5eghoka.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.1345az2d8659doz8.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.14bfvrxjeeh15fej.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.19k94o7lhgl1297l.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.1ih82a2xmocsg5s7.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.1yvfdo7glwerej40.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.20no9d8s3jjoi4lq.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.225m6ib0cby2vca9.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.24viei9l21ju1d85.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.2awxqach5s8r64ap.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.2l5xxx5nu5rs7dww.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.2npiz2auvlythxxw.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.338rzbw60q28qu7b.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.33zn87xfbf44uax7.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.340c1hi3uq7ii436.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.35agy5pteasu1h10.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.36h23tfg53lpq8iy.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.3baoo1u8k74f38pv.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.3nzk634v3vh8dgra.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.3uehty0w9jah2pdt.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.41tmkbwr4cnh7bsp.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.48zq1lvh6w73yd5q.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.4d1elak6fnv27ba8.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.4fsq6bahj6n643tn.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.4gqafuol9uj9ixwo.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.54itgq48no5al9g6.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.582y60ztx5ccl62h.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.5f2us6f22736qqqh.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.6hvp2a3pdwov2oj.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.6j7iwe9okjpuh8t.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.ad1jkk313gualh9.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.bgac1fov9p5lvzo.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.bwxyvqloaospgz0.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.edg9pvgkw7o8n3m.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.jrqwwsy0fnao1m1.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.khnh27ebl77fbgf.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.ndnrazh8m7f1maz.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.q2i47c9ui5rnbh3.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.v88uccha682tfaz.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.xqw92lczfsrwsfu.rcgu.o \
./target/wasm32-unknown-emscripten/debug/deps/Example.av2dm010c5mtyfk.rcgu.o \
-L./target/wasm32-unknown-emscripten/debug/deps \
-L./target/debug/deps \
-L$rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib \
./target/wasm32-unknown-emscripten/debug/deps/libstd-0a6baeff0b65a514.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libpanic_unwind-47f7ed2622f7e5ec.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libstd_detect-9e409bb632defe79.rlib \
./target/wasm32-unknown-emscripten/debug/deps/librustc_demangle-f5724bfe84e522e9.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libhashbrown-caa40b1889c39888.rlib \
./target/wasm32-unknown-emscripten/debug/deps/librustc_std_workspace_alloc-50e43ae754ea25b6.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libunwind-7cba088298a00114.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libcfg_if-3b4017bf502afa4c.rlib \
./target/wasm32-unknown-emscripten/debug/deps/liblibc-dd0b31ff443bd762.rlib \
./target/wasm32-unknown-emscripten/debug/deps/liballoc-e89b25fbf415ccfb.rlib \
./target/wasm32-unknown-emscripten/debug/deps/librustc_std_workspace_core-41836c5a5e3c86fd.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libcore-61a23ecc4c65a94f.rlib \
./target/wasm32-unknown-emscripten/debug/deps/libcompiler_builtins-13d20469cb2aaf55.rlib \
-lc-mt-debug \
src/gxx_personality_v0_stub.o \
--fatal-warnings \
-L$emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten \
$emsdk/emscripten/main/cache/sysroot/lib/wasm32-emscripten/crtbegin.o \
-lGL-mt \
-lal \
-lhtml5 \
-lstubs-debug \
-lc-mt-debug \
-lcompiler_rt-mt \
-lc++-mt \
-lc++abi-mt \
-ldlmalloc-mt \
-lc_rt-mt \
-lsockets-mt \
-mllvm \
-combiner-global-alias-analysis=false \
-mllvm \
-enable-emscripten-cxx-exceptions \
-mllvm \
-enable-emscripten-sjlj \
-mllvm \
-disable-lsr \
--import-undefined \
--import-memory \
--shared-memory \
--export-if-defined=main \
--export-if-defined=rust_eh_personality \
--export-if-defined=_emscripten_thread_init \
--export-if-defined=_emscripten_thread_exit \
--export-if-defined=emscripten_tls_init \
--export-if-defined=emscripten_current_thread_process_queued_calls \
--export-if-defined=pthread_self \
--export-if-defined=__start_em_asm \
--export-if-defined=__stop_em_asm \
--export-if-defined=fflush \
--export=emscripten_stack_get_end \
--export=emscripten_stack_get_free \
--export=emscripten_stack_init \
--export=stackSave \
--export=stackRestore \
--export=stackAlloc \
--export=__wasm_call_ctors \
--export=__errno_location \
--export=emscripten_dispatch_to_thread_ \
--export=_emscripten_main_thread_futex \
--export=_emscripten_thread_free_data \
--export=_emscripten_allow_main_runtime_queued_calls \
--export=emscripten_main_browser_thread_id \
--export=emscripten_main_thread_process_queued_calls \
--export=emscripten_run_in_main_runtime_thread_js \
--export=emscripten_stack_set_limits \
--export=emscripten_sync_run_in_main_thread_2 \
--export=emscripten_sync_run_in_main_thread_4 \
--export=memalign \
--export=emscripten_proxy_main \
--export=malloc \
--export=free \
--export=__cxa_is_pointer_type \
--export=__cxa_can_catch \
--export=setThrew \
--export=ntohs \
--export=htons \
--export=htonl \
--export-table \
-z \
stack-size=5242880 \
--initial-memory=16777216 \
--no-entry \
--max-memory=16777216 \
--global-base=1024 \