This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin objcopy --redefine-sym doesn't work for Microsoft C++ object file


Hi,

I tried to use objcopy to rename symbol of a Mircosoft C++ object file:
objcopy --redefine-sym _foo=_bar f1.obj

objcopy crashed with the error message:
1 [main] objcopy 656 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
9 [main] objcopy 656 open_stackdumpfile: Dumping stack trace to
objcopy.exe.stackdump

Here is the objcopy --info: (On Windows XP)

objcopy --info
BFD header file version 2.15.94 20041229
pe-i386
 (header little endian, data little endian)
  i386
pei-i386
 (header little endian, data little endian)
  i386
elf32-i386
 (header little endian, data little endian)
  i386
elf32-little
 (header little endian, data little endian)
  i386
elf32-big
 (header big endian, data big endian)
  i386
srec
 (header endianness unknown, data endianness unknown)
  i386
symbolsrec
 (header endianness unknown, data endianness unknown)
  i386
tekhex
 (header endianness unknown, data endianness unknown)
  i386
binary
 (header endianness unknown, data endianness unknown)
  i386
ihex
 (header endianness unknown, data endianness unknown)
  i386

               pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec
          i386 pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec

               symbolsrec tekhex binary ihex
          i386 symbolsrec tekhex binary ihex

Do you know why it crashed? Thank you for your help!

Jianping


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]