This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [FIXED] arm-wince-pe-size reports empty .text
Thanks nick. It works as expected.
Cheers,
Shaun
was
0 .text 00000884 00000000 00000000 0000012c 2**2
CONTENTS, RELOC
now
0 .text 00000884 00000000 00000000 0000012c 2**2
CONTENTS, ALLOC, LOAD, RELOC, CODE
On Thu, 2003-07-24 at 07:54, Nick Clifton wrote:
> Hi Shaun,
>
> > The source file is just good old "Hello, world!". No magic, no inline
> > assembler. Is this a binutils bug?
>
> It certainly is. Please try the attached patch and let me know if it
> works for you.
>
> Cheers
> Nick
>
> 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.
>
> Index: bfd/coff-arm.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/coff-arm.c,v
> retrieving revision 1.45
> diff -c -3 -p -r1.45 coff-arm.c
> *** bfd/coff-arm.c 25 Jun 2003 06:40:18 -0000 1.45
> --- bfd/coff-arm.c 24 Jul 2003 13:57:02 -0000
> *************** coff_arm_final_link_postscript (abfd, pf
> *** 2613,2621 ****
>
> #ifndef EXTRA_S_FLAGS
> #ifdef COFF_WITH_PE
> ! #define EXTRA_S_FLAGS (SEC_LINK_ONCE | SEC_LINK_DUPLICATES)
> #else
> ! #define EXTRA_S_FLAGS 0
> #endif
> #endif
>
> --- 2613,2621 ----
>
> #ifndef EXTRA_S_FLAGS
> #ifdef COFF_WITH_PE
> ! #define EXTRA_S_FLAGS (SEC_CODE | SEC_LINK_ONCE | SEC_LINK_DUPLICATES)
> #else
> ! #define EXTRA_S_FLAGS SEC_CODE
> #endif
> #endif
>
>
>
>