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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: llvm-bugs@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@ubuntu:~/Work$ ~/llvm/build/bin/llvm-objdump -d -j .data test.o

test.o: file format ELF64-x86-64

binutils@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to