mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
When creating a .note section to contain a version note, set the section alignment to 4 bytes.
PR 22492 * config/obj-elf.c (obj_elf_version): Set the alignment of the .note section.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-11-27 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 22492
|
||||||
|
* config/obj-elf.c (obj_elf_version): Set the alignment of the
|
||||||
|
.note section.
|
||||||
|
|
||||||
2017-11-26 H.J. Lu <hongjiu.lu@intel.com>
|
2017-11-26 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/gas/i386/sse-noavx.s: Add tests for fisttps and
|
* testsuite/gas/i386/sse-noavx.s: Add tests for fisttps and
|
||||||
|
@ -1829,6 +1829,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED)
|
|||||||
bfd_set_section_flags (stdoutput,
|
bfd_set_section_flags (stdoutput,
|
||||||
note_secp,
|
note_secp,
|
||||||
SEC_HAS_CONTENTS | SEC_READONLY);
|
SEC_HAS_CONTENTS | SEC_READONLY);
|
||||||
|
bfd_set_section_alignment (stdoutput, note_secp, 2);
|
||||||
|
|
||||||
/* Process the version string. */
|
/* Process the version string. */
|
||||||
len = strlen (name) + 1;
|
len = strlen (name) + 1;
|
||||||
|
Reference in New Issue
Block a user