[all-commits] [llvm/llvm-project] 15313f: [llvm-elfabi] Support ELF file that lacks .gnu.has...

Zero Omega via All-commits all-commits at lists.llvm.org
Tue Jan 26 12:36:29 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15313f64be9d5ec18582975e0a0548743695f961
      https://github.com/llvm/llvm-project/commit/15313f64be9d5ec18582975e0a0548743695f961
  Author: Haowei Wu <haowei at google.com>
  Date:   2021-01-26 (Tue, 26 Jan 2021)

  Changed paths:
    M llvm/include/llvm/Object/ELF.h
    M llvm/lib/InterfaceStub/ELFObjHandler.cpp
    A llvm/test/tools/llvm-elfabi/read-elf-dynsym.test

  Log Message:
  -----------
  [llvm-elfabi] Support ELF file that lacks .gnu.hash section

Before this change, when reading ELF file, elfabi determines number of
entries in .dynsym by reading the .gnu.hash section. This change makes
elfabi read section headers directly first. This change allows elfabi
works on ELF files which do not have .gnu.hash sections.

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




More information about the All-commits mailing list