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

Ed Maste via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 08:41:22 PST 2017


emaste added a comment.

FYI the FreeBSD fix for this is here: https://svnweb.freebsd.org/changeset/base/303442

  The linker script CONSTRUCTORS keyword is only meaningful "when linking
  object file formats which do not support arbitrary sections, such as
  ECOFF and XCOFF"[1] and is ignored for other object file formats.
  
  LLVM's lld does not yet accept (and ignore) CONSTRUCTORS, so just remove
  CONSTRUCTORS from the linker scripts as it has no effect.
  
  [1] https://sourceware.org/binutils/docs/ld/Output-Section-Keywords.html


https://reviews.llvm.org/D28951





More information about the llvm-commits mailing list