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]

Re: Making generic ld testcases pass on more targets


Hi Alan,

+#ifdef BFD_ASSEMBLER
+  {"dc.a", cons, 0},
+#endif

I like this, but why make the pseudo specific to BFD_ASSEMBLERs ?



+#ifdef BFD_ASSEMBLER
+  if (nbytes == 0)
+    {
+      /* Choose smallest of 1, 2, 4, 8 bytes that is large enough to
+	 contain an address.  */
+      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.


Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]