[all-commits] [llvm/llvm-project] 48161b: [ELF] --gc-sections: Work around SHT_PROGBITS .ini...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Dec 21 10:44:42 PST 2021


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

  Changed paths:
    M lld/ELF/MarkLive.cpp
    M lld/test/ELF/gc-sections.s

  Log Message:
  -----------
  [ELF] --gc-sections: Work around SHT_PROGBITS .init_array

Older Go cmd/link used SHT_PROGBITS for .init_array .
Work around the lack of https://golang.org/cl/373734 for a while.
It does not generate .fini_array or .preinit_array




More information about the All-commits mailing list