<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 - llvm::object::MachOUniversalBinary does not handle executables with hidden ARM64"
href="https://bugs.llvm.org/show_bug.cgi?id=42343">42343</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm::object::MachOUniversalBinary does not handle executables with hidden ARM64
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>missing-feature
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Object
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anusha.basana@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Cctool lipo has a flag -hideARM64:
-hideARM64
When creating a universal binary including both 32-bit and 64-bit ARM
files, this option will ask lipo to add the 64-bit files at the end and not
include them in the count of architectures present in the file. The files
must be executable files (Mach-O filetype MH_EXECUTE). This option has no
effect if neither 32-bit ARM nor 64-bit ARM files are present, and no other
files may be hidden in this way. This option only works with the -create,
-remove, and -replace, commands, and is only intended for tools and workflows
testing a workaround on older systems.
This bug is relevant for the implementation of llvm-lipo -thin flag, where a
thin output file is created given a universal binary and a specified
architecture type.
The hidden ARM64 slice is not included in the header,
MachOUniversalBinary::ObjectForArch::ObjectForArch(const MachOUniversalBinary
*Parent, uint32_t Index) will not work for an index that is "out of range"</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>