'Get headers information from debugged ELF file
Usage:
MYNAME [header_name]'

def elfheader(self, *arg):

    (name,) = normalize_argv(arg, 1)
    result = peda.elfheader(name)
    if (len(result) == 0):
        warning_msg(('%s    not    found,    did    you    specify    the    FILE    to    debug?' % (name if name else 'headers')))
    elif (len(result) == 1):
        (k, (start, end, type)) = list(result.items())[0]
        msg(('%s:    0x%x    -    0x%x    (%s)' % (k, start, end, type)))
    else:
        for (k, (start, end, type)) in sorted(result.items(), key=(lambda x: x[1])):
            msg(('%s    =    0x%x' % (k, start)))
    return
