[all-commits] [llvm/llvm-project] 93ad0e: [ELF] Drop .rel[a].debug_gnu_pub{names, types} for ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jan 12 00:07:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93ad0edf674125f19177054d8331a5e8910d3d98
      https://github.com/llvm/llvm-project/commit/93ad0edf674125f19177054d8331a5e8910d3d98
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp
    R lld/test/ELF/debug-gnu-pubnames.s
    M lld/test/ELF/gdb-index.s

  Log Message:
  -----------
  [ELF] Drop .rel[a].debug_gnu_pub{names,types} for --gdb-index --emit-relocs

Fixes PR48693: --emit-relocs keeps relocation sections. --gdb-index drops
.debug_gnu_pubnames and .debug_gnu_pubtypes but not their relocation sections.
This can cause a null pointer dereference in `getOutputSectionName`.

Also delete debug-gnu-pubnames.s which is covered by gdb-index.s

Reviewed By: grimar

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




More information about the All-commits mailing list