bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23494] .note.gnu.property section isn't properly converted


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/23494] .note.gnu.property section isn't properly converted
Date: Thu, 09 Aug 2018 04:01:27 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23494

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6404ab993797d1d6cd3d9e97cc281e3cb6226c12

commit 6404ab993797d1d6cd3d9e97cc281e3cb6226c12
Author: H.J. Lu <address@hidden>
Date:   Wed Aug 8 21:00:04 2018 -0700

    Convert .note.gnu.property section between ELF32 and ELF64

    .note.gnu.property section has different alignments and section
    sizes for 32-bit and 64-bit ELF binaries.  This patch updated
    bfd_convert_section_size and bfd_convert_section_contents to
    properly convert .note.gnu.property section between 32-bit and
    64-bit ELF binaries.

    bfd/

        PR binutils/23494
        * bfd.c (bfd_convert_section_size): Check BFD_DECOMPRESS after
        calling _bfd_elf_convert_gnu_property_size to convert
        .note.gnu.property section size.
        (bfd_convert_section_contents): Check BFD_DECOMPRESS after
        calling _bfd_elf_convert_gnu_properties to convert
        .note.gnu.property section.
        * elf-bfd.h (_bfd_elf_convert_gnu_property_size): New prototype.
        (_bfd_elf_convert_gnu_properties): Likewise.
        * elf-properties.c (elf_get_gnu_property_section_size): New
        function.
        (elf_write_gnu_properties): Likewise.
        (_bfd_elf_convert_gnu_property_size): Likewise.
        (_bfd_elf_convert_gnu_properties): Likewise.
        (_bfd_elf_link_setup_gnu_properties): Use
        elf_get_gnu_property_section_size and elf_write_gnu_properties.

    binutils/

        PR binutils/23494
        * testsuite/binutils-all/x86-64/pr23494a-x32.d: New file.
        * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
        * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
        * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
        * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]