<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:emaste@freebsd.org" title="emaste@freebsd.org">emaste@freebsd.org</a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - ObjectFileELF::GetModuleSpecifications overrides OS and Vendor name with those from host"
href="http://llvm.org/bugs/show_bug.cgi?id=17209">bug 17209</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - ObjectFileELF::GetModuleSpecifications overrides OS and Vendor name with those from host"
href="http://llvm.org/bugs/show_bug.cgi?id=17209#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - ObjectFileELF::GetModuleSpecifications overrides OS and Vendor name with those from host"
href="http://llvm.org/bugs/show_bug.cgi?id=17209">bug 17209</a>
from <span class="vcard"><a class="email" href="mailto:emaste@freebsd.org" title="emaste@freebsd.org">emaste@freebsd.org</a>
</span></b>
<pre>Fixed by Todd Fiala in r211907:
Fix ObjectFileELF to determine architectures independent of host.
Previously ObjectFileELF was simplifying and assuming the object file it
was
looking at was the same as the host architecture/triple. This would break
attempts to run, say, lldb on MacOSX against lldb-gdbserver on Linux since
the MacOSX lldb would say that the linux elf file was really an Apple
MacOSX
architecture. Chaos would ensue.
This change allows the elf file to parse ELF notes for Linux, FreeBSD and
NetBSD, and determine the OS appropriately from them. It also initializes
the OS type from the ELF header OSABI if it is set (which it is for FreeBSD
but not for Linux).
Added a test with freebsd and linux images that verify that
'(lldb) image list -t -A' prints out the expected architecture for each.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>