commit | ed150dd0da9a50c49d7f77d82ddbf1f37ddb6f92 | [log] [tgz] |
---|---|---|
author | Fangrui Song <maskray@google.com> | Sat Feb 02 00:34:28 2019 +0000 |
committer | Fangrui Song <maskray@google.com> | Sat Feb 02 00:34:28 2019 +0000 |
tree | 7f262d3c51678b589ded7a2fa587c05bbce23c31 | |
parent | dbc4366c26c3ff28f66054be1ef081df870f5feb [diff] |
[ELF] Default to --no-allow-shlib-undefined for executables Summary: This follows the ld.bfd/gold behavior. The error check is useful as it captures a common type of ld.so undefined symbol errors as link-time errors: // a.cc => a.so (not linked with -z defs) void f(); // f is undefined void g() { f(); } // b.cc => executable with a DT_NEEDED entry on a.so void g(); int main() { g(); } // ld.so errors when g() is executed (lazy binding) or when the program is started (-z now) // symbol lookup error: ... undefined symbol: f Reviewers: ruiu, grimar, pcc, espindola Reviewed By: ruiu Subscribers: llvm-commits, emaste, arichardson Tags: #llvm Differential Revision: https://reviews.llvm.org/D57569 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@352943 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.