[llvm-bugs] [Bug 41897] New: --disassemble should disassemble non-executable sections if specifically requested

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 16 03:36:51 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41897

            Bug ID: 41897
           Summary: --disassemble should disassemble non-executable
                    sections if specifically requested
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

Consider a test input with both .data and .text. Without any other switches,
both GNU objdump and llvm-objdump --disassemble disassemble the .text section
only. However, if --section=.data is also supplied, then the .data section is
disassembled by GNU objdump and not llvm-objdump. We should follow the GNU
behaviour here.

binutils at ubuntu:~/Work$ ~/llvm/build/bin/llvm-objdump -d -j .data test.o

test.o: file format ELF64-x86-64

binutils at ubuntu:~/Work$ objdump -d -j .data test.o

test.o:     file format elf64-x86-64


Disassembly of section .data:

0000000000000000 <bar>:
   0:   90                      nop

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190516/f3557367/attachment.html>


More information about the llvm-bugs mailing list