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: [GOLD] Relayout?


"Doug Kwan (éæå)" <dougkwan@google.com> writes:

> The code in Script_section::create_segments does this:
>
>       else if (align_address(last_lma + last_size, abi_pagesize)
>                < align_address(lma, abi_pagesize))
>         {
>           // Putting this section in the segment would require
>           // skipping a page.
>           need_new_segment = true;
>         }
>
> There is remote chance that relaxation causes segment size to change
> so that different number of segements are required before and after a
> relaxation pass.  Should I just remove all segments and recreate them
> to be safe?

Yes, in the case of using a linker script, that may be the only option.

Ian


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