This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PC-relative Processing
- To: Tracy dot Kuhrt at microchip dot com
- Subject: Re: PC-relative Processing
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Fri, 22 Jun 2001 16:31:10 +0930
- Cc: binutils at sourceware dot cygnus dot com
- References: <OF085A5790.721A205D-ON07256A6C.0055F656@microchip.com>
On Fri, Jun 15, 2001 at 08:50:07AM -0700, Tracy.Kuhrt@microchip.com wrote:
> Any thoughts on what the appropriate solution is? I do not wish to break
> any other ports by suggesting adding the following line before turning off
> pc-relative processing:
> add_number -= MD_PCREL_FROM_SECTION (fixP, this_segment_type);
Sometimes, to fix things properly, you need to be willing to edit all
the back-end files and entertain the idea of breaking things temporarily.
In this case, I think most ports are broken on pcrel instructions like
"jmp a-b", and your suggestion will fix them as well as your own port.
--
Alan Modra