mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
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:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user