[all-commits] [llvm/llvm-project] c1d19a: [ELF] Provide the GNU hash function in libObject

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Sep 5 09:05:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1d19a8489466270bb1c3639dcdabbda1d4c57d7
      https://github.com/llvm/llvm-project/commit/c1d19a8489466270bb1c3639dcdabbda1d4c57d7
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-09-05 (Mon, 05 Sep 2022)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp
    M llvm/include/llvm/Object/ELF.h

  Log Message:
  -----------
  [ELF] Provide the GNU hash function in libObject

GNU uses a different hashing function compared to the sys-V standard
function already provided in libObject. This is already used internally
in LLD for generating synthetic sections. This patch simply extracts
this definition and makes it availible to other users of `libObject`.
This is done in preparation for supporting symbol name lookups via the
GNU hash table.

Reviewed By: MaskRay, jhenderson

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




More information about the All-commits mailing list