[PATCH] D47648: ELF: Don't query a shared symbol's alignment unless necessary.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 1 12:13:18 PDT 2018


pcc created this revision.
pcc added reviewers: ruiu, shenhan.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.

There are some cases where cannot infer a shared symbol's alignment.
But a shared symbol's alignment only matters when creating a copy
relocation. This change moves the alignment computation into the code
that creates copy relocations.


https://reviews.llvm.org/D47648

Files:
  lld/ELF/InputFiles.cpp
  lld/ELF/Relocations.cpp
  lld/ELF/SymbolTable.cpp
  lld/ELF/SymbolTable.h
  lld/ELF/Symbols.cpp
  lld/ELF/Symbols.h
  lld/test/ELF/shared-abs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47648.149525.patch
Type: text/x-patch
Size: 11301 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180601/1209c166/attachment.bin>


More information about the llvm-commits mailing list