lld/ELF: Parse MSP430 BFD/emulation names
authorLemonBoy <thatlemon@gmail.com>
Mon, 14 Dec 2020 17:38:12 +0000 (09:38 -0800)
committerFangrui Song <i@maskray.me>
Mon, 14 Dec 2020 17:38:12 +0000 (09:38 -0800)
commit92c6141ce6a954aa866bba8e53850e7dd9d9abb6
tree880dc249a041fcf87d3f1c2c542ef713b457e796
parentbfdc19e77868b849b5c636bf0512970264aef571
lld/ELF: Parse MSP430 BFD/emulation names

Follow the naming set by TI's own GCC-based toolchain.
Also, force the `osabi` field to `ELFOSABI_STANDALONE`, this matches GNU LD's output (the patching is done in `elf32_msp430_post_process_headers`).

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D92931
lld/ELF/Driver.cpp
lld/ELF/ScriptParser.cpp
lld/test/ELF/emulation-msp430.s [new file with mode: 0644]