diff options
| author | Fangrui Song <maskray@google.com> | 2019-02-02 00:34:28 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-02-02 00:34:28 +0000 |
| commit | ae0294375f3c405aab99f7c75acb0001ecfb2297 (patch) | |
| tree | c4a3bf1284654fe66bbdc10a52222a61c29cb418 /llvm/lib/TableGen/JSONBackend.cpp | |
| parent | 1bccafe4f6f2b8e6496641e55cccb2dab2da58e2 (diff) | |
| download | bcm5719-llvm-ae0294375f3c405aab99f7c75acb0001ecfb2297.tar.gz bcm5719-llvm-ae0294375f3c405aab99f7c75acb0001ecfb2297.zip | |
[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
llvm-svn: 352943
Diffstat (limited to 'llvm/lib/TableGen/JSONBackend.cpp')
0 files changed, 0 insertions, 0 deletions

