forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,4 +8,4 @@ Sections:
|
||||
* 2 * \.bss * 0+0 .*
|
||||
* ALLOC
|
||||
* 3 * \.loader .*
|
||||
* CONTENTS, ALLOC, LOAD
|
||||
* CONTENTS, LOAD
|
||||
|
||||
@@ -8,4 +8,4 @@ Sections:
|
||||
* 2 * \.bss * 0+0 .*
|
||||
* ALLOC
|
||||
* 3 * \.loader .*
|
||||
* CONTENTS, ALLOC, LOAD
|
||||
* CONTENTS, LOAD
|
||||
|
||||
@@ -8,4 +8,4 @@ Sections:
|
||||
* 2 * \.bss * 0+8 .*
|
||||
* ALLOC
|
||||
* 3 * \.loader .*
|
||||
* CONTENTS, ALLOC, LOAD
|
||||
* CONTENTS, LOAD
|
||||
|
||||
Reference in New Issue
Block a user