PATCH: PR binutils/3281: objcopy changes PT_GNU_RELRO when there is PT_TLS

H. J. Lu hjl@lucon.org
Thu Oct 19 16:31:00 GMT 2006


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.



More information about the Binutils mailing list