This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Fix GOT overflow on MIPS with page references to mergeable sections


On Wed, Feb 13, 2013 at 3:09 PM, Richard Sandiford
<rdsandiford@googlemail.com> wrote:
> It took longer than it should have done, but here's a patch to fix the
> bug that Robert found: the counting of GOT page entries didn't work in

Thanks!

> cases where a bfd has page references to multiple pieces of mergeable data,
> some of which might end up resolving to input sections in other bfds
> that are far away from the original.
>
> The idea is to collect references during check_relocs, and only convert
> them to page entries during size_dynamic_sections.  This also has the
> benefit of handling hidden global symbols.
>
> The patch applies on top of the recent GOT rewrite patches, so it's only
> suitable for mainline.  Robert: could you check whether mainline CVS
> now works with your original testcase?

Just did and can confirm that it does. Looking into your patch it
seems it turned out to be a way more significant change than I
initially expected. Thus thanks for all the work again!

Robert


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