[all-commits] [llvm/llvm-project] 744e58: [llvm-objcopy][ELF] Preserve sh_link to .symtab wh...

Andrew Ng via All-commits all-commits at lists.llvm.org
Tue Jun 6 06:36:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 744e589caa20f214c586bb70ed53769f93c9cb27
      https://github.com/llvm/llvm-project/commit/744e589caa20f214c586bb70ed53769f93c9cb27
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2023-06-06 (Tue, 06 Jun 2023)

  Changed paths:
    M lld/test/ELF/icf-safe.s
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.h
    M llvm/test/tools/llvm-objcopy/ELF/symtab-link.test

  Log Message:
  -----------
  [llvm-objcopy][ELF] Preserve sh_link to .symtab when applicable

This change to llvm-objcopy preserves the ELF section sh_link to .symtab
so long as none of the symbol table indices have been changed.
Previously, any invocation of llvm-objcopy including a "no-op" would
clear any section sh_link to .symtab.

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




More information about the All-commits mailing list