]> sourceware.org Git - glibc.git/commit
elf/tst-big-note: Improve accuracy of test [BZ #20419]
authorFlorian Weimer <fweimer@redhat.com>
Fri, 1 Mar 2019 17:53:03 +0000 (18:53 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 1 Mar 2019 17:53:42 +0000 (18:53 +0100)
commitc259196b5005812aa3294dbf4eeca29b266a4522
tree05195ae1b2e826cc3ba42f09913e3a923f6ba6e9
parent928b305d3f6773b6a8cd1202da4f7d5d9a654456
elf/tst-big-note: Improve accuracy of test [BZ #20419]

It is possible that the link editor injects an allocated ABI tag note
before the artificial, allocated large note in the test.  Note parsing
in open_verify stops when the first ABI tag note is encountered, so if
the ABI tag note comes first, the problematic code is not actually
exercised.

Also tweak the artificial note so that it is a syntactically valid
4-byte aligned note, in case the link editor tries to parse notes and
process them.

Improves the testing part of commit 0065aaaaae51cd60210ec3a7e13.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
elf/Makefile
elf/tst-big-note-lib.S
This page took 0.045149 seconds and 5 git commands to generate.