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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Matt Ickstadt from comment #4)
> Created attachment 8209 [details]
> Link file
> 
> Looking at the link.ld file right now, it's suddenly apparent that this
> issue is  due to the fact that the OUTPUT_FORMAT() in the link file is not
> the same as the output format from the command line, which explains the
> strange backtrace.

Although it is an user error, linker should provide better
diagnosis.

> With the link file corrected, it links properly.  Perhaps an error can be
> added for cases in which there are multiple different output formats
> specified.  Also of note is that gold links fine either way; probably
> because it doesn't use bfd.

Gold ignores OUTPUT_FORMAT().

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

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to