[PATCH] [ELF] Add --{,no-}as-needed.

Shankar Kalpathi Easwaran shankarke at gmail.com
Thu Jan 15 15:50:05 PST 2015


================
Comment at: lib/ReaderWriter/ELF/OutputELFWriter.h:211
@@ -192,1 +210,3 @@
+      _soNeeded.insert(soname);
+  }
   // Never mark the dynamic linker as DT_NEEDED
----------------
It looks like all the needed entries will not be in link order. The loop(just above your change) goes over the list of files that are really needed and add its to the needed list.

http://reviews.llvm.org/D7009

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list