* FYI: sparc-rtems does not build on 64-bit host
@ 2006-08-08 19:20 Daniel Jacobowitz
2006-08-09 14:46 ` Nick Clifton
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-08-08 19:20 UTC (permalink / raw)
To: binutils
/* The word size used by BFD on the host. This may be 64 with a 32
bit target if the host is 64 bit, or if other 64 bit targets have
been selected with --enable-targets, or if --enable-64-bit-bfd. */
#define BFD_ARCH_SIZE @wordsize@
But:
static void
sparc_elf_append_rela_64 (bfd *abfd ATTRIBUTE_UNUSED,
asection *s ATTRIBUTE_UNUSED,
Elf_Internal_Rela *rel ATTRIBUTE_UNUSED)
{
#ifdef BFD64
Elf64_External_Rela *loc64;
loc64 = (Elf64_External_Rela *) s->contents;
loc64 += s->reloc_count++;
bfd_elf64_swap_reloca_out (abfd, rel, (bfd_byte *) loc64);
#endif
}
Without sparc64 configured in, bdf_elf64_swap_reloca_out is not available.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FYI: sparc-rtems does not build on 64-bit host
2006-08-08 19:20 FYI: sparc-rtems does not build on 64-bit host Daniel Jacobowitz
@ 2006-08-09 14:46 ` Nick Clifton
0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2006-08-09 14:46 UTC (permalink / raw)
To: binutils
Hi Daniel,
> Without sparc64 configured in, bdf_elf64_swap_reloca_out is not available.
I have been using this as a local patch to work around this problem:
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.211
diff -c -3 -p -r1.211 config.bfd
*** bfd/config.bfd 4 Aug 2006 13:13:55 -0000 1.211
--- bfd/config.bfd 9 Aug 2006 08:01:28 -0000
*************** case "${targ}" in
*** 1309,1314 ****
--- 1309,1317 ----
sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs=sunos_big_vec
+ #ifdef BFD64
+ targ_selvecs="$targ_selvecs bfd_elf64_sparc_vec"
+ #endif
;;
#ifdef BFD64
sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
But I am not yet convinced that it is the right thing to do, and of
course it would need to be extended to other sparc targets as well, so I
have not yet applied it to the mainline.
Cheers
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-09 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-08 19:20 FYI: sparc-rtems does not build on 64-bit host Daniel Jacobowitz
2006-08-09 14:46 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).