diff options
author | Nick Clifton <nickc@redhat.com> | 2017-11-29 09:32:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-11-29 09:32:49 +0000 |
commit | ed9c7ee03780b8d5acf091091ded29cd40df8254 (patch) | |
tree | 6bc83a2a0b19d5557be0929177df3aa898f4b307 /gas/config/obj-elf.c | |
parent | 5dc824ed42cd173c1525f5abc76f4091f11a4dbc (diff) | |
download | gdb-ed9c7ee03780b8d5acf091091ded29cd40df8254.zip gdb-ed9c7ee03780b8d5acf091091ded29cd40df8254.tar.gz gdb-ed9c7ee03780b8d5acf091091ded29cd40df8254.tar.bz2 |
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.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r-- | gas/config/obj-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |