Commit | Line | Data |
---|---|---|
3024a17a AM |
1 | 2020-01-27 H.J. Lu <hongjiu.lu@intel.com> |
2 | Alan Modra <amodra@gmail.com> | |
3 | ||
4 | PR ld/25458 | |
5 | * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases. | |
6 | ||
b5f998b2 JW |
7 | 2020-01-24 Jim Wilson <jimw@sifive.com> |
8 | ||
9 | * elfxx-riscv.c (riscv_get_prefix_class): Format s case like others. | |
10 | (riscv_parse_prefixed_ext): Fix s extension comment and reword to | |
11 | avoid over long line. | |
12 | ||
caa31cfa NC |
13 | 2020-01-24 Nick Clifton <nickc@redhat.com> |
14 | ||
15 | PR 25447 | |
16 | * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep | |
17 | syms and keep strings flags as these may have been set in order to | |
18 | prevent a bogus call to free. | |
19 | ||
24e648d4 NC |
20 | 2020-01-23 Nick Clifton <nickc@redhat.com> |
21 | ||
22 | * po/fr.po: Updated French translation. | |
23 | ||
67641dd3 AM |
24 | 2020-01-23 Alan Modra <amodra@gmail.com> |
25 | ||
26 | PR 25444 | |
27 | * elf.c (assign_file_positions_for_load_sections): Avoid divide | |
28 | by zero when p_align is zero. | |
29 | ||
403d1bd9 JW |
30 | 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com> |
31 | ||
32 | * bfd/elfnn-riscv.c (riscv_skip_prefix): New. | |
33 | (riscv_prefix_cmp): Likewise. | |
34 | (riscv_non_std_ext_p): Deleted. | |
35 | (riscv_std_sv_ext_p): Likewise. | |
36 | (riscv_non_std_sv_ext_p): Likewise. | |
37 | (riscv_merge_non_std_and_sv_ext): Rename to... | |
38 | (riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp. | |
39 | (riscv_merge_arch_attr_info): Replace 3 calls to | |
40 | riscv_merge_non_std_and_sv_ext with single call to | |
41 | riscv_merge_multi_letter_ext. | |
42 | * bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we | |
43 | encounter a 'z' prefix. | |
44 | (riscv_get_prefix_class): New function, return prefix class based | |
45 | on first few characters of input string. | |
46 | (riscv_parse_config): New structure to factor out minor differences | |
47 | in extension class parsing behaviour. | |
48 | (riscv_parse_sv_or_non_std_ext): Rename to... | |
49 | (riscv_parse_prefixed_ext): and parameterise with | |
50 | riscv_parse_config. | |
51 | (riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New. | |
52 | (riscv_multi_letter_ext_valid_p): New. | |
53 | (riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New. | |
54 | (riscv_parse_subset): Delegate all non-single-letter parsing work | |
55 | to riscv_parse_prefixed_ext. | |
56 | * bfd/elfxx-riscv.h (riscv_isa_ext_class): New type. | |
57 | (riscv_get_prefix_class): Declare. | |
58 | ||
a804e476 AM |
59 | 2020-01-22 Alan Modra <amodra@gmail.com> |
60 | ||
61 | * elf64-ppc.c (struct ppc_link_hash_table): Add tga_group. | |
62 | (ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for | |
63 | __tls_get_addr_desc. | |
64 | (ppc64_elf_size_stubs): Add section for linker generated | |
65 | __tls_get_addr_desc wrapper function. Loop at least once if | |
66 | generating this function. | |
67 | (emit_tga_desc, emit_tga_desc_eh_frame): New functions. | |
68 | (ppc64_elf_build_stubs): Generate __tls_get_addr_desc. | |
69 | ||
9e7028aa AM |
70 | 2020-01-22 Alan Modra <amodra@gmail.com> |
71 | ||
72 | * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave. | |
73 | * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and | |
74 | tga_desc_fd. | |
75 | (is_tls_get_addr): Match tga_desc and tga_desc_df too. | |
76 | (STDU_R1_0R1, ADDI_R1_R1): Define. | |
77 | (tls_get_addr_prologue, tls_get_addr_epilogue): New functions. | |
78 | (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect | |
79 | tga_desc_fd to opt_fd, and tga_desc to opt. Set | |
80 | no_tls_get_addr_regsave. | |
81 | (branch_reloc_hash_match): Add hash3 and hash4. | |
82 | (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too. | |
83 | (ppc64_elf_size_dynamic_sections): Likewise. | |
84 | (ppc64_elf_relocate_section): Likewise. | |
85 | (plt_stub_size, build_plt_stub): Likewise. Size regsave | |
86 | __tls_get_addr stub. | |
87 | (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and | |
88 | eh_frame. | |
89 | (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size | |
90 | eh_frame for regsave __tls_get_addr. | |
91 | ||
abc489c6 AM |
92 | 2020-01-22 Alan Modra <amodra@gmail.com> |
93 | ||
94 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under | |
95 | which __tls_get_addr calls will be eliminated. | |
96 | ||
26916852 NC |
97 | 2020-01-20 Nick Clifton <nickc@redhat.com> |
98 | ||
99 | * po/pt.po: Updates Portuguese translation. | |
100 | * po/ru.po: Updated Russian translation. | |
101 | * po/uk.po: Updated Ukranian translation. | |
102 | ||
14470f07 L |
103 | 2020-01-20 H.J. Lu <hongjiu.lu@intel.com> |
104 | ||
105 | PR ld/25416 | |
106 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support | |
107 | "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in | |
108 | X32 mode. | |
109 | (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE | |
110 | transition, relax "rex leal x@tlsdesc(%rip), %reg" to | |
111 | "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax | |
112 | "rex leal x@tlsdesc(%rip), %reg" to | |
113 | "rex movl x@gottpoff(%rip), %eax". For both transitions, relax | |
114 | "call *(%eax)" to "nopl (%rax)". | |
115 | ||
b9ca1af6 AM |
116 | 2020-01-20 Alan Modra <amodra@gmail.com> |
117 | ||
118 | * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1), | |
119 | (MTLR_R11): Don't define. | |
120 | (LD_R0_0R3, CMPDI_R0_0): Define. | |
121 | (build_tls_get_addr_stub): Don't use r11 in stub. | |
122 | ||
ed7007c1 AM |
123 | 2020-01-20 Alan Modra <amodra@gmail.com> |
124 | ||
125 | * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file. | |
126 | (defined_sym_val, is_tls_get_addr): Likewise. | |
127 | ||
1b1bb2c6 NC |
128 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
129 | ||
130 | * version.m4 (BFD_VERSION): Set to 2.34.50. | |
131 | * configure: Regenerate. | |
132 | * po/bfd.pot: Regenerate. | |
133 | ||
ae774686 NC |
134 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
135 | ||
136 | Binutils 2.34 branch created. | |
137 | ||
07f1f3aa CB |
138 | 2020-01-17 Christian Biesinger <cbiesinger@google.com> |
139 | ||
140 | * coff-arm.c: Fix spelling error (seperate). | |
141 | * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling | |
142 | error (seperate). | |
143 | * sysdep.h (strnlen): Fix spelling error (seperate). | |
144 | ||
0d1cc75d LB |
145 | 2020-01-15 Lars Brinkhoff <lars@nocrew.org> |
146 | ||
147 | PR 20694 | |
148 | * pdp11.c (TARGET_PAGE_SIZE): Set to 8192. | |
149 | ||
e1c6cf61 AM |
150 | 2020-01-15 Alan Modra <amodra@gmail.com> |
151 | ||
152 | PR 25384 | |
153 | * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment. | |
154 | (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies | |
155 | of function symbols unless dot symbols are present. Do warn | |
156 | whenever one is created, regardles of whether a PLT entry is | |
157 | also emitted for the function symbol. | |
158 | ||
ef4e5ba5 AM |
159 | 2020-01-14 Alan Modra <amodra@gmail.com> |
160 | ||
161 | * som.c (som_bfd_count_ar_symbols): Error when file position | |
162 | of symbols on chains is not strictly increasing. | |
163 | ||
8ab484c2 AM |
164 | 2020-01-14 Alan Modra <amodra@gmail.com> |
165 | ||
166 | * vms.h (VMS_DEBUG): Define as 0. | |
167 | * vms-alpha.c (image_write): Move debug output after bounds check. | |
168 | Tidy bounds check. | |
169 | (_bfd_vms_slurp_eihd): Warning fix. | |
170 | (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings. | |
171 | ||
b50ef514 AM |
172 | 2020-01-13 Alan Modra <amodra@gmail.com> |
173 | ||
174 | * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even | |
175 | for "ignored" records. | |
176 | ||
0c0adcc5 AM |
177 | 2020-01-13 Alan Modra <amodra@gmail.com> |
178 | ||
179 | * wasm-module.c (wasm_scan_name_function_section): Formatting. | |
180 | Delete asect name check. Move asect NULL check to wasm_object_p. | |
181 | Correct bounds check of sizes against end. Replace uses of | |
182 | bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use | |
183 | just one bfd_release. | |
184 | (wasm_scan): Don't use malloc/strdup for section names, | |
185 | bfd_alloc instead. Simplify code prefixing section name. | |
186 | Formatting. Don't attempt to free memory here.. | |
187 | (wasm_object_p): ..do so here. | |
188 | ||
7f026732 SN |
189 | 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com> |
190 | ||
191 | PR ld/22269 | |
192 | * elf32-arm.c (elf32_arm_final_link_relocate): Use | |
193 | UNDEFWEAK_NO_DYNAMIC_RELOC. | |
194 | (allocate_dynrelocs_for_symbol): Likewise. | |
195 | ||
8cd0e5e9 TC |
196 | 2020-01-10 Tamar Christina <tamar.christina@arm.com> |
197 | ||
198 | PR 25210 | |
199 | * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass. | |
200 | ||
71780f45 AM |
201 | 2020-01-10 Alan Modra <amodra@gmail.com> |
202 | ||
203 | * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type. | |
204 | ||
b899eb3b NC |
205 | 2020-01-09 Nick Clifton <nickc@redhat.com> |
206 | ||
207 | PR 25221 | |
208 | * bfd.c (bfd_convert_section_contents): Check for a compress | |
209 | header size that is larger than the actual section size. | |
210 | ||
4c6ee646 AM |
211 | 2020-01-08 Alan Modra <amodra@gmail.com> |
212 | ||
213 | PR 25351 | |
214 | * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms | |
215 | after removing sections. | |
216 | ||
85f78364 JW |
217 | 2020-01-06 Jim Wilson <jimw@sifive.com> |
218 | ||
219 | PR 25205 | |
220 | * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add | |
221 | check for !bfd_link_pic (info). | |
222 | <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL. | |
223 | <R_RISCV_JAL>: Add comment. | |
224 | (_bfd_riscv_relax_section): For plt.offset check, add check for | |
225 | bfd_link_pic (info). Add comment. | |
226 | ||
49078ece AM |
227 | 2020-01-06 Alan Modra <amodra@gmail.com> |
228 | ||
229 | * format.c (bfd_check_format_matches): Ignore bfd_error on target | |
230 | match failures. Don't init to bfd_error_wrong_format before | |
231 | calling _bfd_check_format. | |
232 | ||
ab356be7 AM |
233 | 2020-01-06 Alan Modra <amodra@gmail.com> |
234 | ||
235 | * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail | |
236 | status rather than exiting on stack overflow or underflow. | |
237 | (_bfd_vms_slurp_etir): Adjust to suit. | |
238 | ||
85d86817 AM |
239 | 2020-01-06 Alan Modra <amodra@gmail.com> |
240 | ||
241 | * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index. | |
242 | ||
3e6aa775 AM |
243 | 2020-01-06 Alan Modra <amodra@gmail.com> |
244 | ||
245 | * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of | |
246 | command. Check name offset is within command. | |
247 | (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib), | |
248 | (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints), | |
249 | (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab), | |
250 | (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid), | |
251 | (bfd_mach_o_read_linkedit, bfd_mach_o_read_str), | |
252 | (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min), | |
253 | (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version), | |
254 | (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main), | |
255 | (bfd_mach_o_read_note, bfd_mach_o_read_build_version), | |
256 | (bfd_mach_o_read_segment): Similarly. | |
257 | (bfd_mach_o_read_thread): Properly bound check thread struct. | |
258 | Don't repeat checks on second loop. | |
259 | (bfd_mach_o_read_command): Fail on invalid command length. | |
260 | ||
ea933f17 AM |
261 | 2020-01-04 Alan Modra <amodra@gmail.com> |
262 | ||
263 | * format.c (bfd_check_format_matches): Add preserve_match. | |
264 | Save initial bfd state in "preserve", matched bfd state in | |
265 | "preserve_match". Save just the first match. Release | |
266 | bfd_alloc memory. Restore and finish preserved state as | |
267 | appropriate on all function exit paths. | |
268 | ||
f24bdec4 AM |
269 | 2020-01-04 Alan Modra <amodra@gmail.com> |
270 | ||
271 | * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc. | |
272 | ||
991fb595 AM |
273 | 2020-01-04 Alan Modra <amodra@gmail.com> |
274 | ||
275 | * coffgen.c (coff_real_object_p): Free malloc'd memory on target | |
276 | match too. | |
277 | ||
f2a3559d NC |
278 | 2020-01-03 Nick Clifton <nickc@redhat.com> |
279 | ||
280 | PR 25307 | |
281 | (bfd_pef_parse_function_stubs): Correct the test that ensures that | |
282 | there is enough data remaining in the code buffer before | |
283 | attempting to read a function stub. | |
284 | ||
7a0fb7be NC |
285 | 2020-01-03 Nick Clifton <nickc@redhat.com> |
286 | ||
287 | PR 25308 | |
288 | * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the | |
289 | return value from bfd_malloc. | |
290 | * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
291 | (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise. | |
292 | (elf32_arm_filter_cmse_symbols): Likewise. | |
293 | (elf32_arm_write_section): Likewise. | |
294 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
295 | (bfd_mach_o_follow_dsym): Likewise. | |
296 | * pef.c (bfd_pef_print_loader_section): Likewise. | |
297 | (bfd_pef_scan_start_address): Likewise. | |
298 | (bfd_pef_parse_function_stubs): Likewise. | |
299 | (bfd_pef_parse_symbols): Likewise. | |
300 | ||
b26a3d58 ST |
301 | 2020-01-03 Sergei Trofimovich <siarheit@google.com> |
302 | ||
303 | * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail | |
304 | on binary inputs ld/PR25316. | |
305 | (is_ia64_elf): new helper to filter on ia64 objects. | |
306 | ||
4bb7a87e JB |
307 | 2020-01-03 Jan Beulich <jbeulich@suse.com> |
308 | ||
309 | * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore | |
310 | in parameter names. | |
311 | (bfd_mach_o_scan): Insert underscore in two variable names. | |
312 | ||
6655dba2 SB |
313 | 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com> |
314 | ||
315 | * Makefile.am: Add z80-elf target support. | |
316 | * configure.ac: Likewise. | |
317 | * targets.c: Likewise. | |
318 | * Makefile.in: Regenerate. | |
319 | * configure: Regenerate. | |
320 | * config.bfd: Add z80-elf target support and new arches: ez80 and | |
321 | z180. | |
322 | * elf32-z80.c: New file. | |
323 | * archures.c: Add new z80 architectures: eZ80 and Z180. | |
324 | * coffcode.h: Likewise. | |
325 | * cpu-z80.c: Likewise. | |
326 | * coff-z80.c: Add new relocations for Z80 target and local label | |
327 | check. | |
328 | * reloc.c: Add new relocs. | |
329 | * bfd-in2.h: Regenerate. | |
330 | * libbfd.h: Regenerate. | |
331 | ||
0db131fb TC |
332 | 2020-01-02 Tamar Christina <tamar.christina@arm.com> |
333 | ||
334 | PR 25210 | |
335 | PR 24753 | |
336 | * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class. | |
337 | ||
b14ce8bf AM |
338 | 2020-01-01 Alan Modra <amodra@gmail.com> |
339 | ||
340 | Update year range in copyright notice of all files. | |
341 | ||
0b114740 | 342 | For older changes see ChangeLog-2019 |
3499769a | 343 | \f |
0b114740 | 344 | Copyright (C) 2020 Free Software Foundation, Inc. |
3499769a AM |
345 | |
346 | Copying and distribution of this file, with or without modification, | |
347 | are permitted in any medium without royalty provided the copyright | |
348 | notice and this notice are preserved. | |
349 | ||
350 | Local Variables: | |
351 | mode: change-log | |
352 | left-margin: 8 | |
353 | fill-column: 74 | |
354 | version-control: never | |
355 | End: |