Merge pull request #20423 from Homebrew/relocate-protodesc-cold-again

os/linux/keg_relocate: remove `protodesc_cold` exclusion
This commit is contained in:
Carlo Cabrera 2025-08-11 16:44:54 +00:00 committed by GitHub
commit 12a25495e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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