bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld relocate symbols(in small common section) to a unaligned address.


From: Nick Clifton
Subject: Re: ld relocate symbols(in small common section) to a unaligned address.(on mips r3000 target)
Date: Fri, 09 Sep 2005 08:07:48 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Hi Zhigang,

sorry i forgot to attach the file. Now attach the tar ball.

Unfortunately you sent this huge attachment to the entire binutils mailing list, not just me. In the future please try not to do this. If you cannot create a small test case then please either just send the large test case only to the people who specifically request it, or else make it available via FTP or HTTP download.


Anyway I downloaded the tarball, built a new mipsel-elf toolchain and tried to reproduce your problem. Unfortunately although I could build the executable the piofree_handle variable was correctly aligned:

  % grep piofree_handle fred.map
  piofree_handle      0x4               extras.o
                0x000000008090b490                piofree_handle

By the way have you tried using objdump to verify that the piofree_handle is misaligned and that the bug is not just in the addresses being reported in the map file ?

  % objdump --syms fred | grep piofree_handle
  8090b490 g     O .sbss  00000004 piofree_handle

I was using a toolchain built from yesterday's gcc and binutils sources. Since you say that you have reproduced this problem using an 050907 set of the binutils sources I can only conclude that either:

  * The bug is in binutils and it has been fixed in the last few days.

* The bug is in the libgcc.a, libc.a or libsupc++.a libraries that are included via the target.ld script. Have you tried rebuilding these libraries ?

* The bug is connected with the host machine being used to run the toolchain. I was using a x86 box with Red Hat Enterprise Linux rel 3 installed on it and a host compiler which was a gcc 3.4 clone released by Red Hat called "GNUPro 04r2-2".

Cheers
  Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]