------- 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 .6.......@.vvvvx 401010 787878e9 260d0000 ff25101c 4000e925 xxx.&.......@..% 401020 030000ff 25101f40 00000000 00000000 .......@........ 401030 ff253b10 4000e9d4 ffffff12 12121234 .%;....@..........4 401040 343434ff 25481340 00e9c20e 0000ff25 444....@.......% 401050 3e1d4000 e9b70b00 00000000 00000000 >....@............. j34.ms.x: file format pei-i386 Contents of section .data: 401000 e9360000 00ff250f 10400056 56565678 .6.......@.vvvvx 401010 787878e9 260d0000 ff25101c 4000e925 xxx.&.......@..% 401020 030000ff 25101f40 00000000 00000000 .......@........ 401030 ff253b10 4000e9d4 ffffff12 12121234 .%;....@..........4 401040 343434ff 25481340 00e9c20e 0000ff25 444....@.......% 401050 3e1d4000 e9b70b00 00 >....@...... ----------------------------------------------------- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils