bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/10965] cross-compiled ld doesn't change string addresses


From: lupuroshu at yahoo dot com
Subject: [Bug ld/10965] cross-compiled ld doesn't change string addresses
Date: 16 Nov 2009 11:47:09 -0000

------- Additional Comments From lupuroshu at yahoo dot com  2009-11-16 11:47 
-------
Yes. I installed Mandriva 2010 in a virtual machine.
Here are the specs:
address@hidden Desktop]$ gcc -v
Using built-in specs.
Target: i586-manbo-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--with-slibdir=/lib --with-bugurl=https://qa.mandriva.com/
--mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java
--build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic
--with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc
--enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-clocale=gnu --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo
--disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror
--with-ppl --with-cloog --with-python-dir=/lib/python2.6/site-packages
Thread model: posix
gcc version 4.4.1 (GCC) 

address@hidden Desktop]$ ld -v
GNU ld (Linux/GNU Binutils) 2.19.51.0.2.20090204

I also compiled binutils 2.20 (same configure flags as in description):

address@hidden Desktop]$ /usr/cross/i586-elf/bin/ld -v
GNU ld (GNU Binutils) 2.20 

Both ld's seem to have the same output, and again the address of a string is
wrong, taking a look at the assembly shown by objdump (the correct address in
the case would be 0x101000):
  1001b2:       c7 44 24 04 38 87 04    movl   $0x8048738,0x4(%esp)
  1001b9:       08 
  1001ba:       8d 45 e4                lea    -0x1c(%ebp),%eax
  1001bd:       89 04 24                mov    %eax,(%esp)
  1001c0:       e8 af 04 00 00          call   100674 <_ZN5Video4putsEPc>

I'm attaching the resulting krnl.lst from this build (with ld 2.20) so you can
take a look if you want (look for "xxx" to find the string, and 0x8048 to find
the faulty line).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10965

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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