[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/22492] Incorrect note section alignment
From: |
nickc at redhat dot com |
Subject: |
[Bug gas/22492] Incorrect note section alignment |
Date: |
Wed, 29 Nov 2017 09:35:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22492
--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Hi Alan,
> https://sourceware.org/bugzilla/show_bug.cgi?id=22492
> Was the patch in comment #1 posted to the mailing list?
Sorry no - that was my bad.
> There's a small nit..
> I think it should be using record_alignment rather than
> bfd_set_section_alignment.
So it should. I have checked in this patch to fix the problem.
Cheers
Nick
gas/ChangeLog
2017-11-29 Nick Clifton <address@hidden>
PR 22492
* config/obj-elf.c (obj_elf_version): Use record_alignment rather
than bfd_set_section_alignment.
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 2d1d1679b8..61c573a5e4 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;
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/22492] New: Incorrect note section alignment, hjl.tools at gmail dot com, 2017/11/25
- [Bug gas/22492] Incorrect note section alignment, cvs-commit at gcc dot gnu.org, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, nickc at redhat dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, hjl.tools at gmail dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, nickc at redhat dot com, 2017/11/27
- [Bug gas/22492] Incorrect note section alignment, amodra at gmail dot com, 2017/11/28
- [Bug gas/22492] Incorrect note section alignment, cvs-commit at gcc dot gnu.org, 2017/11/29
- [Bug gas/22492] Incorrect note section alignment,
nickc at redhat dot com <=