summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Config.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-06-22 17:30:19 +0000
committerRui Ueyama <ruiu@google.com>2017-06-22 17:30:19 +0000
commit4402a39981063992cd8f4ca81e240a6fe7cdf4fd (patch)
treef03e508fe8780d1ebd1f2beb89f24a5cdd6ebebc /lld/ELF/Config.h
parent8a261c2565b377bd00dee3ac2fe1fa075cb910e4 (diff)
downloadbcm5719-llvm-4402a39981063992cd8f4ca81e240a6fe7cdf4fd.tar.gz
bcm5719-llvm-4402a39981063992cd8f4ca81e240a6fe7cdf4fd.zip
Keep the original symbol name when renamed.
Previously, when symbol A is renamed B, both A and B end up having the same name. This is because name is a symbol's attribute, and we memcpy symbols for symbol renaming. This pathc saves the original symbol name and restore it after memcpy to keep the original name. This patch shouldn't change program's meaning, but names in symbol tables make more sense than before. llvm-svn: 306036
Diffstat (limited to 'lld/ELF/Config.h')
-rw-r--r--lld/ELF/Config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index 9c73b4c9c06..32e86b0ec7b 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -70,7 +70,7 @@ struct VersionDefinition {
// Structure for mapping renamed symbols
struct RenamedSymbol {
Symbol *Target;
- uint8_t OrigBinding;
+ uint8_t OriginalBinding;
};
// This struct contains the global configuration for the linker.
OpenPOWER on IntegriCloud