[all-commits] [llvm/llvm-project] 172021: [ELF] --icf: don't fold a section without relocati...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 23 23:19:42 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 1720219a1dea5c9b99df6dd1fdfb9dc8e77054fd
      https://github.com/llvm/llvm-project/commit/1720219a1dea5c9b99df6dd1fdfb9dc8e77054fd
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M lld/ELF/ICF.cpp
    M lld/ELF/InputSection.cpp
    M lld/ELF/InputSection.h
    M lld/test/ELF/icf10.s

  Log Message:
  -----------
  [ELF] --icf: don't fold a section without relocation and a section with relocations for SHT_CREL

Similar to commit 686cff17cc310884e48ae963bf7507f96950cc90 for SHT_REL (#57693).
CREL hasn't been tested with ICF before.

And avoid a pitfall that eqClass[0] might interfere with ICF.

(cherry picked from commit e82f0838ae88ad69515ebec234765e3e2607bebf)



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