<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Copying MachO binary triggers assertion failure on section offset"
href="https://bugs.llvm.org/show_bug.cgi?id=51877">51877</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Copying MachO binary triggers assertion failure on section offset
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-objcopy/strip
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>d.c.ddcc@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>alexander.v.shaposhnikov@gmail.com, jake.h.ehrlich@gmail.com, jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org, rupprecht@google.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25263" name="attach_25263" title="yaml reproducer">attachment 25263</a> <a href="attachment.cgi?id=25263&action=edit" title="yaml reproducer">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>