[PATCH] D46103: Replace SharedSymbols with Defined when creating copy relocations

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 25 22:19:36 PDT 2018


espindola created this revision.
espindola added reviewers: ruiu, grimar.
Herald added subscribers: arichardson, emaste.

This is slightly easier to read IMHO.

The main motivation is that with this a SharedSymbol doen't need a section, which reduces the size of SymbolUnion.

Unfortunately this does required that a VerdefIndex be added to Defined. That increases the memory use of local symbols and offsets the advantage. I am trying to find a solution.


https://reviews.llvm.org/D46103

Files:
  ELF/LinkerScript.cpp
  ELF/MapFile.cpp
  ELF/Relocations.cpp
  ELF/Symbols.cpp
  ELF/Symbols.h
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  ELF/Writer.cpp
  test/ELF/got32-i386-pie-rw.s
  test/ELF/map-file.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46103.144059.patch
Type: text/x-patch
Size: 16913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180426/3380238a/attachment.bin>


More information about the llvm-commits mailing list