Subject: Re: mips gcc4 ld.elf_so problems
To: None <simonb@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-toolchain
Date: 06/28/2006 00:46:01
simonb@NetBSD.org wrote:

> +	void *wherev;
>  	Elf_Addr *where;
 :
> -		where = (Elf_Addr *)(relocbase + rel->r_offset);
> +		wherev = (void *)(relocbase + rel->r_offset);
> +		where = wherev;

Isn't it better to prepare an union which has (Elf_Addr *) and
(void *) members? (I'm not sure if it works properly though)
---
Izumi Tsutsui