This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFC PATCH] Smarter aligning of data segment
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com, drepper at redhat dot com
- Date: 09 Feb 2002 09:04:14 +0000
- Subject: Re: [RFC PATCH] Smarter aligning of data segment
- References: <20020208173037.A798@sunsite.ms.mff.cuni.cz>
Hi Jakub,
> 2002-02-08 Jakub Jelinek <jakub@redhat.com>
>
> * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
> * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
> (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
> * ldexp.c (exp_data_seg): New variable.
> (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
> (fold_binary): Handle DATA_SEGMENT_ALIGN.
> (exp_fold_tree): Handle DATA_SEGMENT_END.
> Pass allocation_done when recursing instead of hardcoding
> lang_allocating_phase_enum.
> * ldexp.h (exp_data_seg): New.
> * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
> (lang_size_sections): New.
> * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
> * scripttempl/elf.sc: If COMMONPAGESIZE is defined or if MAXPAGESIZE
> is 4KB, use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
Approved - please apply. (Although you may want to consider H-P's
suggestions too).
Cheers
Nick