bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28530] Hang in objdump


From: hjl.tools at gmail dot com
Subject: [Bug binutils/28530] Hang in objdump
Date: Wed, 03 Nov 2021 12:20:00 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Works for me on master branch:

[hjl@gnu-cfl-2 pr28530]$ ./objdump -D x.obj 

Can't get contents for section '.debug_info'.

x.obj:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <foo2>:
   0:   f3 c3                   repz ret 
   2:   66 66 2e 0f 1f 84 00    data16 cs nopw 0x0(%rax,%rax,1)
   9:   00 00 00 00 
   d:   0f 1f 00                nopl   (%rax)

0000000000000010 <foo1>:
  10:   e9 00 00 00 00          jmp    15 <foo1+0x5>

Disassembly of section .debug_abbrev:

0000000000000000 <.debug_abbrev>:
   0:   00 01                   add    %al,(%rcx)
   2:   11 01                   adc    %eax,(%rcx)
   4:   25 0e 13 0b 03          and    $0x30b130e,%eax
   9:   0e                      (bad)  
   a:   1b 0e                   sbb    (%rsi),%ecx
   c:   11 01                   adc    %eax,(%rcx)
   e:   12 01                   adc    (%rcx),%al
  10:   10 06                   adc    %al,(%rsi)
  12:   00 00                   add    %al,(%rax)
  14:   02 2e                   add    (%rsi),%ch
  16:   00 3f                   add    %bh,(%rdi)
  18:   0c 03                   or     $0x3,%al
  1a:   0e                      (bad)  
  1b:   3a 0b                   cmp    (%rbx),%cl
  1d:   3b 0b                   cmp    (%rbx),%ecx
  1f:   11 01                   adc    %eax,(%rcx)
  21:   12 01                   adc    (%rcx),%al
  23:   40 0a 00                rex or (%rax),%al
        ...
./objdump: Reading section .debug_info failed because: bad value

Disassembly of section .debug_line:

0000000000000000 <.debug_line>:
   0:   43 00 00                rex.XB add %al,(%r8)
   3:   00 03                   add    %al,(%rbx)
   5:   00 25 00 00 00 01       add    %ah,0x1000000(%rip)        # 100000b
<foo1+0xfffffb>
   b:   01 fb                   add    %edi,%ebx
   d:   0e                      (bad)  
   e:   0d 00 01 01 01          or     $0x1010100,%eax
  13:   01 00                   add    %eax,(%rax)
  15:   00 00                   add    %al,(%rax)
  17:   01 00                   add    %eax,(%rax)
  19:   00 01                   add    %al,(%rcx)
  1b:   00 63 6f                add    %ah,0x6f(%rbx)
  1e:   6d                      insl   (%dx),%es:(%rdi)
  1f:   70 72                   jo     93 <foo1+0x83>
  21:   65 73 73                gs jae 97 <foo1+0x87>
  24:   65 64 2d 31 2e 63 00    gs fs sub $0x632e31,%eax
  2b:   00 00                   add    %al,(%rax)
  2d:   00 00                   add    %al,(%rax)
  2f:   00 09                   add    %cl,(%rcx)
  31:   02 00                   add    (%rax),%al
  33:   00 00                   add    %al,(%rax)
  35:   00 00                   add    %al,(%rax)
  37:   00 00                   add    %al,(%rax)
  39:   00 03                   add    %al,(%rbx)
  3b:   0a 01                   or     (%rcx),%al
  3d:   13 03                   adc    (%rbx),%eax
  3f:   79 f2                   jns    33 <.debug_line+0x33>
  41:   13 02                   adc    (%rdx),%eax
  43:   05                      .byte 0x5
  44:   00 01                   add    %al,(%rcx)
  46:   01                      .byte 0x1

Disassembly of section .debug_pubnames:

0000000000000000 <.debug_pubnames>:
   0:   20 00                   and    %al,(%rax)
   2:   00 00                   add    %al,(%rax)
   4:   02 00                   add    (%rax),%al
   6:   00 00                   add    %al,(%rax)
   8:   00 00                   add    %al,(%rax)
   a:   62                      (bad)  
   b:   00 00                   add    %al,(%rax)
   d:   00 2d 00 00 00 66       add    %ch,0x66000000(%rip)        # 66000013
<foo1+0x66000003>
  13:   6f                      outsl  %ds:(%rsi),(%dx)
  14:   6f                      outsl  %ds:(%rsi),(%dx)
  15:   32 00                   xor    (%rax),%al
  17:   47 00 00                rex.RXB add %r8b,(%r8)
  1a:   00 66 6f                add    %ah,0x6f(%rsi)
  1d:   6f                      outsl  %ds:(%rsi),(%dx)
  1e:   31 00                   xor    %eax,(%rax)
  20:   00 00                   add    %al,(%rax)
        ...

Disassembly of section .debug_aranges:

0000000000000000 <.debug_aranges>:
   0:   2c 00                   sub    $0x0,%al
   2:   00 00                   add    %al,(%rax)
   4:   02 00                   add    (%rax),%al
   6:   00 00                   add    %al,(%rax)
   8:   00 00                   add    %al,(%rax)
   a:   08 00                   or     %al,(%rax)
        ...
  18:   15 00 00 00 00          adc    $0x0,%eax
        ...

Disassembly of section .debug_str:

0000000000000000 <.debug_str>:
   0:   47                      rex.RXB
   1:   4e 55                   rex.WRX push %rbp
   3:   20 43 20                and    %al,0x20(%rbx)
   6:   34 2e                   xor    $0x2e,%al
   8:   34 2e                   xor    $0x2e,%al
   a:   34 00                   xor    $0x0,%al
   c:   66 6f                   outsw  %ds:(%rsi),(%dx)
   e:   6f                      outsl  %ds:(%rsi),(%dx)
   f:   32 00                   xor    (%rax),%al
  11:   66 6f                   outsw  %ds:(%rsi),(%dx)
  13:   6f                      outsl  %ds:(%rsi),(%dx)
  14:   31 00                   xor    %eax,(%rax)
  16:   2e 00 63 6f             cs add %ah,0x6f(%rbx)
  1a:   6d                      insl   (%dx),%es:(%rdi)
  1b:   70 72                   jo     8f <foo1+0x7f>
  1d:   65 73 73                gs jae 93 <foo1+0x83>
  20:   65 64 2d 31 2e 63 00    gs fs sub $0x632e31,%eax
./objdump: Reading section .debug_frame failed because: memory exhausted
[hjl@gnu-cfl-2 pr28530]$

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]