diff options
| author | Mark Wielaard <[email protected]> | 2016-02-04 09:53:41 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-02-10 11:27:18 +0100 |
| commit | 22035605b9da4a6ee07385c0e7715fe8d35488a4 (patch) | |
| tree | 2090af6d955f9e78ebdc4fc515c20d531b0c5ee7 /tests/testfile-nobitsalign.bz2 | |
| parent | 203f0a3eec8c630c5183fb9984d66339c1ea3c31 (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-x | tests/testfile-nobitsalign.bz2 | bin | 0 -> 2921 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/testfile-nobitsalign.bz2 b/tests/testfile-nobitsalign.bz2 Binary files differnew file mode 100755 index 00000000..7f0d4249 --- /dev/null +++ b/tests/testfile-nobitsalign.bz2 |
