mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-14 15:25:25 +00:00
[llvm-readobj] Print .MIPS.abiflags section content
This change adds new flag -mips-abi-flags to the llvm-readobj. This flag forces printing of .MIPS.abiflags section content. https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking#10.2.1._.MIPS.abiflags git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -148,6 +148,10 @@ namespace opts {
|
||||
MipsPLTGOT("mips-plt-got",
|
||||
cl::desc("Display the MIPS GOT and PLT GOT sections"));
|
||||
|
||||
// -mips-abi-flags
|
||||
cl::opt<bool> MipsABIFlags("mips-abi-flags",
|
||||
cl::desc("Display the MIPS.abiflags section"));
|
||||
|
||||
// -coff-imports
|
||||
cl::opt<bool>
|
||||
COFFImports("coff-imports", cl::desc("Display the PE/COFF import table"));
|
||||
@@ -287,9 +291,12 @@ static void dumpObject(const ObjectFile *Obj) {
|
||||
if (Obj->getArch() == llvm::Triple::arm && Obj->isELF())
|
||||
if (opts::ARMAttributes)
|
||||
Dumper->printAttributes();
|
||||
if (isMipsArch(Obj->getArch()) && Obj->isELF())
|
||||
if (isMipsArch(Obj->getArch()) && Obj->isELF()) {
|
||||
if (opts::MipsPLTGOT)
|
||||
Dumper->printMipsPLTGOT();
|
||||
if (opts::MipsABIFlags)
|
||||
Dumper->printMipsABIFlags();
|
||||
}
|
||||
if (opts::COFFImports)
|
||||
Dumper->printCOFFImports();
|
||||
if (opts::COFFExports)
|
||||
|
Reference in New Issue
Block a user