This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Load addresses for ELF program headers on ARM
- From: Matt Fischer <mattfischer84 at gmail dot com>
- To: Matt Fischer <mattfischer84 at gmail dot com>, binutils at sourceware dot org
- Cc: Alan Modra <amodra at gmail dot com>
- Date: Wed, 16 Mar 2011 19:37:30 -0500
- Subject: Re: Load addresses for ELF program headers on ARM
- References: <AANLkTik2P+ZdSeDSvJD1TQggXSCOq316sw_sMatAyAEJ@mail.gmail.com> <20101011015506.GM26553@bubble.grove.modra.org> <AANLkTinS_yg4_f_on6j8PqwegA+=vSceb0KT3ZM3zDqK@mail.gmail.com> <20101011032919.GP26553@bubble.grove.modra.org> <AANLkTi=pr9+bfvNSb=GYRTd9Erc55wL8UEWt1_ft08BZ@mail.gmail.com> <20101011144357.GA1024@caradoc.them.org> <AANLkTimCS7WnpcvPkyJz3VDAOCJ0mi4nPk8=h3Qb6t4e@mail.gmail.com> <AANLkTim2DnhXpYrGS9r5woa-3_fRdrBzoXGwga7-iONP@mail.gmail.com> <20110316042923.GQ6275@bubble.grove.modra.org>
That does seem to fix the problem. It looks like that change simply
disables the VMA check on the section, which makes sense because in
this model the section's VMA won't be inside of the segment anymore.
Given that the code inside this block looks like it can correctly deal
with a segment that contains noncontiguous VMA's, I'm assuming this
change is ok to submit as an actual patch, correct? If so, I'd be
happy to write it up and submit it, if you'd like.
--Matt
On Tue, Mar 15, 2011 at 11:29 PM, Alan Modra <amodra@gmail.com> wrote:
> You might like to change the ELF_SECTION_IN_SEGMENT (hdr, phdr) in
> elf.c:_bfd_elf_make_section_from_shdr to
> ELF_SECTION_IN_SEGMENT_1 (hdr, phdr, 0, 0), and see what happens.
>
> --
> Alan Modra
> Australia Development Lab, IBM
>