This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch to allow bfd to build natively using solaris cc
- To: Jeff Holcomb <jeffh at redhat dot com>
- Subject: Re: Patch to allow bfd to build natively using solaris cc
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 16 Oct 2001 16:33:35 -0700
- Cc: binutils at sources dot redhat dot com
- References: <Pine.SOL.3.91.1011016155336.22321X-100000@taarna.cygnus.com>
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~