XCOFF/AIX: Remove SEC_ALLOC flags for unmapped sections.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 10 May 2013 13:08:24 +0000 (13:08 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 10 May 2013 13:08:24 +0000 (13:08 +0000)
The .except, .loader and .typchk are not mapped to memory,
so do not set their SEC_ALLOC flag.

bfd/ChangeLog:

        * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
        of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.

ld/testsuite/ChangeLog:

        * ld-powerpc/aix-core-sec-1.hd, ld-powerpc/aix-core-sec-2.hd,
        ld-powerpc/aix-core-sec-3.hd: Adjust expected section flags
        for section .loader.

bfd/ChangeLog
bfd/coffcode.h
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/aix-core-sec-1.hd
ld/testsuite/ld-powerpc/aix-core-sec-2.hd
ld/testsuite/ld-powerpc/aix-core-sec-3.hd

index e680c3ac41ec390838a6c2ce77e8e792081ab3a4..eb254b7f2ed6bf85b52d6340d9591ea8d1acf63f 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
+       of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
+
 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
 
        * bfd.c (_bfd_default_error_handler): Replace use of putc
index 9d9c992152111ad27fc3e65223edb0d50dc07cff..2a1a17260ed3d440ce161bae314726ab4175d7ba 100644 (file)
@@ -795,6 +795,12 @@ styp_to_sec_flags (bfd *abfd ATTRIBUTE_UNUSED,
   else if (styp_flags & STYP_PAD)
     sec_flags = 0;
 #ifdef RS6000COFF_C
+  else if (styp_flags & STYP_EXCEPT)
+    sec_flags |= SEC_LOAD;
+  else if (styp_flags & STYP_LOADER)
+    sec_flags |= SEC_LOAD;
+  else if (styp_flags & STYP_TYPCHK)
+    sec_flags |= SEC_LOAD;
   else if (styp_flags & STYP_DWARF)
     sec_flags |= SEC_DEBUGGING;
 #endif
index a6919e39f8b64bcb24e50b38f18e76307c6d9fca..ad0b0000bf2e561a72d5385524ccf6f3044591f4 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ld-powerpc/aix-core-sec-1.hd, ld-powerpc/aix-core-sec-2.hd,
+       ld-powerpc/aix-core-sec-3.hd: Adjust expected section flags
+       for section .loader.
+
 2013-05-03  Maciej W. Rozycki  <macro@codesourcery.com>
 
        PR ld/15365
index 19d09e47ee5d7ccb6a29f401cfd0b5803e8370ac..8d81e50aa12ba1f7868faeb03d3cc16a1919d211 100644 (file)
@@ -8,4 +8,4 @@ Sections:
  * 2 * \.bss * 0+0 .*
  * ALLOC
  * 3 * \.loader .*
- * CONTENTS, ALLOC, LOAD
+ * CONTENTS, LOAD
index 39facd81e077318cfe81437942c136f8f8a8b1e3..1152013a4638bafe148f2f4c2dc3a7fe2b7dfe12 100644 (file)
@@ -8,4 +8,4 @@ Sections:
  * 2 * \.bss * 0+0 .*
  * ALLOC
  * 3 * \.loader .*
- * CONTENTS, ALLOC, LOAD
+ * CONTENTS, LOAD
index f7acc39ec74003d27e883f52e38c8028678ea826..61a93ae7f6d47361cbb8c3e9d4bb6cd6dc82eaa2 100644 (file)
@@ -8,4 +8,4 @@ Sections:
  * 2 * \.bss * 0+8 .*
  * ALLOC
  * 3 * \.loader .*
- * CONTENTS, ALLOC, LOAD
+ * CONTENTS, LOAD
This page took 0.028908 seconds and 4 git commands to generate.