Add support for reading ARM ELF build attributes.

Build attribute sections can now be read if they exist via ELFObjectFile, and
the llvm-readobj tool has been extended with an option to dump this information
if requested. Regression tests are also included which exercise these features.

Also update the docs with a fixed ARM ABI link and a new link to the Addenda
which provides the build attributes specification.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Amara Emerson
2013-05-03 11:36:35 +00:00
parent 820b3fd771
commit 5d446e61d9
11 changed files with 652 additions and 140 deletions

View File

@ -128,6 +128,10 @@ namespace opts {
// -expand-relocs
cl::opt<bool> ExpandRelocs("expand-relocs",
cl::desc("Expand each shown relocation to multiple lines"));
// -arm-buildattrs
cl::opt<bool> ArmBuildAttrs("arm-buildattrs",
cl::desc("Display ARM ELF build attributes"));
} // namespace opts
namespace llvm {
@ -221,6 +225,8 @@ static void dumpObject(const ObjectFile *Obj) {
Dumper->printNeededLibraries();
if (opts::ProgramHeaders)
Dumper->printProgramHeaders();
if (opts::ArmBuildAttrs)
Dumper->printARMBuildAttributes();
}