aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2025-06-20 12:24:58 +0100
committerMatthieu Longo <matthieu.longo@arm.com>2025-06-25 09:41:04 +0100
commitc35217309a9753e1a5666626f779bfd71668de9d (patch)
tree300e4f45aeb2256be259cff71f3d20ffb1508137 /gdb/python/python.c
parent5d721846dc366dff149b83776a5584a2b7f1243f (diff)
downloadbinutils-c35217309a9753e1a5666626f779bfd71668de9d.zip
binutils-c35217309a9753e1a5666626f779bfd71668de9d.tar.gz
binutils-c35217309a9753e1a5666626f779bfd71668de9d.tar.bz2
arm testsuite: add two corner cases for EABI string attributes
The current testsuite for gas/readelf lacked two tests for EABI build attributes: - one when the final attribute is an empty string. - one when the final attribute is a string missing the NULL terminator. Those two issues cannot occur with Object Attributes v1 (OAv1) sections created by the GNU binutils. Indeed a value of '\0' (empty string) for a tag with a string value is considered as the default value for the attribute, and consequently is eliminated by Gas from the output object file during the serialization. However, readelf should be able to process correctly files of an unknown origin that could contain those two use cases. This patch adds the two tests mentioned above. The first one is marked as XFAIL because the empty string is not processed correctly by readelf when it is in the last position. The second one passes, but simply print out "[...]" without mentioning that the NTBS is corrupted. A following patch will fix the bug in readelf, and will amend the newly introduced tests.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions