Skip to content

Commit 3b512c4

Browse files
authored
Allowing dynamic section to link to null strtab (#618)
1 parent 35b7169 commit 3b512c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elftools/elf/dynamic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class DynamicSection(Section, Dynamic):
234234
"""
235235
def __init__(self, header, name, elffile):
236236
Section.__init__(self, header, name, elffile)
237-
stringtable = elffile.get_section(header['sh_link'], ('SHT_STRTAB', 'SHT_NOBITS'))
237+
stringtable = elffile.get_section(header['sh_link'], ('SHT_STRTAB', 'SHT_NOBITS', 'SHT_NULL'))
238238
Dynamic.__init__(self, self.stream, self.elffile, stringtable,
239239
self['sh_offset'], self['sh_type'] == 'SHT_NOBITS')
240240

0 commit comments

Comments
 (0)