#123 ld crashes in winXP when using --oformat

OTHER
closed
Earnie Boyd
binutils (105)
out-of-date
Known_bugs
2013-01-25
2002-03-14
No

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:
ld.exe
ModVer: 0.0.0.0 Offset: 0002104d

Exception Information
Code:0xc0000005
Flags:0x0
Record:0x0
Address:0x042104d
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

Module 1
ld.exe
Image Base: 0x00400000 Image size: 0x00079000
Checksum: 0x0 Time Stamp: 0x3B442158
Version Information

It is long and I can't copy&paste, just tell me what
you need to know. kernel32.dll and nt.dll are also
involved.

Thank you,

Marcelo Gornstein
marcelog@mail.ru

Discussion

  • Danny Smith
    Danny Smith
    2002-03-15

    Logged In: YES
    user_id=11494

    How did you build input.o?

    I don't get segfault but do get message like:
    "PE operations on non PE file"

    I know there have been problems with --oformat reported on
    binutils list. You'll probably get a better answer there.

    Danny

     
  • Logged In: NO

    Thank you, I'll try that

     
  • Earnie Boyd
    Earnie Boyd
    2002-08-05

    • assigned_to: dannysmith --> earnie
    • status: open --> closed-out-of-date
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-25

    • labels: ld --> binutils
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Known_bugs
    • milestone: Known_bugs --> OTHER