This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Making generic ld testcases pass on more targets
On Wed, Feb 16, 2005 at 12:14:09PM +0000, Nick Clifton wrote:
> >+#ifdef BFD_ASSEMBLER
> >+ {"dc.a", cons, 0},
> >+#endif
>
> I like this, but why make the pseudo specific to BFD_ASSEMBLERs ?
Because only BFD_ASSEMBLER has arch_info.
> >+ nbytes = (stdoutput->arch_info->bits_per_address - 1) / 8;
>
> It might make sense to allow for individual targets to override this
> computation with their own value if they so wish.
Yes, that would allow non-BFD_ASSEMBLER to use dc.a too.
Another approach occurred to me also, a variation on using
__address_size. Instead of the assembler providing the symbol, we could
have the test harness feed a suitable --defsym to the assembler, chosen
by target name.
--
Alan Modra
IBM OzLabs - Linux Technology Centre