[all-commits] [llvm/llvm-project] 98594a: [lldb] [ObjectFile/ELF] Fix negated seg ids on 32-...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Feb 3 20:51:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 98594a44aaa8410492d25793e1f01fb6b8bef45c
      https://github.com/llvm/llvm-project/commit/98594a44aaa8410492d25793e1f01fb6b8bef45c
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2020-02-04 (Tue, 04 Feb 2020)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

  Log Message:
  -----------
  [lldb] [ObjectFile/ELF] Fix negated seg ids on 32-bit arches

Scale segment identifier up to user_id_t before negating it.  This fixes
the identifers being wrongly e.g. 0x00000000fffffffe instead of
0xfffffffffffffffe.  Fix suggested by Pavel Labath.

This fixes 5 tests failing on i386 (PR #44748):

  lldb-shell :: ObjectFile/ELF/PT_LOAD-overlap-PT_INTERP.yaml
  lldb-shell :: ObjectFile/ELF/PT_LOAD-overlap-PT_TLS.yaml
  lldb-shell :: ObjectFile/ELF/PT_LOAD-overlap-section.yaml
  lldb-shell :: ObjectFile/ELF/PT_LOAD.yaml
  lldb-shell :: ObjectFile/ELF/PT_TLS-overlap-PT_LOAD.yaml

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




More information about the All-commits mailing list