testsuite: allow opd section
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 17 Nov 2020 16:14:13 +0000 (11:14 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 17 Nov 2020 16:28:23 +0000 (11:28 -0500)
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

index accf3235b67e08562347bb4f92aca966dc909c68..d66f2e13006ecea6d72e1aeb08cecc3ea61775c5 100644 (file)
@@ -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\"} } } */