1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-28 06:35:49 +00:00

Fix elf-dump --dump-section-data for .bss section

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jason W Kim 2010-12-16 00:15:10 +00:00
parent d67ca9de89
commit 6147bda061

@ -97,8 +97,11 @@ class Section:
print " ])"
elif dumpdata:
f.seek(self.sh_offset)
data = f.read(self.sh_size)
print " ('_section_data', '%s')" % common_dump.dataToHex(data)
if self.sh_type != 8: # != SHT_NOBITS
data = f.read(self.sh_size)
print " ('_section_data', '%s')" % common_dump.dataToHex(data)
else:
print " ('_section_data', '')"
print " ),"
def dumpSymtab(f, section, strtab):