* added new test file - an object compiled from C++, on x64
authorEli Bendersky <eliben@gmail.com>
Fri, 23 Sep 2011 14:14:08 +0000 (17:14 +0300)
committerEli Bendersky <eliben@gmail.com>
Fri, 23 Sep 2011 14:14:08 +0000 (17:14 +0300)
* adjusted readelf to limit width of symbol names in relocation dump

scripts/readelf.py
tests/testfiles/penalty_64.o.elf [new file with mode: 0644]

index d90b5bf116f7450d1bba35e0b8ea038c90897083..d103643f12447dd1906815861a74f34b5dffc592 100755 (executable)
@@ -309,7 +309,7 @@ class ReadElf(object):
                     symbol_name = symsec.name
                 else:
                     symbol_name = symbol.name
-                self._emit(' %s %s%s' % (
+                self._emit(' %s %s%22.22s' % (
                     self._format_hex(
                         symbol['st_value'],
                         fullhex=True, lead0x=False),
diff --git a/tests/testfiles/penalty_64.o.elf b/tests/testfiles/penalty_64.o.elf
new file mode 100644 (file)
index 0000000..aca100b
Binary files /dev/null and b/tests/testfiles/penalty_64.o.elf differ