This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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,

Any comments?


H.J.
---
	* testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and
	___stop_scnfoo.
	* testsuite/ld-elf/pr21562d.t: Likewise.
---
 ld/testsuite/ld-elf/pr21562c.t | 2 ++
 ld/testsuite/ld-elf/pr21562d.t | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ld/testsuite/ld-elf/pr21562c.t b/ld/testsuite/ld-elf/pr21562c.t
index f9cb901afb..a95a6f111a 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 c0cea61f06..dd5fb39c09 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.14.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]