I'm building a PE object, then I link it with some
assembly code to generate a raw binary file. When I
try to use --oformat binary, ld simply crashes.
I'm using the linker like this:
"ld -Ttext 0x0 --oformat binary -o output.bin input.o"
I'm running the latest snapshot you've posted on your
homepage and winXP corporate edition (final). This
system is running a K7 (Athlon) 800 Mhz, 128MB ram,
lots of hard disk space.
I think the bug could be located somewhere in between
the code that parses command line arguments... In one
irreproducible oportunity, I managed to make it work.
This is a part of what I get from XP at crash:
AppName: ld.exe AppVer: 0.0.0.0 ModName:
ModVer: 0.0.0.0 Offset: 0002104d
System information: Windows NT 5.1 Build:2600
CPU Vendor code: 00BD0094 - 30024678 - 000000001
CPU Version: 00000642 CPU Feature Code: 0183F9FF
CPU AMD Feature Code: 00A9E850
Image Base: 0x00400000 Image size: 0x00079000
Checksum: 0x0 Time Stamp: 0x3B442158
It is long and I can't copy&paste, just tell me what
you need to know. kernel32.dll and nt.dll are also