Package: ht
Version: 2.0.18-1
Severity: normal

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:
> struct ELF_SECTION_HEADER64 {
>         elf64_half sh_name;
>         elf64_half sh_type;
>         elf64_word sh_flags;
>         elf64_addr sh_addr;
>         elf64_off sh_offset;
>         elf64_word sh_size;
>         elf64_half sh_link;
>         elf64_half sh_info;
>         elf64_word sh_addralign;
>         elf64_word sh_entsize;
> };

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

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ht depends on:
ii  dpkg                      1.15.8.3       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libgcc1                   1:4.4.4-8      GCC support library
ii  liblzo2-2                 2.03-2         data compression library
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libstdc++6                4.4.4-8        The GNU Standard C++ Library v3
ii  libx11-6                  2:1.3.3-3      X11 client-side library

ht recommends no packages.

ht suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to