PC-relative Processing

Alan Modra amodra@bigpond.net.au
Thu Jun 21 23:56:00 GMT 2001


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



More information about the Binutils mailing list