fix fail on libc-2.15
This commit is contained in:
parent
29f3d6f005
commit
98c1a21ed0
|
@ -112,7 +112,7 @@ module OneGadget
|
|||
def rw_offset
|
||||
elf = ELFTools::ELFFile.new(File.open(file))
|
||||
# How to find this offset correctly..?
|
||||
elf.segment_by_type(:dynamic).tag_by_type(:pltgot).header.d_val & -0x1000
|
||||
elf.segment_by_type(:dynamic).tag_by_type(:pltgot).header.d_val
|
||||
end
|
||||
|
||||
def should_null(str)
|
||||
|
|
Loading…
Reference in New Issue