Index: src/IceELFObjectWriter.cpp |
diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp |
index 230848c4f2c0a0c3de441e33a102c886f5af78fa..073163a4023ec5513d494d858f856aacb19a4db2 100644 |
--- a/src/IceELFObjectWriter.cpp |
+++ b/src/IceELFObjectWriter.cpp |
@@ -84,10 +84,7 @@ ELFObjectWriter::ELFObjectWriter(GlobalContext &Ctx, ELFStreamer &Out) |
"Elf_Sym sizes cannot be derived from sizeof"); |
SymTab = createSection<ELFSymbolTableSection>(SymTabName, SHT_SYMTAB, 0, |
SymTabAlign, SymTabEntSize); |
- // The first entry in the symbol table should be a NULL entry. |
- const IceString NullSymName(""); |
- SymTab->createDefinedSym(NullSymName, STT_NOTYPE, STB_LOCAL, NullSection, 0, |
- 0); |
+ SymTab->createNullSymbol(NullSection); |
const IceString StrTabName(".strtab"); |
StrTab = |