diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-24 16:55:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-24 16:55:21 +0000 |
commit | 7431af050f287011fd52e64034ede6dd98193feb (patch) | |
tree | a6bc5dbc0d059f99cbfbfef6c94ecf0f4ad00ad7 /tools/gold/gold-plugin.cpp | |
parent | 16ffa807fc93eee79f1775cffe94cef174755455 (diff) | |
download | external_llvm-7431af050f287011fd52e64034ede6dd98193feb.zip external_llvm-7431af050f287011fd52e64034ede6dd98193feb.tar.gz external_llvm-7431af050f287011fd52e64034ede6dd98193feb.tar.bz2 |
Add LTO_SYMBOL_DEFINITION_WEAKUNDEF, use that on the gold plugin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold/gold-plugin.cpp')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 9ad0450..260e175 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -257,6 +257,9 @@ ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, case LTO_SYMBOL_DEFINITION_WEAK: sym.def = LDPK_WEAKDEF; break; + case LTO_SYMBOL_DEFINITION_WEAKUNDEF: + sym.def = LDPK_WEAKUNDEF; + break; default: (*message)(LDPL_ERROR, "Unknown definition attribute: %d", definition); return LDPS_ERR; |