This is the mail archive of the
mailing list for the binutils project.
Re: PATCH: Symbian OS handling of R_ARM_RELATIVE
- From: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 05 Nov 2004 11:10:06 +0000
- Subject: Re: PATCH: Symbian OS handling of R_ARM_RELATIVE
- Organization: GNU
- References: <200411041912.iA4JC6xI024155@sirius.codesourcery.com>
On Thu, 2004-11-04 at 19:12, Mark Mitchell wrote:
> Symbian OS can relocate the data segement and text segment sparately.
> So, when generating an R_ARM_RELATIVE relocation we must say to which
> segment the relocation is relative. The BPABI lets us pick any symbol
> in the segement to use for that purpose.
> Mark Mitchell
> CodeSourcery, LLC
> 2004-11-04 Mark Mitchell <firstname.lastname@example.org>
> * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
> R_ARM_RELATIVE relocation for Symbian OS, mention the section
> symbol in the relocation.
OK, but can you correct the comment...
> ! /* On Symbian OS, the data segment and text segement
> ! can be relocated independently. Therefore, we must
> ! indicate the segment to which this relocation is
> ! relative. The BPABI allows us to use any symbol in
> ! the right segment; we just the section symbol as it
> ! is convenient. (We cannot use the symbol given by
> ! "h" directly as it will not appear in the dynamic
> ! symbol table.) */