This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: fix fill size output in map file for cross-linking


The linker prints out four bytes of garbage as the top half of the size
of a fill when generating a linker map for i686-pc-linux-gnu X sh-elf .
This patch fixes it:

2004-05-06  J"orn Rennecke <joern.rennecke@superh.com>

	* ldlang.c (print_padding_statement): Cast size_t to bfd_vma
	before printing it with %W.

Index: ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.143
diff -p -r1.143 ldlang.c
*** ldlang.c	30 Apr 2004 14:26:09 -0000	1.143
--- ldlang.c	6 May 2004 13:51:00 -0000
*************** print_padding_statement (lang_padding_st
*** 2490,2496 ****
    addr = s->output_offset;
    if (s->output_section != NULL)
      addr += s->output_section->vma;
!   minfo ("0x%V %W ", addr, s->size);
  
    if (s->fill->size != 0)
      {
--- 2490,2496 ----
    addr = s->output_offset;
    if (s->output_section != NULL)
      addr += s->output_section->vma;
!   minfo ("0x%V %W ", addr, (bfd_vma) s->size);
  
    if (s->fill->size != 0)
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]