[llvm-bugs] [Bug 51877] New: Copying MachO binary triggers assertion failure on section offset
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 15 19:07:26 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51877
Bug ID: 51877
Summary: Copying MachO binary triggers assertion failure on
section offset
Product: tools
Version: trunk
Hardware: All
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: d.c.ddcc at gmail.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
Created attachment 25263
--> https://bugs.llvm.org/attachment.cgi?id=25263&action=edit
yaml reproducer
Handling of section offsets for MachO binaries seems to be incorrect. I get the
following assertions:
((S->Offset != 0) && "Non-zero-fill section's offset cannot be zero"), function
totalSize, file MachOWriter.cpp, line 140.
(Sec->Offset && "Section offset can not be zero"), function writeSections, file
MachOWriter.cpp, line 268.
--
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/20210916/ab9b5579/attachment.html>
More information about the llvm-bugs
mailing list