Provide support for Binutils' --no-dynamic-linker option.
GNU ld seems to write a PT_INTERP header into executables containing a default (read: bogus) value if --dynamic-linker flag is not provided. LLD is different in the sense that it omits it unless --dynamic-linker is provided, which seems fair. Binutils 2.26 added a new flag, --no-dynamic-linker, that can be used to generate binaries without PT_INTERP. Let's go ahead and also add this flag to LLD, so that we can invoke the linker in a portable way. Reviewed by: ruiu Differential Revision: http://reviews.llvm.org/D18723 llvm-svn: 265246
Loading
Please sign in to comment