Use the record_alignment function when creating a .note section, in case the user...
authorNick Clifton <nickc@redhat.com>
Wed, 29 Nov 2017 09:32:49 +0000 (09:32 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 29 Nov 2017 09:32:49 +0000 (09:32 +0000)
PR 22492
* config/obj-elf.c (obj_elf_version): Use record_alignment rather
than bfd_set_section_alignment.

gas/ChangeLog
gas/config/obj-elf.c

index e54872d286ec08ed80c2dd6930beb4d272a88d67..d59423d39394873be0b30c0ed1192fc1169a70dc 100644 (file)
@@ -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
index 2d1d1679b8e3b830140d2eb1a21c88ecf248db6e..61c573a5e4a9c3de2bd2e8867e735bda10e9d7aa 100644 (file)
@@ -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;