[all-commits] [llvm/llvm-project] ebc123: [ELF] Create some synthetic sections only if !relo...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jun 28 17:48:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebc123e0793a1cbcb69b4af1548e339e018ffff2
      https://github.com/llvm/llvm-project/commit/ebc123e0793a1cbcb69b4af1548e339e018ffff2
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Create some synthetic sections only if !relocatable

`.rela.dyn` is currently created outside of the `config->hasDynSymTab`
condition. In relocatable links, `.rela.dyn` will be discarded by
`removeUnusedSyntheticSections`. It's better than suppress the creation
so that .relr.auth.dyn support (#96496) does not need to adjust
`removeUnusedSyntheticSections`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list