mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
4ffd290906
According to the specification for the CIE entries, when the CIE version is 1 then the return address register field is always 1 byte. Readelf does this correctly in read_cie in dwarf.c but ld does this incorrectly and always tries to read a skip_leb128. If the value here has the top bit set then ld will incorrectly read at least another byte, causing either an assert failure or an incorrect address to be used in eh_frame. I'm not sure how to generate a generic test for this as I'd need to write assembly, and it's a bit hard to trigger. Essentially the relocated value needs to start with something that & 0x70 != 0x10 while trying to write a personality. bfd/ChangeLog: * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
250 lines
7.3 KiB
Plaintext
250 lines
7.3 KiB
Plaintext
2019-02-28 Tamar Christina <tamar.christina@arm.com>
|
||
|
||
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
|
||
|
||
2019-02-28 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 24273
|
||
* elf.c (bfd_elf_string_from_elf_section): Check for a string
|
||
section that is not NUL terminated.
|
||
|
||
2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24276
|
||
* elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
|
||
by linker when checking copy reloc on protected symbol.
|
||
|
||
2019-02-24 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24144
|
||
* pdp11.c (set_section_contents): Revert 2015-02-24 change.
|
||
|
||
2019-02-20 Eric Tsai <erictsai@cadence.com>
|
||
|
||
* elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
|
||
sections between the call site and call destination and adjust
|
||
call distance by the largest alignment.
|
||
|
||
2019-02-20 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
|
||
* elf.c (elfcore_grok_aarch_pauth): New function.
|
||
(elfcore_grok_note): Check for NT_ARM_PAC_MASK.
|
||
(elfcore_write_aarch_pauth): New function.
|
||
(elfcore_write_register_note): Check for AArch64 pauth section.
|
||
|
||
2019-02-20 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24225
|
||
* elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
|
||
return value.
|
||
|
||
2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
|
||
|
||
* configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
|
||
Darwin hosts, not just or1k.
|
||
* configure: Regenerate.
|
||
|
||
2019-02-20 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24236
|
||
* archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
|
||
sentinel NUL to string buffer nearer to loop where it is used.
|
||
Don't go past sentinel when scanning strings, and don't write
|
||
NUL again.
|
||
* archive.c (do_slurp_coff_armap): Simplify string handling to
|
||
archive64.c style.
|
||
|
||
2019-02-19 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24235
|
||
* pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
|
||
attempting to prevent read past end of section.
|
||
|
||
2019-02-18 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24225
|
||
* elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
|
||
PRIx64 to generate warning messages. Print local sym names too.
|
||
|
||
2019-02-09 Vineet Gupta <vgupta@synopsys.com>
|
||
|
||
* elf32-arc (INIT_SYM_STRING): Delete.
|
||
(FINI_SYM_STRING): Likewise.
|
||
(init_str): Likewise.
|
||
(fini_str): Likewise.
|
||
|
||
2019-02-08 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
|
||
for bss-plt" warning to make it an error.
|
||
|
||
2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
|
||
|
||
PR ld/18841
|
||
* elf32-sparc.c (elf32_sparc_reloc_type_class): Return
|
||
reloc_class_ifunc for ifunc symbols.
|
||
* elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
|
||
|
||
2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
|
||
|
||
* elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
|
||
<R_VISIUM_PC16>: Use explicit range test to detect an overflow.
|
||
|
||
2019-02-07 Nick Clifton <nickc@redhat.com>
|
||
|
||
* config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
|
||
into the definitely obsolete list.
|
||
|
||
2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24151
|
||
* elf64-x86-64.c (elf_x86_64_need_pic): Check
|
||
SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
|
||
(elf_x86_64_relocate_section): Move PIC check for PC-relative
|
||
relocations to ...
|
||
(elf_x86_64_check_relocs): Here.
|
||
(elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
|
||
to check if a symbol is defined in a non-shared object.
|
||
* elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
|
||
|
||
2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
|
||
of 'labs' (and fix GCC warning).
|
||
|
||
2019-01-25 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/ru.po: Updated Russian translation.
|
||
|
||
2019-01-23 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/fr.po: Updated French translation.
|
||
|
||
2019-01-21 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/pt.po: Updated Portuguese translation.
|
||
* po/uk.po: Updated Ukranian translation.
|
||
|
||
2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
|
||
|
||
PR 24108
|
||
* elf32-nds32.c (nds32_relocate_section): Add space between words
|
||
in error message.
|
||
* elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
|
||
error message.
|
||
(riscv_i_or_e_p): Likewise.
|
||
(riscv_merge_arch_attr_info): Likewise.
|
||
|
||
2019-01-19 Nick Clifton <nickc@redhat.com>
|
||
|
||
* version.m4: Reset to 2.32.51
|
||
* configure: Regenerate.
|
||
* po/bfd.pot: Regenerate.
|
||
|
||
2018-06-24 Nick Clifton <nickc@redhat.com>
|
||
|
||
2.32 branch created.
|
||
|
||
2019-01-16 Kito Cheng <kito@andestech.com>
|
||
|
||
* elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
|
||
for OBJ_ATTR_PROC.
|
||
|
||
2019-01-16 Kito Cheng <kito@andestech.com>
|
||
Nelson Chu <nelson@andestech.com>
|
||
|
||
* elfnn-riscv.c (in_subsets): New.
|
||
(out_subsets): Likewise.
|
||
(merged_subsets): Likewise.
|
||
(riscv_std_ext_p): Likewise.
|
||
(riscv_non_std_ext_p): Likewise.
|
||
(riscv_std_sv_ext_p): Likewise.
|
||
(riscv_non_std_sv_ext_p): Likewise.
|
||
(riscv_version_mismatch): Likewise.
|
||
(riscv_i_or_e_p): Likewise.
|
||
(riscv_merge_std_ext): Likewise.
|
||
(riscv_merge_non_std_and_sv_ext): Likewise.
|
||
(riscv_merge_arch_attr_info): Likewise.
|
||
(riscv_merge_attributes): Likewise.
|
||
(_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
|
||
|
||
* elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
|
||
(elf_backend_obj_attrs_vendor): Define.
|
||
(elf_backend_obj_attrs_section_type): Likewise.
|
||
(elf_backend_obj_attrs_section): Likewise.
|
||
(elf_backend_obj_attrs_arg_type): Define as
|
||
riscv_elf_obj_attrs_arg_type.
|
||
* elfxx-riscv.c (riscv_estimate_digit): New.
|
||
(riscv_estimate_arch_strlen1): Likewise.
|
||
(riscv_estimate_arch_strlen): Likewise.
|
||
(riscv_arch_str1): Likewise.
|
||
(riscv_arch_str): Likewise.
|
||
* elfxx-riscv.h (riscv_arch_str): Declare.
|
||
|
||
2019-01-14 John Darrington <john@darrington.wattle.id.au>
|
||
|
||
* bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
|
||
* libbfd.h: regen.
|
||
* elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
|
||
source field. (md_apply_fix): Apply final fix
|
||
to BFD_RELOC_S12Z_OPR.
|
||
* reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
|
||
|
||
2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
|
||
|
||
PR 20113
|
||
* elf32-s390.c (allocate_dynrelocs): Update comment.
|
||
|
||
2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
|
||
|
||
* warning.m4: Adjust egrep pattern for non-GNU compilers.
|
||
* configure: Regenerate.
|
||
|
||
2019-01-08 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 23699
|
||
PR 24065
|
||
* ihex.c (ihex_write_object_contents): Properly check 32-bit
|
||
address range.
|
||
|
||
2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
|
||
|
||
* bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
|
||
* bfd/bfd-in2.h: Regenerate.
|
||
* bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
|
||
* bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
|
||
|
||
2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
|
||
|
||
* config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
|
||
default target, little endian target is more suitable.
|
||
|
||
2019-01-04 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24061
|
||
PR 21786
|
||
* coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
|
||
adjust all callers.
|
||
(EQ_VALUE_IN_FIELD): Likewise.
|
||
* coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
|
||
|
||
2019-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2018
|
||
|
||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|