diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/DynamicFile.h')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/DynamicFile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/ELF/DynamicFile.h b/lld/lib/ReaderWriter/ELF/DynamicFile.h index 8a30d9fd31a..c4e3e7165ef 100644 --- a/lld/lib/ReaderWriter/ELF/DynamicFile.h +++ b/lld/lib/ReaderWriter/ELF/DynamicFile.h @@ -64,6 +64,11 @@ protected: if ((ec = name.getError())) return ec; + // Dont add local symbols to dynamic entries. The first symbol in the + // dynamic symbol table is a local symbol. + if (i->getBinding() == llvm::ELF::STB_LOCAL) + continue; + // TODO: Add absolute symbols if (i->st_shndx == llvm::ELF::SHN_ABS) continue; |

