bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22866] Ld segfault when using --oformat binary


From: nickc at redhat dot com
Subject: [Bug ld/22866] Ld segfault when using --oformat binary
Date: Tue, 20 Feb 2018 11:59:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22866

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
Hi koutnji2,

> I have encountered segmentation fault running avr-ld.
> 
>     The full line causing the crash is:
>     avr-ld --oformat binary -o prog.bin prog.elf

Does the link work if you omit the "-ofomat binary" from the linker command
line, and instead use objcopy ?  Ie:

     avr-ld -o prog.elf2 prog.elf
     avr-objcopy -O binary prog.elf2 prog.bin

The linker often has problems converting to the binary format at the
same time as it performs the link, so the above two-step method is
preferred.

>     prog.elf is made with:
>     avr-as -mmcu=avr5 prog.S -o prog.elf

If the problem persists, then please could you upload a copy of the prog.elf
file, so that we can run some tests.  Also, please can you tell us which 
version of the linker you are using.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]