[ELF] Drop Android specific workaround -m aarch64_elf64_le_vec
authorFangrui Song <i@maskray.me>
Tue, 9 Feb 2021 08:43:10 +0000 (00:43 -0800)
committerFangrui Song <i@maskray.me>
Tue, 9 Feb 2021 08:43:10 +0000 (00:43 -0800)
commitd82679d8050130522ebcf90c6061211a25b1c83d
tree9af5f4928e4deb85d0c281a54c415c7a5ee553e1
parentd1522d349f4d4b960ff7a37303103e95aa535af3
[ELF] Drop Android specific workaround -m aarch64_elf64_le_vec

`extern const bfd_target aarch64_elf64_le_vec;` is a variable in BFD.
It was somehow misused as an emulation by Android.

```
% aarch64-linux-gnu-ld -m aarch64_elf64_le_vec a.o
aarch64-linux-gnu-ld: unrecognised emulation mode: aarch64_elf64_le_vec
Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi
```

Acked by Stephen Hines, who removed the flag from Android a while back.
lld/ELF/Driver.cpp
lld/test/ELF/emulation-aarch64.s