[PATCH] D88468: [llvm-readobj] Fix crash when printing out stabs symbols of type N_OSO

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 23:46:33 PDT 2020


int3 created this revision.
int3 added reviewers: mtrent, grimar, MaskRay, thegameg.
Herald added subscribers: llvm-commits, rupprecht.
Herald added a reviewer: jhenderson.
Herald added a project: LLVM.
int3 requested review of this revision.

This diff is similar to what D71394 <https://reviews.llvm.org/D71394> did for `llvm-objdump` -- it avoids
trying to look up a section name unless it knows that the given stabs symbol
is actually using the `n_sect` field to store a valid section index.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88468

Files:
  llvm/test/tools/llvm-readobj/MachO/Inputs/stabs.obj.macho-x86_64
  llvm/test/tools/llvm-readobj/MachO/stabs-macho.test
  llvm/tools/llvm-readobj/MachODumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88468.294891.patch
Type: text/x-patch
Size: 5639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200929/4a805ad8/attachment.bin>


More information about the llvm-commits mailing list