[all-commits] [llvm/llvm-project] d82679: [ELF] Drop Android specific workaround -m aarch64_...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Feb 9 00:43:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d82679d8050130522ebcf90c6061211a25b1c83d
      https://github.com/llvm/llvm-project/commit/d82679d8050130522ebcf90c6061211a25b1c83d
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-09 (Tue, 09 Feb 2021)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/test/ELF/emulation-aarch64.s

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list