summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-05-10 13:08:24 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-05-10 13:08:24 +0000
commitfb464ccdfd2a0f4d3c66b62ceab2b5a4cbc0cbe3 (patch)
treea24630025ea3dc55915461f2a3cc53c8f550158e /bfd/coffcode.h
parent8a3c1578db45f41d8ca9fd0d3113c4f6be8a6216 (diff)
downloadbinutils-redhat-fb464ccdfd2a0f4d3c66b62ceab2b5a4cbc0cbe3.tar.gz
XCOFF/AIX: Remove SEC_ALLOC flags for unmapped sections.
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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 9d9c992152..2a1a17260e 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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