[PATCH] D28951: [ELF] - Linkerscripts: ignore CONSTRUCTORS in output section declaration.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 21 14:54:23 PST 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/LinkerScript.cpp:1453-1454
+    } else if (Tok == "CONSTRUCTORS") {
+      // The GNU linkers uses CONSTRUCTORS for the a.out object,
+      // it is ignored for ELF.
     } else if (Tok == "FILL") {
----------------
  // CONSTRUCTORS is a keyword to make the linker recognize C++ ctors/dtors
  // by name. This is for very old file formats such as ECOFF/XCOFF.
  // For ELF, we should ignore.


https://reviews.llvm.org/D28951





More information about the llvm-commits mailing list