Bug 26584 - erroneous address relocation: Microsoft COFF OPTIMIZED code linked to .ELF using ld
Summary: erroneous address relocation: Microsoft COFF OPTIMIZED code linked to .ELF us...
Status: RESOLVED DUPLICATE of bug 26583
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.34
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: https://github.com/KilianKegel/GNU-ld...
Keywords:
Depends on:
Blocks: 26547
  Show dependency treegraph
 
Reported: 2020-09-08 12:07 UTC by Kilian Kegel
Modified: 2020-09-16 14:29 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
GITHUB download GNU-ld-for-MicrosoftCOFF-to-LinuxELF (398.65 KB, application/x-zip-compressed)
2020-09-08 12:07 UTC, Kilian Kegel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kilian Kegel 2020-09-08 12:07:14 UTC
Created attachment 12821 [details]
GITHUB download GNU-ld-for-MicrosoftCOFF-to-LinuxELF

Hi all,

I have seen, when enabling compiler optimizations that for structure
elements the linker assigns wrong addresses in the .ELF binary.

From the same .OBJ the Microsoft LINK.EXE assigns correct addresses
in the .EXE binary.

I have created a comprehensive documentation on my GITHUB account
for that particular OPTIMIZATION bug:

https://github.com/KilianKegel/GNU-ld-for-MicrosoftCOFF-to-LinuxELF#optimization-bug

All .OBJ, .EXE, .ELF, .DIS (disassembler), .MAP files are kept there.

This is the one single bug already reported in 
https://sourceware.org/bugzilla/show_bug.cgi?id=26547

Regards,
Kilian
Comment 1 H.J. Lu 2020-09-16 14:29:43 UTC
Dup

*** This bug has been marked as a duplicate of bug 26583 ***