+2011-09-27 Kai Tietz <ktietz@redhat.com>
+
+ * config/obj-coff.c (obj_coff_section): Add 'e' as specifier
+ for marking section SEC_EXCLUDE.
+
2011-09-22 Tristan Gingold <gingold@adacore.com>
* NEWS: Add marker for 2.22.
'o' for over
'w' for data
'd' (apparently m88k for data)
+ 'e' for exclude
'x' for text
'r' for read-only data
's' for shared data (PE)
}
switch (attr)
{
+ case 'e':
+ /* Exclude section from linking. */
+ flags |= SEC_EXCLUDE;
+ break;
+
case 'b':
/* Uninitialised data section. */
flags |= SEC_ALLOC;
+2011-09-27 Kai Tietz <ktietz@redhat.com>
+
+ * gas/pe/pe.exp: Add new testcase.
+ * gas/pe/section-exclude.d: New file.
+ * gas/pe/section-exclude.s: New file.
+
2011-09-27 David S. Miller <davem@davemloft.net>
* gas/sparc/hpcvis3.s: Update to use float reg for random insn.
run_dump_test "section-align-1"
run_dump_test "section-align-3"
+run_dump_test "section-exclude"
# SEH related tests
--- /dev/null
+#objdump: -h
+#name: section exclude
+
+# Test that 'e' works in .section directives.
+
+.*: .*
+
+Sections:
+Idx Name *Size *VMA *LMA *File off *Algn
+ 3 .foo1 00000004 0000000000000000 0000000000000000 000000b4 2**2
+ CONTENTS, EXCLUDE
+ 0 \.text 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 1 \.data 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 2 \.bss 0*0000000 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*
+ 3 \.foo1 0*0000004 0*0000000 0*0000000 0*0000000 2\*\*[24]
+.*CONTENS, EXCLUDE
+.*
--- /dev/null
+ .section .foo1,"e"
+ .byte 0,0,0,0