[all-commits] [llvm/llvm-project] 423194: [ELF] --orphan-handling=: don't warn/error for unu...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Feb 26 08:56:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 423194098b88dfea86cca6f8e203e9d88f70abc9
      https://github.com/llvm/llvm-project/commit/423194098b88dfea86cca6f8e203e9d88f70abc9
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/Writer.cpp
    M lld/test/ELF/linkerscript/orphan-report.s

  Log Message:
  -----------
  [ELF] --orphan-handling=: don't warn/error for unused synthesized sections

This makes --orphan-handling= less noisy.
This change also improves our compatibility with GNU ld.

GNU ld special cases .symtab, .strtab and .shstrtab . We need output section
descriptions for .symtab, .strtab and .shstrtab to suppress:

  <internal>:(.symtab) is being placed in '.symtab'
  <internal>:(.shstrtab) is being placed in '.shstrtab'
  <internal>:(.strtab) is being placed in '.strtab'

With --strip-all, .symtab and .strtab can be omitted (note, --strip-all is not compatible with --emit-relocs).

Reviewed By: nickdesaulniers

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




More information about the All-commits mailing list