From 8b77421a20c22c9a66048e7d1484b149da060b67 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 24 Nov 2017 08:58:43 -0800 Subject: [PATCH] Update PR ld/21562 tests for underscore targets We also need to provide __start_scnfoo and __stop_scnfoo with the extra leading underscore for underscore targets. This patch fixed: FAIL: ld-elf/pr21562k FAIL: ld-elf/pr21562l FAIL: ld-elf/pr21562m FAIL: ld-elf/pr21562n for metag-linux, * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and ___stop_scnfoo. * testsuite/ld-elf/pr21562d.t: Likewise. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/pr21562c.t | 2 ++ ld/testsuite/ld-elf/pr21562d.t | 2 ++ 3 files changed, 10 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8638f7a10e0..9c10c7e90fc 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-11-24 H.J. Lu + + * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and + ___stop_scnfoo. + * testsuite/ld-elf/pr21562d.t: Likewise. + 2017-11-23 Martin Storsjo * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and diff --git a/ld/testsuite/ld-elf/pr21562c.t b/ld/testsuite/ld-elf/pr21562c.t index f9cb901afb6..a95a6f111a1 100644 --- a/ld/testsuite/ld-elf/pr21562c.t +++ b/ld/testsuite/ld-elf/pr21562c.t @@ -1,7 +1,9 @@ SECTIONS { .foo : { PROVIDE (__start_scnfoo = .); + PROVIDE (___start_scnfoo = .); *(scnfoo) PROVIDE (__stop_scnfoo = .); + PROVIDE (___stop_scnfoo = .); } } diff --git a/ld/testsuite/ld-elf/pr21562d.t b/ld/testsuite/ld-elf/pr21562d.t index c0cea61f069..dd5fb39c09a 100644 --- a/ld/testsuite/ld-elf/pr21562d.t +++ b/ld/testsuite/ld-elf/pr21562d.t @@ -1,5 +1,7 @@ SECTIONS { PROVIDE (__start_scnfoo = .); + PROVIDE (___start_scnfoo = .); .foo : { *(scnfoo) } PROVIDE (__stop_scnfoo = .); + PROVIDE (___stop_scnfoo = .); } -- 2.30.2