• Keith Randall's avatar
    cmd/objdump: implement objdump of .o files · a99f812c
    Keith Randall authored
    Update goobj reader so it can provide all the information
    necessary to disassemble .o (and .a) files.
    
    Grab architecture of .o files from header.
    
    .o files have relocations in them.  This CL also contains a simple
    mechanism to disassemble relocations and add relocation info as an extra
    column in the output.
    
    Fixes #13862
    
    Change-Id: I608fd253ff1522ea47f18be650b38d528dae9054
    Reviewed-on: https://go-review.googlesource.com/24818Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    a99f812c
goobj.go 4.3 KB