Problems compiling elfxx-sparc.c

Andreas Schwab schwab@suse.de
Wed Apr 20 22:38:00 GMT 2005


"David S. Miller" <davem@davemloft.net> writes:

> @@ -777,7 +778,8 @@
>        ret->align_power_max = 4;
>        ret->bytes_per_word = 8;
>        ret->bytes_per_rela = sizeof (Elf64_External_Rela);
> -      ret->dynamic_interpreter = ELF64_DYNAMIC_INTERPRETER;
> +      ret->dynamic_interpreter =
> +	(const unsigned char *) ELF64_DYNAMIC_INTERPRETER;

Wouldn't it be better to change the type of dynamic_interpreter instead?
The only other use of it has to cast it anyway.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list