[all-commits] [llvm/llvm-project] 91d061: [llvm-objcopy] Reland "Fix --add-section when sect...

gmorer via All-commits all-commits at lists.llvm.org
Mon Dec 5 18:13:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91d0618368c0248e200d90b367322f9c1f74e387
      https://github.com/llvm/llvm-project/commit/91d0618368c0248e200d90b367322f9c1f74e387
  Author: Guilhem <guilhem at trail.gg>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
    M llvm/test/tools/llvm-objcopy/wasm/add-section.test

  Log Message:
  -----------
  [llvm-objcopy] Reland "Fix --add-section when section contain empty bytes"

Implicit cast between char* and StringRef when writing sections.

Reproduce:
```
$> llvm-objcopy --dump-section=name=name.data out.wasm
$> llvm-objcopy --remove-section=name out.wasm out_no_name.wasm
$> llvm-objcopy --add-section=name=name.data out_no_name.wasm out_new_name.wasm

```

Reviewed By: dschuff

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




More information about the All-commits mailing list