[PATCH] [ELF] Export strong defined symbol if it coalesces away a weak symbol defined in a shared library

Simon Atanasyan simon at atanasyan.com
Fri Sep 5 15:02:17 PDT 2014


This patch implements more trivial approach to fix the bug. It does not create new references to mark symbols need to be exported. Instead of that the patch saves names of the strong defined symbols which coalesce away weak symbols and refers to this name set when build dynamic export table.

http://reviews.llvm.org/D5164

Files:
  include/lld/Core/LinkingContext.h
  include/lld/Core/SymbolTable.h
  include/lld/ReaderWriter/ELFLinkingContext.h
  lib/Core/SymbolTable.cpp
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
  lib/ReaderWriter/ELF/OutputELFWriter.h
  test/elf/X86_64/dynsym-weak.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5164.13348.patch
Type: text/x-patch
Size: 9134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140905/9b4993c4/attachment.bin>


More information about the llvm-commits mailing list