https://sourceware.org/bugzilla/show_bug.cgi?id=29450

--- Comment #1 from Sergei Trofimovich <slyich at gmail dot com> ---
Created attachment 14257
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14257&action=edit
low_high_pc

Attaching the binary itself. It was a failing selftest:

$ LD_LIBRARY_PATH=$PWD/libdw:$PWD/libelf tests/low_high_pc -e tests/low_high_pc
[b] ../sysdeps/i386/start.S
[26] _start
[40] ../sysdeps/x86/abi-note.c
[b52] init.c
[b8e] static-reloc.c
[2dba] _dl_relocate_static_pie
[2dd8] ../sysdeps/i386/crti.S
[2def] _init
lowpc: 8049000, highpc: 8049000
../sysdeps/i386/crti.S: [2def] '_init' highpc <= lowpc

gdb somehow knows the size of the _init:

$ gdb /tmp/low_high_pc
Reading symbols from /tmp/low_high_pc...
(gdb) disassemble _init
Dump of assembler code for function _init:
   0x08049000 <+0>:     endbr32
   0x08049004 <+4>:     push   %ebx
   0x08049005 <+5>:     sub    $0x8,%esp
   0x08049008 <+8>:     call   0x8049400 <__x86.get_pc_thunk.bx>
   0x0804900d <+13>:    add    $0x2f93,%ebx
   0x08049013 <+19>:    mov    0x5c(%ebx),%eax
   0x08049019 <+25>:    test   %eax,%eax
   0x0804901b <+27>:    je     0x804901f <_init+31>
   0x0804901d <+29>:    call   *%eax
   0x0804901f <+31>:    add    $0x8,%esp
   0x08049022 <+34>:    pop    %ebx
   0x08049023 <+35>:    ret
End of assembler dump.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to