elf: fix caching of dynamic_elf?
This commit is contained in:
parent
a98bbbc644
commit
3ab93b6e2b
@ -71,7 +71,7 @@ module ELFShim
|
||||
def dynamic_elf?
|
||||
return @dynamic_elf if defined? @dynamic_elf
|
||||
|
||||
if which "readelf"
|
||||
@dynamic_elf = if which "readelf"
|
||||
Utils.popen_read("readelf", "-l", to_path).include?(" DYNAMIC ")
|
||||
elsif which "file"
|
||||
!Utils.popen_read("file", "-L", "-b", to_path)[/dynamic|shared/].nil?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user