Hello, Mspgcc-users.
binutils-2.21.1 with mspgcc-20110716 patches uses
"ld/emultempl/generic.em" to generate "gldms430_before_parse (void)"
function in ld/emsp430.c.
It reads:
===========================================
static void
gld${EMULATION_NAME}_before_parse (void)
{
#ifndef TARGET_ /* I.e., if not generic. */
ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
#endif /* not TARGET_ */
}
===========================================
If here is ARCH variable in environment (which is true in case of
FreeBSD ports build, where ARCH becomes _HOST_ arch like `i386' or
`amd64'), `emsp430.c' becomes:
===========================================
static void
gldmsp430_before_parse (void)
{
#ifndef TARGET_ /* I.e., if not generic. */
ldfile_set_output_arch ("amd64", bfd_arch_unknown);
#endif /* not TARGET_ */
}
===========================================
And TARGET_ seems to be not set.
Resulting `msp430-ld' can not start at all:
===========================================
> msp430-ld -v
msp430-ld: cannot represent machine `amd64'
===========================================
It seems to be msp430.em error, or, maybe, generic.em error, I don't
know.
There is NO requirement to have ${ARCH} unset when binutils are
built.
--
// Black Lion AKA Lev Serebryakov <[email protected]>
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users