binutils-gdb/ld/testsuite/ld-elf/pr22450.s
Nick Clifton b77db948f4 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.
2017-11-20 15:32:55 +00:00

20 lines
451 B
ArmAsm

.section ".note.gnu", "a" /* NB/ Deliberately incorrect section name. Should be: .note.gnu.property */
.p2align ALIGN
.dc.l 1f - 0f /* Name length. */
.dc.l 5f - 2f /* Data length. */
.dc.l 5 /* Note type: NT_GNU_PROPERTY_TYPE_0 */
0:
.asciz "GNU" /* Vendor name. */
1:
.p2align ALIGN
2:
.dc.l 1 /* pr_type: GNU_PROPERTY_STACK_SIZE */
.dc.l 5f - 4f /* pr_datasz. */
4:
.dc.a 0x8000 /* Stack size. */
5:
.p2align ALIGN
3: