[all-commits] [llvm/llvm-project] db08df: [ELF] Support discarding .relr.dyn

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jan 12 10:39:13 PST 2022


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

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/test/ELF/linkerscript/discard-section-err.s

  Log Message:
  -----------
  [ELF] Support discarding .relr.dyn

to prepare for D116838, otherwise for linkerscript/discard-section-err.s,
there will be a null pointer dereference in `part.relrDyn->getParent()->size`
in `finalizeSynthetic(part.relrDyn.get())`.




More information about the All-commits mailing list