File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 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> {
253253 let mut arg = OsString :: new ( ) ;
254254 let path = tmpdir. join ( "list" ) ;
255255
256+ debug ! ( "EXPORTED SYMBOLS:" ) ;
257+
256258 if self . sess . target . target . options . is_like_osx {
257259 // Write a plain, newline-separated list of symbols
258260 let res = ( || -> io:: Result < ( ) > {
259261 let mut f = BufWriter :: new ( File :: create ( & path) ?) ;
260262 for sym in self . info . exports [ & crate_type] . iter ( ) {
263+ debug ! ( " _{}" , sym) ;
261264 writeln ! ( f, "_{}" , sym) ?;
262265 }
263266 Ok ( ( ) )
@@ -271,6 +274,7 @@ impl<'a> Linker for GnuLinker<'a> {
271274 let mut f = BufWriter :: new ( File :: create ( & path) ?) ;
272275 writeln ! ( f, "{{\n global:" ) ?;
273276 for sym in self . info . exports [ & crate_type] . iter ( ) {
277+ debug ! ( " {};" , sym) ;
274278 writeln ! ( f, " {};" , sym) ?;
275279 }
276280 writeln ! ( f, "\n local:\n *;\n }};" ) ?;
You can’t perform that action at this time.
0 commit comments