[all-commits] [llvm/llvm-project] eea34a: [ELF] Inspect -EL & -EB for OUTPUT_FORMAT(default, ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Feb 8 10:35:18 PST 2021


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

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/ELF/ScriptParser.cpp
    M lld/docs/ld.lld.1
    M lld/test/ELF/emulation-aarch64.s
    M lld/test/ELF/invalid-linkerscript.test

  Log Message:
  -----------
  [ELF] Inspect -EL & -EB for OUTPUT_FORMAT(default, big, little)

Choose big if -EB is specified, little if -EL is specified, or default if neither is specified.
The new behavior matches GNU ld.

Fixes: https://github.com/ClangBuiltLinux/linux/issues/1025

Differential Revision: https://reviews.llvm.org/D96214




More information about the All-commits mailing list