PATCH: PR bfd/14207: linker can produce a NULL GNU_RELRO segment
H.J. Lu
hjl.tools@gmail.com
Tue Jun 12 03:54:00 GMT 2012
On Mon, Jun 11, 2012 at 6:54 PM, Alan Modra <amodra@gmail.com> wrote:
> On Mon, Jun 11, 2012 at 10:26:39AM -0700, H.J. Lu wrote:
>> The real bug is in _bfd_elf_map_sections_to_segments. It
>
> Agreed.
>
>> * elf.c (_bfd_elf_map_sections_to_segments): Properly compute
>> file size for PT_GNU_RELRO segment.
>
> While I think this part of your patch is correct, it is doing quite a
> lot of unnecessary work. How about this instead?
>
It works. Thanks.
--
H.J.
More information about the Binutils
mailing list