[PATCH v1 0/1] Arm tests: reduce objdump's output and improve some matching patterns

Matthieu Longo matthieu.longo@arm.com
Wed Jun 11 12:23:25 GMT 2025


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.

Previous revision of the patch: https://inbox.sourceware.org/binutils/20250522143523.2303513-2-matthieu.longo@arm.com/

Regression tested on arm-none-eabi.

Matthieu Longo (1):
  Arm tests: reduce objdump's output and improve some matching patterns

 ld/testsuite/ld-arm/unwind-1.d |  9 +++------
 ld/testsuite/ld-arm/unwind-2.d |  9 +++------
 ld/testsuite/ld-arm/unwind-3.d | 11 ++++-------
 ld/testsuite/ld-arm/unwind-4.d | 14 ++++----------
 4 files changed, 14 insertions(+), 29 deletions(-)

-- 
2.49.0



More information about the Binutils mailing list