• Aram Hăvărneanu's avatar
    debug/plan9obj, cmd/addr2line: on Plan 9 use a.out header · 0a2083ed
    Aram Hăvărneanu authored
    size instead of abusing text symbol
    
    cmd/addr2line needs to know the virtual address of the start
    of the text segment (load address plus header size). For
    this, it used the text symbol added by the linker. This is
    wrong on amd64. Header size is 40 bytes, not 32 like on 386
    and arm. Function alignment is 16 bytes causing text to be
    at 0x200030.
    
    debug/plan9obj now exports both the load address and the
    header size; cmd/addr2line uses this new information and
    doesn't rely on text anymore.
    
    LGTM=0intro
    R=0intro, gobot, ality
    CC=ality, golang-codereviews, jas, mischief
    https://golang.org/cl/106460044
    0a2083ed
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...