[all-commits] [llvm/llvm-project] 35a5df: [WebAssembly][Object] Record section start offsets...

Derek Schuff via All-commits all-commits at lists.llvm.org
Thu Dec 21 14:16:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35a5df2de6bd56c95edcd10d6acab040b251238e
      https://github.com/llvm/llvm-project/commit/35a5df2de6bd56c95edcd10d6acab040b251238e
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/lib/Object/WasmObjectFile.cpp
    M llvm/test/MC/WebAssembly/custom-sections.ll
    M llvm/test/MC/WebAssembly/debug-info.ll
    M llvm/test/MC/WebAssembly/debug-info64.ll
    M llvm/test/MC/WebAssembly/tag-section.ll
    M llvm/test/tools/llvm-readobj/wasm/globals.test
    M llvm/test/tools/llvm-readobj/wasm/sections.test

  Log Message:
  -----------
  [WebAssembly][Object] Record section start offsets at start of payload (#76188)

LLVM ObjectFile currently records the start offsets of sections as the
start of the section header, whereas most other tools (WABT, emscripten,
wasm-tools) record it as the start of the section content, after the
header. This affects binutils tools such as objdump and nm, but not
compilation/assembly (since that is driven by symbols and assembler
labels which already have their values inside the section payload rather
in the header. This patch updates LLVM to match the other tools.




More information about the All-commits mailing list