summaryrefslogtreecommitdiffstats
path: root/tests/testfile-nobitsalign.bz2
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2016-02-04 09:53:41 +0100
committerMark Wielaard <[email protected]>2016-02-10 11:27:18 +0100
commit22035605b9da4a6ee07385c0e7715fe8d35488a4 (patch)
tree2090af6d955f9e78ebdc4fc515c20d531b0c5ee7 /tests/testfile-nobitsalign.bz2
parent203f0a3eec8c630c5183fb9984d66339c1ea3c31 (diff)
libelf: elf_getdata should not adjust alignment for SHT_NOBITS sections.
In commit c0748e "libelf: More checking of valid sh_addralign values." we adjusted bogus alignment of data buffers if they were greater than the offset of the data in the file. This works OK, except when there is no data in the file. So make sure to not adjust any NOBITS sections. Also adds a test that shows the issue and makes sure elflint is called with --gnu in run-strip-test.sh. https://bugzilla.redhat.com/show_bug.cgi?id=1303845 Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/testfile-nobitsalign.bz2')
-rwxr-xr-xtests/testfile-nobitsalign.bz2bin0 -> 2921 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/testfile-nobitsalign.bz2 b/tests/testfile-nobitsalign.bz2
new file mode 100755
index 00000000..7f0d4249
--- /dev/null
+++ b/tests/testfile-nobitsalign.bz2
Binary files differ