[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] Re: Fix n64 fallout from MIPS prelinker patch



On Tue, 27 Feb 2007, Richard Sandiford wrote:

> As Khem noticed, my prelinker patch broke n64.  I'd forgotten
> (not for the first time) that Elf64_Word is actually a 32-bit
> value.  Specifically, r_info is an Elf32_Word but an Elf64_Xword.
> 
> Unfortunately, there's no such thing as an Elf32_Xword, so this
> patch changes the type of elf_machine_reloc's r_info field from
> ElfW(Word) to ElfW(Addr), which is 32 bits for ELF32 and 64 bits
> for ELF64.  Please install if OK.
> 
> Richard
> 
> 
> 2007-02-27  Richard Sandiford  <rsandifo@xxxxxxxxxxxxx>
> 
> 	* sysdeps/mips/dl-machine.h (elf_machine_reloc): Change type of
> 	r_info argument to ElfW(Addr).
> 	(elf_machine_rel, elf_machine_rela): Update calls accordingly.

I've applied this libc-ports patch to EGLIBC trunk and 2.5 to fix the 
build for N64.

-- 
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx