Menu

#163 ld -r segfaults with MSVC -Zi input

OTHER
closed
binutils (105)
wont-fix
Known_bugs
2013-01-22
2002-07-23
No

The following applies to GNU ld version 2.12.90
20020706.

When doing ld -r with input files compiled using
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
12.00.8804 for 80x86 and -Zi (debuginfo), you get
segfaults.

To reproduce, compile foo.c:

void a(void) {}

with

cl -Zi -c foo.c

Then try

ld -r foo.obj -o bar.obj

strip, nm and objdump also have similar problems, but
this is the by far easiest one to duplicate...

Discussion

  • Danny Smith

    Danny Smith - 2002-07-23

    Logged In: YES
    user_id=11494

    My understanding is that MSVC uses a proprietary
    debugging format. The gnu binutils do not have any
    knowledge of this format.

    They may be a way to force MSVC to use a more
    standard format, but I don't know about it.

    Danny

     
  • Danny Smith

    Danny Smith - 2002-07-23
    • status: open --> closed-wont-fix
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-22
    • status: closed-wont-fix --> closed
    • resolution: --> wont-fix
    • category: --> Known_bugs
    • milestone: Known_bugs --> OTHER