This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH ARM] Fix ld-arm/script-type failure
- From: Matthew Gretton-Dann <matthew dot gretton-dann at arm dot com>
- To: binutils at sourceware dot org
- Date: Mon, 20 Sep 2010 16:33:52 +0100
- Subject: [PATCH ARM] Fix ld-arm/script-type failure
All,
Please can someone review and approve the attached patch which fixes the
current ld-arm/script-type failure which is seen on ARM targets.
The proposed patch alters the linker script file in a way suggested by
Alan Modra (see this mailing list discussion:
http://sourceware.org/ml/binutils/2010-09/msg00271.html).
I have tested this against arm-none-eabi.
Proposed ChangeLog:
2010-09-20 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* ld-arm/script-type.ld: Update to generate symbols in a
section.
Thanks,
Matt
--
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd
diff --git a/ld/testsuite/ld-arm/script-type.ld b/ld/testsuite/ld-arm/script-type.ld
index 684fc97..01995eb 100644
--- a/ld/testsuite/ld-arm/script-type.ld
+++ b/ld/testsuite/ld-arm/script-type.ld
@@ -1,7 +1,9 @@
SECTIONS {
- foo_a = bar_a;
- foo_t = bar_t;
- foo_o = bar_o;
- .text : { *(.text) }
- .ARM.attribues 0 : { *(.ARM.attributes) }
+ .text : {
+ foo_a = bar_a;
+ foo_t = bar_t;
+ foo_o = bar_o;
+ *(.text)
+ }
+ .ARM.attribues 0 : { *(.ARM.attributes) }
}