[PATCH] D15700: Split Undefined and UndefinedElf

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 13:20:50 PST 2015


rafael created this revision.
rafael added reviewers: rui314, grimar.
rafael added a subscriber: llvm-commits.

I am working on adding LTO support to the new ELF lld.

In order to do that, it will be necessary to represent defined and undefined symbols that are not from ELF files. One way to do it is to change the symbol hierarchy to look like

Defined : SymbolBody
Undefined : SymbolBody

DefinedElf<ELFT> : Defined
UndefinedElf<ELFT> : Undefined

Another option would be to use bogus Elf_Sym, but I think that is getting a bit too hackish.

The attached patch does the Undefined/UndefinedElf. Split. The next one will do the Defined/DefinedElf split.


http://reviews.llvm.org/D15700

Files:
  ELF/InputFiles.cpp
  ELF/OutputSections.cpp
  ELF/OutputSections.h
  ELF/SymbolTable.cpp
  ELF/SymbolTable.h
  ELF/Symbols.cpp
  ELF/Symbols.h
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15700.43396.patch
Type: text/x-patch
Size: 12419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151221/05c4b74a/attachment.bin>


More information about the llvm-commits mailing list