From 8895913273b97d07f9576f5eb497d39b78166daf Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 17 Nov 2020 11:14:13 -0500 Subject: [PATCH] testsuite: allow opd section PPC64 Linux ELFv1 uses function descriptors with the descriptor placed in the .opd section. This patch expands the pattern in the testcase to accept .opd section name associated with the function name. gcc/testsuite/ChangeLog: * gcc.dg/pr25376.c: Allow .opd section. --- gcc/testsuite/gcc.dg/pr25376.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr25376.c b/gcc/testsuite/gcc.dg/pr25376.c index accf3235b67..d66f2e13006 100644 --- a/gcc/testsuite/gcc.dg/pr25376.c +++ b/gcc/testsuite/gcc.dg/pr25376.c @@ -7,4 +7,4 @@ void simple (void) } /* { dg-final { scan-assembler "my_named_section" } } */ -/* { dg-final { scan-assembler-symbol-section {simple$} {^\.?my_named_section|simple\[DS\]} } } */ +/* { dg-final { scan-assembler-symbol-section {simple$} {^\.?my_named_section|simple\[DS\]|^\"\.opd\"} } } */ -- 2.11.4.GIT