[all-commits] [llvm/llvm-project] f02a27: [ELF] Add --default-script/-dT

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 19 09:10:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f02a27df2f133503b39bad38d0e2b3e95d3f8a23
      https://github.com/llvm/llvm-project/commit/f02a27df2f133503b39bad38d0e2b3e95d3f8a23
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/DriverUtils.cpp
    M lld/ELF/Options.td
    M lld/docs/ld.lld.1
    A lld/test/ELF/linkerscript/default-script.s
    M lld/test/ELF/reproduce.s

  Log Message:
  -----------
  [ELF] Add --default-script/-dT

GNU ld added --default-script (alias: -dT) in 2007. The option specifies
a default script that is processed if --script/-T is not specified. -dT
can be used to override GNU ld's internal linker script, but only when
the application does not specify -T.
In addition, dynamorio's CMakeLists.txt may use -dT.

The implementation is simple and the feature can be useful to dabble
with different section layouts.

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



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