This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
+#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.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |