This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
vxworks targets vs testsuite .init_array/.fini_array
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 22 Jul 2010 14:18:23 +0930
- Subject: vxworks targets vs testsuite .init_array/.fini_array
VxWorks doesn't have writable .init_array/.fini_arry, causing the
relatively new dwarf tests to fail on all vxworks targets, with gas
warning about setting incorrect section attributes. Since we have
built-in knowledge about types and attributes of these sections, it
isn't necessary to specify them. Unfortunately when you remove the
attribute, the h8300 backend warns about a missing attribute, which is
silly IMNSHO.
* gas/arm/mapdir.s: Don't specify attr/type for .fini_array.
* gas/elf/dwarf2-3.s: Don't specify attr for .init_array.
* gas/elf/dwarf2-3.d: Don't run on h8300.
Index: gas/testsuite/gas/arm/mapdir.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arm/mapdir.s,v
retrieving revision 1.1
diff -u -p -r1.1 mapdir.s
--- gas/testsuite/gas/arm/mapdir.s 31 Jul 2009 18:14:07 -0000 1.1
+++ gas/testsuite/gas/arm/mapdir.s 22 Jul 2010 03:26:09 -0000
@@ -2,7 +2,7 @@
# generated. This could lead to duplicate mapping symbols at
# the same address.
- .section .fini_array,"aw",%fini_array
+ .section .fini_array
.thumb
.align 2
.type __do_global_dtors_aux_fini_array_entry, %object
Index: gas/testsuite/gas/elf/dwarf2-3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/dwarf2-3.d,v
retrieving revision 1.1
diff -u -p -r1.1 dwarf2-3.d
--- gas/testsuite/gas/elf/dwarf2-3.d 5 Jul 2010 15:07:20 -0000 1.1
+++ gas/testsuite/gas/elf/dwarf2-3.d 22 Jul 2010 03:26:10 -0000
@@ -1,6 +1,6 @@
#readelf: -wl
#name: DWARF2 3
-#not-target: ia64-*-*
+#not-target: ia64-*-* h8300-*-*
Raw dump of debug contents of section .debug_line:
Index: gas/testsuite/gas/elf/dwarf2-3.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/elf/dwarf2-3.s,v
retrieving revision 1.2
diff -u -p -r1.2 dwarf2-3.s
--- gas/testsuite/gas/elf/dwarf2-3.s 14 Jul 2010 14:22:48 -0000 1.2
+++ gas/testsuite/gas/elf/dwarf2-3.s 22 Jul 2010 03:26:10 -0000
@@ -7,7 +7,7 @@
.Ldebug_line0:
.text
.Ltext0:
- .section .init_array,"aw"
+ .section .init_array
.align 4
.type init_array, %object
.size init_array, 4
--
Alan Modra
Australia Development Lab, IBM