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]

Re: Patch to allow bfd to build natively using solaris cc


On Tue, Oct 16, 2001 at 03:58:26PM -0700, Jeff Holcomb wrote:
> -           erelend = (Elf_External_Rel *) ((PTR) o->contents + o->_raw_size);
> +           erelend = (Elf_External_Rel *) (o->contents + o->_raw_size);

This is ok.

> -                 dest = (Elf_Internal_Group *) (shdr->contents + amt);
> +                 dest = ((Elf_Internal_Group *) shdr->contents) + amt);

This isn't.  You're no longer doing pointer arithmetic on characters.


r~


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