[PATCH] D23552: [ELF] - Give automatically generated __start_* and __stop_* symbols default visibility.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 06:10:44 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, silvas, davide, grimar, evgeny777.
Herald added a subscriber: emaste.

This patch is opposite to D19024, which made this symbols to be hidden by default.

Unfortunately as was pointed by Sean Silva, 
looks that FreeBSD loader wants to see __start_set_modmetadata_set/__stop_set_modmetadata_set in the dynamic symbol table. 
They were not placed there because had hidden visibility.

Patch makes them to have default visibility again.


https://reviews.llvm.org/D23552

Files:
  ELF/LinkerScript.cpp
  ELF/SymbolTable.cpp
  ELF/SymbolTable.h
  ELF/Writer.cpp
  test/ELF/startstop-shared.s
  test/ELF/startstop.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23552.68164.patch
Type: text/x-patch
Size: 7228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160816/fd48aca8/attachment.bin>


More information about the llvm-commits mailing list