[mips] Deduce MIPS specific ELF header flags from `emulation`
authorSimon Atanasyan <simon@atanasyan.com>
Sun, 22 Sep 2019 16:26:39 +0000 (16:26 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sun, 22 Sep 2019 16:26:39 +0000 (16:26 +0000)
commite03007cb4e520f1c157632504cc7fdc3d982b482
treeba1133b784f1cab44ffa9aa0c5f807e086a16e8d
parent44b6e02f35702c4984aa66655fd4018ac9810878
[mips] Deduce MIPS specific ELF header flags from `emulation`

In case of linking binary blobs which do not have any ELF headers, we can
deduce MIPS ABI  ELF header flags from an `emulation` option.

Patch by Kyle Evans.

llvm-svn: 372513
lld/ELF/Arch/MipsArchTree.cpp
lld/test/ELF/mips-elf-flags-binary.s [new file with mode: 0644]