[PATCH] [ELF] Handle __init_array{start, end} correctly.

Shankar Kalpathi Easwaran shankarke at gmail.com
Tue Mar 10 19:51:53 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: lib/ReaderWriter/ELF/Atoms.h:873
@@ -847,1 +872,3 @@
+};
+
 class InitFiniAtom : public SimpleELFDefinedAtom {
----------------
It would be nice to add a class LinkerDefinedAtoms, that you can use for the purpose. It would simplify / remove extraneous code.

Another thing apart from visibility that lld doesnot currently do is the symbols get added for executables all the time, even there is no init_array section.

http://reviews.llvm.org/D8241

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






More information about the llvm-commits mailing list