[all-commits] [llvm/llvm-project] 1560a0: [yaml2obj/obj2yaml/llvm-readobj] Support SHF_GNU_R...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Feb 2 09:20:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1560a0003224cf20d14a71521d4f36fd150f8206
      https://github.com/llvm/llvm-project/commit/1560a0003224cf20d14a71521d4f36fd150f8206
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    M llvm/test/tools/llvm-readobj/ELF/gnu-sections.test
    M llvm/test/tools/llvm-readobj/ELF/section-flags-os-proc.test
    M llvm/test/tools/llvm-readobj/ELF/section-flags.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [yaml2obj/obj2yaml/llvm-readobj] Support SHF_GNU_RETAIN

In binutils, the flag is defined for ELFOSABI_GNU and ELFOSABI_FREEBSD.
It can be used to mark a section as a GC root.

In practice, the flag has generic semantics and can be applied to many
EI_OSABI values, so we consider it generic.

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




More information about the All-commits mailing list