diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-06-06 08:04:53 +0000 | 
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-06-06 08:04:53 +0000 | 
| commit | 8b3c5f2b30517246f6288f7047b9ace95c327dc1 (patch) | |
| tree | b9a9da4651edbe969b701eaec1e01e217a14a90c /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
| parent | f51cc07719f3004979d64767f79268080feb052f (diff) | |
| download | llvm-8b3c5f2b30517246f6288f7047b9ace95c327dc1.zip llvm-8b3c5f2b30517246f6288f7047b9ace95c327dc1.tar.gz llvm-8b3c5f2b30517246f6288f7047b9ace95c327dc1.tar.bz2 | |
[ELF] - Assign sh_link field of SHT_GNU_versym section to DynSymTab section index.
.gnu.version should have sh_link field initialized with index of DynSymTab section.
GNU documentation looks misses that, but Sun docs mention it, according to
https://docs.oracle.com/cd/E19120-01/open.solaris/819-0690/chapter6-54676/index.html 
versym sh_link is indeed supposed to point to the .dynsym section.
Binutils readelf tool also relies on that:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=binutils/readelf.c;h=b6454d353279dc57745cd5a2d68b5f3f69f8e17c;hb=5522f910cb539905d6adfdceab208ddfa5e84557#l9988
Both gold/bfd do the same + after this patch I am able to see this section in readelf output, was unable before in my case.
Differential revision: http://reviews.llvm.org/D20956
llvm-svn: 271874
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions
