diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-24 06:26:36 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-24 06:28:48 -0800 |
commit | 87d9873273e0694e28550c4b401a028239702509 (patch) | |
tree | e350e55961746d94be319e4a59feb41a716de58d | |
parent | a63f2d2feedcfce401ae1d7d03d119bfa5e4d8bc (diff) | |
download | binutils-gdb-users/hjl/underscore.tar.gz |
Update PR ld/21562 tests for underscore targetsusers/hjl/underscore
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.
-rw-r--r-- | ld/testsuite/ld-elf/pr21562c.t | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr21562d.t | 2 |
2 files changed, 4 insertions, 0 deletions
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 = .); } |