[all-commits] [llvm/llvm-project] 2bdcfc: [DirectX] Add `extract-section` to `llvm-objcopy` ...

Finn Plummer via All-commits all-commits at lists.llvm.org
Tue Sep 9 07:37:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bdcfc7ab86b5cc8b95474e9571c9477f5df4451
      https://github.com/llvm/llvm-project/commit/2bdcfc7ab86b5cc8b95474e9571c9477f5df4451
  Author: Finn Plummer <mail at inbelic.dev>
  Date:   2025-09-09 (Tue, 09 Sep 2025)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objcopy.rst
    M llvm/include/llvm/ObjCopy/CommonConfig.h
    M llvm/include/llvm/ObjCopy/ConfigManager.h
    M llvm/lib/ObjCopy/ConfigManager.cpp
    M llvm/lib/ObjCopy/DXContainer/DXContainerObjcopy.cpp
    A llvm/test/tools/llvm-objcopy/DXContainer/extract-section-basic.test
    A llvm/test/tools/llvm-objcopy/DXContainer/extract-section-errs.test
    A llvm/test/tools/llvm-objcopy/DXContainer/extract-section-headers.test
    M llvm/tools/llvm-objcopy/CommonOpts.td
    M llvm/tools/llvm-objcopy/ObjcopyOptions.cpp

  Log Message:
  -----------
  [DirectX] Add `extract-section` to `llvm-objcopy` and implement it for `DXContainer` (#154804)

This pr adds the `extract-section` option to `llvm-objcopy` as a common
option. It differs from `dump-section` as it will produce a standalone
object with just one section, as opposed to just the section contents.

For more context as to other options considered, see
https://github.com/llvm/llvm-project/pull/153265#issuecomment-3195696003.

This difference in behaviour is used for DXC compatibility with
`extract-rootsignature` and `/Frs`.

This pr then implements this functionality for `DXContainer` objects.

This is the second step of
https://github.com/llvm/llvm-project/issues/150277 to implement as a
compiler action that invokes `llvm-objcopy` for functionality.

This also completes the implementation of `extract-rootsignature` as
described in https://github.com/llvm/llvm-project/issues/149560.



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