This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linking very large programs with inadequate branch displacements
On Thu, Aug 11, 2005 at 09:55:08AM -0500, Bill Yoder wrote:
> Hi, All:
>
> We've been using binutils in my research group for 3 years now in
> order to support a new microprocessor named TRIPS. So far, things
> have gone swimmingly.
>
> Just recently, we've hit a wall in linking very large programs. The
> reason is that we are using the processor's branch-with-offset and
> call-with-offset instructions, consisting of a 20-bit displacement
> field, for most of our jumps. When the target address is too far
> away, that is, when the offset from the PC is too big to fit in the
> displacement field, our linker complains in the
> trips_elf_relocate_section() back end and that's as far as we get.
>
Please check out elfNN_ia64_relax_section in elfxx-ia64.c.
H.J.