This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RFA: fix fill size output in map file for cross-linking
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 6 May 2004 14:57:04 +0100 (BST)
- Subject: 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)
{