diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-24 08:58:43 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-24 08:58:56 -0800 |
commit | 8b77421a20c22c9a66048e7d1484b149da060b67 (patch) | |
tree | 3d1122445adcb770064a13589d6d5e058c867219 /ld | |
parent | 30649c145114fe3aac089bf06e9457238d46341b (diff) | |
download | gdb-8b77421a20c22c9a66048e7d1484b149da060b67.zip gdb-8b77421a20c22c9a66048e7d1484b149da060b67.tar.gz gdb-8b77421a20c22c9a66048e7d1484b149da060b67.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr21562c.t | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr21562d.t | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8638f7a..9c10c7e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-11-24 H.J. Lu <hongjiu.lu@intel.com> + + * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and + ___stop_scnfoo. + * testsuite/ld-elf/pr21562d.t: Likewise. + 2017-11-23 Martin Storsjo <martin@martin.st> * 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 f9cb901..a95a6f1 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 c0cea61..dd5fb39 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 = .); } |