[PATCH] D29021: [ELF] - Stop handling local symbols in a special way.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 05:45:59 PST 2017


grimar created this revision.

Previously we stored kept locals in a KeptLocalSyms arrays,
belonged to files.

Patch makes SymbolTableSection to store locals in Symbols member,
that already present and was used for globals.
SymbolTableSection already had NumLocals counter member, so change
itself is trivial.

That allows to simplify handling of -r,
Body::DynsymIndex is no more used as "symbol table index" for relocatable
output.

Change was suggested during review of https://reviews.llvm.org/D28773 and opens road for https://reviews.llvm.org/D28612.


https://reviews.llvm.org/D29021

Files:
  ELF/InputFiles.h
  ELF/InputSection.cpp
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29021.85367.patch
Type: text/x-patch
Size: 7706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/fe926968/attachment.bin>


More information about the llvm-commits mailing list