summaryrefslogtreecommitdiff
path: root/tools/gold/gold-plugin.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-04-24 16:55:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-04-24 16:55:21 +0000
commit7431af050f287011fd52e64034ede6dd98193feb (patch)
treea6bc5dbc0d059f99cbfbfef6c94ecf0f4ad00ad7 /tools/gold/gold-plugin.cpp
parent16ffa807fc93eee79f1775cffe94cef174755455 (diff)
downloadllvm-7431af050f287011fd52e64034ede6dd98193feb.tar.gz
llvm-7431af050f287011fd52e64034ede6dd98193feb.tar.bz2
llvm-7431af050f287011fd52e64034ede6dd98193feb.tar.xz
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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp
index 9ad045061f..260e175282 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;