This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR binutils/3281: objcopy changes PT_GNU_RELRO when there is PT_TLS
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 19 Oct 2006 08:05:40 -0700
- Subject: Re: PATCH: PR binutils/3281: objcopy changes PT_GNU_RELRO when there is PT_TLS
- References: <20060928220916.GA22299@lucon.org>
On Thu, Sep 28, 2006 at 03:09:16PM -0700, H. J. Lu wrote:
> When linker creates PT_GNU_RELRO segment, it sets p_vaddr, p_paddr,
> p_offset, p_filesz from the corresponding PT_LOAD segment and
> set p_memsz to p_filesz, p_align to 1. My previous fix for PR 3015
> only handles p_align for objcopy. PT_GNU_RELRO segment will be
> different after objcopy if there is a PT_TLS segment. This patch
> puts all PT_GNU_RELRO segment procossing for objcopy into
> assign_file_positions_for_non_load_sections and uses the same logic
> as linker.
>
Could someone please take a look at it:
http://sourceware.org/ml/binutils/2006-09/msg00376.html
Thanks.
H.J.