arm-wince-pe-size reports empty .text

Nick Clifton nickc@redhat.com
Thu Jul 24 13:58:00 GMT 2003


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
  
        



More information about the Binutils mailing list