<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Inconsistent target strings"
href="https://bugs.llvm.org/show_bug.cgi?id=39662">bug 39662</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;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>i@maskray.me
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Inconsistent target strings"
href="https://bugs.llvm.org/show_bug.cgi?id=39662#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Inconsistent target strings"
href="https://bugs.llvm.org/show_bug.cgi?id=39662">bug 39662</a>
from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
<pre>These are all different things.
Take binutils-gdb/ld/emulparams/elf_x86_64.sh as an example.
My understanding is that:
elf_x86_64 is called an emulation (ld -m).
ARCH=i386:x86-64 is called bfdarch (architecture: line in the output of
objdump -f; objcopy -B)
OUTPUT_FORMAT=elf64-x86-64 is called bfdname (objcopy -I/-O, linker script
OUTPUT_FORMAT)
--target=x86_64-elf is a target triple.
<a href="https://git.savannah.gnu.org/cgit/config.git/plain/config.sub">https://git.savannah.gnu.org/cgit/config.git/plain/config.sub</a> can canonicalize
a target triple.
% ./config.sub x86_64-elf
x86_64-pc-elf
% ./config.sub x86_64-linux
x86_64-pc-linux-gnu
Asking on <a href="mailto:binutils@sourceware.org">binutils@sourceware.org</a> may get insight about the history:) And why
things were designed this way:/</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>