]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Arm tests: reduce objdump's output and improve some matching patterns
authorMatthieu Longo <matthieu.longo@arm.com>
Wed, 21 May 2025 10:08:31 +0000 (11:08 +0100)
committerMatthieu Longo <matthieu.longo@arm.com>
Wed, 11 Jun 2025 17:33:55 +0000 (18:33 +0100)
commit1240a24b97177e1fcb565729b1c57594baaa75e4
treeae11cbf4ff95e0da7dcdfcccb4022caa7d8003cd
parenteb6c9310ee4d6cbde509d251fafb54ae45f5a5bf
Arm tests: reduce objdump's output and improve some matching patterns

Linker scripts can change the sections order in the output. Some matching
patterns in tests try to detect the end of a section by detecting the
beginning of the next one. However, they mistakenly enforce the name of
the next section without any need. This caused the tests to break due to
minor changes to the linker scripts.

This patch adds '-j <interesting-section>' to the arguments of objdump
to dump only relevant information for the tests. This removed the issue
related to the ordering of the sections. The matching patterns were also
made stricter to match better the expected output.
ld/testsuite/ld-arm/unwind-1.d
ld/testsuite/ld-arm/unwind-2.d
ld/testsuite/ld-arm/unwind-3.d
ld/testsuite/ld-arm/unwind-4.d