os/linux/elf: fix rpath precedence

This commit is contained in:
Ruoyu Zhong 2025-08-11 18:28:58 +08:00 committed by GitHub
parent 66737b5e82
commit 42b332055a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,7 +196,7 @@ module ELFShim
end
@interpreter = patcher.interpreter
@rpath = patcher.rpath || patcher.runpath
@rpath = patcher.runpath || patcher.rpath
@section_names = patcher.elf.sections.map(&:name).compact_blank
@dt_flags_1 = dynamic_segment&.tag_by_type(:flags_1)&.value