NAME=ELF: no version info
FILE=bins/elf/analysis/x64-simple
CMDS=iV
EXPECT=<<EOF
EOF
RUN

NAME=ELF: versioninfo 1
FILE=bins/elf/analysis/serial
CMDS=iV
EXPECT=<<EOF
Version symbols section '.gnu.version' contains 11 entries:
 Addr: 0x00400442  Offset: 0x00000442  Link: 5 (.dynsym)
  0x00000000: 0 (*local*)
  0x00000001: 2 (GLIBC_2.2.5)
  0x00000006: 3 (GLIBC_2.4)
  0x00000007: 2 (GLIBC_2.2.5)
  0x0000000a: 0 (*local*)


Version need section '.gnu.version_r' contains 1 entries:
 Addr: 0x00400458  Offset: 0x00000458  Link to section: 6 (.dynstr)
  0x00000000: Version: 1  File: libc.so.6  Cnt: 2
  0x00000010:   Name: GLIBC_2.4  Flags: none Version: 3
  0x00000020:   Name: GLIBC_2.2.5  Flags: none Version: 2
EOF
RUN

NAME=ELF: versioninfo 2
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=iV
EXPECT=<<EOF
Version symbols section '.gnu.version' contains 4 entries:
 Addr: 0x0040031e  Offset: 0x0000031e  Link: 5 (.dynsym)
  0x00000000: 0 (*local*)
  0x00000001: 2 (GLIBC_2.2.5)
  0x00000003: 0 (*local*)


Version need section '.gnu.version_r' contains 1 entries:
 Addr: 0x00400328  Offset: 0x00000328  Link to section: 6 (.dynstr)
  0x00000000: Version: 1  File: libc.so.6  Cnt: 1
  0x00000010:   Name: GLIBC_2.2.5  Flags: none Version: 2
EOF
RUN
