This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Update PR ld/14156 tests
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Tue, 31 Jul 2012 13:56:18 -0700
- Subject: PATCH: Update PR ld/14156 tests
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to update PR ld/14156 tests.
H.J.
--
* ld-elf/fini0.s: Indent global directive.
* ld-elf/foo0.s: Likewise.
* ld-elf/init0.s: Likewise.
* ld-elf/pr14156c.t: Keep text section.
diff --git a/ld/testsuite/ld-elf/fini0.s b/ld/testsuite/ld-elf/fini0.s
index f2ccfb7..3bb53f0 100644
--- a/ld/testsuite/ld-elf/fini0.s
+++ b/ld/testsuite/ld-elf/fini0.s
@@ -11,6 +11,6 @@ main:
.section .fini
.p2align 2
-.globl foo
+ .global foo
.type foo,%function
foo:
diff --git a/ld/testsuite/ld-elf/foo0.s b/ld/testsuite/ld-elf/foo0.s
index df71662..8104970 100644
--- a/ld/testsuite/ld-elf/foo0.s
+++ b/ld/testsuite/ld-elf/foo0.s
@@ -11,6 +11,6 @@ main:
.section .foo,"ax",%progbits
.p2align 2
-.globl foo
+ .global foo
.type foo,%function
foo:
diff --git a/ld/testsuite/ld-elf/init0.s b/ld/testsuite/ld-elf/init0.s
index 3c8cf8c..68281d2 100644
--- a/ld/testsuite/ld-elf/init0.s
+++ b/ld/testsuite/ld-elf/init0.s
@@ -11,6 +11,6 @@ main:
.section .init
.p2align 2
-.globl foo
+ .global foo
.type foo,%function
foo:
diff --git a/ld/testsuite/ld-elf/pr14156c.t b/ld/testsuite/ld-elf/pr14156c.t
index 97ad77d..c8be2c5 100644
--- a/ld/testsuite/ld-elf/pr14156c.t
+++ b/ld/testsuite/ld-elf/pr14156c.t
@@ -1,4 +1,5 @@
SECTIONS {
+ .text : { *(.text) }
.foo : { *(SORT_NONE(.foo)) }
/DISCARD/ : { *(.*) }
}