mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
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.
This commit is contained in:
@ -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>
|
2017-11-27 Andrew Waterman <andrew@sifive.com>
|
||||||
Palmer Dabbelt <palmer@sifive.com>
|
Palmer Dabbelt <palmer@sifive.com>
|
||||||
Jim Wilson <jimw@sifive.com>
|
Jim Wilson <jimw@sifive.com>
|
||||||
|
|
||||||
gas/
|
|
||||||
* config/tc-riscv.c (riscv_handle_implicit_zero_offset): New.
|
* config/tc-riscv.c (riscv_handle_implicit_zero_offset): New.
|
||||||
(riscv_ip): Cases 'k', 'l', 'm', 'n', 'M', 'N', add call to
|
(riscv_ip): Cases 'k', 'l', 'm', 'n', 'M', 'N', add call to
|
||||||
riscv_handle_implicit_zero_offset. At label load_store, replace
|
riscv_handle_implicit_zero_offset. At label load_store, replace
|
||||||
|
@ -1829,7 +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);
|
record_alignment (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