This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fix for fixup_segment / MD_PCREL_FROM_SECTION
- To: Joern Rennecke <amylaar at redhat dot com>
- Subject: Re: fix for fixup_segment / MD_PCREL_FROM_SECTION
- From: law at redhat dot com
- Date: Tue, 28 Aug 2001 17:41:18 -0600
- cc: binutils at sources dot redhat dot com, amylaar at cambridge dot redhat dot com
- Reply-To: law at redhat dot com
In message <200108282007.f7SK7rG02021@phal.cambridge.redhat.com>you write:
> Currently, it is impossible to write a port with a correct definition of
> MD_PCREL_FROM that works, because fixup_segment neglects to subtract the
> address of the relocation.
>
> Tue Aug 28 20:37:06 2001 J"orn Rennecke <amylaar@redhat.com>
>
> * write.c (fixup_segment): When resolving pcrel addresses,
> properly subtract the address of the relocation if
> TC_MD_PCREL_FROM_SECTION_FIXED is defined.
Please show me the path through fixup_segment that you're taking. It also
seems to me that you don't need to define MD_PCREL_FROM for the port you're
working on, but that's a separate issue.
jeff