bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/19119] Gold accepts bogus target emulation


From: ccoutant at gmail dot com
Subject: [Bug gold/19119] Gold accepts bogus target emulation
Date: Wed, 14 Oct 2015 17:03:53 +0000

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

--- Comment #2 from Cary Coutant <ccoutant at gmail dot com> ---
Yes, gold uses the target of the first object file; only if there are
no object files does it use the -m option (note that the option is
marked "obsolete").

-cary


On Wed, Oct 14, 2015 at 7:39 AM, hjl.tools at gmail dot com
<address@hidden> wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=19119
>
> --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
> address@hidden pr19119]$ cat x.s
>         .text
>         .type _start,"function"
>         .global _start
> _start:
>         ret
> address@hidden pr19119]$ make
> ./as --32 -o x.o x.s
> ./ld -m elf_iamcu -o x x.o
> address@hidden pr19119]$ file x
> x: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically 
> linked,
> not stripped
> address@hidden pr19119]$ ld -m elf_iamcu -o x x.o
> ld: i386 architecture of input file `x.o' is incompatible with iamcu output
> address@hidden pr19119]$
>
> Gold simply ignores -m elf_iamcu.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.

-- 
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]