[all-commits] [llvm/llvm-project] 6464dd: [ELF] OUTPUT_FORMAT: support "binary" and ignore e...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 16 10:28:31 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6464dd21b50bb5f22a5beae1377fec501b38e764
      https://github.com/llvm/llvm-project/commit/6464dd21b50bb5f22a5beae1377fec501b38e764
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-16 (Tue, 16 Jul 2024)

  Changed paths:
    M lld/ELF/ScriptParser.cpp
    M lld/docs/ReleaseNotes.rst
    M lld/test/ELF/invalid-linkerscript.test
    M lld/test/ELF/oformat-binary.s

  Log Message:
  -----------
  [ELF] OUTPUT_FORMAT: support "binary" and ignore extra OUTPUT_FORMAT commands

This patch improves GNU ld compatibility.

Close #87891: Support `OUTPUT_FORMAT(binary)`, which is like
--oformat=binary. --oformat=binary takes precedence over an ELF
`OUTPUT_FORMAT`.

In addition, if more than one OUTPUT_FORMAT command is specified, only
check the first one.

Pull Request: https://github.com/llvm/llvm-project/pull/98837



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list