summaryrefslogtreecommitdiff
path: root/bfd/coff-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-11-06 06:36:40 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-11-06 06:36:40 +0000
commit456ead43cd262ba81e131894fea91e461d053941 (patch)
tree74de342ccbd97975d13ec954a34621b133ea025b /bfd/coff-ppc.c
parent0fd6ba5f6f11d27b086dcfd6e09152a5da3e2d34 (diff)
downloadbinutils-redhat-456ead43cd262ba81e131894fea91e461d053941.tar.gz
Allow SEC_CODE and SEC_READONLY in section flags.
Diffstat (limited to 'bfd/coff-ppc.c')
-rw-r--r--bfd/coff-ppc.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index fa04933faf..19ae3e6937 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 */