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 <sourceware-bugzi...@sourceware.org> wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=19119 > > --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- > [hjl@gnu-6 pr19119]$ cat x.s > .text > .type _start,"function" > .global _start > _start: > ret > [hjl@gnu-6 pr19119]$ make > ./as --32 -o x.o x.s > ./ld -m elf_iamcu -o x x.o > [hjl@gnu-6 pr19119]$ file x > x: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically > linked, > not stripped > [hjl@gnu-6 pr19119]$ ld -m elf_iamcu -o x x.o > ld: i386 architecture of input file `x.o' is incompatible with iamcu output > [hjl@gnu-6 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils