[PATCH] Always use align_size as pr_datasz for GNU_PROPERTY_STACK_SIZE
H.J. Lu
hjl.tools@gmail.com
Fri Aug 10 15:17:00 GMT 2018
On Thu, Aug 9, 2018 at 4:37 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> For GNU_PROPERTY_STACK_SIZE, pr_datasz is the same as align_size, which
> is 8 bytes for 64-bit ELF binaries and 4 bytes for 32-bit ELF binaries,
> Use align_size as pr_datasz for GNU_PROPERTY_STACK_SIZE to convert
> .note.gnu.property section.
>
> OK for master branch?
>
> H.J.
> ---
> bfd/
>
> PR binutils/23494
> * elf-properties.c (elf_get_gnu_property_section_size): Always
> use align_size as pr_datasz for GNU_PROPERTY_STACK_SIZE.
> (elf_write_gnu_properties): Likewise.
>
> binutils/
>
> PR binutils/23494
> * testsuite/binutils-all/x86-64/pr23494c.s: New file.
> * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
> * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
I am checking in this patch.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Always-use-align_size-as-pr_datasz-for-GNU_PROPERTY_.patch
Type: text/x-patch
Size: 8231 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180810/58d6a6c9/attachment.bin>
More information about the Binutils
mailing list