[PR ld/22269] arm: Avoid dynamic relocs for undefweak symbols in static PIE
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2
3 PR ld/22269
4 * elf32-arm.c (elf32_arm_final_link_relocate): Use
5 UNDEFWEAK_NO_DYNAMIC_RELOC.
6 (allocate_dynrelocs_for_symbol): Likewise.
7
8 2020-01-10 Tamar Christina <tamar.christina@arm.com>
9
10 PR 25210
11 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
12
13 2020-01-10 Alan Modra <amodra@gmail.com>
14
15 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
16
17 2020-01-09 Nick Clifton <nickc@redhat.com>
18
19 PR 25221
20 * bfd.c (bfd_convert_section_contents): Check for a compress
21 header size that is larger than the actual section size.
22
23 2020-01-08 Alan Modra <amodra@gmail.com>
24
25 PR 25351
26 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
27 after removing sections.
28
29 2020-01-06 Jim Wilson <jimw@sifive.com>
30
31 PR 25205
32 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
33 check for !bfd_link_pic (info).
34 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
35 <R_RISCV_JAL>: Add comment.
36 (_bfd_riscv_relax_section): For plt.offset check, add check for
37 bfd_link_pic (info). Add comment.
38
39 2020-01-06 Alan Modra <amodra@gmail.com>
40
41 * format.c (bfd_check_format_matches): Ignore bfd_error on target
42 match failures. Don't init to bfd_error_wrong_format before
43 calling _bfd_check_format.
44
45 2020-01-06 Alan Modra <amodra@gmail.com>
46
47 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
48 status rather than exiting on stack overflow or underflow.
49 (_bfd_vms_slurp_etir): Adjust to suit.
50
51 2020-01-06 Alan Modra <amodra@gmail.com>
52
53 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
54
55 2020-01-06 Alan Modra <amodra@gmail.com>
56
57 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
58 command. Check name offset is within command.
59 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
60 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
61 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
62 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
63 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
64 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
65 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
66 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
67 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
68 (bfd_mach_o_read_segment): Similarly.
69 (bfd_mach_o_read_thread): Properly bound check thread struct.
70 Don't repeat checks on second loop.
71 (bfd_mach_o_read_command): Fail on invalid command length.
72
73 2020-01-04 Alan Modra <amodra@gmail.com>
74
75 * format.c (bfd_check_format_matches): Add preserve_match.
76 Save initial bfd state in "preserve", matched bfd state in
77 "preserve_match". Save just the first match. Release
78 bfd_alloc memory. Restore and finish preserved state as
79 appropriate on all function exit paths.
80
81 2020-01-04 Alan Modra <amodra@gmail.com>
82
83 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
84
85 2020-01-04 Alan Modra <amodra@gmail.com>
86
87 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
88 match too.
89
90 2020-01-03 Nick Clifton <nickc@redhat.com>
91
92 PR 25307
93 (bfd_pef_parse_function_stubs): Correct the test that ensures that
94 there is enough data remaining in the code buffer before
95 attempting to read a function stub.
96
97 2020-01-03 Nick Clifton <nickc@redhat.com>
98
99 PR 25308
100 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
101 return value from bfd_malloc.
102 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
103 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
104 (elf32_arm_filter_cmse_symbols): Likewise.
105 (elf32_arm_write_section): Likewise.
106 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
107 (bfd_mach_o_follow_dsym): Likewise.
108 * pef.c (bfd_pef_print_loader_section): Likewise.
109 (bfd_pef_scan_start_address): Likewise.
110 (bfd_pef_parse_function_stubs): Likewise.
111 (bfd_pef_parse_symbols): Likewise.
112
113 2020-01-03 Sergei Trofimovich <siarheit@google.com>
114
115 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
116 on binary inputs ld/PR25316.
117 (is_ia64_elf): new helper to filter on ia64 objects.
118
119 2020-01-03 Jan Beulich <jbeulich@suse.com>
120
121 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
122 in parameter names.
123 (bfd_mach_o_scan): Insert underscore in two variable names.
124
125 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
126
127 * Makefile.am: Add z80-elf target support.
128 * configure.ac: Likewise.
129 * targets.c: Likewise.
130 * Makefile.in: Regenerate.
131 * configure: Regenerate.
132 * config.bfd: Add z80-elf target support and new arches: ez80 and
133 z180.
134 * elf32-z80.c: New file.
135 * archures.c: Add new z80 architectures: eZ80 and Z180.
136 * coffcode.h: Likewise.
137 * cpu-z80.c: Likewise.
138 * coff-z80.c: Add new relocations for Z80 target and local label
139 check.
140 * reloc.c: Add new relocs.
141 * bfd-in2.h: Regenerate.
142 * libbfd.h: Regenerate.
143
144 2020-01-02 Tamar Christina <tamar.christina@arm.com>
145
146 PR 25210
147 PR 24753
148 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
149
150 2020-01-01 Alan Modra <amodra@gmail.com>
151
152 Update year range in copyright notice of all files.
153
154 For older changes see ChangeLog-2019
155 \f
156 Copyright (C) 2020 Free Software Foundation, Inc.
157
158 Copying and distribution of this file, with or without modification,
159 are permitted in any medium without royalty provided the copyright
160 notice and this notice are preserved.
161
162 Local Variables:
163 mode: change-log
164 left-margin: 8
165 fill-column: 74
166 version-control: never
167 End:
This page took 0.031483 seconds and 4 git commands to generate.