I have a problem with binutils-2.17 objcopy, and IEEE-695 support. I am trying to use objcopy to convert an ELF file from Tasking VX 2.1r1 toolchain for the Infineon c16x into an IEEE-695 format for use with an earlier Tasking debugger.
I have downloaded binutils version 2.17, and built it with --enable-targets=all, using cygwin. I can run the conversion from ELF to IEEE, but the resulting file cannot be read by the debugger. It cannot be read by objcopy itself, which I find quite odd. I am not sure whether to suspect the reading or writing of the file, and I am having trouble finding much about the file format. This is what I see: C:\DOCUME~1\JROBIN~1\WORKSP~1\myproj\Debug>readelf -h myproj.elf ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: <unknown>: 74 Version: 0x1 Entry point address: 0x1054 Start of program headers: 52 (bytes into file) Start of section headers: 107504 (bytes into file) Flags: 0x2 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 171 Size of section headers: 40 (bytes) Number of section headers: 188 Section header string table index: 1 C:\DOCUME~1\JROBIN~1\WORKSP~1\myproj\Debug>c:\cygwin\binutils-2.17\binutils\objcopy -I elf32-little -O ieee myproj.elf myproj_0.abs C:\DOCUME~1\JROBIN~1\WORKSP~1\myproj\Debug>c:\cygwin\binutils-2.17\binutils\objcopy -I ieee -O ieee myproj_0.abs myproj_1.abs /binutils-2.17/binutils/objcopy: myproj_0.abs: File format not recognized I suspect this happens with almost any elf->abs->abs conversion. When I have attached my example files the email has been rejected. If anyone wants my examples files, please email me. Thank you Best wishes John Robinson Software Engineer ------------------------------------------------------------------------------ LiveDevices Ltd Atlas House Link Business Park Osbaldwick Link Road Osbaldwick York YO10 3JB Phone:+44-(0)1904-562628 [EMAIL PROTECTED] www.livedevices.com Company Number: 3383737 VAT No: GB 698 0218 08 Registered Office, Wilberforce Court, High Street, Hull, HU1 1YJ ------------------------------------------------------------------------------ This message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please inform us immediately and destroy this message including all copies thereof. ------------------------------------------------------------------------------
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils