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 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) }
 }

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