aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-07-25 10:50:03 +0000
committerNick Clifton <nickc@redhat.com>2003-07-25 10:50:03 +0000
commit20650579793e339d3438ee509c464a253d7ef079 (patch)
treec10f475682894ad9a1ba7b51a6a5d6a56298e956 /bfd/coff-arm.c
parent09fd220b8e3cdc177038c45e8d65b103fab62ba6 (diff)
downloadgdb-20650579793e339d3438ee509c464a253d7ef079.zip
gdb-20650579793e339d3438ee509c464a253d7ef079.tar.gz
gdb-20650579793e339d3438ee509c464a253d7ef079.tar.bz2
Include SEC_CODE so that code sections are assigned the LOAD attribute.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r--bfd/coff-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 98d7048..3655a30 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -2613,9 +2613,9 @@ coff_arm_final_link_postscript (abfd, pfinfo)
#ifndef EXTRA_S_FLAGS
#ifdef COFF_WITH_PE
-#define EXTRA_S_FLAGS (SEC_LINK_ONCE | SEC_LINK_DUPLICATES)
+#define EXTRA_S_FLAGS (SEC_CODE | SEC_LINK_ONCE | SEC_LINK_DUPLICATES)
#else
-#define EXTRA_S_FLAGS 0
+#define EXTRA_S_FLAGS SEC_CODE
#endif
#endif