Build failure due to .incbin

Segher Boessenkool segher@kernel.crashing.org
Tue Feb 27 12:41:00 GMT 2007


>> A fourth option is to use a "bin2c" kind of build tool,
>
> I was trying to avoid that, but
>
>> Except those symbols need to have an extra underscore in the
>> assembler source file, with the Darwin assembler.  (Sorry I
>> didn't mention this earlier, I only noticed after I sent the
>> mail).
>
> this means none of my ideas will work.  The syms created by
> "ld -r -b binary" don't have an extra underscore, probably a bug,

Darwin's ld has a "-b" flag with a completely different
meaning.  Oh why couldn't they have used binutils, heh.

> and
> deciding whether a host (rather than a target) needs the extra
> underscore adds yet more mess to configure.
>
> Oh well, bin2c is easy to write, especially if you steal SET_BINARY
> from textutils.

Thanks Alan!  This seems to work fine for me (I couldn't
run "make check" since I botched its setup again; but
my build goes flawlessly now, and the generated SPU overlay
stuff looks good in visual inspection).


Segher



More information about the Binutils mailing list