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: Alan Modra <amodra at bigpond dot net dot au>
- Date: Wed, 29 Aug 2001 15:04:19 +0930
- Cc: binutils at sources dot redhat dot com, law at redhat dot com, amylaar at cambridge dot redhat dot com
- References: <200108282007.f7SK7rG02021@phal.cambridge.redhat.com>
On Tue, Aug 28, 2001 at 09:07:53PM +0100, Joern Rennecke wrote:
> be made. On many processors, the base of a PC relative instruction is the next
> instruction, so this macro would return the length of an instruction.
> + @item TC_MD_PCREL_FROM_SECTION_FIXED
> + @cindexTC_MD_PCREL_FROM_SECTION_FIXED
> + You also need to define @code{TC_MD_PCREL_FROM_SECTION_FIXED} to make this
> + work right, because a large number of old ports papered over a bug in
> + fixup_segment by making the reverse error in their definition of
> + @code{MD_PCREL_FROM_SECTION}.
Hmm, alternatively, just modify the doco for MD_PCREL_FROM_SECTION to
reflect reality. Note also that your patch misses a number of other
places where MD_PCREL_FROM_SECTION is used.
Alan