[all-commits] [llvm/llvm-project] 0557c2: [llvm] Fix MachO exports trie parsing.

Juergen Ributzka via All-commits all-commits at lists.llvm.org
Wed Jun 15 09:29:37 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0557c2d58942f98682323dac75b4a55df5eb8f7b
  Author: Juergen Ributzka <juergen at apple.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M llvm/lib/Object/MachOObjectFile.cpp
    A llvm/test/Object/AArch64/nm-flat-reexport.test
    A llvm/test/Object/Inputs/MachO/flat-reexport.yaml

  Log Message:
  [llvm] Fix MachO exports trie parsing.

The exports trie parser ordinal validation check doesn't consider the case where
the ordinal can be zero or negative for certain special values that are defined
in BindSpecialDylib. Update the validation to account for that fact and add a
test case.

This fixes rdar://94844233.

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

More information about the All-commits mailing list