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

            Bug ID: 33389
           Summary: objdump disassembles PLT0 as data
           Product: binutils
           Version: 2.46 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

If a shared library has

[hjl@gnu-cfl-3 solaris]$ readelf -D -sW x.so | grep _PROCEDURE_LINKAGE_TABLE_
     3: 00000000000002c0     0 OBJECT  GLOBAL DEFAULT    5
_PROCEDURE_LINKAGE_TABLE_
[hjl@gnu-cfl-3 solaris]$ 

Disassembler treats PLT0 as data:

[hjl@gnu-cfl-3 solaris]$ objdump -dw x.so

x.so:     file format elf64-x86-64


Disassembly of section .plt:

00000000000002c0 <_PROCEDURE_LINKAGE_TABLE_>:
 2c0:   ff 35 7a 01 10 00 ff 25 7c 01 10 00 0f 1f 40 00     .5z....%|.....@.

00000000000002d0 <foo@plt>:
 2d0:   ff 25 7a 01 10 00       jmp    *0x10017a(%rip)        # 100450 <foo>
 2d6:   68 00 00 00 00          push   $0x0
 2db:   e9 e0 ff ff ff          jmp    2c0 <_PROCEDURE_LINKAGE_TABLE_>

Disassembly of section .text:

00000000000002e0 <func>:
 2e0:   e8 eb ff ff ff          call   2d0 <foo@plt>
 2e5:   c3                      ret
[hjl@gnu-cfl-3 solaris]$

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

Reply via email to