Include SEC_CODE so that code sections are assigned the LOAD attribute.
authorNick Clifton <nickc@redhat.com>
Fri, 25 Jul 2003 10:50:03 +0000 (10:50 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 25 Jul 2003 10:50:03 +0000 (10:50 +0000)
bfd/ChangeLog
bfd/coff-arm.c

index 5fe2b33f3e494a7796af9c8ad33e746e422022b4..f95dea19903521cda499ff57dee6727774690178 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-24  Nick Clifton  <nickc@redhat.com>
+
+       * coff-arm.c (EXTRA_S_FLAGS): Include SEC_CODE so that code
+       sections are assigned the LOAD attribute.
+
 2003-07-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>  
 
        * elf32-sh.c: Convert to C90.  Replace PTR with void *.
index 98d7048a26cc3a13bbb2019251e355af3ff8eed2..3655a30903b46d1304594071bb56be678bc2ef43 100644 (file)
@@ -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