This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/3015: -z relro may create PT_NULL segment
On Wed, Aug 16, 2006 at 02:58:50PM -0700, H. J. Lu wrote:
> 2006-08-16 H.J. Lu <hongjiu.lu@intel.com>
>
> PR ld/3015
> * elf.c (get_program_header_size): Add a PT_GNU_RELRO segment only
> if there is a PT_DYNAMIC segment.
> (_bfd_elf_map_sections_to_segments): Likewise.
> (assign_file_positions_for_load_sections): Set PT_GNU_RELRO
> segment alignment to 1.
>
> ld/testsuite/
>
> 2006-08-16 H.J. Lu <hongjiu.lu@intel.com>
>
> PR ld/3015
> * ld-elf/binutils.exp: Add tests for "-z relro".
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre