diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-09-06 00:57:53 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-09-06 00:57:53 +0000 |
| commit | dc8b7a96bdccc73c5f4ca1baef45afba6d405908 (patch) | |
| tree | 9becdcc93b28ec5e5db6d1e31bc8abd6531eafe0 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
| parent | bad2c4a000ae189736bbdd80df71aa0776b7c66f (diff) | |
| download | llvm-dc8b7a96bdccc73c5f4ca1baef45afba6d405908.zip llvm-dc8b7a96bdccc73c5f4ca1baef45afba6d405908.tar.gz llvm-dc8b7a96bdccc73c5f4ca1baef45afba6d405908.tar.bz2 | |
Use the section name if a STT_SECTION symbol has empty name.
Without this we would have multiple relocations pointing to symbols
with the same name: the empty string. There was no way for yaml2obj to
be able to handle that.
A more general solution would be to unique symbol names in a similar
way to how we unique section names. In practice I think this covers
all common cases and is a bit more user friendly than using names like
sym1, sym2, sym3, etc.
llvm-svn: 312603
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions
