This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Use the record_alignment function when creating a .note section, in case the user has already create
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 29 Nov 2017 09:33:40 -0000
- Subject: [binutils-gdb] Use the record_alignment function when creating a .note section, in case the user has already create
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ed9c7ee03780b8d5acf091091ded29cd40df8254
commit ed9c7ee03780b8d5acf091091ded29cd40df8254
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Nov 29 09:32:49 2017 +0000
Use the record_alignment function when creating a .note section, in case the user has already created the section.
PR 22492
* config/obj-elf.c (obj_elf_version): Use record_alignment rather
than bfd_set_section_alignment.
Diff:
---
gas/ChangeLog | 7 ++++++-
gas/config/obj-elf.c | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e54872d..d59423d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,8 +1,13 @@
+2017-11-29 Nick Clifton <nickc@redhat.com>
+
+ PR 22492
+ * config/obj-elf.c (obj_elf_version): Use record_alignment rather
+ than bfd_set_section_alignment.
+
2017-11-27 Andrew Waterman <andrew@sifive.com>
Palmer Dabbelt <palmer@sifive.com>
Jim Wilson <jimw@sifive.com>
- gas/
* config/tc-riscv.c (riscv_handle_implicit_zero_offset): New.
(riscv_ip): Cases 'k', 'l', 'm', 'n', 'M', 'N', add call to
riscv_handle_implicit_zero_offset. At label load_store, replace
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 2d1d167..61c573a 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1829,7 +1829,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED)
bfd_set_section_flags (stdoutput,
note_secp,
SEC_HAS_CONTENTS | SEC_READONLY);
- bfd_set_section_alignment (stdoutput, note_secp, 2);
+ record_alignment (note_secp, 2);
/* Process the version string. */
len = strlen (name) + 1;