HomePhabricator

[ELF] - Implement -z nodefaultlib

Authored by grimar on Nov 27 2018, 1:48 AM.

Description

[ELF] - Implement -z nodefaultlib

This is https://bugs.llvm.org//show_bug.cgi?id=38978

Spec says that:
"Objects may be built with the -z nodefaultlib option to
suppress any search of the default locations at runtime.
Use of this option implies that all the dependencies of an
object can be located using its runpaths.
Without this option, which is the most common case, no
matter how you augment the runtime linker's library
search path, its last element is always /usr/lib for 32-bit
objects and /usr/lib/64 for 64-bit objects."

The patch implements this option.

Differential revision: https://reviews.llvm.org/D54577

llvm-svn: 347647

Details

Committed
grimarNov 27 2018, 1:48 AM
Differential Revision
D54577: [ELF] - Implement -z nodefaultlib
Parents
rGfec4f351d5ae: [CMake] Add a missing case of TO_CMAKE_PATH
Branches
Unknown
Tags
Unknown