* ld-scripts/include-sections.t: Discard all sections not
authorNick Clifton <nickc@redhat.com>
Mon, 21 Jul 2008 08:38:35 +0000 (08:38 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 21 Jul 2008 08:38:35 +0000 (08:38 +0000)
        explicitly requested by the rest of the linker script.
        * ld-scripts/include-1.d: Expect test to fail for AIX ports.
        Do not assume that the .text section will be marked readonly.
        * ld-scripts/include.s: Replace .section directives with just
        .text or .data.

ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/include-1.d
ld/testsuite/ld-scripts/include-sections.t
ld/testsuite/ld-scripts/include.s

index f613aec47ee85d03469a65d6b1de569eeb8c0cab..2538dc494157a59dca8f97a97a53de63038d7a5a 100644 (file)
@@ -1,3 +1,12 @@
+2008-07-21  Nick Clifton  <nickc@redhat.com>
+
+       * ld-scripts/include-sections.t: Discard all sections not
+       explicitly requested by the rest of the linker script.
+       * ld-scripts/include-1.d: Expect test to fail for AIX ports.
+       Do not assume that the .text section will be marked readonly.
+       * ld-scripts/include.s: Replace .section directives with just
+       .text or .data.
+
 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
 
        * ld-arm/attr-merge-wchar-0.s,ld-arm/attr-merge-wchar-2.s,
index fc7617be5d234eb77ff6137c077efca9a1cd3dc4..65cef4d559f5ec55e419dfb30c0b855bbe59db59 100644 (file)
@@ -2,10 +2,12 @@
 # source: include.s
 # ld: -T include-1.t
 # objdump: -w -h
+# xfail: "*-aix*"
+# AIX targets rename the .text and .data sectons...
 
 .*:     file format .*
 
 Sections:
 Idx +Name +Size +VMA +LMA +File off +Algn +Flags
-  0 .text         0+000000c  0+0000000  0+0000000  [0-9a-f]+  2\*\*[0-9]+  CONTENTS, ALLOC, LOAD, READONLY, CODE
+  0 .text         0+000000c  0+0000000  0+0000000  [0-9a-f]+  2\*\*[0-9]+  CONTENTS, ALLOC, LOAD,.*CODE
   1 .data         0+000000c  0+0100000  0+0100000  [0-9a-f]+  2\*\*[0-9]+  CONTENTS, ALLOC, LOAD, DATA
index d5e500b01af43806038aa63193b696eddbb8f68d..5d6ca1e1ba423fcf63cf91e0f67c7e4e71699cae 100644 (file)
@@ -1,4 +1,5 @@
 SECTIONS {
         .text : { *(.text) } >rom
         INCLUDE include-data.t
+        /DISCARD/ : { *(*) }
 }
index bf12fbe82ec7f0c264c4b30d73adc513db25f7e7..5b8fda69383ead5d5502fdc8448fb5f5dcf32b64 100644 (file)
@@ -1,9 +1,9 @@
-       .section .text, "ax", "progbits"
+       .text
        .4byte 0x11223344
        .4byte 0x55667788
        .4byte 0x99aabbcc
 
-       .section .data, "aw", "progbits"
+       .data
        .4byte 0x01020304
        .4byte 0x05060708
        .4byte 0x090a0b0c