[all-commits] [llvm/llvm-project] 2a6136: [llvm-objcopy][WebAssembly] Allow --strip-debug to...

Sam Clegg via All-commits all-commits at lists.llvm.org
Mon Aug 19 21:52:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a6136e552d24b6bf665c42a6e32efc0b2d88fbf
      https://github.com/llvm/llvm-project/commit/2a6136e552d24b6bf665c42a6e32efc0b2d88fbf
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2024-08-19 (Mon, 19 Aug 2024)

  Changed paths:
    M lld/wasm/Writer.cpp
    M llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
    M llvm/lib/ObjCopy/wasm/WasmObject.cpp
    M llvm/lib/ObjCopy/wasm/WasmObject.h
    M llvm/lib/ObjCopy/wasm/WasmReader.cpp
    M llvm/lib/ObjectYAML/WasmEmitter.cpp
    M llvm/test/ObjectYAML/wasm/invalid_section_order.yaml
    M llvm/test/tools/llvm-objcopy/wasm/basic-only-section.test
    M llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
    M llvm/test/tools/llvm-objcopy/wasm/strip-all.test
    M llvm/test/tools/llvm-objcopy/wasm/strip-debug.test
    M llvm/test/tools/llvm-objcopy/wasm/strip-reloc.test

  Log Message:
  -----------
  [llvm-objcopy][WebAssembly] Allow --strip-debug to operate on relocatable files. (#102978)

This change is enough to allow `--strip-debug` to work on object files,
without breaking the relocation information or symbol table.

A more complete version of this change would instead reconstruct the
symbol table and relocation sections, but that is much larger change.

Bug: #102002



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