[llvm-bugs] [Bug 51244] New: [PE/COFF] --set-section-flags is ignored when used jointly with --add-section, so size and VMA are not set

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 28 02:33:37 PDT 2021


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

            Bug ID: 51244
           Summary: [PE/COFF] --set-section-flags is ignored when used
                    jointly with --add-section, so size and VMA are not
                    set
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: alfonso.sanchez-beato at canonical.com
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com

When running

llvm-objcopy --add-section .sect=<file> --set-section-flags .sect=data <input>
<output>

for a PE/COFF binary, the section flags are ignored, so VirtualSize and
VirtualAddress in the section header are always set to 0.

-- 
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/20210728/0f66ef63/attachment.html>


More information about the llvm-bugs mailing list