File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,14 @@ impl<'a> Linker for GnuLinker<'a> {
253
253
let mut arg = OsString :: new ( ) ;
254
254
let path = tmpdir. join ( "list" ) ;
255
255
256
+ debug ! ( "EXPORTED SYMBOLS:" ) ;
257
+
256
258
if self . sess . target . target . options . is_like_osx {
257
259
// Write a plain, newline-separated list of symbols
258
260
let res = ( || -> io:: Result < ( ) > {
259
261
let mut f = BufWriter :: new ( File :: create ( & path) ?) ;
260
262
for sym in self . info . exports [ & crate_type] . iter ( ) {
263
+ debug ! ( " _{}" , sym) ;
261
264
writeln ! ( f, "_{}" , sym) ?;
262
265
}
263
266
Ok ( ( ) )
@@ -271,6 +274,7 @@ impl<'a> Linker for GnuLinker<'a> {
271
274
let mut f = BufWriter :: new ( File :: create ( & path) ?) ;
272
275
writeln ! ( f, "{{\n global:" ) ?;
273
276
for sym in self . info . exports [ & crate_type] . iter ( ) {
277
+ debug ! ( " {};" , sym) ;
274
278
writeln ! ( f, " {};" , sym) ?;
275
279
}
276
280
writeln ! ( f, "\n local:\n *;\n }};" ) ?;
You can’t perform that action at this time.
0 commit comments