From 79cf24e2118f5070d93da51b6d8c7c8598ae2671 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 24 Aug 2023 16:57:03 -0700 Subject: [llvm-nm][WebAssembly] Report the size of data symbols Fixes: https://github.com/llvm/llvm-project/issues/58839 Differential Revision: https://reviews.llvm.org/D158799 --- llvm/lib/Object/WasmObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/WasmObjectFile.cpp') diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 11b9b57..e9471ad 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -724,7 +724,7 @@ Error WasmObjectFile::parseLinkingSectionSymtab(ReadContext &Ctx) { if (IsDefined) { auto Index = readVaruint32(Ctx); if (Index >= DataSegments.size()) - return make_error("invalid data symbol index", + return make_error("invalid data segment index", object_error::parse_failed); auto Offset = readVaruint64(Ctx); auto Size = readVaruint64(Ctx); -- cgit v1.1