os/linux/keg_relocate: remove protodesc_cold exclusion

This needs to be handled more carefully. It probably works fine for
bottles built *after* this change was added, but it breaks bottles built
before this exclusion was added.

Let's remove it for now to limit the extent of the breakage.
This commit is contained in:
Carlo Cabrera 2025-08-12 00:27:39 +08:00 committed by Carlo Cabrera
parent 04b47bc1aa
commit ef89522446
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -19,9 +19,6 @@ class Keg
def change_rpath!(file, old_prefix, new_prefix) def change_rpath!(file, old_prefix, new_prefix)
return false if !file.elf? || !file.dynamic_elf? return false if !file.elf? || !file.dynamic_elf?
# Skip relocation of files with `protodesc_cold` sections because patchelf.rb seems to break them.
# https://github.com/Homebrew/homebrew-core/pull/232490#issuecomment-3161362452
return false if Hardware::CPU.intel? && file.section_names.include?("protodesc_cold")
updated = {} updated = {}
old_rpath = file.rpath old_rpath = file.rpath