From 5f410aa50ce2c6d42e7f2d1ac58589ef1bf8c16a Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 2 Dec 2020 21:53:42 +0100 Subject: [PATCH] testsuite/ld-elf/pr26936.d: Pass -W. Required for the expected "CU:" to be emitted for long source-paths. See binutils/dwarf.c: if (do_wide || strlen (directory) < 76) printf (_("CU: %s/%s:\n"), directory, file_table[0].name); else printf ("%s:\n", file_table[0].name); --- ld/ChangeLog | 4 ++++ ld/testsuite/ld-elf/pr26936.d | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 5b26496efcf..c0f5fc36be1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2020-12-02 Hans-Peter Nilsson + + * testsuite/ld-elf/pr26936.d: Pass -W. + 2020-12-01 H.J. Lu PR ld/26970 diff --git a/ld/testsuite/ld-elf/pr26936.d b/ld/testsuite/ld-elf/pr26936.d index 1a4dc77a063..5e48378c0cc 100644 --- a/ld/testsuite/ld-elf/pr26936.d +++ b/ld/testsuite/ld-elf/pr26936.d @@ -3,7 +3,7 @@ #source: pr26936c.s #as: --gen-debug #ld: -z noseparate-code -Ttext-segment 0x10000 -z max-page-size=0x1000 -#readelf: -wL +#readelf: -wL -W #target: [check_shared_lib_support] # Assembly source file for the HPPA assembler is renamed and modifed by # sed. mn10300 and riscv put different numbers of local symbols in -- 2.30.2