Skip Menu |

This queue is for tickets about the Binutils-Objdump CPAN distribution.

Report information
The Basics
Id: 66280
Status: resolved
Priority: 0/
Queue: Binutils-Objdump

People
Owner: Nobody in particular
Requestors: bob [...] fourtheye.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.1.1
Fixed in: 0.1.1



Subject: Documentation unclear regarding usage
I ran the enclosed file on (firstly a PE file) and latterly /usr/bin/gawk and saw .... bob@doc:~$ perl binutils_objdump.pl /usr/bin/gawk objdump_symtab is objdumpopt is --disassemble --all-headers --full-contents --line-numbers --file-headers --disassembler-options=intel /usr/bin/gawk objdump_dynamic_reloc_info is objdump_symtab is objdump_section_headers is objdump_dynamic_symtab is objdump_sec_contents is objdump_sec_disasm is bob@doc:~$ which seems less than useful. I see some output when invoking the method but no more than shelling out to objdump. The program odasm provides no output bob@doc:~$ odasm /usr/bin/gawk bob@doc:~$
Subject: binutils_objdump.pl
#!/usr/bin/perl -w use strict; use ExtUtils::Command::MM; use Binutils::Objdump qw(:ALL); # Standard using of objdump. Print the whole information. objdumpopt('--disassemble --all-headers --full-contents --line-numbers --file-headers --disassembler-options=intel', @ARGV); print "objdump_symtab is ",objdump_symtab(),"\n"; print "objdumpopt is ",objdumpopt(),"\n"; #print "objdumppath is ",objdumppath(),"\n"; print "objdump_dynamic_reloc_info is ",objdump_dynamic_reloc_info(),"\n"; print "objdump_symtab is ",objdump_symtab(),"\n"; print "objdump_section_headers is ",objdump_section_headers(),"\n"; print "objdump_dynamic_symtab is ",objdump_dynamic_symtab(),"\n"; print "objdump_sec_contents is ",objdump_sec_contents(),"\n"; print "objdump_sec_disasm is ",objdump_sec_disasm("CODE"),"\n"; ## Now for the block 'SYMBOL TABLE', will be called ## mysymtab subroutine, which will get all lines for this block. #sub mysymtab { # print "SymTab:\n"; # print join "\n", @_; #} #print "objdumpwrap is ",objdumpwrap("SYMBOL TABLE" => \&mysymtab),"\n"; #objdumpwrap("SYMBOL TABLE" => \&mysymtab); #objdump(); #print "objdump is ",objdump(),"\n";
Fixed. See version 0.1.2.