mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
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. 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.
14 lines
400 B
Makefile
14 lines
400 B
Makefile
#PROG: objcopy
|
|
#source: pr23494c.s
|
|
#as: --x32
|
|
#objcopy: -O elf64-x86-64 --decompress-debug-sections
|
|
#readelf: -n
|
|
#not-target: x86_64-*-nacl*
|
|
|
|
Displaying notes found in: .note.gnu.property
|
|
Owner Data size Description
|
|
GNU 0x00000030 NT_GNU_PROPERTY_TYPE_0
|
|
Properties: stack size: 0xffffffff
|
|
x86 ISA used: 586, SSE, SSE3, SSE4_1
|
|
x86 ISA needed: SSE3, SSE4_1
|