delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/12/19:56:30

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: muller AT cerbere DOT u-strasbg DOT fr, djgpp-workers AT delorie DOT com
Date: Wed, 12 Jul 2000 19:56:01 -0400
MIME-Version: 1.0
Subject: Re: ANNOUNCE: Binutils 2.10 released
Message-ID: <396CCD51.5197.2D0E9F@localhost>
In-reply-to: <3.0.6.32.20000713011845.00947c30@ics.u-strasbg.fr>
References: <395644DD DOT D587543E AT softhome DOT net>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 
>   More about the problem in the stabs info and 
> random filling for the linker :

I can't reproduce this problem with my Bnu210 modified with a patch now in 
Binutils CVS. Try it out (if you can) and see if it helps you. If it doesn't 
help you, send me a short testcase that demonstrates the problem.

Index: src/gas/config/obj-coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-coff.c,v
retrieving revision 1.28
diff -c -p -r1.28 obj-coff.c
*** obj-coff.c	2000/07/06 17:21:00	1.28
--- obj-coff.c	2000/07/11 20:30:58
*************** coff_frob_section (sec)
*** 1489,1496 ****
  #if !defined(TICOFF)
    if (size & mask)
      {
!       size = (size + mask) & ~mask;
!       bfd_set_section_size (stdoutput, sec, size);
      }
  #endif
  
--- 1489,1508 ----
  #if !defined(TICOFF)
    if (size & mask)
      {
!       bfd_vma new_size;
!       fragS *last;
!       
!       new_size = (size + mask) & ~mask;
!       bfd_set_section_size (stdoutput, sec, new_size);
! 
!       /* If the size had to be rounded up, add some padding in
!          the last non-empty frag.  */
!       fragp = seg_info (sec)->frchainP->frch_root;
!       last = seg_info (sec)->frchainP->frch_last;
!       while (fragp->fr_next != last)
!         fragp = fragp->fr_next;
!       last->fr_address = size;
!       fragp->fr_offset += new_size - size;
      }
  #endif
  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019