[llvm-bugs] [Bug 39135] New: llvm-objcopy ignores -O (--output-target)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 30 20:36:19 PDT 2018


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

            Bug ID: 39135
           Summary: llvm-objcopy ignores -O (--output-target)
           Product: tools
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy
          Assignee: unassignedbugs at nondot.org
          Reporter: saih792 at outlook.com
                CC: llvm-bugs at lists.llvm.org

Test case:

echo '1: .quad 1b' | clang -x assembler -c - -o test.o
llvm-objcopy -O elf32-x86-64 test.o test.O && file test.O


Expected result:

test.O: ELF 32-bit LSB relocatable, x86_64, version 1 (SYSV), not striped


Actual result:

test.O: ELF 64-bit LSB relocatable, x86_64, version 1 (SYSV), not striped

-- 
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/20181001/eb0b9fbc/attachment.html>


More information about the llvm-bugs mailing list