]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix handling of GNU Property notes that are not in a GNU NOTE PROPERTY section.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Nov 2017 15:32:55 +0000 (15:32 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Nov 2017 15:32:55 +0000 (15:32 +0000)
commitb77db948f4175e479bb3310ba86346c9554ab9f5
tree634d70cd1221d48fa76e2f56c0c6836022e72c2c
parentb7486a74a62527412cfd2dd50a9a100118265c28
Fix handling of GNU Property notes that are not in a GNU NOTE PROPERTY section.

PR 22450
gas * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Skip
objects without a GNU_PROPERTY note section when looking for a bfd
onto which notes can be accumulated.

ld * testsuite/ld-elf/elf.exp: Add --defsym ALIGN=2|3 to assembler
command line depending upon the size of the target address space.
* testsuite/ld-elf/pr22450.s: New test file.
* testsuite/ld-elf/pr22450.d: New test driver.
* testsuite/config/default.exp: Add note that LD_CLASS refers to
the size of the host linker not the size of the target linker.
bfd/ChangeLog
bfd/elf-properties.c
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/pr22450.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr22450.s [new file with mode: 0644]