Browse Source

localize_hidden: add doc for MacOSX

Alexandre Janniaux 5 years ago
parent
commit
cd83cbe861
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main.rs

+ 7 - 0
src/main.rs

@@ -66,6 +66,13 @@ fn link_partial(inputs: Vec<PathBuf>, output: &PathBuf)
 
 fn localize_hidden(input: &PathBuf)
 {
+    /* On MacOSX, check
+     * -[un|re]exported_symbols_list
+     * -[un]exported_symbol
+     * See
+     * https://developer.apple.com/library/archive/technotes/tn2185/_index.html#//apple_ref/doc/uid/DTS10004200-CH1-SUBSECTION5
+     * */
+
     Command::new("objcopy")
         .arg("--localize-hidden")
         .arg("--strip-unneeded")