We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139d29c commit 0036198Copy full SHA for 0036198
pl_linker/src/linker.rs
@@ -121,11 +121,24 @@ impl Linker for LdLinker {
121
});
122
// libs and link args
123
[
124
+ "-pie",
125
+ "-zrelro",
126
+ "--hash-style=gnu",
127
+ "--build-id",
128
+ "--eh-frame-hdr",
129
+ "-melf_x86_64",
130
"-dynamic-linker=/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2",
- "/lib/x86_64-linux-gnu/crt1.o",
131
+ "/lib/x86_64-linux-gnu/Scrt1.o",
132
+ "/lib/x86_64-linux-gnu/crti.o",
133
+ // "/usr/lib/gcc/x86_64-linux-gnu/<version>/crtbeginS.o",
134
"-lc",
135
"-lpthread",
136
"-lgcc_s",
137
+ "-lgcc",
138
+ "--no-as-needed",
139
+ "-ldl",
140
+ // "/usr/lib/gcc/x86_64-linux-gnu/<version>/crtendS.o",
141
+ "/lib/x86_64-linux-gnu/crtn.o",
142
]
143
.iter()
144
.for_each(|arg| {
0 commit comments