This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Riscv ld-elf/stab failure, and fake label cleanup.
Hi Jim,
>>>> (common_emul_init): Use FAKE_LABEL_NAME.
>
> Breaks x86, due to
> gas/config/obj-multi.h:#define FAKE_LABEL_NAME (this_emulation->fake_label_name)
Right - I am seeing this too:
gas/as.c: In function 'common_emul_init':
gas/as.c:206:36: error: called object is not a function or function pointer
this_emulation->fake_label_name = "." FAKE_LABEL_NAME;
^~~
Because the definition of FAKE_LABEL_NAME (in obj-multi.h) is:
#define FAKE_LABEL_NAME (this_emulation->fake_label_name)
Interestingly for me, this error does not show up on normal builds, but only
when building a toolchain that supports multiple targets. Ie:
./configure --enable-targets=all
Cheers
Nick