This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: IA-64 gp problem with PROVIDE and linker relaxation conflict


On Mon, Feb 12, 2001 at 08:37:18PM -0800, Jim Wilson wrote:
> If I create a program that explicitly refers to the symbol __gp, and has
> such a large text section that there are out-of-range calls and thus
> requires -relax, then the value of __gp ends up wrong after the link.

Easiest would be to remove __gp from the default link scripts.

Currently if you do not reference this symbol the value of the
gp is chosen in elfxx_ia64_final_link, which is long after all
relaxation.  It wouldn't be that difficult to set a value for
this symbol at that point if needed.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]