[RFC PATCH] pad out code segment for NaCl targets
Alan Modra
amodra@gmail.com
Fri Aug 16 10:21:00 GMT 2013
On Thu, Aug 15, 2013 at 04:22:31PM -0700, Roland McGrath wrote:
> On Sat, Aug 10, 2013 at 12:51 AM, Alan Modra <amodra@gmail.com> wrote:
> > On Thu, Aug 08, 2013 at 02:17:04PM -0700, Roland McGrath wrote:
> >> I've figured out a way to make this happen, but I'm not very happy with it.
> >> I hope someone can recommend a different approach that will serve me better.
> >
> > elf_backend_final_write_processing perhaps?
>
> Clearly I could write out the fill regions there. But that is too late to
> adjust offsets for the parts of the file that come after a code segment
> (and thus need to be pushed out to the next page boundary), isn't it?
Ah, yes, you need to somehow page align any following sections before
assign_file_positions_for_{non_,}load_sections is called. That could
be done in the linker script without a new padding section.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list