bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/977] ld test weak fails on cygwin


From: dave dot korn dot cygwin at gmail dot com
Subject: [Bug ld/977] ld test weak fails on cygwin
Date: 29 May 2009 03:40:12 -0000

------- Additional Comments From dave dot korn dot cygwin at gmail dot com  
2009-05-29 03:40 -------
Created an attachment (id=3974)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3974&action=view)
Examination of pc-relative relocs against weak syms in MS and GNU


  Again, it turns out we need to clear the inplace reloc field to generate
correct and interoperable object files to work with MS tools.  Once we do that,
we can get byte-for-byte identical final linked executables:

-----------------------------------------------------
$ objdump -s j34.patched.x j34.ms.x

j34.patched.x:     file format pei-i386

Contents of section .text:
 401000 e9360000 00ff250f 10400056 56565678  address@hidden
 401010 787878e9 260d0000 ff25101c 4000e925  xxx.&address@hidden
 401020 030000ff 25101f40 00000000 00000000  address@hidden
 401030 ff253b10 4000e9d4 ffffff12 12121234  .%;address@hidden
 401040 343434ff 25481340 00e9c20e 0000ff25  address@hidden
 401050 3e1d4000 e9b70b00 00000000 00000000  >address@hidden

j34.ms.x:     file format pei-i386

Contents of section .data:
 401000 e9360000 00ff250f 10400056 56565678  address@hidden
 401010 787878e9 260d0000 ff25101c 4000e925  xxx.&address@hidden
 401020 030000ff 25101f40 00000000 00000000  address@hidden
 401030 ff253b10 4000e9d4 ffffff12 12121234  .%;address@hidden
 401040 343434ff 25481340 00e9c20e 0000ff25  address@hidden
 401050 3e1d4000 e9b70b00 00                 >address@hidden
-----------------------------------------------------

So, I think I know what we need to do now, and a patch to the list will follow.


-- 


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

------- 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]