[all-commits] [llvm/llvm-project] 43753f: [ELF] Remove irrelevant SHT_INIT_ARRAY/SHT_FINI_AR...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 25 14:23:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43753f8f9d6682c7e0295d82d8a6727041925be7
      https://github.com/llvm/llvm-project/commit/43753f8f9d6682c7e0295d82d8a6727041925be7
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M lld/ELF/InputSection.cpp
    M lld/test/ELF/init-fini-progbits.s

  Log Message:
  -----------
  [ELF] Remove irrelevant SHT_INIT_ARRAY/SHT_FINI_ARRAY hack

The hack is irrelevant for two reasons:

* binutils 2.24 is quite old and cannot handle R_X86_64_REX_GOTPCRELX from 2016 onwards anyway
* `canMergeToProgbits` allows combining SHT_INIT_ARRAY/SHT_FINI_ARRAY into SHT_PROGBITS




More information about the All-commits mailing list