aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-11-06 06:36:42 +0000
committerAlan Modra <amodra@gmail.com>2012-11-06 06:36:42 +0000
commit0df8acdee931c0c97d12b1edff2b3d44162ed7c9 (patch)
tree901fe3814e2b08b5329afdd16b2b0a5f3f3ac657
parent18498503409294889b1a7e9a5b5d53a959c6c915 (diff)
downloadgdb-0df8acdee931c0c97d12b1edff2b3d44162ed7c9.zip
gdb-0df8acdee931c0c97d12b1edff2b3d44162ed7c9.tar.gz
gdb-0df8acdee931c0c97d12b1edff2b3d44162ed7c9.tar.bz2
Allow SEC_CODE and SEC_READONLY in section flags.
-rw-r--r--bfd/ChangeLog2
-rw-r--r--bfd/coff-ppc.c14
2 files changed, 10 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0f27dab..6e6937ce 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -4,6 +4,8 @@
tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
section flags.
+ * coff-ppc.c (TARGET_LITTLE_SYM): Likewise.
+ (TARGET_BIG_SYM): Likewise.
2012-11-06 Alan Modra <amodra@gmail.com>
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index fa04933..19ae3e6 100644
--- a/bfd/coff-ppc.c
+++ b/bfd/coff-ppc.c
@@ -2480,10 +2480,11 @@ const bfd_target TARGET_LITTLE_SYM =
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
#ifndef COFF_WITH_PE
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
+ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
+ | SEC_RELOC), /* section flags */
#else
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
- | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
+ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
+ | SEC_RELOC | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
#endif
0, /* leading char */
@@ -2540,10 +2541,11 @@ const bfd_target TARGET_BIG_SYM =
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
#ifndef COFF_WITH_PE
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
+ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
+ | SEC_RELOC), /* section flags */
#else
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
- | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
+ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY
+ | SEC_RELOC | SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
#endif
0, /* leading char */