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: Problems compiling elfxx-sparc.c


"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."


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