#592125 ht: wrong display size for some of the Elf64_Shdr's member variables

Package:
ht
Source:
ht
Description:
Viewer/editor/analyser (mostly) for executables
Submitter:
Yasushi SHOJI
Date:
2010-08-07 17:27:04 UTC
Severity:
normal
#592125#5
Date:
2010-08-07 17:15:18 UTC
From:
To:
Hi,

hte's section header window (F6->elf/section headers) seems to have
wrong size for link, info, alignment, and entsize.

it displays

[-] section 1: .interp                           │
│  name string index    0000000b                │
│  type                 00000001 (progbits)     │
│  flags                0000000000000002 details│
│  address              0000000000400200        │
│  offset               0000000000000200        │
│  size                 000000000000001c        │
│  link                 0000000000000000        │
│  info                 0000000000000000        │
│  alignment            00000000                │
│  entsize              00000000                │

instead of

     :
│  link                 00000000                │
│  info                 00000000                │
│  alignment            0000000000000000        │
│  entsize              0000000000000000        │

as you can see elf64 bit spec[1], link and info is 32 bit width
(Elf64_Word), and alignment and entsize is 64 bit width
(Elf64_Xword). And HT editor have them right in its own section header
structure

taken from elfstruc.h:

so, I thought it might be just display widths, and edit
elfsectionheader64 in htelfshs.cc.  but it seems it gets wrong value.

hope someone have time to look at it.

[1]: http://downloads.openwatcom.org/ftp/devel/docs/elf-64-gen.pdf