llvm.org GIT mirror llvm / 9106d36
llvm-objdump/COFF: Print ordinal base number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199518 91177308-0d34-0410-b5e6-96231b3b80d8 Rui Ueyama 6 years ago
4 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
407407 error_code getNext(ExportDirectoryEntryRef &Result) const;
408408
409409 error_code getDllName(StringRef &Result) const;
410 error_code getOrdinalBase(uint32_t &Result) const;
410411 error_code getOrdinal(uint32_t &Result) const;
411412 error_code getExportRVA(uint32_t &Result) const;
412413 error_code getSymbolName(StringRef &Result) const;
958958 return object_error::success;
959959 }
960960
961 // Returns the starting ordinal number.
962 error_code ExportDirectoryEntryRef::getOrdinalBase(uint32_t &Result) const {
963 Result = ExportTable->OrdinalBase;
964 return object_error::success;
965 }
966
961967 // Returns the export ordinal of the current export symbol.
962968 error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const {
963969 Result = ExportTable->OrdinalBase + Index;
1111
1212 EXPORT: Export Table:
1313 EXPORT-NEXT: DLL name: export.test.tmp3.dll
14 EXPORT-NEXT: Ordinal base: 5
1415 EXPORT-NEXT: Ordinal RVA Name
1516 EXPORT-NEXT: 5 0x2008
1617 EXPORT-NEXT: 6 0x2010 exportfn2
285285 if (I == E)
286286 return;
287287 StringRef DllName;
288 uint32_t OrdinalBase;
288289 if (I->getDllName(DllName))
289290 return;
291 if (I->getOrdinalBase(OrdinalBase))
292 return;
290293 outs() << " DLL name: " << DllName << "\n";
294 outs() << " Ordinal base: " << OrdinalBase << "\n";
291295 outs() << " Ordinal RVA Name\n";
292296 error_code EC;
293297 for (; I != E; I = I.increment(EC)) {