Mail Archives: djgpp-workers/2000/07/12/19:56:30
>
> 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 -