OSDN Git Service

Support reading GNU symbol versions in ELFObjectFile
authorDavid Meyer <pdox@google.com>
Fri, 9 Mar 2012 20:59:52 +0000 (20:59 +0000)
committerDavid Meyer <pdox@google.com>
Fri, 9 Mar 2012 20:59:52 +0000 (20:59 +0000)
commit2d70e263c2b508bf4641273dd89a23149f6f6164
tree73c16d556e0036179e38acac5d96621d8ddda23b
parent6f9489a86f33624f9ff5388411d12359ce9cef20
Support reading GNU symbol versions in ELFObjectFile

* Add enums and structures for GNU version information.
* Implement extraction of that information on a per-symbol basis (ELFObjectFile::getSymbolVersion).
* Implement a generic interface, GetELFSymbolVersion(), for getting the symbol version from the ObjectFile (hides the templating).
* Have llvm-readobj print out the version, when available.
* Add a test for the new feature: readobj-elf-versioning.test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152436 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
include/llvm/Support/ELF.h
test/Object/Inputs/elf-versioning-test.i386 [new file with mode: 0755]
test/Object/Inputs/elf-versioning-test.x86_64 [new file with mode: 0755]
test/Object/Inputs/elfver.S [new file with mode: 0644]
test/Object/Inputs/elfver.script [new file with mode: 0644]
test/Object/readobj-elf-versioning.test [new file with mode: 0644]
tools/llvm-readobj/llvm-readobj.cpp