[llvm-bugs] [Bug 39662] Inconsistent target strings

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 22 22:13:02 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=39662

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |i at maskray.me

--- Comment #5 from Fangrui Song <i at maskray.me> ---
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.

https://git.savannah.gnu.org/cgit/config.git/plain/config.sub 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 binutils at sourceware.org may get insight about the history:) And why
things were designed this way:/

-- 
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/20200323/6ac1ac78/attachment-0001.html>


More information about the llvm-bugs mailing list