[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22866] Ld segfault when using --oformat binary
From: |
koutnji2 at gmail dot com |
Subject: |
[Bug ld/22866] Ld segfault when using --oformat binary |
Date: |
Tue, 20 Feb 2018 06:35:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22866
--- Comment #3 from koutnji2 at gmail dot com ---
(In reply to Nick Clifton from comment #2)
> 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
I see, I don't really insist on having the binary made in one step, so yes that
works for me just fine. I'll try that when I get home. Thank you!
--
You are receiving this mail because:
You are on the CC list for the bug.