PATCH: Invalid LTOFF22X -> GPREL22 relaxation

H.J. Lu hjl.tools@gmail.com
Tue Nov 17 22:10:00 GMT 2009


On Tue, Nov 17, 2009 at 12:04 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Nov 17, 2009 at 11:06 AM, Richard Henderson <rth@redhat.com> wrote:
>> On 11/17/2009 10:37 AM, H.J. Lu wrote:
>>>
>>>        PR ld/10955
>>>        * elfxx-ia64.c (elfNN_ia64_link_hash_table): Add max_short_sec,
>>>        max_short_offset, min_short_sec and min_short_offset.
>>>        (elfNN_ia64_update_short_info): New.
>>>        (elfNN_ia64_relax_section): Update max_short_sec,
>>>        max_short_offset, min_short_sec and min_short_offset.
>>>        (elfNN_ia64_choose_gp): Use min_short_sec/max_short_sec if
>>>        they are set.
>>
>> Looks good, thanks.
>>
>
> I made a mistake. I should record output section, not input section
> since different input files may have the different input sections with
> the same section name, which has the same output section. The new
> binutils failed with gcc 4.4 on RHEL5/ia64.
>
> I am testing this patch on gcc 4.4. I will check it in if it works.
>

Another problem. VMA of ABS section is 0. We need to skip it
also. Otherwise libjava fails to build.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-pr10955-3.patch
Type: text/x-csrc
Size: 665 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091117/fc4c87ef/attachment.bin>


More information about the Binutils mailing list