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

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jan 12 11:55:35 PST 2022


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

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

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

db08df0570b6dfaf00d7b1b8555c1d2d4effb224 does not work because part.relrDyn is
a unique_ptr and `reset` destroys the object which may still be referenced.

This commit uses the D114180 approach. Also improve the test to check that there
is no R_X86_64_RELATIVE.




More information about the All-commits mailing list