[PATCH] D28984: [LLD] Do not allocate space for common symbols with -r

Mark Kettenis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 22 15:13:36 PST 2017


kettenis updated this revision to Diff 85302.
kettenis added a comment.

New diff that return zero as the VA but sets st_value to the alignment for SHN_COMMON symbols.
Now also includes a test case.


https://reviews.llvm.org/D28984

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/ELF/Symbols.cpp
  lld/ELF/SyntheticSections.cpp
  lld/test/ELF/relocatable-common.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28984.85302.patch
Type: text/x-patch
Size: 5765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170122/8ad020b1/attachment.bin>


More information about the llvm-commits mailing list