From: nickc Date: Fri, 25 Jul 2003 10:50:03 +0000 (+0000) Subject: Include SEC_CODE so that code sections are assigned the LOAD attribute. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0d488204ecbbb0e4d539154f704af53b37d0f31c;p=pf3gnuchains%2Fsourceware.git Include SEC_CODE so that code sections are assigned the LOAD attribute. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5fe2b33f3e..f95dea1990 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Nick Clifton + + * coff-arm.c (EXTRA_S_FLAGS): Include SEC_CODE so that code + sections are assigned the LOAD attribute. + 2003-07-25 Kaz Kojima * elf32-sh.c: Convert to C90. Replace PTR with void *. diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index 98d7048a26..3655a30903 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