Commit | Line | Data |
---|---|---|
b74a6c60 NC |
1 | 2020-08-26 Nick Clifton <nickc@redhat.com> |
2 | ||
eae0b5c3 NC |
3 | PR 26416 |
4 | * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Test for and | |
5 | ignore local symbols. | |
6 | (elf64_alpha_relax_got_load): Do not check for local dynamic | |
7 | symbols. | |
8 | (OP_LDA, OP_LDAH, OP_LDQ, OP_BR, OP_BSR): Use unsigned constant | |
9 | values. | |
10 | (INSN_A) Cast the A parameter to unsigned. | |
11 | (INSN_AB): Define in terms of INSN_A. | |
12 | (INSN_ABC): Likewise. | |
13 | (INSN_ABO): Likewise. | |
14 | (INSN_AD): Likewise. | |
15 | ||
b74a6c60 NC |
16 | PR 26411 |
17 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Use an | |
18 | unsigned long constant when creating a mask to test for alignment | |
19 | issues. | |
20 | ||
4d430725 AM |
21 | 2020-08-26 Alan Modra <amodra@gmail.com> |
22 | ||
23 | PR 26507 | |
24 | * elf32-xtensa.c (find_removed_literal): Don't bsearch empty map. | |
25 | ||
252e57fd AM |
26 | 2020-08-26 Alan Modra <amodra@gmail.com> |
27 | ||
28 | PR 26506 | |
29 | * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Return early | |
30 | when section is empty. | |
31 | ||
2d0ce677 AM |
32 | 2020-08-26 Alan Modra <amodra@gmail.com> |
33 | ||
34 | PR 26498 | |
35 | * elf32-spu.c (find_function_stack_adjust): Use unsigned vars to | |
36 | avoid UB left shift. | |
37 | ||
9e51d549 AM |
38 | 2020-08-26 Alan Modra <amodra@gmail.com> |
39 | ||
40 | PR 26484 | |
41 | PR 26485 | |
42 | PR 26486 | |
43 | PR 26487 | |
44 | PR 26488 | |
45 | PR 26490 | |
46 | * elf64-ppc.c (is_tls_get_addr): Avoid UB &h->elf when h is NULL. | |
47 | (ppc64_elf_tls_setup): Likewise. | |
48 | (branch_reloc_hash_match): Likewise. | |
49 | (build_plt_stub): Likewise. | |
50 | (ppc64_elf_relocate_section): Likewise. | |
51 | ||
00bc5e68 AM |
52 | 2020-08-26 Alan Modra <amodra@gmail.com> |
53 | ||
54 | PR 26478 | |
55 | * mmo.c (mmo_write_symbols_and_terminator): Don't memcpy empty table. | |
56 | ||
55e61b8a AM |
57 | 2020-08-26 Alan Modra <amodra@gmail.com> |
58 | ||
59 | PR 26475 | |
60 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Check | |
61 | sstubs->contents != NULL. | |
62 | ||
66ad6b44 AM |
63 | 2020-08-26 Alan Modra <amodra@gmail.com> |
64 | ||
65 | PR 26453 | |
66 | * som.c (som_prep_for_fixups): Return early when no symbols. | |
67 | ||
9863cbb7 AM |
68 | 2020-08-26 Alan Modra <amodra@gmail.com> |
69 | ||
70 | PR 26418 | |
71 | * ecofflink.c (WRITE): Don't write size 0 chunks. | |
72 | ||
c01de193 AM |
73 | 2020-08-26 Alan Modra <amodra@gmail.com> |
74 | ||
75 | * bfdio.c (bfd_get_file_size): Don't segv on NULL adata. | |
76 | ||
b4e125d9 AM |
77 | 2020-08-26 Alan Modra <amodra@gmail.com> |
78 | ||
79 | PR 26415 | |
80 | * vms-misc.c (vms_time_t_to_vms_time): Don't use unsigned short vars. | |
81 | ||
4449c81a DF |
82 | 2020-08-26 David Faust <david.faust@oracle.com> |
83 | ||
84 | * archures.c (bfd_mach_xbpf): Define. | |
85 | * bfd-in2.h: Regenerate. | |
86 | * cpu-bpf.c (bfd_xbpf_arch) New. | |
87 | (bfd_bpf_arch) Update next in list field to point to xbpf arch. | |
88 | ||
13f8a246 AM |
89 | 2020-08-26 Alan Modra <amodra@gmail.com> |
90 | ||
91 | * archures.c (bfd_mach_ck860): Define. | |
92 | ||
c3757b58 MW |
93 | 2020-08-25 Mark Wielaard <mark@klomp.org> |
94 | ||
95 | * dwarf2.c (struct dwarf2_debug_file): Add dwarf_rnglists_buffer | |
96 | and dwarf_rnglists_size fields. | |
97 | (dwarf_debug_sections): Add debug_rnglists. | |
98 | (dwarf_debug_section_enum): Likewise. | |
99 | (read_debug_rnglists): New function. | |
100 | (read_rangelist): New function to call either read_ranges or | |
101 | read_rnglists. Rename original function to... | |
102 | (read_ranges): ...this. | |
103 | (read_rnglists): New function. | |
104 | ||
1ab8d928 AM |
105 | 2020-08-25 Alan Modra <amodra@gmail.com> |
106 | ||
107 | PR 26505 | |
108 | * elf32-xstormy16.c (xstormy16_elf_relax_section): Check | |
109 | is_elf_hash_table before accessing elf fields. | |
110 | ||
a93ba4c0 AM |
111 | 2020-08-25 Alan Modra <amodra@gmail.com> |
112 | ||
113 | PR 26482 | |
114 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Ignore sections that | |
115 | won't be output. | |
116 | ||
1438dd86 AM |
117 | 2020-08-25 Alan Modra <amodra@gmail.com> |
118 | ||
119 | PR 26463 | |
120 | * elf32-m32c.c (m32c_elf_relax_section): Check is_elf_hash_table | |
121 | before accessing elf fields. | |
122 | ||
2186273a AM |
123 | 2020-08-25 Alan Modra <amodra@gmail.com> |
124 | ||
125 | PR 26452 | |
126 | * som.c (som_compute_checksum): XOR 32-bit words in header, | |
127 | not unsigned long sized words. | |
128 | ||
0c1438eb AM |
129 | 2020-08-25 Alan Modra <amodra@gmail.com> |
130 | ||
131 | PR 26430 | |
132 | * elf-nacl.c (nacl_modify_segment_map): Correct alloc size and | |
133 | amount copied for elf_segment_map defined with one element | |
134 | sections array. | |
135 | ||
d2327e47 AM |
136 | 2020-08-25 Alan Modra <amodra@gmail.com> |
137 | ||
138 | PR 26422 | |
139 | * elf32-arm.c (elf32_arm_final_link_relocate): Use the appropriate | |
140 | bfd_get_x size function to read addends out of fields. Apply | |
141 | rightshift adjustment too. Don't apply the now unnecessary | |
142 | howto->size shift to branch REL addends. Don't refetch R_ARM_ABS8 | |
143 | and R_ARM_ABS16 addends. Don't refetch thumb branch addends. | |
144 | Correct R_ARM_THM_JUMP6 addend. | |
145 | ||
b8ff233b AM |
146 | 2020-08-25 Alan Modra <amodra@gmail.com> |
147 | ||
148 | PR 26419 | |
149 | * elf-m10300.c (mn10300_elf_relax_section): Don't attempt access | |
150 | before start of section. | |
151 | ||
0f55320b AM |
152 | 2020-08-25 Alan Modra <amodra@gmail.com> |
153 | ||
154 | * elf-m10300.c (elf32_mn10300_hash_table): Test is_elf_hash_table | |
155 | before accessing elf_hash_table_id. | |
156 | * elf32-arc.c (elf_arc_hash_table): Likewise. | |
157 | * elf32-arm.c (elf32_arm_hash_table): Likewise. | |
158 | * elf32-avr.c (avr_link_hash_table): Likewise. | |
159 | * elf32-bfin.c (bfinfdpic_hash_table): Likewise. | |
160 | * elf32-cris.c (elf_cris_hash_table): Likewise. | |
161 | * elf32-csky.c (csky_elf_hash_table): Likewise. | |
162 | * elf32-frv.c (frvfdpic_hash_table): Likewise. | |
163 | * elf32-hppa.c (hppa_link_hash_table): Likewise. | |
164 | * elf32-lm32.c (lm32_elf_hash_table): Likewise. | |
165 | * elf32-m32r.c (m32r_elf_hash_table): Likewise. | |
166 | * elf32-m68hc1x.h (m68hc11_elf_hash_table): Likewise. | |
167 | * elf32-m68k.c (elf_m68k_hash_table): Likewise. | |
168 | * elf32-metag.c (metag_link_hash_table): Likewise. | |
169 | * elf32-microblaze.c (elf32_mb_hash_table): Likewise. | |
170 | * elf32-nds32.h (nds32_elf_hash_table): Likewise. | |
171 | * elf32-or1k.c (or1k_elf_hash_table): Likewise. | |
172 | * elf32-s390.c (elf_s390_hash_table): Likewise. | |
173 | * elf32-sh.c (sh_elf_hash_table): Likewise. | |
174 | * elf32-spu.c (spu_hash_table): Likewise. | |
175 | * elf32-tilepro.c (tilepro_elf_hash_table): Likewise. | |
176 | * elf32-xtensa.c (elf_xtensa_hash_table): Likewise. | |
177 | * elf64-alpha.c (alpha_elf_hash_table): Likewise. | |
178 | * elf64-hppa.c (hppa_link_hash_table): Likewise. | |
179 | * elf64-ia64-vms.c (elf64_ia64_hash_table): Likewise. | |
180 | * elf64-s390.c (elf_s390_hash_table): Likewise. | |
181 | * elfnn-ia64.c (elfNN_ia64_hash_table): Likewise. | |
182 | * elfnn-riscv.c (riscv_elf_hash_table): Likewise. | |
183 | * elfxx-mips.c (mips_elf_hash_table): Likewise. | |
184 | * elfxx-sparc.h (_bfd_sparc_elf_hash_table): Likewise. | |
185 | * elfxx-tilegx.c (tilegx_elf_hash_table): Likewise. | |
186 | ||
3cdad084 JT |
187 | 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk> |
188 | ||
189 | * elf.c (elfcore_grok_win32pstatus): Change name_size to unsigned | |
190 | int. Use '%u' format with _bfd_error_handler to render it. | |
191 | ||
918dc783 AM |
192 | 2020-08-25 Alan Modra <amodra@gmail.com> |
193 | ||
194 | PR 26489 | |
195 | * elf64-ppc.c (ppc64_elf_size_stubs): Test code_sec->has_toc_reloc | |
196 | and code_sec->makes_toc_func_call before sec_info[code_sec->id]. | |
197 | ||
573eb292 AM |
198 | 2020-08-25 Alan Modra <amodra@gmail.com> |
199 | ||
200 | PR 26492 | |
201 | * elf64-ppc.c (ppc_hash_table): Test is_elf_hash_table before | |
202 | accessing elf_hash_table_id. | |
203 | ||
a8d549c0 AM |
204 | 2020-08-25 Alan Modra <amodra@gmail.com> |
205 | ||
206 | PR 26483 | |
207 | * elf32-ppc.c (ppc_elf_hash_table): Test is_elf_hash_table before | |
208 | accessing elf_hash_table_id. | |
209 | ||
19d80e5f MW |
210 | 2020-08-24 Mark Wielaard <mark@klomp.org> |
211 | ||
212 | * dwarf2.c (read_attribute_value): Handle DW_FORM_data16. | |
213 | (read_formatted_entries): Likewise. And skip zero entry. | |
214 | ||
531c73a3 CQ |
215 | 2020-08-24 Cooper Qu <cooper.qu@linux.alibaba.com> |
216 | ||
217 | * bfd-in2.h (bfd_mach_ck860): New. | |
218 | * cpu-csky.c (arch_info_struct): Add item for CK860. | |
219 | ||
252dcdf4 AM |
220 | 2020-08-24 Alan Modra <amodra@gmail.com> |
221 | ||
222 | * elf32-ppc.c (ppc_elf_check_relocs): Set has_tls_reloc for | |
223 | high part tprel16 relocs. | |
224 | (ppc_elf_tls_optimize): Sanity check high part tprel16 relocs. | |
225 | Clear do_tls_opt on odd instructions. | |
226 | (ppc_elf_relocate_section): Move TPREL16_HA/LO optimisation later. | |
227 | Don't sanity check them here. | |
228 | * elf64-ppc.c (ppc64_elf_check_relocs): Set has_tls_reloc for | |
229 | high part tprel16 relocs. | |
230 | (ppc64_elf_tls_optimize): Sanity check high part tprel16 relocs. | |
231 | Clear do_tls_opt on odd instructions. | |
232 | (ppc64_elf_relocate_section): Don't sanity check TPREL16_HA. | |
233 | ||
c40e6650 JDA |
234 | 2020-08-23 John David Anglin <danglin@gcc.gnu.org> |
235 | ||
236 | PR binutils/26357 | |
237 | * configure.ac: Disable plugins by default on 32-bit hppa*-*-hpux*. | |
238 | * configure: Regenerate. | |
239 | ||
3f2e9699 L |
240 | 2020-08-22 H.J. Lu <hongjiu.lu@intel.com> |
241 | ||
242 | PR ld/26382 | |
243 | * elflink.c (elf_link_output_symstrtab): Keep only one '@' for | |
244 | versioned symbols, which are defined in shared objects, in | |
245 | symbol string table. | |
246 | ||
ccf61261 NC |
247 | 2020-08-21 Nick Clifton <nickc@redhat.com> |
248 | ||
249 | * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan): Only sort | |
250 | the data map if there are entries in it. | |
251 | (_bfd_aarch64_erratum_843419_scan): Likewise. | |
252 | ||
610ed3e0 JB |
253 | 2020-08-21 Jan Beulich <jbeulich@suse.com> |
254 | ||
255 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check | |
256 | last byte of debug dir, not first. | |
257 | ||
01147b20 NC |
258 | 2020-08-20 Nick Clifton <nickc@redhat.com> |
259 | ||
260 | PR 26428 | |
261 | * bfd.c (bfd_update_compression_header): Also set the sh_addralign | |
262 | field in the ELF header of the compressed sections. | |
263 | ||
44466e45 NC |
264 | 2020-08-20 Nick Clifton <nickc@redhat.com> |
265 | ||
266 | PR 26406 | |
267 | * elf-bfd.h (struct bfd_elf_section_data): Add | |
268 | has_secondary_relocs field. | |
269 | * elf.c (_bfd_elf_copy_special_section_fields): Set the | |
270 | has_secondary_relocs field for sections which have associated | |
271 | secondary relocs. | |
272 | * elfcode.h (elf_write_relocs): Only call write_secondary_relocs | |
273 | on sections which have associated secondary relocs. | |
274 | ||
10885e24 AM |
275 | 2020-08-15 Alan Modra <amodra@gmail.com> |
276 | ||
277 | * elf32-frv.c (elf32_frv_add_symbol_hook): Set SEC_SMALL_DATA on | |
278 | small common section. | |
279 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise. | |
280 | * elf32-microblaze.c (microblaze_elf_add_symbol_hook): Likewise. | |
281 | * elf32-nds32.c (nds32_elf_add_symbol_hook): Likewise. | |
282 | * elf32-nios2.c (nios2_elf_add_symbol_hook): Likewise. | |
283 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
284 | * elf32-score.c (s3_bfd_score_elf_add_symbol_hook): Likewise. | |
285 | * elf32-score7.c (s7_bfd_score_elf_add_symbol_hook): Likewise. | |
286 | * elf32-tic6x.c (elf32_tic6x_add_symbol_hook): Likewise. | |
287 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
288 | (v850_elf_add_symbol_hook): Likewise. | |
289 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
290 | * elf64-ia64-vms.c (elf64_ia64_add_symbol_hook): Likewise. | |
291 | * elfnn-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
292 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise. | |
293 | ||
4d182367 AM |
294 | 2020-08-15 Alan Modra <amodra@gmail.com> |
295 | ||
296 | PR 26389 | |
297 | * syms.c (bfd_decode_symclass): Choose 'c' for commons only when | |
298 | SEC_SMALL_DATA. | |
299 | * elf32-m32r.c (_bfd_m32r_elf_symbol_processing): Set SEC_SMALL_DATA | |
300 | on small common section. | |
301 | * elf32-score.c (s3_bfd_score_elf_symbol_processing): Likewise. | |
302 | * elf32-score7.c (s7_bfd_score_elf_symbol_processing): Likewise. | |
303 | * elf32-tic6x.c (elf32_tic6x_symbol_processing): Likewise. | |
304 | * elf32-v850.c (v850_elf_symbol_processing): Likewise. | |
305 | * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Likewise. | |
306 | * ecoff.c (ecoff_set_symbol_info, ecoff_link_add_externals): Likewise. | |
307 | ||
19bddbe9 AM |
308 | 2020-08-14 Alan Modra <amodra@gmail.com> |
309 | ||
310 | * hash.c (bfd_hash_set_default_size): Use higher_prime_number | |
311 | rather than another copy of primes. Increase maximum default | |
312 | size allowed. | |
313 | ||
2b6ba032 AM |
314 | 2020-08-13 Alan Modra <amodra@gmail.com> |
315 | ||
73d0dc16 | 316 | * config.bfd: Obsolete arm*-*-symbianelf*, and ia64*-*-*. |
2b6ba032 | 317 | |
6738c8a7 AM |
318 | 2020-08-13 Alan Modra <amodra@gmail.com> |
319 | ||
320 | * elf64-ppc.h (struct ppc64_elf_params): Add no_pcrel_opt. | |
321 | * elf64-ppc.c (ppc64_elf_relocate_section): Disable GOT reloc | |
322 | optimizations when --no-toc-optimize. Disable R_PPC64_PCREL_OPT | |
323 | optimization when --no-pcrel-optimize. | |
324 | ||
75e100a3 AM |
325 | 2020-08-13 Alan Modra <amodra@gmail.com> |
326 | ||
327 | PR 26348 | |
328 | * bfd.c (struct bfd): Add read_only. | |
329 | * elfcode.h (elf_swap_shdr_in): Test both sh_offset and sh_size. | |
330 | Set read_only on warning. | |
331 | (elf_object_p): Sanity check program header alignment. Set | |
332 | read_only on warning. | |
333 | * bfd-in2.h: Regenerate. | |
334 | ||
2fef9373 JT |
335 | 2020-08-12 Jon Turney <jon.turney@dronecode.org.uk> |
336 | ||
337 | * elf.c (elfcore_grok_win32pstatus): Use unsigned int for | |
338 | win32pstatus note type to avoid signedness comparison warning. | |
339 | ||
404ec933 JT |
340 | 2020-07-21 Jon Turney <jon.turney@dronecode.org.uk> |
341 | ||
342 | * elf.c (elfcore_grok_win32pstatus): Warn on malformed | |
343 | win32pstatus notes, and return TRUE so we continue rather than | |
344 | stopping as if it was an error. | |
345 | ||
d61f3d03 JT |
346 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
347 | ||
348 | * elf.c (elfcore_grok_win32pstatus): Handle NOTE_INFO_MODULE64. | |
349 | ||
04ec0fa2 JT |
350 | 2020-07-11 Jon Turney <jon.turney@dronecode.org.uk> |
351 | ||
352 | * elf.c (elfcore_grok_win32pstatus): Don't apply size constraint | |
353 | for NOTE_INFO_THREAD to all win32pstatus ELF notes, instead apply | |
354 | appropriate size constraint for each win32pstatus note type. | |
355 | ||
03c29a6f JT |
356 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
357 | ||
358 | * elf.c (elfcore_grok_win32pstatus): Don't hardcode the size of | |
359 | the Win32 API thread CONTEXT type read from a NOTE_INFO_THREAD | |
360 | win32pstatus note. | |
361 | ||
8fbac78b JT |
362 | 2020-07-11 Jon Turney <jon.turney@dronecode.org.uk> |
363 | ||
364 | * elf.c (NOTE_INFO{_PROCESS,_THREAD,_MODULE}): Define. | |
365 | (elfcore_grok_win32pstatus): Use. | |
366 | ||
ff2084b9 JT |
367 | 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk> |
368 | ||
369 | * elf.c (elfcore_grok_win32pstatus): Fix the offset used to read | |
370 | the tid from a win32pstatus NOTE_INFO_THREAD ELF note. Fix | |
371 | offsets used to read NOTE_INFO_PROCESS. | |
372 | ||
79ddc884 NC |
373 | 2020-08-12 Nick Clifton <nickc@redhat.com> |
374 | ||
375 | * po/ru.po: Updated Russian translation. | |
376 | * po/sr.po: Updated Serbian translation. | |
377 | ||
d844f10a DF |
378 | 2020-08-07 David Faust <david.faust@oracle.com> |
379 | ||
380 | * elf64-bpf.c (bpf_elf_relocate_section): Ensure signed division for | |
381 | DISP16 and DISP32 relocations. | |
382 | ||
3ee9565c DF |
383 | 2020-08-05 David Faust <david.faust@oracle.com> |
384 | ||
385 | * elf64-bpf.c (bpf_elf_generic_reloc): New function. | |
386 | (bpf_elf_howto_table): Use it here. | |
387 | (bpf_elf_relocate_section): Use addends recorded in input_bfd for | |
388 | instruction and data relocations. | |
389 | ||
e44a1d7b AM |
390 | 2020-08-03 Alan Modra <amodra@gmail.com> |
391 | ||
392 | * vms-lib.c (vms_traverse_index): Sanity check size remaining | |
393 | before accessing vms_idx or vms_elfidx. | |
394 | ||
b5f386d5 AM |
395 | 2020-08-03 Alan Modra <amodra@gmail.com> |
396 | ||
397 | PR 26330 | |
398 | * elf.c (_bfd_elf_get_symtab_upper_bound): Sanity check symbol table | |
399 | size against file size. Correct LONG_MAX limit check. | |
400 | (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise. | |
401 | (_bfd_elf_get_reloc_upper_bound): Don't check file size if writing. | |
402 | (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise. | |
403 | * elf64-x86-64-.c (elf_x86_64_get_synthetic_symtab): Use | |
404 | bfd_malloc_and_get_section. | |
405 | ||
a896df97 AM |
406 | 2020-07-31 Alan Modra <amodra@gmail.com> |
407 | ||
408 | PR 26314 | |
409 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't allow | |
410 | IR symbols to become dynamic. | |
411 | (elf_link_add_object_symbols): Don't exclude IR symbols when | |
412 | deciding whether an as-needed shared library is needed. | |
413 | ||
4d3bb356 SN |
414 | 2020-07-30 Szabolcs Nagy <szabolcs.nagy@arm.com> |
415 | ||
416 | PR ld/26312 | |
417 | * elfnn-aarch64.c (elfNN_aarch64_init_small_plt0_entry): Set sh_entsize | |
418 | to 0. | |
419 | (elfNN_aarch64_finish_dynamic_sections): Remove sh_entsize setting. | |
420 | ||
c8693053 RO |
421 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
422 | ||
423 | * bfd.m4 (BFD_SYS_PROCFS_H): New macro. | |
424 | (BFD_HAVE_SYS_PROCFS_TYPE): Require BFD_SYS_PROCFS_H. | |
425 | Don't define _STRUCTURED_PROC. | |
426 | (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. | |
427 | * elf.c [HAVE_SYS_PROCFS_H] (_STRUCTURED_PROC): Don't define. | |
428 | * configure.ac: Use BFD_SYS_PROCFS_H to check for <sys/procfs.h>. | |
429 | * configure, config.in: Regenerate. | |
430 | * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
431 | * Makefile.in, doc/Makefile.in: Regenerate. | |
432 | ||
f1dfbfdb L |
433 | 2020-07-30 H.J. Lu <hongjiu.lu@intel.com> |
434 | ||
435 | * elf-bfd.h (sym_cache): Moved before elf_link_hash_table. | |
436 | (elf_link_hash_table): Add sym_cache. | |
437 | * elf32-arm.c (elf32_arm_link_hash_table): Remove sym_cache. | |
438 | (elf32_arm_check_relocs): Updated. | |
439 | (elf32_arm_size_dynamic_sections): Likewise. | |
440 | * elf32-bfin.c (bfin_link_hash_table): Removed. | |
441 | (bfin_link_hash_newfunc): Updated. | |
442 | (bfin_hash_table): Removed. | |
443 | * elf32-csky.c (csky_elf_link_hash_table): Remove sym_cache. | |
444 | (csky_elf_check_relocs): Updated. | |
445 | * elf32-hppa.c (elf32_hppa_link_hash_table): Remove sym_cache. | |
446 | (elf32_hppa_check_relocs): Updated. | |
447 | * elf32-i386.c (elf_i386_tls_transition): Updated. | |
448 | (elf_i386_convert_load_reloc): Likewise. | |
449 | (elf_i386_check_relocs): Likewise. | |
450 | * elf32-m32r.c (elf_m32r_link_hash_table): Removed. | |
451 | (m32r_elf_hash_table): Updated. | |
452 | (m32r_elf_link_hash_table_create): Likewise. | |
453 | (m32r_elf_create_dynamic_sections): Likewise. | |
454 | (m32r_elf_adjust_dynamic_symbol): Likewise. | |
455 | (allocate_dynrelocs): Likewise. | |
456 | (m32r_elf_size_dynamic_sections): Likewise. | |
457 | (m32r_elf_relocate_section): Likewise. | |
458 | (m32r_elf_finish_dynamic_symbol): Likewise. | |
459 | (m32r_elf_check_relocs): Likewise. | |
460 | * elf32-m68hc1x.h (m68hc11_elf_link_hash_table): Remove | |
461 | sym_cache. | |
462 | * elf32-m68k.c (elf_m68k_link_hash_table): Likewise. | |
463 | (elf_m68k_check_relocs): Updated. | |
464 | * elf32-metag.c (elf_metag_link_hash_table): Remove sym_cache. | |
465 | (elf_metag_check_relocs): Updated. | |
466 | * elf32-microblaze.c (elf32_mb_link_hash_table): Remove sym_sec. | |
467 | (microblaze_elf_check_relocs): Updated. | |
468 | * elf32-nds32.c (nds32_elf_link_hash_table_create): Likewise. | |
469 | (nds32_elf_create_dynamic_sections): Likewise. | |
470 | (nds32_elf_adjust_dynamic_symbol): Likewise. | |
471 | (nds32_elf_check_relocs): Likewise. | |
472 | * elf32-nds32.h (elf_nds32_link_hash_table): Remove sdynbss, | |
473 | srelbss and aym_cache. | |
474 | * elf32-nios2.c (elf32_nios2_link_hash_table): Remove sym_cache. | |
475 | (nios2_elf32_check_relocs): Updated. | |
476 | * elf32-or1k.c (elf_or1k_link_hash_table): Remove sym_sec. | |
477 | (or1k_elf_check_relocs): Updated. | |
478 | * elf32-ppc.c (ppc_elf_check_relocs): Remove sym_cache. | |
479 | (ppc_elf_check_relocs): Updated. | |
480 | * elf32-s390.c (elf_s390_link_hash_table): Remove sym_cache. | |
481 | (elf_s390_check_relocs): Updated. | |
482 | (elf_s390_finish_dynamic_sections): Likewise. | |
483 | * elf32-sh.c (elf_sh_link_hash_table): Remove sdynbss, srelbss | |
484 | and aym_cache. | |
485 | (sh_elf_create_dynamic_sections): Updated. | |
486 | (sh_elf_adjust_dynamic_symbol): Likewise. | |
487 | (sh_elf_size_dynamic_sections): Likewise. | |
488 | (sh_elf_check_relocs): Likewise. | |
489 | * elf32-tic6x.c (elf32_tic6x_link_hash_table): Remove sym_cache. | |
490 | (elf32_tic6x_check_relocs): Updated. | |
491 | * elf32-tilepro.c (tilepro_elf_link_hash_table): Removed. | |
492 | (tilepro_elf_hash_table): Updated. | |
493 | (tilepro_elf_link_hash_table_create): Likewise. | |
494 | (tilepro_elf_check_relocs): Likewise. | |
495 | (tilepro_elf_adjust_dynamic_symbol): Likewise. | |
496 | (allocate_dynrelocs): Likewise. | |
497 | (tilepro_elf_size_dynamic_sections): Likewise. | |
498 | (tilepro_elf_relocate_section): Likewise. | |
499 | (tilepro_elf_finish_dynamic_symbol): Likewise. | |
500 | (tilepro_finish_dyn): Likewise. | |
501 | (tilepro_elf_finish_dynamic_sections): Likewise. | |
502 | * elf64-ppc.c (ppc_link_hash_table): Remove sym_cache. | |
503 | (ppc64_elf_before_check_relocs): Updated. | |
504 | (ppc64_elf_check_relocs): Likewise. | |
505 | * elf64-s390.c (elf_s390_link_hash_table): Remove sym_cache. | |
506 | (elf_s390_check_relocs): Updated. | |
507 | (elf_s390_relocate_section): Likewise. | |
508 | (elf_s390_finish_dynamic_sections): Likewise. | |
509 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
510 | (elf_x86_64_check_relocs): Likewise. | |
511 | * elfnn-aarch64.c (elf_aarch64_link_hash_table): Remove | |
512 | sym_cache. | |
513 | (elfNN_aarch64_check_relocs): Updated. | |
514 | * elfnn-riscv.c (riscv_elf_link_hash_table): Remove sym_cache. | |
515 | (riscv_elf_check_relocs): Updated. | |
516 | * elfxx-mips.c (mips_elf_link_hash_table): Remove sym_cache. | |
517 | (mips_elf_resolve_got_page_ref): Updated. | |
518 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
519 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove | |
520 | sym_cache. | |
521 | * elfxx-tilegx.c (tilegx_elf_link_hash_table): Likewise. | |
522 | (tilegx_elf_check_relocs): Updated. | |
523 | * elfxx-x86.h (elf_x86_link_hash_table): Remove sym_cache. | |
524 | ||
c77cb2a0 MR |
525 | 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org> |
526 | ||
527 | * elflink.c (bfd_elf_final_link): Give local symbols a name if | |
528 | so requested. | |
529 | * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): Only | |
530 | return TRUE if making ET_REL output. | |
531 | ||
3f1b17bb MR |
532 | 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org> |
533 | ||
534 | * elf-bfd.h (elf_backend_data): Add | |
535 | `elf_backend_elfsym_local_is_section' member. | |
536 | * elfxx-target.h (elf_backend_elfsym_local_is_section): New | |
537 | macro. | |
538 | (elfNN_bed): Add `elf_backend_elfsym_local_is_section' member. | |
539 | * elflink.c (bfd_elf_final_link): Use it to determine whether | |
540 | set the `.symtab' section's `sh_info' value to the index of the | |
541 | first non-local or non-section symbol. | |
542 | * elf32-mips.c (mips_elf32_elfsym_local_is_section): New | |
543 | function. | |
544 | (elf_backend_elfsym_local_is_section): New macro. | |
545 | * elfn32-mips.c (mips_elf_n32_elfsym_local_is_section): New | |
546 | function. | |
547 | (elf_backend_elfsym_local_is_section): New macro. | |
548 | ||
4d68fd75 AM |
549 | 2020-07-29 Alan Modra <amodra@gmail.com> |
550 | ||
551 | * elflink.c (bfd_elf_final_link): Don't segfault on local dynsyms | |
552 | defined in excluded sections. | |
553 | ||
67411cbf AM |
554 | 2020-07-28 Alan Modra <amodra@gmail.com> |
555 | ||
556 | * elf.c (assign_section_numbers): Comment. Don't segfault on | |
557 | discarded sections when setting linked-to section for generic | |
558 | ELF linker. | |
559 | * elflink.c (bfd_elf_match_symbols_in_sections): Allow NULL info. | |
560 | ||
93fd13c7 AM |
561 | 2020-07-27 Alan Modra <amodra@gmail.com> |
562 | ||
563 | * xcofflink.c (xcoff_need_ldrel_p): Accept --just-symbols symbols and | |
564 | similar as absolute. | |
565 | (bfd_xcoff_import_symbol): Don't fuss over absolute symbol | |
566 | redefinitions here. | |
567 | ||
04f096fb NC |
568 | 2020-07-24 Nick Clifton <nickc@redhat.com> |
569 | ||
570 | * config.bfd: Move xc16x target to the obsolete list. | |
571 | ||
5efb6779 KB |
572 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
573 | ||
574 | * binary.c (binary_get_section_contents): Seek using offset | |
575 | from section's file position. | |
576 | ||
ea57e509 KB |
577 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
578 | ||
579 | * elf.c (_bfd_elf_make_section_from_phdr): Remove hack for GDB. | |
04f096fb | 580 | |
1ad2776d MF |
581 | 2020-07-22 Max Filippov <jcmvbkbc@gmail.com> |
582 | ||
583 | PR 26246 | |
584 | * elf32-xtensa.c (removed_literal_compare): Use correct pointer | |
585 | type for the first function argument. Rename pointers to reflect | |
586 | that they have distinct types. | |
587 | ||
2f5541f3 AM |
588 | 2020-07-20 Alan Modra <amodra@gmail.com> |
589 | ||
590 | * elflink.c (_bfd_elf_gc_keep): Use bfd_is_const_section. | |
591 | ||
e10a07b3 AM |
592 | 2020-07-19 Alan Modra <amodra@gmail.com> |
593 | ||
594 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_power10_relocs. | |
595 | (select_alt_stub): New function. | |
596 | (ppc_get_stub_entry): Use it here. | |
597 | (ppc64_elf_check_relocs): Set had_power10_relocs rather than | |
598 | power10_stubs. | |
599 | (ppc64_elf_size_stubs): Clear power10_stubs here instead. Don't | |
600 | merge notoc stubs with other varieties when power10_stubs is "auto". | |
601 | Instead dup the stub hash table entry. | |
602 | (plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust | |
603 | tests of power10_stubs. | |
604 | ||
28b80303 AM |
605 | 2020-07-15 Alan Modra <amodra@gmail.com> |
606 | ||
607 | PR 26239 | |
608 | * coffgen.c (_bfd_coff_close_and_cleanup): Free dwarf2 info. | |
609 | ||
4fd8d585 NC |
610 | 2020-07-15 Nick Clifton <nickc@redhat.com> |
611 | ||
612 | PR26240 | |
613 | * coffgen.c (coff_get_normalized_symtab): Fix off-by-one error in | |
614 | check for aux entries that overflow the buufer. | |
615 | ||
a8a48c75 HPN |
616 | 2020-07-15 Hans-Peter Nilsson <hp@bitrange.com> |
617 | ||
618 | * elf64-mmix.c (mmix_elf_relax_section): Improve accounting for | |
619 | R_MMIX_PUSHJ_STUBBABLE relocs against undefined symbols. | |
620 | ||
e8a83e93 MB |
621 | 2020-07-15 Markus Böck <markus.boeck02@gmail.com> |
622 | Alan Modra <amodra@gmail.com> | |
623 | ||
624 | PR 26198 | |
625 | * coffgen.c (_bfd_coff_section_already_linked): Allow for plugin | |
626 | objects both before and after normal object files. | |
627 | * elflink.c (_bfd_elf_section_already_linked): Likewise. | |
628 | ||
d3b10ee7 AM |
629 | 2020-07-10 Alan Modra <amodra@gmail.com> |
630 | ||
631 | * elf64-ppc.h (struct ppc64_elf_params): Add power10_stubs. | |
632 | * elf64-ppc.c (struct ppc_link_hash_table): Delete | |
633 | power10_stubs. | |
634 | (ppc64_elf_check_relocs): Adjust setting of power10_stubs. | |
635 | (plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust | |
636 | uses of power10_stubs. | |
637 | ||
fe49679d AM |
638 | 2020-07-09 Alan Modra <amodra@gmail.com> |
639 | ||
640 | * coff-ppc.c: Delete. | |
641 | * pe-ppc.c: Delete. | |
642 | * pei-ppc.c: Delete. | |
643 | * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Remove PE PPC. | |
644 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Remove | |
645 | PPCMAGIC code. | |
646 | (coff_write_object_contents): Remove PPC_PE code. | |
647 | * config.bfd: Move powerpcle-pe to removed targets. | |
648 | * configure.ac: Remove powerpc PE entries. | |
649 | * libcoff-in.h (ppc_allocate_toc_section): Delete. | |
650 | (ppc_process_before_allocation): Delete. | |
651 | * peXXigen.c: Remove POWERPC_LE_PE code and comments. | |
652 | * targets.c: Remove powerpc PE vectors. | |
653 | * po/SRC-POTFILES.in: Regenerate. | |
654 | * libcoff.h: Regenerate. | |
655 | * Makefile.in: Regenerate. | |
656 | * configure: Regenerate. | |
657 | ||
7646efdf NC |
658 | 2020-07-09 Nick Clifton <nickc@redhat.com> |
659 | ||
660 | * po/fr.po: Updated French translation. | |
661 | ||
23f5e55e AM |
662 | 2020-07-07 Alan Modra <amodra@gmail.com> |
663 | ||
664 | * xcofflink.c (xcoff_mark): Don't mark const sections. | |
665 | (bfd_xcoff_record_link_assignment): Add FIXME. | |
666 | (_bfd_xcoff_bfd_final_link): Don't segfault on assorted magic | |
667 | sections being discarded by linker script. | |
668 | ||
c8001886 AM |
669 | 2020-07-07 Alan Modra <amodra@gmail.com> |
670 | ||
671 | * coff-rs6000.c (xcoff_write_archive_contents_old): Set default | |
672 | time, uid, gid and mode for deterministic archive. | |
673 | (xcoff_write_archive_contents_big): Likewise. | |
674 | ||
8af7926f AM |
675 | 2020-07-07 Alan Modra <amodra@gmail.com> |
676 | ||
677 | * coffcode.h (coff_classify_symbol): Handle C_HIDEXT and | |
678 | C_AIX_WEAKEXT. | |
679 | ||
17550be7 NC |
680 | 2020-07-06 Nick Clifton <nickc@redhat.com> |
681 | ||
682 | * po/pt.po: Updated Portuguese translation. | |
683 | * po/uk.po: Updated Ukranian translation. | |
684 | ||
b4396c5e NC |
685 | 2020-07-04 Nick Clifton <nickc@redhat.com> |
686 | ||
687 | * version.m4: Set version to 2.35.50. | |
688 | * configure: Regenerate. | |
689 | * po/bbfd.pot: Regenerate. | |
690 | ||
b115b9fd NC |
691 | 2020-07-04 Nick Clifton <nickc@redhat.com> |
692 | ||
693 | Binutils 2.35 branch created. | |
694 | ||
33d1369f AM |
695 | 2020-07-01 Alan Modra <amodra@gmail.com> |
696 | ||
697 | PR 26188 | |
698 | * coffgen.c (coff_find_nearest_line_with_names): Sanity check | |
699 | raw syment index before dereferencing. | |
700 | ||
cc574a35 AM |
701 | 2020-07-01 Alan Modra <amodra@gmail.com> |
702 | ||
703 | * elf32-i386.c (elf_backend_object_p): Undef for vxworks. | |
704 | ||
3443489c AM |
705 | 2020-07-01 Alan Modra <amodra@gmail.com> |
706 | ||
707 | * config.bfd: Obsolete xc16x. | |
708 | ||
bbd19b19 L |
709 | 2020-06-30 H.J. Lu <hongjiu.lu@intel.com> |
710 | ||
711 | * archures.c (bfd_mach_i386_nacl): Removed. | |
712 | (bfd_mach_i386_i386_nacl): Likewise. | |
713 | (bfd_mach_x86_64_nacl): Likewise. | |
714 | (bfd_mach_x64_32_nacl): Likewise. | |
715 | * config.bfd: Remove *-*-nacl* targets. | |
716 | * configure.ac: Remove x86 NaCl target vectors. | |
717 | * cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): Removed. | |
718 | (bfd_x64_32_nacl_arch): Likewise. | |
719 | (bfd_x86_64_nacl_arch): Likewise. | |
720 | (bfd_i386_nacl_arch): Likewise. | |
721 | (bfd_x64_32_arch_intel_syntax): Updated. | |
722 | * elf32-i386.c: Don't include "elf-nacl.h". | |
723 | (elf_i386_nacl_plt): Removed. | |
724 | (elf_i386_nacl_plt0_entry): Likewise. | |
725 | (elf_i386_nacl_plt_entry): Likewise. | |
726 | (elf_i386_nacl_pic_plt0_entry): Likewise. | |
727 | (elf_i386_nacl_pic_plt_entry): Likewise. | |
728 | (elf_i386_nacl_eh_frame_plt): Likewise. | |
729 | (elf_i386_nacl_plt): Likewise. | |
730 | (elf32_i386_nacl_elf_object_p): Likewise. | |
731 | (elf_i386_get_synthetic_symtab): Updated. | |
732 | (elf_i386_link_setup_gnu_properties): Likewise. | |
733 | * elf64-x86-64.c: Don't include "elf-nacl.h". | |
734 | (elf_x86_64_nacl_plt): Removed. | |
735 | (elf64_x86_64_nacl_elf_object_p): Likewise. | |
736 | (elf_x86_64_nacl_plt0_entry): Likewise. | |
737 | (elf_x86_64_nacl_plt_entry): Likewise. | |
738 | (elf_x86_64_nacl_eh_frame_plt): Likewise. | |
739 | (elf_x86_64_nacl_plt): Likewise. | |
740 | (elf32_x86_64_nacl_elf_object_p): Likewise. | |
741 | (elf_x86_64_get_synthetic_symtab): Updated. | |
742 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
743 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Likewise. | |
744 | * targets.c: Remove x86 NaCl target vectors. | |
745 | * bfd-in2.h: Regenerated. | |
746 | * configure: Likewise. | |
747 | ||
a57f74bb L |
748 | 2020-06-29 H.J. Lu <hongjiu.lu@intel.com> |
749 | ||
750 | * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Call | |
751 | _bfd_elf_add_dynamic_tags. | |
752 | ||
07d22f64 AM |
753 | 2020-06-29 Alan Modra <amodra@gmail.com> |
754 | ||
755 | * peXXigen.c (_bfd_XXi_slurp_codeview_record): Properly check | |
756 | return value of bfd_bread. Don't read more than requested length. | |
757 | Sanity check length. Properly terminate file name. | |
758 | ||
279edac5 AM |
759 | 2020-06-29 Alan Modra <amodra@gmail.com> |
760 | ||
761 | * arc-got.h: Use C style comments. | |
762 | * coff-z80.c: Likewise. | |
763 | * elf32-csky.c: Likewise. | |
764 | * peXXigen.c: Likewise. | |
765 | * elf32-m32c.c (m32c_elf_relax_delete_bytes): Remove commented out | |
766 | code. | |
767 | ||
85f7484a PB |
768 | 2020-06-26 Pat Bernardi <bernardi@adacore.com> |
769 | ||
770 | * elf32-m68k.c (m68k_elf_merge_obj_attributes): New function. | |
771 | (elf32_m68k_merge_private_bfd_data): Merge GNU attributes. | |
772 | ||
ba9b3ef5 AM |
773 | 2020-06-26 Alan Modra <amodra@gmail.com> |
774 | ||
775 | * elfxx-riscv.c (struct priv_spec_t, priv_specs), | |
776 | (riscv_get_priv_spec_class, riscv_get_priv_spec_class_from_numbers), | |
777 | (riscv_get_priv_spec_name): Move to.. | |
778 | * cpu-riscv.c: ..here. | |
779 | (riscv_get_priv_spec_class_from_numbers): Don't xmalloc temp buffer. | |
780 | Use %u to print unsigned numbers. | |
781 | ||
069057bf AB |
782 | 2020-06-24 Andrew Burgess <andrew.burgess@embecosm.com> |
783 | ||
784 | * cpu-riscv.c (riscv_scan): Don't allow shorter matches using the | |
785 | default architecture. | |
786 | ||
2c8e3708 L |
787 | 2020-06-24 H.J. Lu <hongjiu.lu@intel.com> |
788 | ||
789 | PR ld/26083 | |
790 | * elf32-csky.c (csky_elf_size_dynamic_sections): Call | |
791 | _bfd_elf_add_dynamic_tags. | |
792 | ||
c679ec98 L |
793 | 2020-06-24 H.J. Lu <hongjiu.lu@intel.com> |
794 | ||
795 | PR ld/26083 | |
796 | * elf32-cris.c (elf_cris_size_dynamic_sections): Call | |
797 | _bfd_elf_add_dynamic_tags. | |
798 | ||
f8b1e5f6 AM |
799 | 2020-06-24 Alan Modra <amodra@gmail.com> |
800 | ||
801 | * vms-alpha.c (_bfd_vms_slurp_etir <ETIR__C_OPR_ASH>): Implement | |
802 | shifts without undefined behaviour. | |
803 | ||
3084d7a2 L |
804 | 2020-06-23 H.J. Lu <hongjiu.lu@intel.com> |
805 | ||
806 | * elf-bfd.h (elf_link_hash_table): Add dt_pltgot_required and | |
807 | dt_jmprel_required. | |
808 | (_bfd_elf_add_dynamic_tags): New. | |
809 | * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Call | |
810 | _bfd_elf_add_dynamic_tags. | |
811 | * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise. | |
812 | * elf32-bfin.c (elf32_bfinfdpic_size_dynamic_sections): Likewise. | |
813 | * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise. | |
814 | * elf32-frv.c (elf32_frvfdpic_size_dynamic_sections): Likewise. | |
815 | * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise. | |
816 | * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise. | |
817 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
818 | * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): | |
819 | Likewise. | |
820 | * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise. | |
821 | * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise. | |
822 | * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise. | |
823 | * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
824 | * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise. | |
825 | * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise. | |
826 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
827 | * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
828 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): | |
829 | Likewise. | |
830 | * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise. | |
831 | * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise. | |
832 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Call | |
833 | _bfd_elf_maybe_vxworks_add_dynamic_tags. | |
834 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
835 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): | |
836 | Likewise. | |
837 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise. | |
838 | (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
839 | * elfxx-x86.h (elf_x86_link_hash_table): Remove dt_reloc, | |
840 | dt_reloc_sz and dt_reloc_ent. | |
841 | * elf-vxworks.c (_bfd_elf_maybe_vxworks_add_dynamic_tags): New. | |
842 | * elf-vxworks.h (_bfd_elf_maybe_vxworks_add_dynamic_tags): | |
843 | Likewise. | |
844 | * elf32-hppa.c (elf32_hppa_link_hash_table_create): Set | |
845 | etab.dt_pltgot_required. | |
846 | (elf32_hppa_size_dynamic_sections): Call | |
847 | _bfd_elf_add_dynamic_tags. | |
848 | * elf32-metag.c (elf_metag_link_hash_table_create): Set | |
849 | etab.dt_pltgot_required. | |
850 | (elf_metag_size_dynamic_sections): Call _bfd_elf_add_dynamic_tags. | |
851 | * elf32-sh.c (sh_elf_link_hash_table_create): Set | |
852 | root.dt_pltgot_required for FDPIC output. | |
853 | (sh_elf_size_dynamic_sections): Call | |
854 | _bfd_elf_maybe_vxworks_add_dynamic_tags. | |
855 | * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Set | |
856 | elf.dt_pltgot_required. | |
857 | (elf_xtensa_size_dynamic_sections): Call | |
858 | _bfd_elf_add_dynamic_tags. | |
859 | * elf64-hppa.c (elf64_hppa_hash_table_create): Set | |
860 | root.dt_pltgot_required. | |
861 | (elf64_hppa_size_dynamic_sections): Call | |
862 | _bfd_elf_add_dynamic_tags. | |
863 | * elfnn-ia64.c (elfNN_ia64_hash_table_create): Set | |
864 | root.dt_pltgot_required. | |
865 | (elfNN_ia64_size_dynamic_sections): Set root.dt_jmprel_required | |
866 | for rel_pltoff_sec. Call _bfd_elf_add_dynamic_tags. | |
867 | * elflink.c (_bfd_elf_add_dynamic_tags): New. | |
868 | ||
d768f160 SJ |
869 | 2020-06-22 Saagar Jha <saagar@saagarjha.com> |
870 | ||
871 | * mach-o.c: Support the new load commands by reading a linkedit | |
872 | data command for them. | |
873 | ||
39ff0b81 NC |
874 | 2020-06-22 Nelson Chu <nelson.chu@sifive.com> |
875 | ||
876 | * elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from | |
877 | opcodes/riscv-opc.c to bfd/elfxx-riscv.c, since we need it in linker. | |
878 | (riscv_get_priv_spec_class): Likewise. | |
879 | (riscv_get_priv_spec_name): Likewise. | |
880 | (riscv_get_priv_spec_class_from_numbers): New function, convert | |
881 | the version numbers into string, then call riscv_get_priv_spec_class | |
882 | to get the priv spec class. | |
883 | * elfxx-riscv.h (riscv_get_priv_spec_class): Move forward declaration | |
884 | from include/opcode/riscv.h to bfd/elfxx-riscv.h. | |
885 | (riscv_get_priv_spec_name): Likewise. | |
886 | (riscv_get_priv_spec_class_from_numbers): New forward declaration. | |
887 | (opcode/riscv.h): Include it in the header rather than elfxx-riscv.c. | |
888 | * elfnn-riscv.c (riscv_merge_attributes): Get the priv spec classes | |
889 | of input and output objects form their priv spec attributes by | |
890 | riscv_get_priv_spec_class_from_numbers. Report warning rather than | |
891 | errors when linking objects with differnet priv spec versions. We do | |
892 | know v1.9.1 may have conflicts to other versions, so report the | |
893 | warning, too. After that, update the output priv spec version to the | |
894 | newest one so far. | |
895 | ||
cbd7581f NC |
896 | 2020-06-22 Nelson Chu <nelson.chu@sifive.com> |
897 | ||
898 | * elfnn-riscv.c (riscv_merge_attributes): Once we meet one of the | |
899 | priv attributes, we will check the conflicts for all of them (major, | |
900 | minor and revision), and then set the priv_attrs_merged to TRUE to | |
901 | indicate that we have handled all of the priv attributes. Remove | |
902 | the unused boolean priv_may_conflict, in_priv_zero and out_priv_zero. | |
903 | ||
1e927850 AM |
904 | 2020-06-21 Alan Modra <amodra@gmail.com> |
905 | ||
906 | PR 26132 | |
907 | * configure.ac: Disable plugins by default for some targets. | |
908 | * plugin.c: Comment typo fix. | |
909 | * configure: Regenerate. | |
910 | ||
13aa5ceb NC |
911 | 2020-06-19 Nick Clifton <nickc@redhat.com> |
912 | ||
913 | * plugin.c (try_load_plugin): Suppress the error message about | |
914 | being unable to open a plugin if creating a list of viable | |
915 | plugins. | |
916 | ||
a435742a AM |
917 | 2020-06-16 Alan Modra <amodra@gmail.com> |
918 | ||
919 | * aout-tic30.c: Delete file. | |
920 | * Makefile.am (BFD32_BACKENDS): Remove aout-tic30.lo. | |
921 | (BFD32_BACKENDS_CFILES): Remove aout-tic30.c. | |
922 | * config.bfd (c30-*-*aout*, tic30-*-*aout*): Remove entry. | |
923 | (xc16x-*-elf): Sort properly. | |
924 | * configure.ac: Remove tic30_aout_vec. | |
925 | * targets.c: Likewise. | |
926 | * Makefile.in: Regenerate. | |
927 | * configure: Regenerate. | |
928 | * po/SRC-POTFILES.in: Regenerate. | |
929 | ||
7a77f1ac MF |
930 | 2020-06-15 Max Filippov <jcmvbkbc@gmail.com> |
931 | ||
932 | * elf32-xtensa.c (XSHAL_ABI, XTHAL_ABI_UNDEFINED) | |
933 | (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New macros. | |
934 | (elf32xtensa_abi): New global variable. | |
935 | (xtensa_abi_choice): New function. | |
936 | (elf_xtensa_create_plt_entry): Use xtensa_abi_choice instead of | |
937 | XSHAL_ABI to select PLT code. | |
938 | ||
cae64165 RM |
939 | 2020-06-15 Roland McGrath <mcgrathr@google.com> |
940 | ||
941 | * elflink.c (bfd_elf_define_start_stop): Use start_stop_visibility | |
942 | field of bfd_link_info. | |
943 | ||
40be168c AM |
944 | 2020-06-15 Alan Modra <amodra@gmail.com> |
945 | ||
946 | * config.bfd: Obsolete powerpcle-*-pe targets. | |
947 | ||
75cfe082 AM |
948 | 2020-06-15 Alan Modra <amodra@gmail.com> |
949 | ||
950 | PR 26103 | |
951 | * elflink.c (elf_link_add_archive_symbols): Exclude undefined | |
952 | symbols that were defined in discarded sections. | |
953 | * cofflink.c (coff_link_check_archive_element): Likewise. | |
954 | (coff_link_add_symbols): Set indx to -3 for symbols defined in | |
955 | discarded sections. | |
956 | (_bfd_coff_write_global_sym): Don't emit such symbols. | |
957 | libcoff-in.h (struct coff_link_hash_entry): Update indx comment. | |
958 | libcoff.h: Regenerate. | |
959 | ||
f0aa3025 AM |
960 | 2020-06-11 Alan Modra <amodra@gmail.com> |
961 | ||
962 | PR 26107 | |
963 | * pdp11.c (is_stab): Replace legacy "index" function with "strchr". | |
964 | ||
447f6d86 L |
965 | 2020-06-10 H.J. Lu <hongjiu.lu@intel.com> |
966 | ||
967 | * elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext. | |
968 | (allocate_dynrel_entries): Set DF_TEXTREL instead of reltext. | |
969 | (elfNN_ia64_size_dynamic_sections): Check DF_TEXTREL instead | |
970 | of reltext. | |
971 | ||
e1b5d517 L |
972 | 2020-06-10 H.J. Lu <hongjiu.lu@intel.com> |
973 | ||
974 | PR ld/26094 | |
975 | * elflink.c (bfd_elf_define_start_stop): Handle common symbols. | |
976 | Clear verinfo.verdef. | |
977 | ||
cebd6b8a L |
978 | 2020-06-09 H.J. Lu <hongjiu.lu@intel.com> |
979 | ||
980 | PR ld/18801 | |
981 | * elf-bfd.h (elf_link_hash_table): Add ifunc_resolvers. | |
982 | (_bfd_elf_allocate_ifunc_dyn_relocs): Remove the | |
983 | bfd_boolean * argument. Set ifunc_resolvers if there are IFUNC | |
984 | resolvers. | |
985 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. | |
986 | Set ifunc_resolvers if there are FUNC resolvers. | |
987 | * elf64-ppc.c (ppc_link_hash_table): Remove local_ifunc_resolver. | |
988 | (build_global_entry_stubs_and_plt): Replace local_ifunc_resolver | |
989 | with elf.ifunc_resolvers. | |
990 | (write_plt_relocs_for_local_syms): Likewise. | |
991 | (ppc64_elf_relocate_section): Likewise. | |
992 | (ppc64_elf_finish_dynamic_sections): Likewise. | |
993 | * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): | |
994 | Updated. | |
995 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. | |
996 | (_bfd_x86_elf_size_dynamic_sections): Check elf.ifunc_resolvers | |
997 | instead of readonly_dynrelocs_against_ifunc. | |
998 | * elfxx-x86.h (elf_x86_link_hash_table): Remove | |
999 | readonly_dynrelocs_against_ifunc. | |
1000 | ||
efb2a7b4 AM |
1001 | 2020-06-09 Alan Modra <amodra@gmail.com> |
1002 | ||
1003 | * elf64-ppc.c (struct ppc_link_hash_table): Delete | |
1004 | maybe_local_ifunc_resolver field. | |
1005 | (build_global_entry_stubs_and_plt): Set local_ifunc_resolver in | |
1006 | cases where maybe_local_ifunc_resolver was set. | |
1007 | (ppc64_elf_relocate_section): Likewise. | |
1008 | (ppc64_elf_finish_dynamic_sections): Downgrade ifunc with textrel | |
1009 | error to a warning. | |
1010 | ||
9bcc30e4 L |
1011 | 2020-06-08 H.J. Lu <hongjiu.lu@intel.com> |
1012 | ||
1013 | * elf-bfd.h (elf_link_hash_entry): Add tlsdesc_plt and | |
1014 | tlsdesc_got. | |
1015 | * elf32-arm.c (elf32_arm_link_hash_table): Remove tlsdesc_plt | |
1016 | and dt_tlsdesc_got. | |
1017 | (elf32_arm_size_dynamic_sections): Updated. Clear | |
1018 | root.tlsdesc_plt for DF_BIND_NOW. | |
1019 | (elf32_arm_finish_dynamic_sections): Updated. | |
1020 | (elf32_arm_output_arch_local_syms): Likewise. | |
1021 | * elf32-nds32.c (nds32_elf_size_dynamic_sections): Updated. | |
1022 | Clear root.tlsdesc_plt for DF_BIND_NOW. | |
1023 | (nds32_elf_finish_dynamic_sections): Updated. | |
1024 | * elf32-nds32.h (elf_nds32_link_hash_table): Remove | |
1025 | dt_tlsdesc_plt and dt_tlsdesc_got. | |
1026 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Updated. | |
1027 | * elfnn-aarch64.c (elf_aarch64_link_hash_table): Remove | |
1028 | tlsdesc_plt and dt_tlsdesc_got. | |
1029 | (elfNN_aarch64_allocate_dynrelocs): Updated. | |
1030 | (elfNN_aarch64_finish_dynamic_sections): Likewise. | |
1031 | (elfNN_aarch64_size_dynamic_sections): Updated. Clear | |
1032 | root.tlsdesc_plt for DF_BIND_NOW. Don't check DF_BIND_NOW | |
1033 | twice. | |
1034 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated. | |
1035 | (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
1036 | (_bfd_x86_elf_finish_dynamic_sections): Likewise. | |
1037 | * elfxx-x86.h (elf_x86_link_hash_table): Remove tlsdesc_plt and | |
1038 | tlsdesc_got. | |
1039 | ||
845b83d7 L |
1040 | 2020-06-07 H.J. Lu <hongjiu.lu@intel.com> |
1041 | ||
1042 | * elf32-tic6x.c (elf32_bed): Defined the default to | |
1043 | elf32_tic6x_bed. | |
1044 | ||
9b8a8575 L |
1045 | 2020-06-07 H.J. Lu <hongjiu.lu@intel.com> |
1046 | ||
1047 | * elf64-hppa.c (elf64_hppa_link_hash_table): Remove plt_sec and | |
1048 | plt_rel_sec. | |
1049 | (elf64_hppa_check_relocs): Replace plt_sec/plt_rel_sec with | |
1050 | root.splt/root.srelplt. | |
1051 | (elf64_hppa_create_dynamic_sections): Likewise. | |
1052 | (elf64_hppa_size_dynamic_sections): Likewise. | |
1053 | (elf64_hppa_finish_dynamic_symbol): Likewise. | |
1054 | (elf_hppa_final_link): Likewise. | |
1055 | (elf_hppa_final_link_relocate): Likewise. | |
1056 | ||
bcab203d L |
1057 | 2020-06-06 H.J. Lu <hongjiu.lu@intel.com> |
1058 | ||
1059 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Updated. | |
1060 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove | |
1061 | is_vxworks. | |
1062 | ||
90c14f0c L |
1063 | 2020-06-06 H.J. Lu <hongjiu.lu@intel.com> |
1064 | ||
1065 | * elf-bfd.h (elf_target_os): New. | |
1066 | (elf_link_hash_table): Add target_os. | |
1067 | (elf_backend_data): Add target_os. | |
1068 | * elf32-arm.c (elf32_arm_link_hash_table): Remove vxworks_p, | |
1069 | symbian_p and nacl_p. | |
1070 | (create_got_section): Updated. | |
1071 | (elf32_arm_create_dynamic_sections): Likewise. | |
1072 | (arm_type_of_stub): Likewise. | |
1073 | (elf32_arm_create_or_find_stub_sec): Likewise. | |
1074 | (elf32_arm_allocate_plt_entry): Likewise. | |
1075 | (elf32_arm_populate_plt_entry): Likewise. | |
1076 | (elf32_arm_final_link_relocate): Likewise. | |
1077 | (elf32_arm_check_relocs): Likewise. | |
1078 | (allocate_dynrelocs_for_symbol): Likewise. | |
1079 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
1080 | (elf32_arm_finish_dynamic_sections): Likewise. | |
1081 | (elf32_arm_output_plt_map_1): Likewise. | |
1082 | (elf32_arm_output_arch_local_syms): Likewise. | |
1083 | (elf32_arm_add_symbol_hook): Likewise. | |
1084 | (elf32_arm_nacl_link_hash_table_create): Likewise. | |
1085 | (elf32_arm_vxworks_link_hash_table_create): Likewise. | |
1086 | (elf32_arm_symbian_link_hash_table_create): Likewise. | |
1087 | (ELF_TARGET_OS): New. | |
1088 | * elf32-i386.c (elf_i386_arch_bed): Removed. | |
1089 | (elf_backend_arch_data): Likewise. | |
1090 | (elf_i386_solaris_arch_bed): Likewise. | |
1091 | (elf_i386_nacl_arch_bed): Likewise. | |
1092 | (elf_i386_vxworks_arch_bed): Likewise. | |
1093 | (elf_i386_relocate_section): Updated. | |
1094 | (elf_i386_finish_dynamic_sections): Likewise. | |
1095 | (elf_i386_get_synthetic_symtab): Likewise. | |
1096 | (elf_i386_link_setup_gnu_properties): Likewise. | |
1097 | (ELF_TARGET_OS): New. | |
1098 | * elf32-mips.c (ELF_TARGET_OS): New. | |
1099 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove is_vxworks. | |
1100 | (ppc_elf_create_got): Updated. | |
1101 | (ppc_elf_create_dynamic_sections): Likewise. | |
1102 | (ppc_elf_check_relocs): Likewise. | |
1103 | (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1104 | (ppc_elf_size_dynamic_sections): Likewise. | |
1105 | (ppc_elf_relocate_section): Likewise. | |
1106 | (ppc_elf_finish_dynamic_sections): Likewise. | |
1107 | (ppc_elf_vxworks_link_hash_table_create): Likewise. | |
1108 | (ELF_TARGET_OS): New. | |
1109 | * elf32-sh.c (elf_sh_link_hash_table): Remove vxworks_p. | |
1110 | (sh_elf_link_hash_table_create): Updated. | |
1111 | (sh_elf_create_dynamic_sections): Likewise. | |
1112 | (allocate_dynrelocs): Likewise. | |
1113 | (sh_elf_size_dynamic_sections): Likewise. | |
1114 | (sh_elf_relocate_section): Likewise. | |
1115 | (sh_elf_finish_dynamic_symbol): Likewise. | |
1116 | (sh_elf_finish_dynamic_sections): Likewise. | |
1117 | (ELF_TARGET_OS): New. | |
1118 | * elf32-sparc.c (elf32_sparc_vxworks_link_hash_table_create): | |
1119 | Removed. | |
1120 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
1121 | (ELF_TARGET_OS): New. | |
1122 | * elf64-x86-64.c (elf_x86_64_arch_bed): Removed. | |
1123 | (elf_x86_64_solaris_arch_bed): Likewise. | |
1124 | (elf_x86_64_nacl_arch_bed): Likewise. | |
1125 | (elf_x86_64_finish_dynamic_sections): Updated. | |
1126 | (elf_x86_64_get_synthetic_symtab): Likewise. | |
1127 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
1128 | (ELF_TARGET_OS): New. | |
1129 | * elflink.c (_bfd_elf_link_hash_table_init): Initialize | |
1130 | target_o. | |
1131 | * elfxx-mips.c (mips_elf_link_hash_table): Remove is_vxworks. | |
1132 | (MIPS_ELF_REL_DYN_NAME): Updated. | |
1133 | (ELF_MIPS_GP_OFFSET): Likewise. | |
1134 | (mips_elf_create_local_got_entry): Likewise. | |
1135 | (mips_elf_allocate_dynamic_relocations): Likewise. | |
1136 | (mips_elf_count_got_symbols): Likewise. | |
1137 | (is_gott_symbol): Likewise. | |
1138 | (mips_elf_calculate_relocation): Likewise. | |
1139 | (mips_elf_create_dynamic_relocation): Likewise. | |
1140 | (_bfd_mips_elf_check_relocs): Likewise. | |
1141 | (allocate_dynrelocs): Likewise. | |
1142 | (_bfd_mips_elf_adjust_dynamic_symbol): Likewise. | |
1143 | (mips_elf_lay_out_got): Likewise. | |
1144 | (mips_elf_set_plt_sym_value): Likewise. | |
1145 | (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
1146 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
1147 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
1148 | (_bfd_mips_elf_final_link): Likewise. | |
1149 | (_bfd_mips_init_file_header): Likewise. | |
1150 | * elfxx-sparc.c (_bfd_sparc_elf_create_dynamic_sections): | |
1151 | Likewise. | |
1152 | (allocate_dynrelocs): Likewise. | |
1153 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
1154 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1155 | (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1156 | (sparc_finish_dyn): Likewise. | |
1157 | (_bfd_sparc_elf_finish_dynamic_sections): Likewise. | |
1158 | * elfxx-target.h (ELF_TARGET_OS): New. | |
1159 | (elfNN_bed): Add ELF_TARGET_OS. | |
1160 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated. | |
1161 | (_bfd_x86_elf_link_hash_table_create): Likewise. | |
1162 | (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
1163 | (_bfd_x86_elf_finish_dynamic_sections): Likewise. | |
1164 | (_bfd_x86_elf_adjust_dynamic_symbol): Likewise. | |
1165 | (_bfd_x86_elf_link_setup_gnu_properties): Likewise. | |
1166 | * elfxx-x86.h (elf_x86_target_os): Removed. | |
1167 | (elf_x86_backend_data): Likewise. | |
1168 | (get_elf_x86_backend_data): Likewise. | |
1169 | (elf_x86_link_hash_table): Remove target_os. | |
1170 | ||
87c69f97 AM |
1171 | 2020-06-06 Alan Modra <amodra@gmail.com> |
1172 | ||
1173 | * reloc.c: Rename | |
1174 | BFD_RELOC_PPC64_GOT_TLSGD34 to BFD_RELOC_PPC64_GOT_TLSGD_PCREL34, | |
1175 | BFD_RELOC_PPC64_GOT_TLSLD34 to BFD_RELOC_PPC64_GOT_TLSLD_PCREL34, | |
1176 | BFD_RELOC_PPC64_GOT_TPREL34 to BFD_RELOC_PPC64_GOT_TPREL_PCREL34, | |
1177 | BFD_RELOC_PPC64_GOT_DTPREL34 to BFD_RELOC_PPC64_GOT_DTPREL_PCREL34. | |
1178 | * elf64-ppc.c: Update throughout for reloc renaming. | |
1179 | (ppc64_elf_reloc_name_lookup): Handle old reloc names. | |
1180 | * libbfd.h: Regenerate. | |
1181 | * bfd-in2.h: Regenerate. | |
1182 | ||
981f1518 L |
1183 | 2020-06-05 H.J. Lu <hongjiu.lu@intel.com> |
1184 | ||
8a4ba3a1 | 1185 | PR ld/26080 |
981f1518 L |
1186 | * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC |
1187 | section. | |
1188 | ||
9c65eeac NC |
1189 | 2020-06-05 Nick Clifton <nickc@redhat.com> |
1190 | ||
1191 | * pdp11.c (aout_link_add_symbols): Fix use before initialisation | |
1192 | bug. | |
1193 | ||
41285764 NC |
1194 | 2020-06-05 Nelson Chu <nelson.chu@sifive.com> |
1195 | ||
1196 | * elfnn-riscv.c (riscv_merge_attributes): Add new boolean | |
1197 | priv_may_conflict, in_priv_zero and out_priv_zero to decide | |
1198 | whether the object can be linked according to it's priv | |
1199 | attributes. The object without any priv spec attributes can | |
1200 | be linked with others. If the first input object doesn't contain | |
1201 | any priv attributes, then we need to copy the setting from the | |
1202 | next input one. Also report more detailed error messages to user. | |
1203 | ||
a975c88e SC |
1204 | 2020-06-04 Stephen Casner <casner@acm.org> |
1205 | ||
1206 | Extend pdp11-aout symbol table format to accommodate .stab | |
1207 | symbols and implement correct handling of them. | |
1208 | ||
1209 | * pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc. | |
1210 | (N_STAB, is_stab): Needed new function is_stab to disambiguate | |
1211 | normal vs. .stab symbol table type values, replacing N_STAB mask. | |
1212 | (translate_from_native_sym_flags): Determine correct section for | |
1213 | different .stab types. | |
1214 | (translate_to_native_sym_flags): Leave .stab types intact. | |
1215 | (translate_symbol_table): Error if symbol indicates overlay; | |
1216 | store desc field from .stab symbols. | |
1217 | (write_syms): Output desc field with symbol. | |
1218 | (aout_link_check_ar_symbols): Skip .stab symbols. | |
1219 | (aout_link_add_symbols): Correctly distinguish .stab symbols. | |
1220 | (aout_link_write_other_symbol): Write 0 for desk and ovly fields. | |
1221 | (aout_link_write_symbols): Write 0 for desk and ovly fields; | |
1222 | correctly distinguish .stab symbols and select calculate their | |
1223 | section and value; and copy desc and ovly fields from input symbol | |
1224 | to output symbol. | |
1225 | ||
3b9313c4 SC |
1226 | 2020-06-04 Stephen Casner <casner@acm.org> |
1227 | ||
1228 | * aoutx.h (translate_symbol_table): Comment had external and | |
1229 | internal swapped. | |
1230 | * pdp11.c (translate_symbol_table): Likewise. | |
1231 | ||
add5f777 L |
1232 | 2020-06-04 H.J. Lu <hongjiu.lu@intel.com> |
1233 | ||
1234 | * elfxx-x86.h (elf_x86_link_hash_table): Remove target_id. | |
1235 | (is_x86_elf): Check elf.hash_table_id instead of target_id. | |
1236 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Updated. | |
1237 | ||
c4b126b8 L |
1238 | 2020-06-04 H.J. Lu <hongjiu.lu@intel.com> |
1239 | ||
1240 | PR ld/26080 | |
1241 | * elf-m10300.c (mn10300_elf_relocate_section): Resolve relocation | |
1242 | in debug section against symbol defined in shared library to 0. | |
1243 | * elf32-i386.c (elf_i386_check_relocs): Remove SEC_ALLOC check. | |
1244 | * elf32-lm32.c (lm32_elf_check_relocs): Likewise. | |
1245 | * elf32-m32r.c (m32r_elf_check_relocs): Likewise. | |
1246 | * elf32-nds32.c (nds32_elf_check_relocs): Likewise. | |
1247 | * elf32-nios2.c (nios2_elf32_check_relocs): Likewise. | |
1248 | * elf32-or1k.c (or1k_elf_check_relocs): Likewise. | |
1249 | * elf32-ppc.c (ppc_elf_check_relocs): Likewise. | |
1250 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
1251 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. | |
1252 | * elf64-alpha.c (elf64_alpha_check_relocs): Likewise. | |
1253 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1254 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1255 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
1256 | * elf32-vax.c (elf_vax_check_relocs): Set non_got_ref for non-GOT | |
1257 | reference. | |
1258 | (elf_vax_adjust_dynamic_symbol): Generate a copy reloc only if | |
1259 | there is non-GOT reference. | |
1260 | * elflink.c (_bfd_elf_link_check_relocs): Skip non-loaded, | |
1261 | non-alloced sections. | |
1262 | ||
31af1e68 SC |
1263 | 2020-06-03 Stephen Casner <casner@acm.org> |
1264 | ||
1265 | Copy several years of fixes from bfd/aoutx.h to bfd/pdp11.c. | |
1266 | ||
1267 | * pdp11.c (some_aout_object_p): 4c1534c7a2a - Don't set EXEC_P for | |
1268 | files with relocs. | |
1269 | (aout_get_external_symbols): 6b8f0fd579d - Return if count is zero. | |
1270 | 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any | |
1271 | other size that doesn't qcover the header word. | |
1272 | bf82069dce1 PR 23056 - Allocate an extra byte at the end of the | |
1273 | string table, and zero it. | |
1274 | (translate_symbol_table): 0d329c0a83a PR 22887 - Print an error | |
1275 | message and set bfd_error on finding an invalid name string offset. | |
1276 | (add_to_stringtab): INLINE -> inline | |
1277 | (pdp11_aout_swap_reloc_in): 116acb2c268 PR 22887 - Correct r_index | |
1278 | bound check. | |
1279 | (squirt_out_relocs): e2996cc315d PR 20921 - Check for and report | |
1280 | any relocs that could not be recognised. | |
1281 | 92744f05809 PR 20929 - Check for relocs without an associated symbol. | |
1282 | (find_nearest_line): 808346fcfcf PR 23055 - Check that the symbol | |
1283 | name exists and is long enough, before attempting to see if it is | |
1284 | for a .o file. | |
1285 | c3864421222 - Correct case for N_SO being the last symbol. | |
1286 | 50455f1ab29 PR 20891 - Handle the case where the main file name | |
1287 | and the directory name are both empty. | |
1288 | e82ab856bb4 PR 20892 - Handle the case where function name is empty. | |
1289 | (aout_link_add_symbols): e517df3dbf7 PR 19629 - Check for out of | |
1290 | range string table offsets. | |
1291 | 531336e3a0b PR 20909 - Fix off-by-one error in check for an | |
cae64165 | 1292 | illegal string offset. |
31af1e68 SC |
1293 | (aout_link_includes_newfunc): Add comment. |
1294 | (pdp11_aout_link_input_section): ad756e3f9e6 - Return with an error | |
1295 | on unexpected relocation type rather than ASSERT. | |
1296 | ||
d4d8aee3 L |
1297 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1298 | ||
1299 | PR ld/26066 | |
1300 | * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Call | |
1301 | _bfd_elf_maybe_set_textrel to set DF_TEXTREL. | |
1302 | ||
58ee44ef L |
1303 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1304 | ||
1305 | PR ld/26066 | |
1306 | * elf32-nios2.c (nios2_elf32_check_relocs): Skip non-loaded, | |
1307 | non-alloced sections. | |
1308 | ||
9a689602 L |
1309 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1310 | ||
1311 | * elf32-frv.c (elf32_frv_relocate_section): Don't generate | |
1312 | dynamic relocations for non SEC_ALLOC sections. | |
1313 | ||
0bff7528 GN |
1314 | 2020-06-03 Gunther Nikl <gnikl@justmail.de> |
1315 | ||
1316 | * aout64.c (BMAGIC, QMAGIC): Do not define. | |
1317 | * aoutx.h (N_IS_BMAGIC, N_SET_QMAGIC): New defines. | |
1318 | (NAME (aout, some_aout_object_p)): Use N_IS_QMAGIC and N_IS_BMAGIC | |
1319 | to check the file format. | |
1320 | (adjust_z_magic): Use N_SET_QMAGIC to set file format. | |
1321 | * i386aout.c (NO_WRITE_HEADER_KLUDGE): Delete define. | |
1322 | * libaout.h (NO_WRITE_HEADER_KLUDGE): Do not define. | |
1323 | ||
50d03636 L |
1324 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1325 | ||
1326 | * elf32-arc.c (elf_arc_relocate_section): Don't generate dynamic | |
1327 | relocations for non SEC_ALLOC sections. | |
1328 | ||
d49e5065 L |
1329 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1330 | ||
1331 | * elf-bfd.h (_bfd_elf_maybe_set_textrel): New | |
1332 | * elf32-arm.c (maybe_set_textrel): Removed. | |
1333 | (elf32_arm_size_dynamic_sections): Replace maybe_set_textrel | |
1334 | with _bfd_elf_maybe_set_textrel. | |
1335 | * elf32-csky.c (maybe_set_textrel): Removed. | |
1336 | (csky_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1337 | with _bfd_elf_maybe_set_textrel. | |
1338 | * elf32-hppa.c (maybe_set_textrel): Removed. | |
1339 | (elf32_hppa_size_dynamic_sections): Replace maybe_set_textrel | |
1340 | with _bfd_elf_maybe_set_textrel. | |
1341 | * elf32-lm32.c (maybe_set_textrel): Removed. | |
1342 | (lm32_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1343 | with _bfd_elf_maybe_set_textrel. | |
1344 | * elf32-m32r.c (maybe_set_textrel): Removed. | |
1345 | (m32r_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1346 | with _bfd_elf_maybe_set_textrel. | |
1347 | * elf32-metag.c (maybe_set_textrel): Removed. | |
1348 | (elf_metag_size_dynamic_sections): Replace maybe_set_textrel | |
1349 | with _bfd_elf_maybe_set_textrel. | |
1350 | * elf32-nds32.c (maybe_set_textrel): Removed. | |
1351 | (nds32_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1352 | with _bfd_elf_maybe_set_textrel. | |
1353 | * elf32-or1k.c (maybe_set_textrel): Removed. | |
1354 | (or1k_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1355 | with _bfd_elf_maybe_set_textrel. | |
1356 | * elf32-ppc.c (maybe_set_textrel): Removed. | |
1357 | (ppc_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1358 | with _bfd_elf_maybe_set_textrel. | |
1359 | * elf32-s390.c (maybe_set_textrel): Removed. | |
1360 | (elf_s390_size_dynamic_sections): Replace maybe_set_textrel | |
1361 | with _bfd_elf_maybe_set_textrel. | |
1362 | * elf32-sh.c (maybe_set_textrel): Removed. | |
1363 | (sh_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1364 | with _bfd_elf_maybe_set_textrel. | |
1365 | * elf32-tic6x.c (maybe_set_textrel): Removed. | |
1366 | (elf32_tic6x_size_dynamic_sections): Replace maybe_set_textrel | |
1367 | with _bfd_elf_maybe_set_textrel. | |
1368 | * elf32-tilepro.c (maybe_set_textrel): Removed. | |
1369 | (tilepro_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1370 | with _bfd_elf_maybe_set_textrel. | |
1371 | * elf64-ppc.c (maybe_set_textrel): Removed. | |
1372 | (ppc64_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1373 | with _bfd_elf_maybe_set_textrel. | |
1374 | * elf64-s390.c (maybe_set_textrel): Removed. | |
1375 | (elf_s390_size_dynamic_sections): Replace maybe_set_textrel | |
1376 | with _bfd_elf_maybe_set_textrel. | |
1377 | * elfnn-aarch64.c (maybe_set_textrel): Removed. | |
1378 | (elfNN_aarch64_size_dynamic_sections): Replace maybe_set_textrel | |
1379 | with _bfd_elf_maybe_set_textrel. | |
1380 | * elfnn-riscv.c (maybe_set_textrel): Removed. | |
1381 | (riscv_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1382 | with _bfd_elf_maybe_set_textrel. | |
1383 | * elfxx-sparc.c (maybe_set_textrel): Removed. | |
1384 | (_bfd_sparc_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1385 | with _bfd_elf_maybe_set_textrel. | |
1386 | * elfxx-tilegx.c (maybe_set_textrel): Removed. | |
1387 | (tilegx_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1388 | with _bfd_elf_maybe_set_textrel. | |
1389 | * elfxx-x86.c (maybe_set_textrel): Removed. | |
1390 | (_bfd_x86_elf_size_dynamic_sections): Replace maybe_set_textrel | |
1391 | with _bfd_elf_maybe_set_textrel. | |
1392 | * elflink.c (_bfd_elf_maybe_set_textrel): New. | |
1393 | ||
ad172eaa L |
1394 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1395 | ||
1396 | PR ld/26067 | |
1397 | * elf32-arm.c (elf32_arm_copy_indirect_symbol): Don't copy | |
1398 | dyn_relocs. | |
1399 | * elf32-csky.c (csky_elf_copy_indirect_symbol): Likewise. | |
1400 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
1401 | * elf32-metag.c (elf_metag_copy_indirect_symbol): Likewise. | |
1402 | * elf32-microblaze.c (microblaze_elf_copy_indirect_symbol): | |
1403 | Likewise. | |
1404 | * elf32-nds32.c (nds32_elf_copy_indirect_symbol): Likewise. | |
1405 | * elf32-nios2.c (nios2_elf32_copy_indirect_symbol): Likewise. | |
1406 | * elf32-or1k.c (or1k_elf_copy_indirect_symbol): Likewise. | |
1407 | * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
1408 | * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise. | |
1409 | * elf32-tilepro.c (tilepro_elf_copy_indirect_symbol): Likewise. | |
1410 | * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
1411 | * elfnn-aarch64.c (elfNN_aarch64_copy_indirect_symbol): Likewise. | |
1412 | * elfnn-riscv.c (riscv_elf_copy_indirect_symbol): Likewise. | |
1413 | * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise. | |
1414 | * elfxx-tilegx.c (tilegx_elf_copy_indirect_symbol): Likewise. | |
1415 | * elfxx-x86.c (_bfd_x86_elf_copy_indirect_symbol): Likewise. | |
1416 | * elf32-lm32.c (lm32_elf_copy_indirect_symbol): Removed. | |
1417 | (elf_backend_copy_indirect_symbol): Likewise. | |
1418 | * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Removed. | |
1419 | (elf_backend_copy_indirect_symbol): Likewise. | |
1420 | * elflink.c (_bfd_elf_link_hash_copy_indirect): Copy dyn_relocs. | |
1421 | ||
5dbc8b37 L |
1422 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1423 | ||
1424 | PR ld/26067 | |
1425 | * elf-bfd.h (_bfd_elf_readonly_dynrelocs): New. | |
1426 | * elf32-arm.c (readonly_dynrelocs): Removed. | |
1427 | (maybe_set_textrel): Replace readonly_dynrelocs with | |
1428 | _bfd_elf_readonly_dynrelocs. | |
1429 | * elf32-csky.c (readonly_dynrelocs): Removed. | |
1430 | (maybe_set_textrel): Replace readonly_dynrelocs with | |
1431 | _bfd_elf_readonly_dynrelocs. | |
1432 | * elf32-hppa.c(readonly_dynrelocs): Removed. | |
1433 | (alias_readonly_dynrelocs): Replace readonly_dynrelocs with | |
1434 | _bfd_elf_readonly_dynrelocs. | |
1435 | (maybe_set_textrel): Likewise. | |
1436 | * elf32-lm32.c (readonly_dynrelocs): Removed. | |
1437 | (lm32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1438 | with _bfd_elf_readonly_dynrelocs. | |
1439 | (maybe_set_textrel): Likewise. | |
1440 | * elf32-m32r.c (readonly_dynrelocs): Removed. | |
1441 | (m32r_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1442 | with _bfd_elf_readonly_dynrelocs. | |
1443 | (maybe_set_textrel): Likewise. | |
1444 | * elf32-metag.c (readonly_dynrelocs): Removed. | |
1445 | (elf_metag_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1446 | with _bfd_elf_readonly_dynrelocs. | |
1447 | (maybe_set_textrel): Likewise. | |
1448 | * elf32-microblaze.c (readonly_dynrelocs): Removed. | |
1449 | (microblaze_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1450 | with _bfd_elf_readonly_dynrelocs. | |
1451 | * elf32-nds32.c (readonly_dynrelocs): Removed. | |
1452 | (nds32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1453 | with _bfd_elf_readonly_dynrelocs. | |
1454 | (maybe_set_textrel): Likewise. | |
1455 | * elf32-or1k.c (readonly_dynrelocs): Removed. | |
1456 | (or1k_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1457 | with _bfd_elf_readonly_dynrelocs. | |
1458 | * elf32-ppc.c (readonly_dynrelocs): Removed. | |
1459 | (alias_readonly_dynrelocs): Replace readonly_dynrelocs with | |
1460 | _bfd_elf_readonly_dynrelocs. | |
1461 | (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1462 | (maybe_set_textrel): Likewise. | |
1463 | * elf32-s390.c (readonly_dynrelocs): Removed. | |
1464 | (elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1465 | with _bfd_elf_readonly_dynrelocs. | |
1466 | (maybe_set_textrel): Likewise. | |
1467 | * elf32-sh.c (readonly_dynrelocs): Removed. | |
1468 | (sh_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs with | |
1469 | _bfd_elf_readonly_dynrelocs. | |
1470 | (maybe_set_textrel): Likewise. | |
1471 | * elf32-tic6x.c (readonly_dynrelocs): Removed. | |
1472 | (maybe_set_textrel): Replace readonly_dynrelocs with | |
1473 | _bfd_elf_readonly_dynrelocs. | |
1474 | * elf32-tilepro.c (readonly_dynrelocs): Removed. | |
1475 | (tilepro_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1476 | with _bfd_elf_readonly_dynrelocs. | |
1477 | (maybe_set_textrel): Likewise. | |
1478 | * elf64-ppc.c (readonly_dynrelocs): Removed. | |
1479 | (alias_readonly_dynrelocs): Replace readonly_dynrelocs with | |
1480 | _bfd_elf_readonly_dynrelocs. | |
1481 | (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1482 | (maybe_set_textrel): Likewise. | |
1483 | * elf64-s390.c (readonly_dynrelocs): Removed. | |
1484 | (elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1485 | with _bfd_elf_readonly_dynrelocs. | |
1486 | (maybe_set_textrel): Likewise. | |
1487 | * elflink.c (_bfd_elf_readonly_dynrelocs): New. | |
1488 | * elfnn-aarch64.c (readonly_dynrelocs): Removed. | |
1489 | (maybe_set_textrel): Replace readonly_dynrelocs with | |
1490 | _bfd_elf_readonly_dynrelocs. | |
1491 | * elfnn-riscv.c (readonly_dynrelocs): Removed. | |
1492 | (riscv_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1493 | with _bfd_elf_readonly_dynrelocs. | |
1494 | (maybe_set_textrel): Likewise. | |
1495 | * elfxx-sparc.c (readonly_dynrelocs): Removed. | |
1496 | (_bfd_sparc_elf_adjust_dynamic_symbol): Replace | |
1497 | readonly_dynrelocs with _bfd_elf_readonly_dynrelocs. | |
1498 | (maybe_set_textrel): Likewise. | |
1499 | * elfxx-tilegx.c (readonly_dynrelocs): Removed. | |
1500 | (tilegx_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs | |
1501 | with _bfd_elf_readonly_dynrelocs. | |
1502 | (maybe_set_textrel): Likewise. | |
1503 | * elfxx-x86.c (readonly_dynrelocs): Removed. | |
1504 | (maybe_set_textrel): Replace readonly_dynrelocs with | |
1505 | _bfd_elf_readonly_dynrelocs. | |
1506 | (_bfd_x86_elf_adjust_dynamic_symbol): Likewise. | |
1507 | ||
433953ff L |
1508 | 2020-06-03 H.J. Lu <hongjiu.lu@intel.com> |
1509 | ||
1510 | * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Silence | |
1511 | -fsanitize=undefined. | |
1512 | ||
67580036 AM |
1513 | 2020-06-03 Alan Modra <amodra@gmail.com> |
1514 | ||
1515 | PR 26069 | |
1516 | PR 18758 | |
1517 | * peicode.h (pe_ILF_make_a_section): Align data for compilers | |
1518 | other than gcc. | |
1519 | (pe_ILF_build_a_bfd): Likewise. | |
1520 | ||
0ed18fa1 AM |
1521 | 2020-06-03 Alan Modra <amodra@gmail.com> |
1522 | ||
7eea15c5 | 1523 | PR 26069 |
0ed18fa1 AM |
1524 | * elf.c (_bfd_elf_close_and_cleanup): Free elf_shstrtab for |
1525 | core files as well as objects. | |
1526 | ||
190eb1dd L |
1527 | 2020-06-01 H.J. Lu <hongjiu.lu@intel.com> |
1528 | ||
1529 | PR ld/26067 | |
1530 | * elf-bfd.h (elf_link_hash_entry): Add dyn_relocs after size. | |
1531 | * elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): | |
1532 | Updated. | |
1533 | * elf32-arc.c (elf_arc_link_hash_entry): Remove dyn_relocs. | |
1534 | (elf_arc_link_hash_newfunc): Updated. | |
1535 | * elf32-arm.c (elf32_arm_link_hash_entry): Remove dyn_relocs. | |
1536 | (elf32_arm_link_hash_newfunc): Updated. | |
1537 | (elf32_arm_copy_indirect_symbol): Likewise. | |
1538 | (elf32_arm_check_relocs): Likewise. | |
1539 | (readonly_dynrelocs): Likewise. | |
1540 | (allocate_dynrelocs_for_symbol): Likewise. | |
1541 | * elf32-csky.c (csky_elf_link_hash_entry): Remove dyn_relocs. | |
1542 | (csky_elf_link_hash_newfunc): Updated. | |
1543 | (csky_allocate_dynrelocs): Likewise. | |
1544 | (readonly_dynrelocs): Likewise. | |
1545 | (csky_elf_copy_indirect_symbol): Likewise. | |
1546 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove dyn_relocs. | |
1547 | (hppa_link_hash_newfunc): Updated. | |
1548 | (elf32_hppa_copy_indirect_symbol): Likewise. | |
1549 | (elf32_hppa_hide_symbol): Likewise. | |
1550 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
1551 | (allocate_dynrelocs): Likewise. | |
1552 | (elf32_hppa_relocate_section): Likewise. | |
1553 | * elf32-i386.c (elf_i386_check_relocs): Likewise. | |
1554 | * elf32-lm32.c (elf_lm32_link_hash_entry): Removed. | |
1555 | (lm32_elf_link_hash_newfunc): Likewise. | |
1556 | (lm32_elf_link_hash_table_create): Updated. | |
1557 | (readonly_dynrelocs): Likewise. | |
1558 | (allocate_dynrelocs): Likewise. | |
1559 | (lm32_elf_copy_indirect_symbol): Likewise. | |
1560 | * elf32-m32r.c (elf_m32r_link_hash_entry): Removed. | |
1561 | (m32r_elf_link_hash_newfunc): Likewise. | |
1562 | (m32r_elf_link_hash_table_create): Updated. | |
1563 | (m32r_elf_copy_indirect_symbol): Likewise. | |
1564 | (allocate_dynrelocs): Likewise. | |
1565 | * elf32-metag.c (elf_metag_link_hash_entry): Remove dyn_relocs. | |
1566 | (metag_link_hash_newfunc): Updated. | |
1567 | (elf_metag_copy_indirect_symbol): Likewise. | |
1568 | (readonly_dynrelocs): Likewise. | |
1569 | (allocate_dynrelocs): Likewise. | |
1570 | * elf32-microblaze.c (elf32_mb_link_hash_entry): Remove | |
1571 | dyn_relocs. | |
1572 | (link_hash_newfunc): Updated. | |
1573 | (microblaze_elf_check_relocs): Likewise. | |
1574 | (microblaze_elf_copy_indirect_symbol): Likewise. | |
1575 | (readonly_dynrelocs): Likewise. | |
1576 | (allocate_dynrelocs): Likewise. | |
1577 | * elf32-nds32.c (elf_nds32_link_hash_entry): Remove dyn_relocs. | |
1578 | (nds32_elf_link_hash_newfunc): Updated. | |
1579 | (nds32_elf_copy_indirect_symbol): Likewise. | |
1580 | (readonly_dynrelocs): Likewise. | |
1581 | (allocate_dynrelocs): Likewise. | |
1582 | (nds32_elf_check_relocs): Likewise. | |
1583 | * elf32-nios2.c (elf32_nios2_link_hash_entry): Remove dyn_relocs. | |
1584 | (link_hash_newfunc): Updated. | |
1585 | (nios2_elf32_copy_indirect_symbol): Likewise. | |
1586 | (nios2_elf32_check_relocs): Likewise. | |
1587 | (allocate_dynrelocs): Likewise. | |
1588 | * elf32-or1k.c (elf_or1k_link_hash_entry): Remove dyn_relocs. | |
1589 | (or1k_elf_link_hash_newfunc): Updated. | |
1590 | (readonly_dynrelocs): Likewise. | |
1591 | (allocate_dynrelocs): Likewise. | |
1592 | (or1k_elf_copy_indirect_symbol): Likewise. | |
1593 | * elf32-ppc.c (ppc_elf_link_hash_entry): Remove dyn_relocs. | |
1594 | (ppc_elf_link_hash_newfunc): Updated. | |
1595 | (ppc_elf_copy_indirect_symbol): Likewise. | |
1596 | (ppc_elf_check_relocs): Likewise. | |
1597 | (readonly_dynrelocs): Likewise. | |
1598 | (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1599 | (allocate_dynrelocs): Likewise. | |
1600 | (ppc_elf_relocate_section): Likewise. | |
1601 | * elf32-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs. | |
1602 | (link_hash_newfunc): Updated. | |
1603 | (elf_s390_copy_indirect_symbol): Likewise. | |
1604 | (readonly_dynrelocs): Likewise. | |
1605 | (elf_s390_adjust_dynamic_symbol): Likewise. | |
1606 | (allocate_dynrelocs): Likewise. | |
1607 | * elf32-sh.c (elf_sh_link_hash_entry): Remove dyn_relocs. | |
1608 | (sh_elf_link_hash_newfunc): Updated. | |
1609 | (readonly_dynrelocs): Likewise. | |
1610 | (allocate_dynrelocs): Likewise. | |
1611 | (sh_elf_copy_indirect_symbol): Likewise. | |
1612 | (sh_elf_check_relocs): Likewise. | |
1613 | * elf32-tic6x.c (elf32_tic6x_link_hash_entry): Removed. | |
1614 | (elf32_tic6x_link_hash_newfunc): Likewise. | |
1615 | (elf32_tic6x_link_hash_table_create): Updated. | |
1616 | (readonly_dynrelocs): Likewise. | |
1617 | (elf32_tic6x_check_relocs): Likewise. | |
1618 | (elf32_tic6x_allocate_dynrelocs): Likewise. | |
1619 | * elf32-tilepro.c (tilepro_elf_link_hash_entry): Remove | |
1620 | dyn_relocs. | |
1621 | (link_hash_newfunc): Updated. | |
1622 | (tilepro_elf_copy_indirect_symbol): Likewise. | |
1623 | (tilepro_elf_check_relocs): Likewise. | |
1624 | (allocate_dynrelocs): Likewise. | |
1625 | * elf64-ppc.c (ppc_link_hash_entry): Remove dyn_relocs. | |
1626 | (ppc64_elf_copy_indirect_symbol): Updated. | |
1627 | (ppc64_elf_check_relocs): Likewise. | |
1628 | (readonly_dynrelocs): Likewise. | |
1629 | (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1630 | (dec_dynrel_count): Likewise. | |
1631 | (allocate_dynrelocs): Likewise. | |
1632 | (ppc64_elf_relocate_section): Likewise. | |
1633 | * elf64-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs. | |
1634 | (link_hash_newfunc): Updated. | |
1635 | (elf_s390_copy_indirect_symbol): Likewise. | |
1636 | (readonly_dynrelocs): Likewise. | |
1637 | (allocate_dynrelocs): Likewise. | |
1638 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1639 | * elfnn-aarch64.c (elf_aarch64_link_hash_entry): Remove | |
1640 | dyn_relocs. | |
1641 | (elfNN_aarch64_link_hash_newfunc): Updated. | |
1642 | (elfNN_aarch64_copy_indirect_symbol): Likewise. | |
1643 | (readonly_dynrelocs): Likewise. | |
1644 | (need_copy_relocation_p): Likewise. | |
1645 | (elfNN_aarch64_allocate_dynrelocs): Likewise. | |
1646 | (elfNN_aarch64_allocate_ifunc_dynrelocs): Likewise. | |
1647 | * elfnn-riscv.c (riscv_elf_link_hash_entry): Remove dyn_relocs. | |
1648 | (link_hash_newfunc): Updated. | |
1649 | (riscv_elf_copy_indirect_symbol): Likewise. | |
1650 | (riscv_elf_check_relocs): Likewise. | |
1651 | (readonly_dynrelocs): Likewise. | |
1652 | (allocate_dynrelocs): Likewise. | |
1653 | * elfxx-sparc.c (_bfd_sparc_elf_link_hash_entry): Remove | |
1654 | dyn_relocs. | |
1655 | (link_hash_newfunc): Updated. | |
1656 | (_bfd_sparc_elf_copy_indirect_symbol): Likewise. | |
1657 | (_bfd_sparc_elf_check_relocs): Likewise. | |
1658 | (readonly_dynrelocs): Likewise. | |
1659 | (allocate_dynrelocs): Likewise. | |
1660 | * elfxx-tilegx.c (tilegx_elf_link_hash_entry): Remove dyn_relocs. | |
1661 | (link_hash_newfunc): Updated. | |
1662 | (tilegx_elf_copy_indirect_symbol): Likewise. | |
1663 | (tilegx_elf_check_relocs): Likewise. | |
1664 | (readonly_dynrelocs): Likewise. | |
1665 | (allocate_dynrelocs): Likewise. | |
1666 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. | |
1667 | (readonly_dynrelocs): Likewise. | |
1668 | (_bfd_x86_elf_copy_indirect_symbol): Likewise. | |
1669 | * elfxx-x86.h (elf_x86_link_hash_entry): Remove dyn_relocs. | |
1670 | ||
2fdb65f2 AM |
1671 | 2020-06-01 Alan Modra <amodra@gmail.com> |
1672 | ||
1673 | * vms-alpha.c (_bfd_vms_slurp_etir): Check bound for the current | |
1674 | command against cmd_length, not the end of record. For | |
1675 | ETIR__C_STO_IMMR check size against cmd_length, mask repeat count | |
1676 | to 32-bits and break out on zero size. Add ETIR__C_STC_LP_PSB | |
1677 | cmd_length test. | |
1678 | ||
12adf805 DF |
1679 | 2020-05-28 David Faust <david.faust@oracle.com> |
1680 | ||
1681 | * elf64-bpf.c (bpf_elf_relocate_section): Fix handling of | |
1682 | R_BPF_INSN_{32,64} relocations. | |
1683 | ||
66e3eb08 SC |
1684 | 2020-05-28 Stephen Casner <casner@acm.org> |
1685 | ||
1686 | * pdp11.c: Implement BRD_RELOC_32 to relocate the low 16 bits of | |
1687 | addreses in .long (used in testsuites) and .stab values. | |
1688 | ||
a6dbf402 L |
1689 | 2020-05-27 H.J. Lu <hongjiu.lu@intel.com> |
1690 | ||
1691 | PR ld/22909 | |
1692 | * elflink.c (bfd_elf_final_link): Use bfd_link_textrel_check. | |
1693 | Check bfd_link_dll when issue a DT_TEXTREL warning. | |
1694 | * elfxx-x86.c (maybe_set_textrel): Likewise. | |
1695 | (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
1696 | ||
9e7cb4c3 NC |
1697 | 2020-05-26 Nick Clifton <nickc@redhat.com> |
1698 | ||
1699 | * plugin.c (try_load_plugin): Extend error message when a plugin | |
1700 | fails to open. | |
1701 | ||
c892b447 AM |
1702 | 2020-05-23 Alan Modra <amodra@gmail.com> |
1703 | ||
1704 | * bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header. | |
1705 | ||
6f3fe02b AM |
1706 | 2020-05-22 Alan Modra <amodra@gmail.com> |
1707 | ||
1708 | PR 25882 | |
1709 | * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Don't init FP | |
1710 | attributes from shared libraries, and do not return an error if | |
1711 | they don't match. | |
1712 | ||
0490dd41 AM |
1713 | 2020-05-21 Alan Modra <amodra@gmail.com> |
1714 | ||
1715 | PR 25993 | |
1716 | * opncls.c (_bfd_free_cached_info): Keep a copy of the bfd | |
1717 | filename. | |
1718 | (_bfd_delete_bfd): Free the copy. | |
1719 | (_bfd_new_bfd): Free nbfd->memory on error. | |
1720 | ||
c9594989 AM |
1721 | 2020-05-21 Alan Modra <amodra@gmail.com> |
1722 | ||
1723 | * aoutx.h: Replace "if (x) free (x)" with "free (x)" throughout. | |
1724 | * archive.c, * bfd.c, * bfdio.c, * coff-alpha.c, * coff-ppc.c, | |
1725 | * coff-sh.c, * coff-stgo32.c, * coffcode.h, * coffgen.c, | |
1726 | * cofflink.c, * cpu-arm.c, * doc/chew.c, * dwarf2.c, * ecoff.c, | |
1727 | * ecofflink.c, * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c, | |
1728 | * elf-strtab.c, * elf.c, * elf32-arc.c, * elf32-arm.c, | |
1729 | * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c, * elf32-crx.c, | |
1730 | * elf32-epiphany.c, * elf32-ft32.c, * elf32-h8300.c, | |
1731 | * elf32-ip2k.c, * elf32-m32c.c, * elf32-m68hc11.c, | |
1732 | * elf32-m68k.c, * elf32-microblaze.c, * elf32-msp430.c, | |
1733 | * elf32-nds32.c, * elf32-nios2.c, * elf32-ppc.c, * elf32-pru.c, | |
1734 | * elf32-rl78.c, * elf32-rx.c, * elf32-sh.c, * elf32-spu.c, | |
1735 | * elf32-v850.c, * elf32-xtensa.c, * elf64-alpha.c, | |
1736 | * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c | |
1737 | * elf64-mmix.c, * elf64-ppc.c, * elf64-sparc.c, * elfcode.h, | |
1738 | * elflink.c, * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, | |
1739 | * elfxx-x86.c, * format.c, * ihex.c, * libbfd.c, * linker.c, | |
1740 | * mmo.c, * opncls.c, * pdp11.c, * peXXigen.c, * pef.c, | |
1741 | * peicode.h, * simple.c, * som.c, * srec.c, * stabs.c, * syms.c, | |
1742 | * targets.c, * vms-lib.c, * xcofflink.c, * xtensa-isa.c: Likewise. | |
1743 | ||
8f595e9b NC |
1744 | 2020-05-20 Nelson Chu <nelson.chu@sifive.com> |
1745 | ||
1746 | * elfxx-riscv.h (riscv_parse_subset_t): Add new callback function | |
1747 | get_default_version. It is used to find the default version for | |
1748 | the specific extension. | |
1749 | * elfxx-riscv.c (riscv_parsing_subset_version): Remove the parameters | |
1750 | default_major_version and default_minor_version. Add new bfd_boolean | |
1751 | parameter *use_default_version. Set it to TRUE if we need to call | |
1752 | the callback rps->get_default_version to find the default version. | |
1753 | (riscv_parse_std_ext): Call rps->get_default_version if we fail to find | |
1754 | the default version in riscv_parsing_subset_version, and then call | |
1755 | riscv_add_subset to add the subset into subset list. | |
1756 | (riscv_parse_prefixed_ext): Likewise. | |
1757 | (riscv_std_z_ext_strtab): Support Zicsr extensions. | |
1758 | * elfnn-riscv.c (riscv_merge_std_ext): Use strcasecmp to compare the | |
1759 | strings rather than characters. | |
1760 | riscv_merge_arch_attr_info): The callback function get_default_version | |
1761 | is only needed for assembler, so set it to NULL int the linker. | |
1762 | * elfxx-riscv.c (riscv_estimate_digit): Remove the static. | |
1763 | * elfxx-riscv.h: Updated. | |
1764 | ||
7b958a48 AM |
1765 | 2020-05-20 Alan Modra <amodra@gmail.com> |
1766 | ||
1767 | PR 25993 | |
1768 | * archive.c (_bfd_get_elt_at_filepos): Don't strdup filename, | |
1769 | use bfd_set_filename. | |
1770 | * elfcode.h (_bfd_elf_bfd_from_remote_memory): Likewise. | |
1771 | * mach-o.c (bfd_mach_o_fat_member_init): Likewise. | |
1772 | * opncls.c (bfd_fopen, bfd_openstreamr, bfd_openr_iovec, bfd_openw), | |
1773 | (bfd_create): Likewise. | |
1774 | (_bfd_delete_bfd): Don't free filename. | |
1775 | (bfd_set_filename): Copy filename param to bfd_alloc'd memory, | |
1776 | return pointer to the copy or NULL on alloc fail. | |
1777 | * vms-lib.c (_bfd_vms_lib_get_module): Free newname and test | |
1778 | result of bfd_set_filename. | |
1779 | * bfd-in2.h: Regenerate. | |
1780 | ||
3c568b8a AM |
1781 | 2020-05-20 Alan Modra <amodra@gmail.com> |
1782 | ||
1783 | PR 26011 | |
1784 | * elf.c (_bfd_elf_get_reloc_upper_bound): Sanity check reloc | |
1785 | section size against file size. | |
1786 | (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise. | |
1787 | ||
6fd1d259 GN |
1788 | 2020-05-19 Gunther Nikl <gnikl@justmail.de> |
1789 | ||
1790 | PR 26005 | |
11c0dd51 NC |
1791 | * elf.c (bfd_section_from_shdr): Replace bfd_zmalloc with bfd_malloc |
1792 | and memset when allocating memory for the sections_being_created | |
1793 | array. | |
6fd1d259 | 1794 | |
7e94cf6c SH |
1795 | 2020-05-19 Stafford Horne <shorne@gmail.com> |
1796 | ||
1797 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Rename srela | |
1798 | to relgot. | |
1799 | (or1k_elf_relocate_section): Access srelgot via | |
1800 | htab->root.srelgot. Add assertions for srelgot->contents. | |
1801 | Introduce local variable for srelgot to not reuse global | |
1802 | sreloc. | |
1803 | (or1k_elf_relocate_section): Fixup dynamic symbol detection. | |
1804 | (or1k_set_got_and_rela_sizes): New function. | |
1805 | (or1k_initial_exec_offset): New function. | |
1806 | (TLS_GD, TLS_IE, TLS_LD, TLS_LE): Redefine macros as masks. | |
1807 | (or1k_elf_relocate_section): Allow for TLS to handle multiple | |
1808 | model access. | |
1809 | (or1k_elf_check_relocs): Use OR to set TLS access. | |
1810 | (allocate_dynrelocs): Use or1k_set_got_and_rela_sizes to set | |
1811 | sizes. | |
1812 | (or1k_elf_size_dynamic_sections): Use | |
1813 | or1k_set_got_and_rela_sizes to set sizes. | |
1814 | (or1k_elf_relocate_section): Fixup PCREL relocation calculation. | |
1815 | (TCB_SIZE): New macro. | |
1816 | (tpoff): Use TCB_SIZE and alignment to calculate offset. | |
1817 | (allocate_dynrelocs, readonly_dynrelocs, or1k_elf_check_relocs) | |
1818 | (or1k_elf_size_dynamic_sections): Rename p to sec_relocs. | |
1819 | (allocate_dynrelocs): Rename s to splt or sgot based on usage. | |
1820 | (tpoff): Add dynamic boolean argument. | |
1821 | (or1k_elf_relocate_section): Pass dynamic flag to tpoff. | |
1822 | ||
7e057737 SP |
1823 | 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com> |
1824 | ||
1825 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Club | |
1826 | BFD_RELOC_AARCH64_BRANCH19 and BFD_RELOC_AARCH64_TSTBR14 | |
1827 | cases with BFD_RELOC_AARCH64_JUMP26. | |
1828 | (elfNN_aarch64_check_relocs): Likewise. | |
1829 | ||
765cf5f6 AM |
1830 | 2020-05-19 Alan Modra <amodra@gmail.com> |
1831 | ||
1832 | * aix5ppc-core.c (xcoff64_core_file_matches_executable_p): Use | |
1833 | bfd_get_filename rather than accessing bfd->filename directly. | |
1834 | * aout-target.h (MY (object_p)): Likewise. | |
1835 | * aoutx.h (aout_find_nearest_line, aout_link_write_symbols): Likewise. | |
1836 | * archive.c (find_nested_archive, _bfd_generic_read_ar_hdr_mag), | |
1837 | (_bfd_construct_extended_name_table, _bfd_bsd44_write_ar_hdr), | |
1838 | (_bfd_archive_bsd44_construct_extended_name_table), | |
1839 | (_bfd_write_archive_contents, _bfd_compute_and_write_armap), | |
1840 | (_bfd_bsd_write_armap): Likewise. | |
1841 | * bfd.c (bfd_errmsg, _bfd_doprnt): Likewise. | |
1842 | * cache.c (bfd_open_file): Likewise. | |
1843 | * ecoff.c (_bfd_ecoff_write_armap): Likewise. | |
1844 | * ecofflink.c (bfd_ecoff_debug_accumulate_other): Likewise. | |
1845 | * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. | |
1846 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
1847 | * elf32-hppa.c (elf32_hppa_final_link): Likewise. | |
1848 | * elf32-nds32.c (nds32_elf_output_symbol_hook), | |
1849 | (patch_tls_desc_to_ie): Likewise. | |
1850 | * elf32-spu.c (sort_bfds, print_one_overlay_section), | |
1851 | (spu_elf_auto_overlay): Likewise. | |
1852 | * elf64-hppa.c (elf_hppa_final_link): Likewise. | |
1853 | * elf64-ia64-vms.c (elf64_ia64_size_dynamic_sections): Likewise. | |
1854 | * elfcore.h (elf_core_file_matches_executable_p): Likewise. | |
1855 | * elflink.c (bfd_elf_size_dynamic_sections), | |
1856 | (elf_link_input_bfd): Likewise. | |
1857 | * linker.c (_bfd_generic_link_output_symbols): Likewise. | |
1858 | * mach-o.c (bfd_mach_o_follow_dsym), | |
1859 | (bfd_mach_o_close_and_cleanup): Likewise. | |
1860 | * opncls.c (_bfd_delete_bfd, _maybe_make_executable), | |
1861 | (find_separate_debug_file, get_build_id_name): Likewise. | |
1862 | * pdp11.c (aout_find_nearest_line, aout_link_write_symbols): Likewise. | |
1863 | * plugin.c (bfd_plugin_open_input): Likewise. | |
1864 | * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Likewise. | |
1865 | * som.c (som_write_armap): Likewise. | |
1866 | * srec.c (srec_write_record, srec_write_symbols): Likewise. | |
1867 | * vms-lib.c (_bfd_vms_lib_get_imagelib_file), | |
1868 | (_bfd_vms_lib_write_archive_contents): Likewise. | |
1869 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise. | |
1870 | ||
39a1432c AM |
1871 | 2020-05-19 Alan Modra <amodra@gmail.com> |
1872 | ||
1873 | PR 25713 | |
1874 | * bfdio.c (_bfd_real_fopen): Typo fix. | |
1875 | ||
ed02cdb5 NC |
1876 | 2020-05-18 Nick Clifton <nickc@redhat.com> |
1877 | ||
1878 | PR 26005 | |
1879 | * elf.c (bfd_section_from_shdr): Use bfd_malloc to allocate memory | |
1880 | for the sections_being_created array. | |
1881 | ||
7a87e9c8 AM |
1882 | 2020-05-18 Alan Modra <amodra@gmail.com> |
1883 | ||
1884 | * ecoff.c (ecoff_slurp_reloc_table): Malloc external_relocs so | |
1885 | they can be freed without also freeing internal_relocs. | |
1886 | ||
ca859a89 JC |
1887 | 2020-05-18 Jaydeep Chauhan <jaydeepchauhan1494@gmail.com> |
1888 | ||
1889 | PR 25713 | |
1890 | * bfdio.c (_bfd_real_fopen): Convert UNIX style sirectory | |
1891 | separators into DOS style when creating a WIN32 fullpath. | |
1892 | ||
fc46e8bd NC |
1893 | 2020-05-14 Nelson Chu <nelson.chu@sifive.com> |
1894 | ||
1895 | * elfnn-riscv.c (elfNN_riscv_mkobject): New function. We need this | |
1896 | to initialize RISC-V tdata. | |
1897 | ||
533f049e GN |
1898 | 2020-05-12 Gunther Nikl <gnikl@justmail.de> |
1899 | ||
1900 | * aoutx.h (NAME (aout, swap_std_reloc_out)): Reject an unsupported | |
1901 | relocation size. | |
1902 | ||
94ba9882 AM |
1903 | 2020-05-11 Alan Modra <amodra@gmail.com> |
1904 | ||
1905 | * elf64-ppc.c (xlate_pcrel_opt): Handle lxvp and stxvp. | |
1906 | ||
7c1f4227 AM |
1907 | 2020-05-11 Alan Modra <amodra@gmail.com> |
1908 | ||
1909 | * elf64-ppc.c: Rename powerxx to power10 throughout. | |
1910 | ||
4d5acb1e AM |
1911 | 2020-05-11 Alan Modra <amodra@gmail.com> |
1912 | ||
1913 | PR 25961 | |
1914 | * coffgen.c (coff_get_normalized_symtab): Check that buffer | |
1915 | contains required number of auxents before processing any auxent. | |
1916 | * coffswap.h (coff_swap_aux_in <C_FILE>): Only swap in extended | |
1917 | file name from auxents for PE. | |
1918 | ||
7242fa8a GN |
1919 | 2020-05-04 Gunther Nikl <gnikl@justmail.de> |
1920 | ||
1921 | * aout-cris.c (DEFAULT_ARCH): Delete define. | |
1922 | (MY_set_arch_mach): Likewise. | |
1923 | (SET_ARCH_MACH): Use bfd_set_arch_mach with an explicit architecture | |
1924 | of bfd_arch_cris. | |
1925 | (swap_ext_reloc_in): Add casts to r_index extraction. Mask valid bits | |
1926 | of r_type before the shift. | |
1927 | ||
1928 | 2020-05-04 Wilco Dijkstra <wdijkstr@arm.com> | |
cff69cf4 WD |
1929 | |
1930 | PR ld/25665 | |
1931 | * elfnn-aarch64.c (group_sections): Copy implementation from | |
1932 | elf32-arm.c. | |
1933 | ||
a2714d6c AM |
1934 | 2020-05-01 Alan Modra <amodra@gmail.com> |
1935 | ||
1936 | PR 25900 | |
1937 | * elfnn-riscv.c (_bfd_riscv_relax_section): Check root.type before | |
1938 | accessing root.u.def of symbols. Also check root.u.def.section | |
1939 | is non-NULL. Reverse tests so as to make the logic positive. | |
1940 | ||
a8acd6ee AM |
1941 | 2020-05-01 Alan Modra <amodra@gmail.com> |
1942 | ||
1943 | PR 25882 | |
1944 | * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer | |
1945 | Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output. | |
1946 | ||
6b728d32 AM |
1947 | 2020-05-01 Alan Modra <amodra@gmail.com> |
1948 | ||
1949 | PR 25882 | |
1950 | * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Add FIXME. | |
1951 | * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise. | |
1952 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
1953 | * elf32-nds32.c (nds32_elf_merge_private_bfd_data): Likewise. | |
1954 | * elf32-score.c (s3_elf32_score_merge_private_bfd_data): Likewise. | |
1955 | * elf32-score7.c (s7_elf32_score_merge_private_bfd_data): Likewise. | |
1956 | * elf32-sh.c (sh_elf_merge_private_data): Likewise. | |
1957 | * elf32-tic6x.c (elf32_tic6x_merge_attributes): Likewise. | |
1958 | * elf64-ia64-vms.c (elf64_ia64_merge_private_bfd_data): Likewise. | |
1959 | * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): Likewise. | |
1960 | ||
91ed9b71 AM |
1961 | 2020-05-01 Alan Modra <amodra@gmail.com> |
1962 | ||
1963 | PR 25882 | |
1964 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Ignore e_flags | |
1965 | from shared libraries. | |
1966 | ||
d548f47d MF |
1967 | 2020-04-29 Max Filippov <jcmvbkbc@gmail.com> |
1968 | ||
1969 | * elf32-xtensa.c (relax_section): Don't negate diff_value for | |
1970 | XTENSA_NDIFF relocations. Don't add sign bits whe diff_value | |
1971 | equals 0. Report overflow when the result has negative sign but | |
1972 | all significant bits are zero. | |
1973 | ||
dfa85db1 GN |
1974 | 2020-04-29 Gunther Nikl <gnikl@justmail.de> |
1975 | ||
1976 | * aoutx.h (swap_std_reloc_out): Special case 64 bit relocations. | |
1977 | (aout_link_reloc_link_order): Likewise. Make r_length an unsigned. | |
1978 | ||
48e5bada AM |
1979 | 2020-04-28 Alan Modra <amodra@gmail.com> |
1980 | ||
1981 | * vms-alpha.c (_bfd_vms_slurp_etir): Correct divide by zero check. | |
1982 | Emit warning message. | |
1983 | ||
251dae91 TC |
1984 | 2020-04-27 Tamar Christina <tamar.christina@arm.com> |
1985 | ||
1986 | * coff-i386.c (COFF_WITH_PE_BIGOBJ): New. | |
1987 | * coff-x86_64.c (COFF_WITH_PE_BIGOBJ): New. | |
1988 | * config.bfd (targ_selvecs): Rename x86_64_pe_be_vec | |
1989 | to x86_64_pe_big_vec as it not a big-endian format. | |
1990 | (vec i386_pe_big_vec): New. | |
1991 | * configure.ac: Likewise. | |
1992 | * targets.c: Likewise. | |
1993 | * configure: Regenerate. | |
1994 | * pe-i386.c (TARGET_SYM_BIG, TARGET_NAME_BIG, | |
1995 | COFF_WITH_PE_BIGOBJ): New. | |
1996 | * pe-x86_64.c (TARGET_SYM_BIG, TARGET_NAME_BIG): | |
1997 | New. | |
1998 | (x86_64_pe_be_vec): Moved. | |
1999 | ||
27456742 AK |
2000 | 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com> |
2001 | ||
2002 | * elf-bfd.h (elfcore_write_arc_v2): Add prototype. | |
2003 | * elf.c (elfcore_grok_arc_v2): New function. | |
2004 | (elfcore_grok_note): Call the new function to handle the corresponding | |
2005 | note. | |
2006 | (elfcore_write_arc_v2): New function. | |
2007 | (elfcore_write_register_note): Call the new function to handle the | |
2008 | corresponding pseudo-sections. | |
2009 | ||
30ce8e47 MF |
2010 | 2020-04-22 Max Filippov <jcmvbkbc@gmail.com> |
2011 | ||
2012 | PR ld/25861 | |
2013 | * bfd-in2.h: Regenerated. | |
2014 | * elf32-xtensa.c (elf_howto_table): New entries for | |
2015 | R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}. | |
2016 | (elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc) | |
2017 | (relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and | |
2018 | R_XTENSA_NDIFF{8,16,32}. | |
2019 | * libbfd.h (bfd_reloc_code_real_names): Add names for | |
2020 | BFD_RELOC_XTENSA_PDIFF{8,16,32} and | |
2021 | BFD_RELOC_XTENSA_NDIFF{8,16,32}. | |
2022 | * reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32} | |
2023 | and BFD_RELOC_XTENSA_NDIFF{8,16,32}. | |
2024 | ||
c36876fe TC |
2025 | 2020-04-21 Tamar Christina <tamar.christina@arm.com> |
2026 | ||
2027 | PR binutils/24753 | |
2028 | * compress.c (bfd_get_full_section_contents): Exclude sections with no | |
2029 | content. | |
2030 | ||
6f6fd151 L |
2031 | 2020-04-21 H.J. Lu <hongjiu.lu@intel.com> |
2032 | ||
2033 | PR ld/25849 | |
2034 | * elf-bfd.h (elf_backend_data): Add | |
2035 | elf_backend_strip_zero_sized_dynamic_sections. | |
2036 | (_bfd_elf_strip_zero_sized_dynamic_sections): New prototype. | |
2037 | * elf64-alpha.c (elf_backend_strip_zero_sized_dynamic_sections): | |
2038 | New macro. | |
2039 | * elflink.c (_bfd_elf_strip_zero_sized_dynamic_sections): New | |
2040 | function. | |
2041 | * elfxx-target.h (elf_backend_strip_zero_sized_dynamic_sections): | |
2042 | New macro. | |
2043 | (elfNN_bed): Add elf_backend_strip_zero_sized_dynamic_sections. | |
2044 | ||
1f7f2abb L |
2045 | 2020-04-21 H.J. Lu <hongjiu.lu@intel.com> |
2046 | ||
2047 | * elf64-alpha.c (alpha_elf_reloc_entry): Replace reltext with | |
2048 | sec. | |
2049 | (elf64_alpha_check_relocs): Set sec instead of reltext. Warn | |
2050 | DT_TEXTREL with -M. | |
2051 | (elf64_alpha_calc_dynrel_sizes): Warn DT_TEXTREL with -M. | |
2052 | ||
e04f33c0 NC |
2053 | 2020-04-21 Nick Clifton <nickc@redhat.com> |
2054 | ||
2055 | * po/sr.po: Updated Serbian translation. | |
2056 | ||
fad3d2c1 AM |
2057 | 2020-04-21 Alan Modra <amodra@gmail.com> |
2058 | ||
2059 | * elf32-sh.c (sh_elf_relocate_section): Remove STO_SH5_ISA32 | |
2060 | processing. | |
2061 | ||
23c8270e SC |
2062 | 2020-04-20 Stephen Casner <casner@acm.org> |
2063 | ||
2064 | * pdp11.c (N_STAB): Modify value to avoid conflict with N_EXT | |
2065 | causing globals from linker script to be treated as debug symbols. | |
2066 | (translate_symbol_table): Don't sign-extend symbol values from 16 | |
2067 | to 64 bits in nm output. | |
2068 | ||
2efec98b AM |
2069 | 2020-04-20 Alan Modra <amodra@gmail.com> |
2070 | ||
2071 | * elf64-ppc.c (ppc64_elf_size_stubs): Strip relbrlt too. | |
2072 | ||
18f97353 AM |
2073 | 2020-04-18 Alan Modra <amodra@gmail.com> |
2074 | ||
2075 | * section.c (bfd_is_const_section): Correct test for special | |
2076 | sections. | |
2077 | * bfd-in2.h: Regenerate. | |
2078 | ||
8d55d10a AM |
2079 | 2020-04-17 Alan Modra <amodra@gmail.com> |
2080 | ||
2081 | PR 25842 | |
2082 | * elf.c (_bfd_elf_get_symbol_version_string): Don't segfault on | |
2083 | NULL nodename. | |
2084 | ||
8e4979ac NC |
2085 | 2020-04-16 Nick Clifton <nickc@redhat.com> |
2086 | ||
2087 | PR 25803 | |
2088 | * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Replace an | |
2089 | abort with a more helpful error message. | |
2090 | ||
aec72fda AM |
2091 | 2020-04-16 Alan Modra <amodra@gmail.com> |
2092 | ||
2093 | PR 25827 | |
2094 | * dwarf2.c (scan_unit_for_symbols): Wrap overlong lines. Don't | |
2095 | strdup(0). | |
2096 | ||
95a51568 FS |
2097 | 2020-04-15 Fangrui Song <maskray@google.com> |
2098 | ||
2099 | PR binutils/24613 | |
2100 | * coff-rs6000.c (xcoff_ppc_relocate_section): Change RM_GENERATE_ERROR | |
2101 | to RM_DIAGNOSE plus a check of warn_unresolved_syms. | |
2102 | * coff64-rs6000.c (xcoff_ppc_relocate_section): Likewise. | |
2103 | * elf-bfd.h (_bfd_elf_large_com_section): Likewise. | |
2104 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
2105 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
2106 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
2107 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
2108 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
2109 | * elf64-hppa.c (elf64_hppa_relocate_section): Likewise. | |
2110 | * elflink.c (elf_link_output_extsym): Likewise. | |
2111 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
2112 | ||
7ecb5154 AM |
2113 | 2020-04-15 Alan Modra <amodra@gmail.com> |
2114 | ||
2115 | PR 25823 | |
2116 | * peXXigen.c (_bfd_XXi_swap_sym_in <C_SECTION>): Don't use a | |
2117 | pointer into strings that may be freed for section name, always | |
2118 | allocate a new string. | |
2119 | ||
f717994f JMG |
2120 | 2020-04-14 Juan Manuel Guerrero <juan.guerrero@gmx.de> |
2121 | Jan W. Jagersma <jwjagersma@gmail.com> | |
2122 | ||
2123 | * coff-go32.c (COFF_GO32, IMAGE_SCN_LNK_NRELOC_OVFL) | |
2124 | (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define. | |
2125 | (_bfd_go32_swap_scnhdr_in, _bfd_go32_swap_scnhdr_out) | |
2126 | (_bfd_go32_mkobject): New functions. | |
2127 | * coff-stgo32.c (IMAGE_SCN_LNK_NRELOC_OVFL) | |
2128 | (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define. | |
2129 | (go32exe_mkobject): Call _bfd_go32_mkobject. | |
2130 | * coffcode.h (COFF_WITH_EXTENDED_RELOC_COUNTER): Define. | |
2131 | (coff_set_alignment_hook): Define function for COFF_GO32_EXE | |
2132 | and COFF_GO32. | |
2133 | (coff_write_relocs): Enable extended reloc counter code if | |
2134 | COFF_WITH_EXTENDED_RELOC_COUNTER is defined. Test for obj_go32. | |
2135 | (coff_write_object_contents): Likewise. Pad section headers | |
2136 | for COFF_GO32 and COFF_GO32EXE. Use bfd_coff_swap_scnhdr_out | |
2137 | instead of coff_swap_scnhdr_out. | |
2138 | * cofflink.c (_bfd_coff_final_link): Test also for obj_go32 to | |
2139 | enable extended reloc counter. | |
2140 | * coffswap.h: (coff_swap_scnhdr_in, coff_swap_scnhdr_out): | |
2141 | Declare with ATTRIBUTE_UNUSED. | |
2142 | * libcoff-in.h: (struct coff_tdata): New field go32. | |
2143 | (obj_go32): Define. | |
2144 | * libcoff.h: Regenerate. | |
2145 | ||
34ca5531 FS |
2146 | 2020-04-14 Fangrui Song <maskray@google.com> |
2147 | ||
2148 | PR gas/25768 | |
2149 | * elf.c (assign_section_numbers): Always set .stab sh_entsize to | |
2150 | 12. | |
2151 | ||
fa1477dc SC |
2152 | 2020-04-14 Stephen Casner <casner@acm.org> |
2153 | ||
2154 | PR ld/25677 | |
2155 | * pdp11.c: Add implementation of --imagic option. | |
2156 | (adjust_o_magic): Fix objcopy --extract-symbol test. | |
2157 | * libaout.h (enum aout_magic): Add i_magic. | |
2158 | ||
a0543b0b RO |
2159 | 2020-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2160 | Nick Clifton <nickc@redhat.com> | |
2161 | ||
2162 | * elf32-sparc.c (sparc_final_write_processing): Fix whitespace. | |
2163 | <0>: Ignore. | |
2164 | <default>: Error rather than abort. | |
2165 | ||
3349112e L |
2166 | 2020-04-03 H.J. Lu <hongjiu.lu@intel.com> |
2167 | ||
2168 | PR ld/25767 | |
2169 | * elf.c (_bfd_elf_fixup_group_sections): Remove zero-sized | |
2170 | relocation section from section group. | |
2171 | ||
4d095f5b JJ |
2172 | 2020-04-02 Jan W. Jagersma <jwjagersma@gmail.com> |
2173 | ||
2174 | * bfdio.c (bfd_bread, bfd_tell, bfd_seek, bfd_mmap): Always add | |
2175 | bfd->origin to file offset. | |
2176 | * bfdwin.c (bfd_get_file_window): Likewise. | |
2177 | * bfd.c: Clarify the use of the bfd->origin field. | |
2178 | * bfd-in2.h: Regenerate. | |
2179 | * coff-i386.c: Don't include go32exe.h. Allow overriding | |
2180 | coff_write_object_contents via COFF_WRITE_CONTENTS. | |
2181 | * coff-stgo32.c (go32exe_cleanup, go32exe_mkobject) | |
2182 | (go32exe_write_object_contents): New functions. | |
2183 | (go32exe_temp_stub, go32exe_temp_stub_size): New static globals. | |
2184 | (COFF_WRITE_CONTENTS, GO32EXE_DEFAULT_STUB_SIZE): Define. | |
2185 | (create_go32_stub): Remove check for 2k size limit. Read stub | |
2186 | from go32exe_temp_stub if present. | |
2187 | (go32_stubbed_coff_bfd_copy_private_bfd_data): Allocate and | |
2188 | copy variable-length stub. | |
2189 | (go32_check_format): Read stub to go32exe_temp_stub, set | |
2190 | origin, return go32exe_cleanup. | |
2191 | (adjust_filehdr_in_post, adjust_filehdr_out_pre) | |
2192 | (adjust_filehdr_out_post, adjust_scnhdr_in_post) | |
2193 | (adjust_scnhdr_out_pre, adjust_scnhdr_out_post) | |
2194 | (adjust_aux_in_post, adjust_aux_out_pre, adjust_aux_out_post): | |
2195 | Remove functions and their associated #defines. | |
2196 | * coffcode.h (coff_mkobject_hook): Remove stub copying code. | |
2197 | * libcoff-in.h: (struct coff_tdata): New field stub_size. | |
2198 | Rename field go32stub to stub. | |
2199 | * libcoff.h: Regenerate. | |
2200 | * coff-stgo32.c (go32_check_format): Rename to... | |
2201 | (go32exe_check_format): ...this. | |
2202 | (go32_stubbed_coff_bfd_copy_private_bfd_data): Rename to... | |
2203 | (go32exe_copy_private_bfd_data): ...this. | |
2204 | (stub_bytes): Rename to... | |
2205 | (go32exe_default_stub): ...this. | |
2206 | (create_go32_stub): Rename to... | |
2207 | (go32exe_create_stub): ...this. | |
2208 | * coff-stgo32.c (go32exe_copy_private_bfd_data): Avoid realloc | |
2209 | when possible. | |
2210 | ||
382aae06 L |
2211 | 2020-04-01 H.J. Lu <hongjiu.lu@intel.com> |
2212 | ||
2213 | PR ld/25749 | |
2214 | PR ld/25754 | |
2215 | * elf32-i386.c (elf_i386_convert_load_reloc): Convert load | |
2216 | relocation to R_386_32 for relocation against non-preemptible | |
2217 | absolute symbol. | |
2218 | (elf_i386_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Don't | |
2219 | allocate dynamic relocation for non-preemptible absolute symbol. | |
2220 | (elf_i386_relocate_section): Pass sec to | |
2221 | GENERATE_DYNAMIC_RELOCATION_P. | |
2222 | * elf64-x86-64.c (R_X86_64_converted_reloc_bit): Moved. | |
2223 | (elf_x86_64_convert_load_reloc): Covert load relocation to | |
2224 | R_X86_64_32S or R_X86_64_32 for relocation against non-preemptible | |
2225 | absolute symbol. Don't convert to R_X86_64_32S nor R_X86_64_32 | |
2226 | for non-preemptible absolute symbol if they overflow. | |
2227 | (elf_x86_64_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Set | |
2228 | tls_type for GOT slot to GOT_ABS for non-preemptible absolute | |
2229 | symbol. Don't allocate dynamic relocation for non-preemptible | |
2230 | absolute symbol. | |
2231 | (elf_x86_64_relocate_section): Don't generate relative relocation | |
2232 | for GOTPCREL relocations aganst local absolute symbol. Pass sec | |
2233 | to GENERATE_DYNAMIC_RELOCATION_P. | |
2234 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): No dynamic relocation | |
2235 | against non-preemptible absolute symbol. | |
2236 | (_bfd_elf_x86_valid_reloc_p): New function. | |
2237 | (_bfd_x86_elf_size_dynamic_sections): No dynamic relocation for | |
2238 | GOT_ABS GOT slot. | |
2239 | * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Add an SEC | |
2240 | argument. Don't generate dynamic relocation against | |
2241 | non-preemptible absolute symbol. | |
2242 | (ABS_SYMBOL_P): New. | |
2243 | (GENERATE_RELATIVE_RELOC_P): Don't generate relative relocation | |
2244 | against non-preemptible absolute symbol. | |
2245 | (GOT_ABS): New. | |
2246 | (R_X86_64_converted_reloc_bit): New. Moved from elf64-x86-64.c. | |
2247 | (_bfd_elf_x86_valid_reloc_p): New. | |
2248 | ||
a7618269 TC |
2249 | 2020-04-01 Tamar Christina <tamar.christina@arm.com> |
2250 | ||
2251 | PR ld/16017 | |
2252 | * elf32-arm.c (elf32_arm_populate_plt_entry): Set LSB of the PLT0 | |
2253 | address in the GOT if in thumb only mode. | |
2254 | ||
15ccbdd7 TC |
2255 | 2020-04-01 Tamar Christina <tamar.christina@arm.com> |
2256 | ||
2257 | * elf32-arm.c (elf32_thumb2_plt_entry): Fix PC-rel offset. | |
2258 | ||
7b948a25 HPN |
2259 | 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com> |
2260 | ||
2261 | * mmo.c (mmo_scan): Create .text section only when needed, not | |
2262 | from the start. | |
2263 | ||
89b599df AM |
2264 | 2020-03-31 Alan Modra <amodra@gmail.com> |
2265 | ||
2266 | * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Correct bfd_bread | |
2267 | return value check. | |
2268 | ||
81699544 AM |
2269 | 2020-03-31 Alan Modra <amodra@gmail.com> |
2270 | ||
2271 | * vms-alpha.c (image_write): Check bounds for sections without | |
2272 | contents too. Error on non-zero write to section without | |
2273 | contents. | |
2274 | (_bfd_vms_slurp_etir): Check return of image_write* functions. | |
2275 | ||
b3b360de AM |
2276 | 2020-03-31 Alan Modra <amodra@gmail.com> |
2277 | ||
2278 | * tekhex.c (pass_over): Check is_eof before reading buffer. | |
2279 | ||
00386881 NC |
2280 | 2020-03-30 Nick Clifton <nickc@redhat.com> |
2281 | ||
2282 | PR binutils/pr25662 | |
2283 | * libcoff-in.h (struct pe_tdata): Rename the insert_timestamp | |
2284 | field to timestamp and make it an integer. | |
2285 | * libcoff.h: Regenerate. | |
2286 | * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Test the timestamp | |
2287 | field in the pe_data structure rather than the insert_timestamp | |
2288 | field. | |
2289 | ||
988b7300 AM |
2290 | 2020-03-30 Alan Modra <amodra@gmail.com> |
2291 | ||
2292 | PR 25745 | |
2293 | * elf64-ppc.c (ppc64_elf_build_stubs): Use asprintf to form | |
2294 | statistics message. | |
2295 | ||
aa49fc22 NC |
2296 | 2020-03-26 Nick Clifton <nickc@redhat.com> |
2297 | ||
2298 | * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): Delete. | |
2299 | * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Remove | |
2300 | prototype. | |
2301 | * libbfd.h: Regenerate. | |
2302 | ||
ff768510 AM |
2303 | 2020-03-26 Alan Modra <amodra@gmail.com> |
2304 | ||
2305 | * i386msdos.c (msdos_object_p): Catch -1 return from bfd_bread. | |
2306 | ||
f75fbe8a AM |
2307 | 2020-03-26 Alan Modra <amodra@gmail.com> |
2308 | ||
2309 | * vms-alpha.c (dst_define_location): Limit size of dst_ptr_offsets | |
2310 | array. | |
2311 | (_bfd_vms_slurp_object_records): Rename "err" to "ok". | |
2312 | ||
aac88046 NC |
2313 | 2020-03-25 Nick Clifton <nickc@redhat.com> |
2314 | ||
2315 | * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): New | |
2316 | function. | |
2317 | * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Prototype. | |
2318 | * libbfd.h: Regenerate. | |
2319 | ||
cf2611fe SV |
2320 | 2020-03-25 Shahab Vahedi <shahab@synopsys.com> |
2321 | ||
2322 | * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the | |
2323 | correct field name in the output string. | |
2324 | ||
d16e3d2e AM |
2325 | 2020-03-25 Alan Modra <amodra@gmail.com> |
2326 | ||
2327 | PR 25662 | |
2328 | * elf.c (assign_file_positions_for_load_sections): Adjust offset | |
2329 | for SHT_NOBITS section if first in segment. | |
2330 | ||
1081065c L |
2331 | 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> |
2332 | ||
2333 | PR binutils/25708 | |
2334 | * elf-bfd.h (_bfd_elf_get_symbol_version_name): Renamed to ... | |
2335 | (_bfd_elf_get_symbol_version_string): This. | |
2336 | * elf.c (_bfd_elf_get_symbol_version_name): Renamed to ... | |
2337 | (_bfd_elf_get_symbol_version_string): This. | |
2338 | (bfd_elf_print_symbol): Pass TRUE to | |
2339 | _bfd_elf_get_symbol_version_string. | |
2340 | * libbfd-in.h (_bfd_nosymbols_get_symbol_version_string): Add a | |
2341 | bfd_boolean argument. | |
2342 | * syms.c (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
2343 | * targets.c (_bfd_get_symbol_version_string): Likewise. | |
2344 | (bfd_get_symbol_version_string): Likewise. | |
2345 | * bfd-in2.h: Regenerated. | |
2346 | ||
0b8448af | 2347 | 2020-03-24 Nick Clifton <nickc@redhat.com> |
e11cd7c4 | 2348 | Jaydeep Chauhan <jaydeepchauhan1494@gmail.com> |
0b8448af NC |
2349 | |
2350 | PR 25713 | |
2351 | * bfdio.c (_bfd_real_fopen): Add code to handle long filenames on | |
2352 | Win32 systems. | |
2353 | ||
ec2e748a NC |
2354 | 2020-03-24 Nick Clifton <nickc@redhat.com> |
2355 | ||
2356 | PR 25681 | |
2357 | * elf.c (_bfd_elf_map_sections_to_segments): When looking for a | |
2358 | segment to use for PT_GNU_RELRO, ignore empty sections in a | |
2359 | segment's current list. | |
2360 | ||
cda7e560 L |
2361 | 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> |
2362 | ||
2363 | PR binutils/25717 | |
2364 | * elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int. | |
2365 | ||
7e6e972f L |
2366 | 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> |
2367 | ||
2368 | PR binutils/25708 | |
2369 | * elf-bfd.h (_bfd_elf_get_symbol_version_name): New. | |
2370 | * elf.c (_bfd_elf_get_symbol_version_name): New function. Based | |
2371 | on the previous _bfd_elf_get_symbol_version_string. | |
2372 | (_bfd_elf_get_symbol_version_string): Use it. | |
2373 | ||
65109548 AM |
2374 | 2020-03-24 Alan Modra <amodra@gmail.com> |
2375 | ||
2376 | * archive.c (_bfd_generic_read_ar_hdr_mag): Sanity check extended | |
2377 | name size. Use bfd_malloc rather than bfd_zmalloc, clearing just | |
2378 | struct areltdata. | |
2379 | ||
fdde2fb6 SH |
2380 | 2020-03-23 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2381 | ||
2382 | * elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment. | |
2383 | ||
cf28cfef AM |
2384 | 2020-03-23 Alan Modra <amodra@gmail.com> |
2385 | ||
2386 | * ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and | |
2387 | symbol count. Allocate an extra byte to ensure name strings | |
2388 | are terminated. Sanity check name offsets. Release memory on | |
2389 | error return. | |
2390 | ||
5e737279 AM |
2391 | 2020-03-23 Alan Modra <amodra@gmail.com> |
2392 | ||
2393 | * i386msdos.c (msdos_object_p): Don't access e_lfanew when that | |
2394 | field hasn't been read. Remove unnecessary casts. | |
2395 | ||
c15a8f17 AM |
2396 | 2020-03-22 Alan Modra <amodra@gmail.com> |
2397 | ||
2398 | * coff64-rs6000.c (xcoff64_slurp_armap): Ensure size is large | |
2399 | enough to read number of symbols. | |
2400 | ||
3d98c460 L |
2401 | 2020-03-20 H.J. Lu <hongjiu.lu@intel.com> |
2402 | ||
2403 | * configure.ac (HAVE_EXECUTABLE_SUFFIX): Removed. | |
2404 | (EXECUTABLE_SUFFIX): Likewise. | |
2405 | * config.in: Regenerated. | |
2406 | * configure: Likewise. | |
2407 | * plugin.c (bfd_plugin_close_and_cleanup): Defined as | |
2408 | _bfd_generic_close_and_cleanup. | |
2409 | (plugin_list_entry): Remove resolution_file, resolution_option, | |
2410 | real_bfd, real_nsyms, real_syms, lto_nsyms, lto_syms, gcc, | |
2411 | lto_wrapper, gcc_env and initialized, | |
2412 | (need_lto_wrapper_p): Removed. | |
2413 | (get_lto_wrapper): Likewise. | |
2414 | (setup_lto_wrapper_env): Likewise. | |
2415 | (register_all_symbols_read): Likewise. | |
2416 | (egister_cleanup): Likewise. | |
2417 | (get_symbols): Likewise. | |
2418 | (add_input_file): Likewise. | |
2419 | (bfd_plugin_set_program_name): Remove need_lto_wrapper. | |
2420 | (add_symbols): Updated. | |
2421 | (try_claim): Likewise. | |
2422 | (try_load_plugin): Likewise. | |
2423 | (bfd_plugin_canonicalize_symtab): Likewise. | |
2424 | * plugin.h (bfd_plugin_set_program_name): Remove int argument. | |
2425 | (plugin_data_struct): Remove real_bfd, real_nsyms and real_syms. | |
2426 | ||
c3a1714c L |
2427 | 2020-03-19 H.J. Lu <hongjiu.lu@intel.com> |
2428 | ||
2429 | PR binutils/25640 | |
2430 | * plugin.c (plugin_list_entry): Add has_symbol_type. | |
2431 | (add_symbols_v2): New function. | |
2432 | (bfd_plugin_open_input): Don't invoke LTO wrapper if LTO plugin | |
2433 | provides symbol type. | |
2434 | (try_load_plugin): Add LDPT_ADD_SYMBOLS_V2. | |
2435 | (bfd_plugin_canonicalize_symtab): Use LTO plugin symbol type if | |
2436 | available. | |
2437 | ||
67338173 AM |
2438 | 2020-03-20 Alan Modra <amodra@gmail.com> |
2439 | ||
2440 | * coff-rs6000.c (_bfd_xcoff_slurp_armap): Ensure size is large | |
2441 | enough to read number of symbols. | |
2442 | ||
a859124d AM |
2443 | 2020-03-20 Alan Modra <amodra@gmail.com> |
2444 | ||
2445 | * elf.c (_bfd_elf_setup_sections): Don't test known non-NULL | |
2446 | backend functions for NULL before calling. | |
2447 | (copy_special_section_fields, _bfd_elf_copy_private_bfd_data), | |
2448 | (bfd_section_from_shdr, assign_section_numbers): Likewise. | |
2449 | * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): Likewise. | |
2450 | * elfnn-ia64.c (ignore_errors): New function. | |
2451 | (elf_backend_link_order_error_handler): Redefine as ignore_errors. | |
2452 | ||
f3a08f77 NC |
2453 | 2020-03-19 Nick Clifton <nickc@redhat.com> |
2454 | ||
2455 | PR 25676 | |
2456 | * dwarf2.c (struct varinfo): Add unit_offset field to record the | |
2457 | location of the varinfo in the unit's debug info data. Change the | |
2458 | type of the stack field to a boolean. | |
2459 | (lookup_var_by_offset): New function. Returns the varinfo | |
2460 | structure for the variable described at the given offset in the | |
2461 | unit's debug info. | |
2462 | (scan_unit_for_symbols): Add support for variables which have the | |
2463 | DW_AT_specification attribute. | |
2464 | ||
6a541707 NC |
2465 | 2020-03-19 Nick Clifton <nickc@redhat.com> |
2466 | ||
2467 | PR 25699 | |
2468 | * elf.c (bfd_elf_set_group_contents): Replace assertion with an | |
2469 | error return. | |
2470 | ||
effc14f5 SH |
2471 | 2020-03-19 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2472 | ||
2473 | * elfxx-riscv.c (riscv_parse_subset): Don't use C99. | |
2474 | ||
ac4bf06c NC |
2475 | 2020-03-18 Nick Clifton <nickc@redhat.com> |
2476 | ||
2477 | PR 25673 | |
2478 | * elf.c (_bfd_elf_write_secondary_reloc_section): Fix illegal | |
2479 | memory access when processing a corrupt secondary reloc section. | |
2480 | ||
53215f21 CL |
2481 | 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org> |
2482 | ||
2483 | * elf32-arm.c (arm_build_one_stub): Emit a fatal error message | |
2484 | instead of calling abort. | |
2485 | * elf32-csky.c (csky_build_one_stub): Likewise. | |
2486 | * elf32-hppa.c (hppa_build_one_stub): Likewise. | |
2487 | * elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise. | |
2488 | * elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise. | |
2489 | * elf32-metag.c (metag_build_one_stub): Likewise. | |
2490 | * elf32-nios2.c (nios2_build_one_stub): Likewise. | |
2491 | * elf64-ppc.c (ppc_build_one_stub): Likewise. | |
2492 | (ppc_size_one_stub): Likewise. | |
2493 | * elfnn-aarch64.c (aarch64_build_one_stub): Likewise. | |
2494 | ||
327ef784 NC |
2495 | 2020-03-17 Nick Clifton <nickc@redhat.com> |
2496 | ||
d3c3c542 | 2497 | PR 25688 |
327ef784 NC |
2498 | * elf.c (_bfd_elf_copy_special_section_fields): Replace assertions |
2499 | with error messages. | |
2500 | ||
ecbbbdba NC |
2501 | 2020-03-17 Nick Clifton <nickc@redhat.com> |
2502 | ||
2503 | PR 25687 | |
2504 | * elf.c (_bfd_elf_slurp_secondary_reloc_section): Remove redundant | |
2505 | free. Add free on another failure path. | |
2506 | ||
4b3ecb3b AM |
2507 | 2020-03-16 Alan Modra <amodra@gmail.com> |
2508 | ||
2509 | PR 25675 | |
2510 | * elf.c (elf_sort_segments): Don't call bfd_octets_per_byte unless | |
2511 | we have a non-zero section count. Do lma comparison in octets. | |
2512 | ||
7bac4137 AM |
2513 | 2020-03-16 Alan Modra <amodra@gmail.com> |
2514 | ||
2515 | * vms-alpha.c (dst_restore_location): Validate index into | |
2516 | dst_ptr_offsets array before accessing. Return status. | |
2517 | (dst_retrieve_location): Similarly, making "loc" parameter a | |
2518 | pointer to return value. | |
2519 | (_bfd_vms_slurp_etir): Update calls to above functions. | |
2520 | ||
8b5d0a4f KR |
2521 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
2522 | ||
2523 | * configure.ac: Include netbsd-core.lo for all NetBSD arm and mips | |
2524 | targets. | |
2525 | * configure: Regenerated. | |
2526 | ||
48e81d7f AM |
2527 | 2020-03-14 Alan Modra <amodra@gmail.com> |
2528 | ||
2529 | * section.c (BFD_FAKE_SECTIONS): Formatting. | |
2530 | * bfd-in2.h: Regenerate. | |
2531 | ||
06d949ec KR |
2532 | 2020-03-13 Kamil Rytarowski <n54@gmx.com> |
2533 | ||
2534 | * elf.c (elfcore_grok_netbsd_note): Add support for | |
2535 | NT_NETBSDCORE_LWPSTATUS notes. | |
2536 | ||
abf874aa CL |
2537 | 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org> |
2538 | ||
2539 | * bfd-in2.h: Regenerate. | |
2540 | * section.c (asection): Add already_assigned field. | |
2541 | (BFD_FAKE_SECTION): Add default initializer for it. | |
2542 | * ecoff.c (bfd_debug_section): Initialize already_assigned field. | |
2543 | * elf32-arm.c (arm_build_one_stub): Add support for | |
2544 | non_contiguous_regions. | |
2545 | * elf32-csky.c (csky_build_one_stub): Likewise. | |
2546 | * elf32-hppa.c (hppa_build_one_stub): Likewise. | |
2547 | * elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise. | |
2548 | * elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise. | |
2549 | * elf32-metag.c (metag_build_one_stub): Likewise. | |
2550 | * elf32-nios2.c (nios2_build_one_stub): Likewise. | |
2551 | * elf64-ppc.c (ppc_build_one_stub): Likewise. | |
2552 | (ppc_size_one_stub): Likewise. | |
2553 | * elfnn-aarch64.c (aarch64_build_one_stub): Likewise. | |
2554 | * elflink.c (elf_link_input_bfd): Likewise. | |
2555 | ||
74e10d17 L |
2556 | 2020-03-13 H.J. Lu <hongjiu.lu@intel.com> |
2557 | ||
2558 | PR ld/24920 | |
2559 | * elf-linker-x86.h (elf_linker_x86_params): Add | |
2560 | static_before_all_inputs and has_dynamic_linker. | |
2561 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report | |
2562 | dynamic input objects if -static is passed at command-line | |
2563 | before all input files without --dynamic-linker unless | |
2564 | --no-dynamic-linker is used. | |
2565 | ||
015ec493 KR |
2566 | 2020-03-13 Kamil Rytarowski <n54@gmx.com> |
2567 | ||
2568 | * elf.c (elfcore_grok_netbsd_note): Add support for aarch64. | |
2569 | ||
66631823 CE |
2570 | 2020-03-13 Christian Eggers <ceggers@gmx.de> |
2571 | ||
2572 | * bfd.c (bfd_record_phdr): New local "opb". Fix assignment of | |
2573 | "p_paddr" from "at". | |
2574 | * elfcode.h (bfd_from_remote_memory): Add units to several | |
2575 | parameters. New local "opb". Fix usage of p_align. Fix | |
2576 | calculation of "localbase" from "ehdr_vma" and "p_vaddr". Fix | |
2577 | call of target_read_memory. | |
2578 | * elflink.c (elf_fixup_link_order): Fix scope of "s" local. Fix | |
2579 | calculation of "offset" and "output_offset". | |
2580 | (bfd_elf_final_link): New local "opb". Fix calculation of "size" | |
2581 | from "offset" and fix calculation of "end" from "vma+size". Fix | |
2582 | comparison between "sh_addr" and "vma"/"output_offset". | |
2583 | (bfd_elf_discard_info): Fix calculation of "eh_alignment". | |
2584 | * elf-bfd.h (struct elf_link_hash_table): Add unit to tls_size | |
2585 | member. | |
2586 | * elf.c (_bfd_elf_map_sections_to_segments): Add unit (bytes/ | |
2587 | octets) to "wrap_to2 and "phdr_size" locals. Fix calculation of | |
2588 | "wrap_to" value. Add unit (bytes) to phdr_lma variable. Fix | |
2589 | assignment of p_paddr from phdr_lma. Fix comparison between | |
2590 | "lma+size" and "next->lma". | |
2591 | (elf_sort_segments): Fix assignment from p_paddr to lma. | |
2592 | (assign_file_positions_for_load_sections): Add unit (bytes) to | |
2593 | local "align". Fix calculation of local "off_adjust". Fix | |
2594 | calculation of local "filehdr_vaddr". | |
2595 | (assign_file_positions_for_non_load_sections): New local "opb". | |
2596 | Fix calculation of "end" from "p_size". Fix comparison between | |
2597 | "vma+SECTION_SIZE" and "start". Fix calculation of "p_memsz" | |
2598 | from "end" and "p_vaddr". | |
2599 | (rewrite_elf_program_header): Fix comparison between p_vaddr and | |
2600 | vma. Fix assignment to p_paddr from lma. Fix comparison between | |
2601 | p_paddr and lma. Fix assignment to p_paddr from lma. | |
2602 | * merge.c (sec_merge_emit): New local "opb". Convert | |
2603 | "alignment_power" to octets. | |
2604 | (_bfd_add_merge_section): New locals "alignment_power" and | |
2605 | "opb". Fix comparison between "alignment_power" and | |
2606 | "sizeof(align)". | |
2607 | (_bfd_merge_sections): New local "opb". Divide size by opb | |
2608 | before checking align mask. | |
2609 | ||
502794d4 CE |
2610 | 2020-03-13 Christian Eggers <ceggers@gmx.de> |
2611 | ||
2612 | * elf.c (_bfd_elf_make_section_from_shdr): Introduce new temp | |
2613 | opb. Divide Elf_Internal_Shdr::sh_addr by opb when setting | |
2614 | section LMA/VMA. | |
2615 | (_bfd_elf_make_section_from_phdr): Similarly. | |
2616 | (elf_fake_sections): Fix calculation of | |
2617 | Elf_Internal_shdr::sh_addr from section VMA. | |
2618 | (_bfd_elf_map_sections_to_segments): Fix mixup between octets | |
2619 | and bytes. | |
2620 | (assign_file_positions_for_load_sections): Fix calculations of | |
2621 | Elf_Internal_shdr::p_vaddr and p_paddr from section LMA/VMA. Fix | |
2622 | comparison between program header address and section LMA. | |
2623 | (assign_file_positions_for_non_load_sections): Likewise. | |
2624 | (rewrite_elf_program_header): Likewise. Introduce new temp opb. | |
2625 | (IS_CONTAINED_BY_VMA): Add parameter opb. | |
2626 | (IS_CONTAINED_BY_LMA,IS_SECTION_IN_INPUT_SEGMENT, | |
2627 | INCLUDE_SECTION_IN_SEGMENT): Likewise. | |
2628 | (copy_elf_program_header): Update call to ELF_SECTION_IN_SEGMENT. | |
2629 | Fix calculations of p_addr_valid and p_vaddr_offset. | |
2630 | * elflink.c (elf_link_add_object_symbols): Multiply section VMA | |
2631 | with octets per byte when comparing against p_vaddr. | |
2632 | ||
8248d21a AM |
2633 | 2020-03-11 Alan Modra <amodra@gmail.com> |
2634 | ||
2635 | * som.c (setup_sections): Sanity check subspace.name. | |
2636 | ||
435edf0b AM |
2637 | 2020-03-11 Alan Modra <amodra@gmail.com> |
2638 | ||
2639 | * elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop. | |
2640 | ||
6b5e16ff AM |
2641 | 2020-03-10 Alan Modra <amodra@gmail.com> |
2642 | ||
2643 | PR 25648 | |
2644 | * ihex.c (ihex_write_object_contents): Don't assume ordering of | |
2645 | addresses here. | |
2646 | ||
2f57795b AM |
2647 | 2020-03-09 Alan Modra <amodra@gmail.com> |
2648 | ||
2649 | * wasm-module.c (wasm_scan): Sanity check file name length | |
2650 | before allocating memory. Move common section setup code. Do | |
2651 | without bfd_tell to calculate section size. | |
2652 | ||
a0dcf297 NC |
2653 | 2020-03-06 Nick Clifton <nickc@redhat.com> |
2654 | ||
2655 | * elf.c (_bfd_elf_set_section_contents): Replace call to abort | |
2656 | with error messages and failure return values. | |
2657 | ||
e15a8da9 MF |
2658 | 2020-03-05 Max Filippov <jcmvbkbc@gmail.com> |
2659 | ||
2660 | * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic | |
2661 | relocation sections for any removed reference to a dynamic symbol. | |
2662 | ||
a8e14f4c NC |
2663 | 2020-03-05 Nick Clifton <nickc@redhat.com> |
2664 | ||
2665 | * elf-bfd.h (struct elf_backend_data): Add new fields: | |
2666 | init_secondary_reloc_section, slurp_secondary_reloc_section, | |
2667 | write_secondary_reloc_section. | |
2668 | (_bfd_elf_init_secondary_reloc_section): Prototype. | |
2669 | (_bfd_elf_slurp_secondary_reloc_section): Prototype. | |
2670 | (_bfd_elf_write_secondary_reloc_section): Prototype. | |
2671 | * elf.c ( bfd_section_from_shdr): Invoke the new | |
2672 | init_secondary_reloc_section backend function, if defined, when a | |
2673 | second reloc section is encountered. | |
2674 | (swap_out_syms): Invoke the new symbol_section_index function, if | |
2675 | defined, when computing the section index of an OS/PROC specific | |
2676 | symbol. | |
2677 | (_bfd_elf_init_secondary_reloc_section): New function. | |
2678 | (_bfd_elf_slurp_secondary_reloc_section): New function. | |
2679 | (_bfd_elf_write_secondary_reloc_section): New function. | |
2680 | (_bfd_elf_copy_special_section_fields): New function. | |
2681 | * elfcode.h (elf_write_relocs): Invoke the new | |
2682 | write_secondary_relocs function, if defined, in order to emit | |
2683 | secondary relocs. | |
2684 | (elf_slurp_reloc_table): Invoke the new slurp_secondary_relocs | |
2685 | function, if defined, in order to read in secondary relocs. | |
2686 | * elfxx-target.h (elf_backend_copy_special_section_fields): | |
2687 | Provide a non-NULL default definition. | |
2688 | (elf_backend_init_secondary_reloc_section): Likewise. | |
2689 | (elf_backend_slurp_secondary_reloc_section): Likewise. | |
2690 | (elf_backend_write_secondary_reloc_section): Likewise. | |
2691 | (struct elf_backend_data elfNN_bed): Add initialisers for the new | |
2692 | fields. | |
2693 | * configure.ac (score_elf32_[bl]e_vec): Add elf64.lo | |
2694 | * configure: Regenerate. | |
2695 | ||
6f8f95b4 AM |
2696 | 2020-03-05 Alan Modra <amodra@gmail.com> |
2697 | ||
2698 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Check parsed_size | |
2699 | against file size before allocating memory. Use bfd_alloc rather | |
2700 | than bfd_zalloc for carsym/strings memory. | |
2701 | ||
233bf4f8 AM |
2702 | 2020-03-04 Alan Modra <amodra@gmail.com> |
2703 | ||
2704 | * elf.c (elf_fake_sections): Ensure sh_addralign is such that | |
2705 | sh_addr mod sh_addalign is zero. | |
2706 | ||
1039fd9a AM |
2707 | 2020-03-04 Alan Modra <amodra@gmail.com> |
2708 | ||
2709 | * format.c (bfd_check_format_matches): Call cleanup on error exit. | |
2710 | ||
f5714099 AM |
2711 | 2020-03-03 Alan Modra <amodra@gmail.com> |
2712 | ||
2713 | * format.c (struct bfd_preserve): Add cleanup field. | |
2714 | (bfd_preserve_save): Add cleanup param and save. | |
2715 | (bfd_preserve_restore): Return cleanup. | |
2716 | (bfd_preserve_finish): Call the cleanup for the discarded match. | |
2717 | (bfd_check_format_matches): Pass cleanup to bfd_preserve_save, | |
2718 | and clear when preserving a match. Restore cleanup too when | |
2719 | restoring that match. | |
2720 | ||
40b35c78 AM |
2721 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2722 | ||
2723 | * cisco-core.c (cisco_core_file_p): Return bfd_cleanup. | |
2724 | * hpux-core.c (hpux_core_core_file_p): Update prototype. | |
2725 | * sco5-core.c (sco5_core_file_p): Return bfd_cleanup. | |
2726 | (core_sco5_vec): Correct initialisers. | |
2727 | ||
601b73d5 AM |
2728 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2729 | ||
2730 | * aix386-core.c (aix386_core_file_p): Return bfd_cleanup. | |
2731 | * aix5ppc-core.c (xcoff64_core_p): Likewise. | |
2732 | * cisco-core.c (cisco_core_file_validate): Likewise. | |
2733 | * hppabsd-core.c (hppabsd_core_core_file_p): Likewise. | |
2734 | * hpux-core.c (hpux_core_core_file_p): Likewise. | |
2735 | * irix-core.c (irix_core_core_file_p): Likewise. | |
2736 | * lynx-core.c (lynx_core_file_p): Likewise. | |
2737 | * netbsd-core.c (netbsd_core_file_p): Likewise. | |
2738 | * osf-core.c (osf_core_core_file_p): Likewise. | |
2739 | * ptrace-core.c (ptrace_unix_core_file_p): Likewise. | |
2740 | * sco5-core.c (sco5_core_file_p): Likewise. | |
2741 | ||
728d32c4 L |
2742 | 2020-03-02 H.J. Lu <hongjiu.lu@intel.com> |
2743 | ||
2744 | * trad-core.c (trad_unix_core_file_p): Return bfd_cleanup. | |
2745 | ||
cb001c0d AM |
2746 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2747 | ||
2748 | * targets.c (bfd_cleanup): New typedef. | |
2749 | (struct bfd <_bfd_check_format>): Return a bfd_cleanup. | |
2750 | * libbfd-in.h (_bfd_no_cleanup): Define. | |
2751 | * format.c (bfd_reinit): Add cleanup parameter, call it. | |
2752 | (bfd_check_format_matches): Set cleanup from _bfd_check_format | |
2753 | call and pass to bfd_reinit. Delete temp, use abfd->xvec instead. | |
2754 | * aout-target.h (callback, object_p): Return bfd_cleanup. | |
2755 | * aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise. | |
2756 | * archive.c (bfd_generic_archive_p): Likewise. | |
2757 | * binary.c (binary_object_p): Likewise. | |
2758 | * coff-alpha.c (alpha_ecoff_object_p): Likewise. | |
2759 | * coff-ia64.c (ia64coff_object_p): Likewise. | |
2760 | * coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise. | |
2761 | * coff-sh.c (coff_small_object_p): Likewise. | |
2762 | * coff-stgo32.c (go32_check_format): Likewise. | |
2763 | * coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p), | |
2764 | (xcoff64_core_p): Likewise. | |
2765 | * coffgen.c (coff_real_object_p, coff_object_p): Likewise. | |
2766 | * elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p), | |
2767 | (bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise. | |
2768 | * elfcode.h (elf_object_p): Likewise. | |
2769 | * elfcore.h (elf_core_file_p): Likewise. | |
2770 | * i386msdos.c (msdos_object_p): Likewise. | |
2771 | * ihex.c (ihex_object_p): Likewise. | |
2772 | * libaout.h (some_aout_object_p): Likewise. | |
2773 | * libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target), | |
2774 | (_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise. | |
2775 | * libbfd.c (_bfd_dummy_target): Likewise. | |
2776 | * libcoff-in.h (coff_object_p): Likewise. | |
2777 | * mach-o-aarch64.c (bfd_mach_o_arm64_object_p), | |
2778 | (bfd_mach_o_arm64_core_p): Likewise. | |
2779 | * mach-o-arm.c (bfd_mach_o_arm_object_p), | |
2780 | (bfd_mach_o_arm_core_p): Likewise. | |
2781 | * mach-o-i386.c (bfd_mach_o_i386_object_p), | |
2782 | (bfd_mach_o_i386_core_p): Likewise. | |
2783 | * mach-o-x86-64.c (bfd_mach_o_x86_64_object_p), | |
2784 | (bfd_mach_o_x86_64_core_p): Likewise. | |
2785 | * mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p), | |
2786 | (bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise. | |
2787 | * mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p), | |
2788 | (bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise. | |
2789 | * mmo.c (mmo_object_p): Likewise. | |
2790 | * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise. | |
2791 | * peicode.h (coff_real_object_p, pe_ILF_object_p), | |
2792 | (pe_bfd_object_p): Likewise. | |
2793 | * plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise. | |
2794 | * ppcboot.c (ppcboot_object_p): Likewise. | |
2795 | * rs6000-core.c (rs6000coff_core_p): Likewise. | |
2796 | * som.c (som_object_setup, som_object_p): Likewise. | |
2797 | * srec.c (srec_object_p, symbolsrec_object_p): Likewise. | |
2798 | * tekhex.c (tekhex_object_p): Likewise. | |
2799 | * vms-alpha.c (alpha_vms_object_p): Likewise. | |
2800 | * vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p), | |
2801 | (_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise. | |
2802 | * wasm-module.c (wasm_object_p): Likewise. | |
2803 | * xsym.c (bfd_sym_object_p): Likewise. | |
2804 | * xsym.h (bfd_sym_object_p): Likewise. | |
2805 | * aoutx.h (some_aout_object_p): Likewise, and callback parameter | |
2806 | return type. | |
2807 | * pdp11.c (some_aout_object_p): Likewise. | |
2808 | * plugin.c (register_ld_plugin_object_p): Update object_p | |
2809 | parameter type. | |
2810 | * plugin.h (register_ld_plugin_object_p): Likewise. | |
2811 | * bfd-in2.h: Regenerate. | |
2812 | * libbfd.h: Regenerate. | |
2813 | * libcoff.h: Regenerate. | |
2814 | ||
a4dd6c97 AM |
2815 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2816 | ||
2817 | * coff-alpha.c (alpha_ecoff_le_vec): Add SEC_SMALL_DATA to | |
2818 | applicable section flags. | |
2819 | * coff-mips.c (mips_ecoff_le_vec, mips_ecoff_be_vec): Likewise. | |
2820 | (mips_ecoff_bele_vec): Likewise. | |
2821 | * coffcode.h (sec_to_styp_flags): Set SEC_SMALL_DATA for .sdata | |
2822 | and .sbss sections. | |
2823 | * ecoff.c (_bfd_ecoff_new_section_hook): Likewise. | |
2824 | (_bfd_ecoff_styp_to_sec_flags): Likewise. | |
2825 | ||
bf577467 AM |
2826 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2827 | ||
2828 | * elf32-m32r.c (m32r_elf_section_flags): New function. | |
2829 | (elf_backend_section_flags): Define. | |
2830 | * elf32-nds32.c (nds32_elf_section_flags): New function. | |
2831 | (elf_backend_section_flags): Define. | |
2832 | * elf32-ppc.c (ppc_elf_section_from_shdr): Set SEC_SMALL_DATA for | |
2833 | .sbss and .sdata sections. | |
2834 | * elf32-v850.c (v850_elf_section_from_shdr): Set SEC_SMALL_DATA | |
2835 | for SHF_V850_GPREL sections. | |
2836 | * elf64-alpha.c (elf64_alpha_section_from_shdr): Delete outdated | |
2837 | FIXME. | |
2838 | * elf64-hppa.c (elf64_hppa_section_from_shdr): Set SEC_SMALL_DATA | |
2839 | for SHF_PARISC_SHORT sections. | |
2840 | * elf64-ppc.c (ppc64_elf_section_flags): New function. | |
2841 | (elf_backend_section_flags): Define. | |
2842 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Set SEC_SMALL_DATA | |
2843 | for SHF_MIPS_GPREL sections. Delete FIXME. | |
2844 | ||
8c803a2d AM |
2845 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2846 | ||
2847 | * elf-bfd.h (elf_backend_section_flags): Remove flagword* param. | |
2848 | * elf.c (_bfd_elf_make_section_from_shdr): Set section flags before | |
2849 | calling elf_backend_section_flags with adjusted params. Use | |
2850 | newsect->flags past that point. | |
2851 | (_bfd_elf_new_section_hook): Always set sh_type and sh_flags for | |
2852 | special sections. | |
2853 | (_bfd_elf_init_private_section_data): Allow normal sh_type sections | |
2854 | to have their type overridden, and all sh_flags but processor and | |
2855 | os specific. | |
2856 | * elf32-arm.c (elf32_arm_section_flags): Adjust for changed params. | |
2857 | * elf32-mep.c (mep_elf_section_flags): Likewise. | |
2858 | * elf32-nios2.c (nios2_elf32_section_flags): Likewise. | |
2859 | * elf64-alpha.c (elf64_alpha_section_flags): Likewise. | |
2860 | * elf64-ia64-vms.c (elf64_ia64_section_flags): Likewise. | |
2861 | * elfnn-ia64.c (elfNN_ia64_section_flags): Likewise. | |
2862 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Exclude the linker | |
2863 | stub BFD and non-aarch64 input files when scanning for stubs. | |
2864 | ||
7d4b2d2d AM |
2865 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2866 | ||
2867 | * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Provide an upper | |
2868 | limit to decompressed element size. | |
2869 | ||
26f60d59 AM |
2870 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2871 | ||
2872 | * vms-lib.c (vms_traverse_index): Add recur_count param and | |
2873 | update calls. Fail on excessive recursion. | |
2874 | ||
9cb56943 AM |
2875 | 2020-03-02 Alan Modra <amodra@gmail.com> |
2876 | ||
2877 | * vms-alpha.c (vms_get_remaining_object_record): Use | |
2878 | bfd_realloc_or_free rather than bfd_realloc. | |
2879 | (add_symbol_entry, vector_grow1, alpha_vms_slurp_relocs): Likewise. | |
2880 | (dst_define_location, parse_module): Likewise, and check realloc | |
2881 | return status before using memory. Return status from function | |
2882 | adjusting all callers. | |
2883 | ||
182ec670 AM |
2884 | 2020-02-28 Alan Modra <amodra@gmail.com> |
2885 | ||
2886 | * vms-lib.c (_bfd_vms_lib_archive_p): Free memory on error paths. | |
2887 | ||
1b088c82 AM |
2888 | 2020-02-28 Alan Modra <amodra@gmail.com> |
2889 | ||
2890 | * vms-alpha.c (alpha_vms_object_p): Use _bfd_malloc_and_read. | |
2891 | Remove duplicate undersize check. | |
2892 | ||
5f602802 AM |
2893 | 2020-02-27 Alan Modra <amodra@gmail.com> |
2894 | ||
2895 | PR 24511 | |
2896 | * mmo.c (mmo_scan): Set SEC_DATA for .data. | |
2897 | ||
49d9fd42 AM |
2898 | 2020-02-27 Alan Modra <amodra@gmail.com> |
2899 | ||
2900 | PR 24511 | |
2901 | * syms.c (stt): Trim off all but 'e', 'i' and 'p' entries. | |
2902 | (coff_section_type): Adjust comment. | |
2903 | (decode_section_type): Likewise. Call coff_section_type before | |
2904 | decode_section_type. | |
2905 | (bfd_decode_symclass): Use 'c' for common sections other than | |
2906 | the standard one. | |
2907 | ||
05f52dc2 AM |
2908 | 2020-02-27 Alan Modra <amodra@gmail.com> |
2909 | ||
2910 | * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Put all data in one | |
2911 | malloc'd block. | |
2912 | ||
ff69a894 AM |
2913 | 2020-02-27 Alan Modra <amodra@gmail.com> |
2914 | ||
2915 | * bfd.c (bfd_stat_arch_elt): Use vector of containing archive, | |
2916 | if file is an archive element. | |
2917 | * bfd-in2.h: Regenerate. | |
2918 | ||
02f7e7ee AM |
2919 | 2020-02-26 Alan Modra <amodra@gmail.com> |
2920 | ||
2921 | * archive.c (do_slurp_bsd_armap): Increase minimum parsed_size, and | |
2922 | bfd_set_error on failing test. Don't bother changing bfd_error on | |
2923 | file read error. Check symdef_count is multiple of BSD_SYMDEF_SIZE. | |
2924 | Check sym name is within string buffer. Use size_t for some vars. | |
2925 | (do_slurp_coff_armap): Use size_t for some variables, fix size of | |
2926 | int_buf. Don't change bfd_error on file read error. Use | |
2927 | _bfd_mul_overflow when calculating carsym buffer size. Reorder | |
2928 | calculations to catch overflows before they occur. malloc and | |
2929 | free raw armap rather than using bfd_alloc. Read raw armap before | |
2930 | allocating carsym+strings buffer. | |
2931 | (_bfd_slurp_extended_name_table): Localize variables. Check | |
2932 | name size against file size. | |
2933 | ||
cc4c4f40 AM |
2934 | 2020-02-26 Alan Modra <amodra@gmail.com> |
2935 | ||
2936 | * vms-lib.c (vms_lib_read_index): Release correct buffer. | |
2937 | ||
e0b317de AM |
2938 | 2020-02-26 Alan Modra <amodra@gmail.com> |
2939 | ||
2940 | * elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than | |
2941 | malloc. Check for NULL return from bfd_malloc. | |
2942 | (rx_table_find, rx_table_map): Likewise. | |
2943 | (rx_set_section_contents): Check bfd_alloc return. | |
2944 | (rx_dump_symtab): Don't alloc internal_syms or external_syms. | |
2945 | ||
dc1e8a47 AM |
2946 | 2020-02-26 Alan Modra <amodra@gmail.com> |
2947 | ||
2948 | * aoutx.h: Indent labels correctly. Format error strings. | |
2949 | * archive.c: Likewise. | |
2950 | * archive64.c: Likewise. | |
2951 | * coff-arm.c: Likewise. | |
2952 | * coff-rs6000.c: Likewise. | |
2953 | * coff-stgo32.c: Likewise. | |
2954 | * cpu-arm.c: Likewise. | |
2955 | * dwarf2.c: Likewise. | |
2956 | * elf-ifunc.c: Likewise. | |
2957 | * elf-properties.c: Likewise. | |
2958 | * elf-s390-common.c: Likewise. | |
2959 | * elf-strtab.c: Likewise. | |
2960 | * elf.c: Likewise. | |
2961 | * elf32-arm.c: Likewise. | |
2962 | * elf32-bfin.c: Likewise. | |
2963 | * elf32-cr16.c: Likewise. | |
2964 | * elf32-csky.c: Likewise. | |
2965 | * elf32-i386.c: Likewise. | |
2966 | * elf32-m68k.c: Likewise. | |
2967 | * elf32-msp430.c: Likewise. | |
2968 | * elf32-nds32.c: Likewise. | |
2969 | * elf32-nios2.c: Likewise. | |
2970 | * elf32-pru.c: Likewise. | |
2971 | * elf32-xtensa.c: Likewise. | |
2972 | * elf64-ia64-vms.c: Likewise. | |
2973 | * elf64-x86-64.c: Likewise. | |
2974 | * elfcode.h: Likewise. | |
2975 | * elfcore.h: Likewise. | |
2976 | * elflink.c: Likewise. | |
2977 | * elfnn-aarch64.c: Likewise. | |
2978 | * elfnn-ia64.c: Likewise. | |
2979 | * elfnn-riscv.c: Likewise. | |
2980 | * elfxx-mips.c: Likewise. | |
2981 | * elfxx-sparc.c: Likewise. | |
2982 | * elfxx-x86.c: Likewise. | |
2983 | * i386lynx.c: Likewise. | |
2984 | * merge.c: Likewise. | |
2985 | * pdp11.c: Likewise. | |
2986 | * plugin.c: Likewise. | |
2987 | * reloc.c: Likewise. | |
2988 | ||
e310298c AM |
2989 | 2020-02-26 Alan Modra <amodra@gmail.com> |
2990 | ||
2991 | PR 25593 | |
2992 | * elf-bfd.h (struct elf_link_hash_table): Rename "loaded" to | |
2993 | "dyn_loaded". | |
2994 | (bfd_elf_add_dt_needed_tag): Declare. | |
2995 | * elf-strtab.c (_bfd_elf_strtab_restore): Handle NULL buf. | |
2996 | * elflink.c (bfd_elf_add_dt_needed_tag): Make global and rename | |
2997 | from elf_add_dt_needed_tag. Remove soname and doit param. | |
2998 | (elf_link_add_object_symbols): Don't use elf_add_dt_needed_tag | |
2999 | to see whether as-needed lib is already loaded, use dyn_loaded | |
3000 | list instead. When saving and restoring around as-needed lib | |
3001 | handle possibility that dynstr has not been initialised. Don't | |
3002 | add DT_NEEDED tags here. Limit dyn_loaded list to dynamic libs. | |
3003 | Mark libs loaded via DT_NEEDED entries of other libs with | |
3004 | DYN_NO_NEEDED if they should not be mentioned in DT_NEEDED of | |
3005 | the output. | |
3006 | (elf_link_check_versioned_symbol): Remove now unneccesary | |
3007 | DYNAMIC check when traversing dyn_loaded list. | |
3008 | ||
b570b954 AM |
3009 | 2020-02-26 Alan Modra <amodra@gmail.com> |
3010 | ||
3011 | * bfdio.c (bfd_get_file_size): Ignore bogus archive element sizes. | |
3012 | ||
ecda9016 L |
3013 | 2020-02-25 H.J. Lu <hongjiu.lu@intel.com> |
3014 | ||
3015 | PR binutils/25584 | |
3016 | * plugin.c (need_lto_wrapper_p): New. | |
3017 | (bfd_plugin_set_program_name): Add an int argument to set | |
3018 | need_lto_wrapper_p. | |
3019 | (get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't | |
3020 | set. | |
3021 | * plugin.h (bfd_plugin_set_program_name): Add an int argument. | |
3022 | ||
a98c743f AM |
3023 | 2020-02-24 Alan Modra <amodra@gmail.com> |
3024 | ||
3025 | * vms-lib.c (_bfd_vms_lib_archive_p): Correct overflow checks. | |
3026 | ||
c893ce36 AM |
3027 | 2020-02-24 Alan Modra <amodra@gmail.com> |
3028 | ||
3029 | * vms-lib.c (struct carsym_mem): Add limit. | |
3030 | (vms_add_index): Heed limit. | |
3031 | (vms_traverse_index): Catch buffer overflows. Remove outdated fixme. | |
3032 | (vms_lib_read_index): Set up limit. Catch 32-bit overflow. | |
3033 | Always return actual number read. | |
3034 | (_bfd_vms_lib_archive_p): Catch buffer overflows. Replace | |
3035 | assertion with error exit. | |
3036 | ||
7b3c2715 AM |
3037 | 2020-02-22 Alan Modra <amodra@gmail.com> |
3038 | ||
3039 | PR 25585 | |
3040 | * elf.c (assign_file_positions_for_load_sections): Continue linking | |
3041 | on "PHDR segment not covered by LOAD segment" errors. | |
3042 | ||
a4425a57 AM |
3043 | 2020-02-21 Alan Modra <amodra@gmail.com> |
3044 | ||
3045 | * mach-o.c (bfd_mach_o_canonicalize_relocs): Fix ineffective | |
3046 | overflow check. | |
3047 | (bfd_mach_o_canonicalize_reloc): Likewise. | |
3048 | (bfd_mach_o_canonicalize_dynamic_reloc): Likewise. Sanity check | |
3049 | counts and offsets against file size. | |
3050 | (bfd_mach_o_build_dysymtab): Fix ineffective overflow check. | |
3051 | (bfd_mach_o_mangle_sections): Remove unnecessary overflow check. | |
3052 | (bfd_mach_o_read_symtab_symbols): Sanity check count and offset | |
3053 | against file size. Delete symbol table error message. | |
3054 | (bfd_mach_o_read_dysymtab): Sanity check counts and offsets | |
3055 | against file size. | |
3056 | (bfd_mach_o_read_symtab): Likewise. | |
3057 | (bfd_mach_o_read_command): Pass file size. | |
3058 | (bfd_mach_o_scan): Sanity check command count against file size. | |
3059 | ||
dda2980f AM |
3060 | 2020-02-21 Alan Modra <amodra@gmail.com> |
3061 | ||
3062 | PR 25569 | |
3063 | * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): Use | |
3064 | "text", "data" and "bss" section pointer vars. Don't update | |
3065 | section size, just exec header sizes. | |
3066 | (adjust_sizes_and_vmas): Don't update text section size. Set | |
3067 | initial exec header a_text. Print exec headers sizes. | |
3068 | * pdp11.c (adjust_o_magic, adjust_z_magic, adjust_n_magic), | |
3069 | (adjust_sizes_and_vmas): Similarly. Formatting. | |
3070 | (final_link): Correct final file extension. | |
3071 | ||
00e49dff NC |
3072 | 2020-02-20 Nick Clifton <nickc@redhat.com> |
3073 | ||
3074 | * elf-bfd.h (struct elf_backend_data): Add symbol_section_index | |
3075 | callback. | |
3076 | * elfxx-target.h (elf_backend_symbol_section_index): Provide | |
3077 | default definition. | |
3078 | (elfNN_bed): Initialise the symbol_section_index field. | |
3079 | * elf.c (swap_out_syms): Call symbol_section_index, if defined, on | |
3080 | OS and PROC specific section indicies. Warn if converting other | |
3081 | reserved incidies to SHN_ABS. | |
3082 | ||
fcaaac0a SB |
3083 | 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com> |
3084 | ||
3085 | PR 25537 | |
3086 | * cpu-z80.c: Add machine type compatibility checking. | |
3087 | ||
dcf06b89 L |
3088 | 2020-02-19 H.J. Lu <hongjiu.lu@intel.com> |
3089 | ||
3090 | PR binutils/25355 | |
3091 | * plugin.c (plugin_list_entry): Remove handle. | |
3092 | (try_load_plugin): Call dlclose before return. | |
3093 | ||
2c7c5554 AM |
3094 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3095 | ||
3096 | * libbfd-in.h (_bfd_constant_p): Define. | |
3097 | (_bfd_alloc_and_read, _bfd_malloc_and_read): Check read size against | |
3098 | file size before allocating memory. | |
3099 | * coffgen.c (_bfd_coff_get_external_symbols): Remove file size check. | |
3100 | * elf.c (bfd_elf_get_str_section): Likewise. | |
3101 | (_bfd_elf_slurp_version_tables): Likewise. | |
3102 | * libbfd.h: Regenerate. | |
3103 | ||
2bb3687b AM |
3104 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3105 | ||
3106 | * libbfd-in.h (_bfd_alloc_and_read, _bfd_malloc_and_read): New. | |
3107 | * aoutx.h (aout_get_external_symbols): Replace calls to | |
3108 | bfd_[m]alloc and bfd_bread with call to _bfd_[m]alloc_and_read. | |
3109 | (slurp_reloc_table): Likewise. | |
3110 | * archive.c (do_slurp_bsd_armap): Likewise. | |
3111 | (do_slurp_coff_armap): Likewise. | |
3112 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise. | |
3113 | * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise. | |
3114 | * coff64-rs6000.c (xcoff64_slurp_armap): Likewise. | |
3115 | * coffcode.h (coff_set_arch_mach_hook, buy_and_read): Likewise. | |
3116 | * coffgen.c (coff_real_object_p, coff_object_p, build_debug_section), | |
3117 | (_bfd_coff_get_external_symbols): Likewise. | |
3118 | * ecoff.c (ecoff_slurp_symbolic_header), | |
3119 | (_bfd_ecoff_slurp_symbolic_info, ecoff_slurp_reloc_table), | |
3120 | (_bfd_ecoff_slurp_armap, ecoff_link_add_object_symbols, READ), | |
3121 | (ecoff_indirect_link_order): Likewise. | |
3122 | * elf.c (bfd_elf_get_str_section, setup_group, elf_read_notes), | |
3123 | (_bfd_elf_slurp_version_tables): Likewise. | |
3124 | * elf32-m32c.c (m32c_elf_relax_section): Likewise. | |
3125 | * elf32-rl78.c (rl78_elf_relax_section): Likewise. | |
3126 | * elf32-rx.c (elf32_rx_relax_section): Likewise. | |
3127 | * elf64-alpha.c (READ): Likewise. | |
3128 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Likewise. | |
3129 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. | |
3130 | * elfcode.h (elf_slurp_symbol_table), | |
3131 | (elf_slurp_reloc_table_from_section): Likewise. | |
3132 | * elflink.c (elf_link_add_object_symbols), | |
3133 | (elf_link_check_versioned_symbol): Likewise. | |
3134 | * elfxx-mips.c (READ): Likewise. | |
3135 | * i386lynx.c (slurp_reloc_table): Likewise. | |
3136 | * lynx-core.c (lynx_core_file_p): Likewise. | |
3137 | * mach-o.c (bfd_mach_o_canonicalize_relocs), | |
3138 | (bfd_mach_o_read_symtab_strtab, bfd_mach_o_alloc_and_read), | |
3139 | (bfd_mach_o_read_prebound_dylib, bfd_mach_o_read_dyld_content | |
3140 | * pdp11.c (aout_get_external_symbols, slurp_reloc_table | |
3141 | * pef.c (bfd_pef_print_loader_section, bfd_pef_scan_start_address), | |
3142 | (bfd_pef_parse_symbols): Likewise. | |
3143 | * peicode.h (pe_ILF_object_p, pe_bfd_object_p | |
3144 | * som.c (setup_sections, som_slurp_string_table), | |
3145 | (som_slurp_reloc_table, som_bfd_count_ar_symbols), | |
3146 | (som_bfd_fill_in_ar_symbols): Likewise. | |
3147 | * vms-alpha.c (module_find_nearest_line, evax_bfd_print_dst), | |
3148 | (evax_bfd_print_image): Likewise. | |
3149 | * vms-lib.c (_bfd_vms_lib_archive_p): Likewise. | |
3150 | * wasm-module.c (wasm_scan): Likewise. | |
3151 | * xcofflink.c (xcoff_link_add_symbols): Likewise. | |
3152 | * xsym.c (bfd_sym_read_name_table), | |
3153 | (bfd_sym_print_type_information_table_entry): Likewise. | |
3154 | * libbfd.h: Regenerate. | |
3155 | ||
806470a2 AM |
3156 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3157 | ||
3158 | * aoutx.h (slurp_reloc_table): Allocate reloc_cache after | |
3159 | reading external relocs. | |
3160 | * ecoff.c (ecoff_slurp_reloc_table): Likewise. | |
3161 | * archive.c (_bfd_write_archive_contents): Don't twiddle bfd_error | |
3162 | after bfd_bread. | |
3163 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Remove unnecessary | |
3164 | bfd_release. | |
3165 | * elf32-m32c.c (m32c_offset_for_reloc): Make shndx_buf a bfd_byte*. | |
3166 | (m32c_elf_relax_section): Likewise. | |
3167 | * elf32-rl78.c (rl78_offset_for_reloc): Likewise. | |
3168 | (rl78_elf_relax_section): Likewise. | |
3169 | * elf32-rx.c (rx_offset_for_reloc): Likewise. | |
3170 | (elf32_rx_relax_section): Likewise. | |
3171 | * mach-o.c (bfd_mach_o_alloc_and_read): Move earlier with better | |
3172 | parameter types and use.. | |
3173 | (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib), | |
3174 | (bfd_mach_o_read_fvmlib, bfd_mach_o_read_str): ..in these functions. | |
3175 | * peicode.h (pe_bfd_object_p): Don't zero the part of opthdr | |
3176 | being read from file, just the extra. | |
3177 | * som.c (som_slurp_symbol_table): Allocate internal symbol buffer | |
3178 | after reading external syms. Free on failure. | |
3179 | ||
1f4361a7 AM |
3180 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3181 | ||
3182 | * coffcode.h (buy_and_read, coff_slurp_line_table), | |
3183 | (coff_slurp_symbol_table, coff_slurp_reloc_table): Replace | |
3184 | bfd_[z][m]alloc2 calls with _bfd_mul_overflow followed by the | |
3185 | corresponding bfd_alloc call. Adjust variables to suit. | |
3186 | * coffgen.c (_bfd_coff_get_external_symbols): Likewise. | |
3187 | * ecoff.c (_bfd_ecoff_slurp_symbolic_info), | |
3188 | (_bfd_ecoff_slurp_symbol_table, READ): Likewise. | |
3189 | * elf.c (bfd_elf_get_elf_syms, setup_group, bfd_section_from_shdr), | |
3190 | (swap_out_syms, _bfd_elf_slurp_version_tables): Likewise. | |
3191 | * elf32-m32c.c (m32c_elf_relax_section): Likewise. | |
3192 | * elf32-rl78.c (rl78_elf_relax_section): Likewise. | |
3193 | * elf32-rx.c (elf32_rx_relax_section): Likewise. | |
3194 | * elf64-alpha.c (READ): Likewise. | |
3195 | * elfcode.h (elf_object_p, elf_write_relocs, elf_write_shdrs_and_ehdr), | |
3196 | (elf_slurp_symbol_table, elf_slurp_reloc_table), | |
3197 | (bfd_from_remote_memory): Likewise. | |
3198 | * elfcore.h (core_find_build_id): Likewise. | |
3199 | * elfxx-mips.c (READ): Likewise. | |
3200 | * mach-o.c (bfd_mach_o_mangle_sections), | |
3201 | (bfd_mach_o_read_symtab_symbols, bfd_mach_o_read_thread), | |
3202 | (bfd_mach_o_read_dysymtab, bfd_mach_o_flatten_sections), | |
3203 | (bfd_mach_o_scan, bfd_mach_o_fat_archive_p): Likewise. | |
3204 | * som.c (setup_sections, som_prep_for_fixups) | |
3205 | (som_build_and_write_symbol_table, som_slurp_symbol_table), | |
3206 | (som_slurp_reloc_table, som_bfd_count_ar_symbols), | |
3207 | (som_bfd_fill_in_ar_symbols, som_slurp_armap), | |
3208 | (som_bfd_ar_write_symbol_stuff): Likewise. | |
3209 | * vms-alpha.c (vector_grow1): Likewise. | |
3210 | * vms-lib.c (vms_add_index): Likewise. | |
3211 | * wasm-module.c (wasm_scan_name_function_section): Likewise. | |
3212 | * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): Delete. | |
3213 | * opncls.c (bfd_alloc2, bfd_zalloc2): Delete. | |
3214 | * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2), | |
3215 | (bfd_alloc2, bfd_zalloc2): Delete. | |
3216 | (_bfd_mul_overflow): Define. | |
3217 | * libbfd.h: Regenerate. | |
3218 | ||
446f7ed5 AM |
3219 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3220 | ||
3221 | * elf.c (bfd_section_from_shdr): Use bfd_zalloc rather than | |
3222 | bfd_zalloc2. | |
3223 | (assign_section_numbers): Likewise. | |
3224 | (elf_map_symbols): Likewise, and bfd_alloc rather than bfd_alloc2. | |
3225 | (_bfd_elf_map_sections_to_segments): Use bfd_malloc rather than | |
3226 | bfd_malloc2, size_t amt, and unsigned tls_count. | |
3227 | (rewrite_elf_program_header): Use bfd_malloc and size_t amt. | |
3228 | * elflink.c (elf_create_symbuf): Use bfd_malloc. | |
3229 | (elf_output_implib): Use bfd_alloc. | |
3230 | ||
b03202e3 AM |
3231 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3232 | ||
3233 | * bfd.c (struct bfd): Move format and direction to other | |
3234 | bitfields. Add "size". | |
3235 | * bfdio.c (bfd_get_size): Cache size when not writing file. | |
3236 | * opncls.c (bfd_get_debug_link_info_1): Allow for bfd_get_size | |
3237 | returning zero, ie. unknown. | |
3238 | (bfd_get_alt_debug_link_info): Likewise. | |
3239 | * bfd-in2.h: Regenerate. | |
3240 | ||
7c5fa58e AM |
3241 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3242 | ||
3243 | * coffgen.c (_bfd_coff_get_external_symbols): Don't call | |
3244 | bfd_get_file_size twice. | |
3245 | (_bfd_coff_read_string_table): Allow for bfd_get_file_size | |
3246 | zero, ie. unknown, return. | |
3247 | * elf-attrs.c (_bfd_elf_parse_attributes): Likewise. | |
3248 | * elfcode.h (elf_swap_shdr_in): Likewise. | |
3249 | (elf_object_p): Don't call bfd_get_file_size twice and correct | |
3250 | file size check. | |
3251 | ||
96d3b80f AM |
3252 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3253 | ||
3254 | * mach-o.c (bfd_mach_o_flatten_sections): Return a bfd_boolean, | |
3255 | FALSE if memory alloc fails. Adjust calls. | |
3256 | * som.c (som_prep_for_fixups): Likewise. | |
3257 | * vms-alpha.c (alpha_vms_add_fixup_lp, alpha_vms_add_fixup_ca), | |
3258 | (alpha_vms_add_fixup_qr, alpha_vms_add_fixup_lr), | |
3259 | (alpha_vms_add_lw_reloc, alpha_vms_add_qw_reloc): Likewise. | |
3260 | * som.c (som_build_and_write_symbol_table): Return via error_return | |
3261 | on seek failure. | |
3262 | * vms-alpha.c (VEC_APPEND): Adjust for vector_grow1 changes. | |
3263 | (VEC_APPEND_EL): Delete. | |
3264 | (vector_grow1): Return pointer to element. Catch overflow. | |
3265 | Return NULL on memory allocation failure. | |
3266 | (alpha_vms_add_fixup_lp): Replace VEC_APPEND_EL with VEC_APPEND. | |
3267 | (alpha_vms_add_fixup_ca): Likewise. | |
3268 | (alpha_vms_link_add_object_symbols): Check VEC_APPEND result | |
3269 | before using. | |
3270 | * elf.c (bfd_section_from_shdr): Check bfd_zalloc2 result. | |
3271 | ||
986f0783 AM |
3272 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3273 | ||
3274 | * aix386-core.c (aix386_core_file_p): Use size_t for "amt". | |
3275 | * aout-target.h (object_p): Likewise. | |
3276 | * aout-tic30.c (tic30_aout_object_p): Likewise. | |
3277 | * aoutx.h (some_aout_object_p, mkobject, make_empty_symbol), | |
3278 | (emit_stringtab, write_syms, link_hash_table_create), | |
3279 | (aout_link_write_other_symbol): Likewise. | |
3280 | * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p), | |
3281 | (bfd_ar_hdr_from_filesystem, _bfd_write_archive_contents), | |
3282 | (_bfd_compute_and_write_armap): Likewise. | |
3283 | * archures.c (bfd_arch_list): Likewise. | |
3284 | * bfd.c (bfd_record_phdr): Likewise. | |
3285 | * binary.c (binary_canonicalize_symtab): Likewise. | |
3286 | * cisco-core.c (cisco_core_file_validate): Likewise. | |
3287 | * coff-arm.c (coff_arm_link_hash_table_create, find_thumb_glue), | |
3288 | (find_arm_glue, record_arm_to_thumb_glue), | |
3289 | (record_thumb_to_arm_glue): Likewise. | |
3290 | * coff-ppc.c (ppc_coff_link_hash_table_create, record_toc), | |
3291 | (ppc_allocate_toc_section): Likewise. | |
3292 | * coff-rs6000.c (_bfd_xcoff_mkobject, _bfd_xcoff_archive_p): Likewise. | |
3293 | * coff-sh.c (sh_relax_section): Likewise. | |
3294 | * coff64-rs6000.c (xcoff64_archive_p): Likewise. | |
3295 | * coffcode.h (handle_COMDAT, coff_new_section_hook), | |
3296 | (coff_set_alignment_hook, coff_mkobject), | |
3297 | (coff_compute_section_file_positions): Likewise. | |
3298 | * coffgen.c (coff_make_empty_symbol, coff_bfd_make_debug_symbol), | |
3299 | (coff_find_nearest_line_with_names), | |
3300 | ( bfd_coff_set_symbol_class): Likewise. | |
3301 | * cofflink.c (_bfd_coff_link_hash_table_create), | |
3302 | (_bfd_coff_link_input_bfd): Likewise. | |
3303 | * dwarf1.c (alloc_dwarf1_unit, alloc_dwarf1_func): Likewise. | |
3304 | * dwarf2.c (read_abbrevs, read_attribute_value, add_line_info), | |
3305 | (build_line_info_table, sort_line_sequences), | |
3306 | (line_info_add_include_dir, line_info_add_file_name), | |
3307 | (decode_line_info, scan_unit_for_symbols, parse_comp_unit), | |
3308 | (place_sections, _bfd_dwarf2_slurp_debug_info): Likewise. | |
3309 | * ecoff.c (_bfd_ecoff_mkobject, _bfd_ecoff_make_empty_symbol), | |
3310 | (_bfd_ecoff_find_nearest_line), | |
3311 | (_bfd_ecoff_bfd_link_hash_table_create): Likewise. | |
3312 | * ecofflink.c (bfd_ecoff_debug_init): Likewise. | |
3313 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Likewise. | |
3314 | * elf-m10300.c (mn10300_elf_relax_section), | |
3315 | (elf32_mn10300_link_hash_table_create): Likewise. | |
3316 | * elf-strtab.c (_bfd_elf_strtab_init): Likewise. | |
3317 | * elf.c (make_mapping, copy_elf_program_header): Likewise. | |
3318 | * elf32-arm.c (elf32_arm_link_hash_table_create), | |
3319 | (elf32_arm_setup_section_lists, elf32_arm_check_relocs), | |
3320 | (elf32_arm_new_section_hook): Likewise. | |
3321 | * elf32-avr.c (elf_avr_new_section_hook), | |
3322 | (elf32_avr_link_hash_table_create, get_local_syms), | |
3323 | (elf32_avr_setup_section_lists): Likewise. | |
3324 | * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create), | |
3325 | (bfin_link_hash_table_create): Likewise. | |
3326 | * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise. | |
3327 | * elf32-cris.c (elf_cris_link_hash_table_create): Likewise. | |
3328 | * elf32-csky.c (csky_elf_link_hash_table_create), | |
3329 | (csky_elf_check_relocs, elf32_csky_setup_section_lists): Likewise. | |
3330 | * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise. | |
3331 | * elf32-hppa.c (elf32_hppa_link_hash_table_create), | |
3332 | (elf32_hppa_setup_section_lists, get_local_syms): Likewise. | |
3333 | * elf32-i386.c (elf_i386_check_relocs): Likewise. | |
3334 | * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise. | |
3335 | * elf32-m32r.c (m32r_elf_link_hash_table_create), | |
3336 | (m32r_elf_check_relocs): Likewise. | |
3337 | * elf32-m68hc1x.c (m68hc11_elf_hash_table_create), | |
3338 | (elf32_m68hc11_setup_section_lists), | |
3339 | (elf32_m68hc11_size_stubs): Likewise. | |
3340 | * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise. | |
3341 | * elf32-metag.c (elf_metag_link_hash_table_create), | |
3342 | (elf_metag_setup_section_lists): Likewise. | |
3343 | * elf32-microblaze.c (microblaze_elf_link_hash_table_create), | |
3344 | (microblaze_elf_check_relocs): Likewise. | |
3345 | * elf32-nds32.c (nds32_elf_link_hash_table_create), | |
3346 | (nds32_elf_check_relocs): Likewise. | |
3347 | * elf32-nios2.c (nios2_elf32_setup_section_lists), | |
3348 | (get_local_syms, nios2_elf32_check_relocs), | |
3349 | (nios2_elf32_link_hash_table_create): Likewise. | |
3350 | * elf32-or1k.c (or1k_elf_link_hash_table_create), | |
3351 | (or1k_elf_check_relocs): Likewise. | |
3352 | * elf32-ppc.c (ppc_elf_modify_segment_map, update_plt_info): Likewise. | |
3353 | * elf32-pru.c (pru_elf32_link_hash_table_create): Likewise. | |
3354 | * elf32-s390.c (elf_s390_link_hash_table_create), | |
3355 | (elf_s390_check_relocs): Likewise. | |
3356 | * elf32-score.c (score_elf_create_got_section), | |
3357 | (s3_elf32_score_new_section_hook), | |
3358 | (elf32_score_link_hash_table_create): Likewise. | |
3359 | * elf32-score7.c (score_elf_create_got_section), | |
3360 | (s7_elf32_score_new_section_hook): Likewise. | |
3361 | * elf32-sh.c (sh_elf_link_hash_table_create), | |
3362 | (sh_elf_check_relocs): Likewise. | |
3363 | * elf32-tic6x.c (elf32_tic6x_link_hash_table_create), | |
3364 | (elf32_tic6x_new_section_hook, elf32_tic6x_check_relocs): Likewise. | |
3365 | * elf32-tilepro.c (tilepro_elf_link_hash_table_create), | |
3366 | (tilepro_elf_check_relocs): Likewise. | |
3367 | * elf32-v850.c (remember_hi16s_reloc): Likewise. | |
3368 | * elf32-vax.c (elf_vax_link_hash_table_create): Likewise. | |
3369 | * elf32-xtensa.c (elf_xtensa_link_hash_table_create), | |
3370 | (elf_xtensa_new_section_hook): Likewise. | |
3371 | * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create), | |
3372 | (get_got_entry, elf64_alpha_check_relocs): Likewise. | |
3373 | * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise. | |
3374 | * elf64-ia64-vms.c (elf64_ia64_object_p): Likewise. | |
3375 | * elf64-mmix.c (mmix_elf_new_section_hook): Likewise. | |
3376 | * elf64-ppc.c (ppc64_elf_new_section_hook), | |
3377 | (ppc64_elf_link_hash_table_create, update_local_sym_info), | |
3378 | (update_plt_info, ppc64_elf_check_relocs): Likewise. | |
3379 | * elf64-s390.c (elf_s390_link_hash_table_create), | |
3380 | (elf_s390_check_relocs): Likewise. | |
3381 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
3382 | * elflink.c (bfd_elf_link_record_local_dynamic_symbol), | |
3383 | (_bfd_elf_link_find_version_dependencies, elf_link_add_object_symbols), | |
3384 | (elf_link_add_archive_symbols, compute_bucket_count), | |
3385 | (bfd_elf_size_dynsym_hash_dynstr, _bfd_elf_link_hash_table_create), | |
3386 | (bfd_elf_get_bfd_needed_list, elf_link_swap_symbols_out), | |
3387 | (bfd_elf_final_link): Likewise. | |
3388 | * elfnn-aarch64.c (elfNN_aarch64_link_hash_table_create), | |
3389 | (elfNN_aarch64_setup_section_lists, elfNN_aarch64_check_relocs), | |
3390 | (elfNN_aarch64_new_section_hook): Likewise. | |
3391 | * elfnn-ia64.c (elfNN_ia64_object_p): Likewise. | |
3392 | * elfnn-riscv.c (riscv_elf_link_hash_table_create), | |
3393 | (riscv_elf_check_relocs): Likewise. | |
3394 | * elfxx-mips.c (_bfd_mips_elf_new_section_hook), | |
3395 | (_bfd_mips_elf_add_symbol_hook, _bfd_mips_elf_check_relocs), | |
3396 | (_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_set_section_contents), | |
3397 | (_bfd_mips_elf_link_hash_table_create): Likewise. | |
3398 | * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create), | |
3399 | (_bfd_sparc_elf_check_relocs), | |
3400 | (_bfd_sparc_elf_new_section_hook): Likewise. | |
3401 | * elfxx-tilegx.c (tilegx_elf_link_hash_table_create), | |
3402 | (tilegx_elf_check_relocs): Likewise. | |
3403 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise. | |
3404 | * format.c (bfd_check_format_matches): Likewise. | |
3405 | * hash.c (_bfd_stringtab_init): Likewise. | |
3406 | * ihex.c (ihex_scan): Likewise. | |
3407 | * irix-core.c (irix_core_core_file_p): Likewise. | |
3408 | * linker.c (bfd_wrapped_link_hash_lookup), | |
3409 | (_bfd_generic_link_hash_table_create), | |
3410 | (_bfd_generic_reloc_link_order): Likewise. | |
3411 | * lynx-core.c (lynx_core_file_p): Likewise. | |
3412 | * netbsd-core.c (netbsd_core_file_p): Likewise. | |
3413 | * osf-core.c (osf_core_core_file_p): Likewise. | |
3414 | * pdp11.c (some_aout_object_p, mkobject, make_empty_symbol), | |
3415 | (link_hash_table_create, aout_link_write_other_symbol): Likewise. | |
3416 | * peXXigen.c (_bfd_XX_bfd_copy_private_section_data): Likewise. | |
3417 | * peicode.h (pe_mkobject): Likewise. | |
3418 | * ppcboot.c (ppcboot_mkobject, ppcboot_canonicalize_symtab): Likewise. | |
3419 | * ptrace-core.c (ptrace_unix_core_file_p): Likewise. | |
3420 | * sco5-core.c (read_uarea): Likewise. | |
3421 | * som.c (hppa_som_gen_reloc_type, som_object_p, som_prep_headers), | |
3422 | (som_write_fixups, som_write_space_strings, som_write_symbol_strings), | |
3423 | (som_finish_writing, som_canonicalize_symtab, som_new_section_hook), | |
3424 | (som_bfd_copy_private_section_data, bfd_som_set_section_attributes), | |
3425 | (bfd_som_attach_aux_hdr, som_write_armap): Likewise. | |
3426 | * srec.c (srec_scan): Likewise. | |
3427 | * syms.c (_bfd_generic_make_empty_symbol): Likewise. | |
3428 | * targets.c (bfd_target_list): Likewise. | |
3429 | * tekhex.c (first_phase, tekhex_sizeof_headers): Likewise. | |
3430 | * trad-core.c (trad_unix_core_file_p): Likewise. | |
3431 | * vms-alpha.c (vms_initialize, alpha_vms_bfd_link_hash_table_create), | |
3432 | (vms_new_section_hook): Likewise. | |
3433 | * wasm-module.c (wasm_make_empty_symbol): Likewise. | |
3434 | * xcofflink.c (xcoff_get_section_contents), | |
3435 | (_bfd_xcoff_bfd_link_hash_table_create, xcoff_set_import_path), | |
3436 | (xcoff_find_function, bfd_xcoff_link_record_set, xcoff_build_ldsym), | |
3437 | (bfd_xcoff_size_dynamic_sections, xcoff_link_input_bfd): Likewise. | |
3438 | ||
2d0e1217 AM |
3439 | 2020-02-19 Alan Modra <amodra@gmail.com> |
3440 | ||
3441 | * elfxx-riscv.c (riscv_multi_letter_ext_valid_p): Don't use C99. | |
3442 | ||
99845b3b L |
3443 | 2020-02-13 H.J. Lu <hongjiu.lu@intel.com> |
3444 | ||
3445 | * plugin.c (try_load_plugin): Make plugin_list_iter an argument | |
3446 | and use it if it isn't NULL. Remove has_plugin_p argument. Add | |
3447 | a build_list_p argument. Don't search plugin_list. Short circuit | |
3448 | when building the plugin list. | |
3449 | (has_plugin): Renamed to has_plugin_list. | |
3450 | (bfd_plugin_set_plugin): Don't set has_plugin. | |
3451 | (bfd_plugin_specified_p): Check plugin_list instead. | |
3452 | (build_plugin_list): New function. | |
3453 | (load_plugin): Call build_plugin_list and use plugin_list. | |
3454 | ||
22fe7df8 L |
3455 | 2020-02-11 H.J. Lu <hongjiu.lu@intel.com> |
3456 | ||
3457 | PR binutils/25355 | |
3458 | * plugin.c (try_claim): Always clean up for LTO wrapper. | |
3459 | (try_load_plugin): Treat each object as independent. Create a | |
3460 | copy for plugin name. | |
3461 | ||
c675ec1e NC |
3462 | 2020-02-11 Nick Clifton <nickc@redhat.com> |
3463 | ||
3464 | * elf32-msp430.c (msp430_final_link_relocate): Always use longs | |
3465 | for addresses in print statements. | |
3466 | (msp430_elf_relax_delete_bytes): Likewise. | |
3467 | (msp430_elf_relax_add_words): Likewise. | |
3468 | (msp430_elf_relax_section): Likewise. | |
3469 | ||
1d07a805 L |
3470 | 2020-02-11 H.J. Lu <hongjiu.lu@intel.com> |
3471 | ||
3472 | * plugin.c (add_symbols): Clear plugin_data memory. | |
3473 | ||
0aa99dcd L |
3474 | 2020-02-10 H.J. Lu <hongjiu.lu@intel.com> |
3475 | ||
3476 | PR binutils/25355 | |
3477 | * configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE. | |
3478 | (EXECUTABLE_SUFFIX): Likewise. | |
3479 | * config.in: Regenerated. | |
3480 | * configure: Likewise. | |
3481 | * plugin.c (bfd_plugin_close_and_cleanup): Removed. | |
3482 | (plugin_list_entry): Add all_symbols_read, cleanup_handler, | |
3483 | gcc, lto_wrapper, resolution_file, resolution_option, gcc_env, | |
3484 | real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms. | |
3485 | (get_lto_wrapper): New. | |
3486 | (setup_lto_wrapper_env): Likewise. | |
3487 | (current_plugin): Likewise. | |
3488 | (register_all_symbols_read): Likewise. | |
3489 | (register_cleanup): Likewise. | |
3490 | (get_symbols): Likewise. | |
3491 | (add_input_file): Likewise. | |
3492 | (bfd_plugin_close_and_cleanup): Likewise. | |
3493 | (claim_file): Removed. | |
3494 | (register_claim_file): Set current_plugin->claim_file. | |
3495 | (add_symbols): Make a copy of LTO symbols. Set lto_nsyms and | |
3496 | lto_syms in current_plugin. | |
3497 | (try_claim): Use current_plugin->claim_file. Call LTO plugin | |
3498 | all_symbols_read handler. Copy real symbols to plugin_data. | |
3499 | Call LTO plugin cleanup handler. Clean up for LTO wrapper. | |
3500 | (try_load_plugin): Don't reuse the previous plugin for LTO | |
3501 | wrapper. Set up GCC LTO wrapper if possible. Don't set | |
3502 | plugin_list_iter->claim_file. | |
3503 | (bfd_plugin_canonicalize_symtab): Use real LTO symbols if | |
3504 | possible. | |
3505 | * plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and | |
3506 | real_syms. | |
3507 | ||
ac4280da JL |
3508 | 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
3509 | ||
3510 | * elf32-msp430.c (msp430_elf_relax_section): Before relaxing a branch, | |
3511 | check if previous instruction matches a conditional jump inserted | |
3512 | earlier. Invert conditional jump and delete branch in this case. | |
3513 | ||
8d6cb116 JL |
3514 | 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
3515 | ||
3516 | * elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to | |
3517 | msp430_elf_relax_add_words. Support insertion of either one or two | |
3518 | words. | |
3519 | (msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation | |
3520 | needs to be grown. Handle insertion of branch instruction to replace | |
3521 | jump. | |
3522 | ||
d60f5448 JL |
3523 | 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
3524 | ||
3525 | * elf32-msp430.c (msp430_final_link_relocate): Add printf statements for | |
3526 | debugging relocations. | |
3527 | (msp430_elf_relax_delete_bytes): Likewise. | |
3528 | (msp430_elf_relax_add_two_words): Likewise. | |
3529 | (msp430_elf_relax_section): Likewise. | |
3530 | ||
e1f85e11 AM |
3531 | 2020-02-10 Alan Modra <amodra@gmail.com> |
3532 | ||
3533 | * archures.c: Wrap overlong z80 comments. | |
3534 | * bfd-in2.h: Regenerate. | |
3535 | ||
9fc0b501 SB |
3536 | 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com> |
3537 | ||
3538 | PR 25469 | |
3539 | * archures.c: Add GBZ80 and Z80N machine values. | |
3540 | * reloc.c: Add BFD_RELOC_Z80_16_BE. | |
3541 | * coff-z80.c: Add support for new reloc. | |
3542 | * coffcode.h: Add support for new machine values. | |
3543 | * cpu-z80.c: Add support for new machine names. | |
3544 | * elf32-z80.c: Add support for new reloc. | |
3545 | * bfd-in2.h: Regenerate. | |
3546 | * libbfd.h: Regenerate. | |
3547 | ||
9984857c NC |
3548 | 2020-02-07 Nick Clifton <nickc@redhat.com> |
3549 | ||
3550 | PR 23932 | |
3551 | * elf.c (rewrite_elf_program_header): Do not complain if no | |
3552 | sections are mapped to a segment. | |
3553 | ||
5242a0a0 L |
3554 | 2020-02-06 H.J. Lu <hongjiu.lu@intel.com> |
3555 | ||
3556 | PR ld/25490 | |
3557 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Issue an error | |
3558 | for garbage collection on __patchable_function_entries section | |
3559 | without linked-to section. | |
3560 | ||
b7d07216 L |
3561 | 2020-02-06 H.J. Lu <hongjiu.lu@intel.com> |
3562 | ||
3563 | PR gas/25381 | |
3564 | * bfd-in2.h: Regenerated. | |
3565 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Call mark_hook | |
3566 | on section if gc_mark of any of its linked-to sections is set | |
3567 | and don't set gc_mark again. | |
3568 | * section.c (asection): Add linked_to_symbol_name to map_head | |
3569 | union. | |
3570 | ||
b93a662b MR |
3571 | 2020-02-06 Maciej W. Rozycki <macro@wdc.com> |
3572 | ||
3573 | * elf32-v850.c (v850_elf_relax_section): Fix the index used for | |
3574 | reporting an unrecognized instruction with R_V850_LONGJUMP. | |
3575 | ||
6df4c9c2 AM |
3576 | 2020-02-05 Alan Modra <amodra@gmail.com> |
3577 | ||
3578 | * elf64-ppc.c (ppc_stub_plt_branch): Match comment with reality. | |
3579 | ||
24872cb3 AM |
3580 | 2020-02-04 Alan Modra <amodra@gmail.com> |
3581 | ||
3582 | * elf32-ppc.c (ppc_elf_relocate_section): After applying | |
3583 | R_PPC_VLE_ADDR20, goto copy_reloc. | |
3584 | ||
ef4627fa L |
3585 | 2020-02-02 H.J. Lu <hongjiu.lu@intel.com> |
3586 | ||
3587 | * bfd-in2.h: Regenerated. | |
3588 | * section.c (SEC_ASSEMBLER_SECTION_ID): Fix a typo in comments. | |
3589 | ||
a8c4d40b L |
3590 | 2020-02-02 H.J. Lu <hongjiu.lu@intel.com> |
3591 | ||
3592 | PR gas/25380 | |
3593 | * bfd-in2.h: Regenerated. | |
3594 | * ecoff.c (bfd_debug_section): Add section_id. | |
3595 | * section.c (bfd_section): Add section_id. | |
3596 | (SEC_ASSEMBLER_SECTION_ID): New. | |
3597 | (BFD_FAKE_SECTION): Add section_id. | |
3598 | ||
5a9212a1 NC |
3599 | 2020-02-01 Nick Clifton <nickc@redhat.com> |
3600 | ||
3601 | * config.bfd: Move the c30-aout and tic30-aout targets onto the | |
3602 | obsolete list. | |
3603 | ||
e7cbe0c4 SL |
3604 | 2020-01-31 Sandra Loosemore <sandra@codesourcery.com> |
3605 | ||
3606 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel | |
3607 | encodings are relative to the GOT on nios2, too. | |
3608 | ||
72ebe8c5 AM |
3609 | 2020-01-31 Alan Modra <amodra@gmail.com> |
3610 | ||
3611 | * Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp | |
3612 | file. Use $< and $@ in rules. | |
3613 | (elf32-aarch64.c, elf64-aarch64.c): Likewise. | |
3614 | (elf32-ia64.c, elf64-ia64.c): Likewise. | |
3615 | (elf32-riscv.c, elf64-riscv.c): Likewise. | |
3616 | (peigen.c, pepigen.c, pex64igen.c): Likewise. | |
3617 | (elf32-aarch64.c, elf64-aarch64.c): Don't emit $srcdir on #line. | |
3618 | (elf32-riscv.c, elf64-riscv.c): Likewise, and use $(SED). | |
3619 | (elf32-ia64.c, elf64-ia64.c): Do emit #line. | |
3620 | (peigen.c, pepigen.c, pex64igen.c): Likewise. | |
3621 | * Makefile.in: Regenerate. | |
3622 | ||
327301a4 AM |
3623 | 2020-01-31 Alan Modra <amodra@gmail.com> |
3624 | ||
3625 | PR 4110 | |
3626 | * elf.c (setup_group): Don't clear entire section contents, | |
3627 | just the padding after group flags. Release alloc'd memory | |
3628 | after a seek or read failure. | |
3629 | ||
b5d36aaa JT |
3630 | 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk> |
3631 | ||
3632 | * peXXigen.c (pe_is_repro): New function. | |
3633 | (_bfd_XX_print_private_bfd_data_common): Note timestamp is | |
3634 | actually a build hash if PE_IMAGE_DEBUG_TYPE_REPRO is present. | |
3635 | ||
1957ab10 JT |
3636 | 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk> |
3637 | ||
3638 | * peXXigen.c (debug_type_names): Add names for new debug data type | |
3639 | values. | |
3640 | ||
87b2920f JT |
3641 | 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk> |
3642 | ||
3643 | * peXXigen.c (pe_print_debugdata): Fix the iteration variable for | |
3644 | inner loop. Fix a memory leak. | |
3645 | ||
72913831 AM |
3646 | 2020-01-30 Alan Modra <amodra@gmail.com> |
3647 | ||
3648 | * coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms | |
3649 | or obj_coff_keep_strings here. | |
3650 | (coff_get_normalized_symtab): Free external syms directly. | |
3651 | * xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms | |
3652 | on error exit path. | |
3653 | ||
c35d018b JW |
3654 | 2020-01-27 Jim Wilson <jimw@sifive.com> |
3655 | ||
3656 | * cpu-riscv.c (riscv_scan): New. | |
3657 | (N): Change bfd_default_scan to riscv_scan. | |
3658 | ||
086b06f3 AS |
3659 | 2020-01-27 Andreas Schwab <schwab@suse.de> |
3660 | ||
3661 | * Makefile.am (ALL_MACHINES): Remove cpu-plugin.lo. | |
3662 | (ALL_MACHINES_CFILES): Remove cpu-plugin.c. | |
3663 | * Makefile.in: Regenerate. | |
3664 | * cpu-plugin.c: Remove. | |
3665 | * archures.c (enum bfd_architecture): Remove bfd_arch_plugin. | |
3666 | (bfd_plugin_arch): Remove declaration. | |
3667 | * bfd-in2.h: Regenerate. | |
3668 | * po/SRC-POTFILES.in: Regenerate. | |
3669 | ||
3024a17a AM |
3670 | 2020-01-27 H.J. Lu <hongjiu.lu@intel.com> |
3671 | Alan Modra <amodra@gmail.com> | |
3672 | ||
3673 | PR ld/25458 | |
3674 | * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases. | |
3675 | ||
b5f998b2 JW |
3676 | 2020-01-24 Jim Wilson <jimw@sifive.com> |
3677 | ||
3678 | * elfxx-riscv.c (riscv_get_prefix_class): Format s case like others. | |
3679 | (riscv_parse_prefixed_ext): Fix s extension comment and reword to | |
3680 | avoid over long line. | |
3681 | ||
caa31cfa NC |
3682 | 2020-01-24 Nick Clifton <nickc@redhat.com> |
3683 | ||
3684 | PR 25447 | |
3685 | * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep | |
3686 | syms and keep strings flags as these may have been set in order to | |
3687 | prevent a bogus call to free. | |
3688 | ||
24e648d4 NC |
3689 | 2020-01-23 Nick Clifton <nickc@redhat.com> |
3690 | ||
3691 | * po/fr.po: Updated French translation. | |
3692 | ||
67641dd3 AM |
3693 | 2020-01-23 Alan Modra <amodra@gmail.com> |
3694 | ||
3695 | PR 25444 | |
3696 | * elf.c (assign_file_positions_for_load_sections): Avoid divide | |
3697 | by zero when p_align is zero. | |
3698 | ||
403d1bd9 JW |
3699 | 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com> |
3700 | ||
3701 | * bfd/elfnn-riscv.c (riscv_skip_prefix): New. | |
3702 | (riscv_prefix_cmp): Likewise. | |
3703 | (riscv_non_std_ext_p): Deleted. | |
3704 | (riscv_std_sv_ext_p): Likewise. | |
3705 | (riscv_non_std_sv_ext_p): Likewise. | |
3706 | (riscv_merge_non_std_and_sv_ext): Rename to... | |
3707 | (riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp. | |
3708 | (riscv_merge_arch_attr_info): Replace 3 calls to | |
3709 | riscv_merge_non_std_and_sv_ext with single call to | |
3710 | riscv_merge_multi_letter_ext. | |
3711 | * bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we | |
3712 | encounter a 'z' prefix. | |
3713 | (riscv_get_prefix_class): New function, return prefix class based | |
3714 | on first few characters of input string. | |
3715 | (riscv_parse_config): New structure to factor out minor differences | |
3716 | in extension class parsing behaviour. | |
3717 | (riscv_parse_sv_or_non_std_ext): Rename to... | |
3718 | (riscv_parse_prefixed_ext): and parameterise with | |
3719 | riscv_parse_config. | |
3720 | (riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New. | |
3721 | (riscv_multi_letter_ext_valid_p): New. | |
3722 | (riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New. | |
3723 | (riscv_parse_subset): Delegate all non-single-letter parsing work | |
3724 | to riscv_parse_prefixed_ext. | |
3725 | * bfd/elfxx-riscv.h (riscv_isa_ext_class): New type. | |
3726 | (riscv_get_prefix_class): Declare. | |
3727 | ||
a804e476 AM |
3728 | 2020-01-22 Alan Modra <amodra@gmail.com> |
3729 | ||
3730 | * elf64-ppc.c (struct ppc_link_hash_table): Add tga_group. | |
3731 | (ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for | |
3732 | __tls_get_addr_desc. | |
3733 | (ppc64_elf_size_stubs): Add section for linker generated | |
3734 | __tls_get_addr_desc wrapper function. Loop at least once if | |
3735 | generating this function. | |
3736 | (emit_tga_desc, emit_tga_desc_eh_frame): New functions. | |
3737 | (ppc64_elf_build_stubs): Generate __tls_get_addr_desc. | |
3738 | ||
9e7028aa AM |
3739 | 2020-01-22 Alan Modra <amodra@gmail.com> |
3740 | ||
3741 | * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave. | |
3742 | * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and | |
3743 | tga_desc_fd. | |
3744 | (is_tls_get_addr): Match tga_desc and tga_desc_df too. | |
3745 | (STDU_R1_0R1, ADDI_R1_R1): Define. | |
3746 | (tls_get_addr_prologue, tls_get_addr_epilogue): New functions. | |
3747 | (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect | |
3748 | tga_desc_fd to opt_fd, and tga_desc to opt. Set | |
3749 | no_tls_get_addr_regsave. | |
3750 | (branch_reloc_hash_match): Add hash3 and hash4. | |
3751 | (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too. | |
3752 | (ppc64_elf_size_dynamic_sections): Likewise. | |
3753 | (ppc64_elf_relocate_section): Likewise. | |
3754 | (plt_stub_size, build_plt_stub): Likewise. Size regsave | |
3755 | __tls_get_addr stub. | |
3756 | (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and | |
3757 | eh_frame. | |
3758 | (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size | |
3759 | eh_frame for regsave __tls_get_addr. | |
3760 | ||
abc489c6 AM |
3761 | 2020-01-22 Alan Modra <amodra@gmail.com> |
3762 | ||
3763 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under | |
3764 | which __tls_get_addr calls will be eliminated. | |
3765 | ||
26916852 NC |
3766 | 2020-01-20 Nick Clifton <nickc@redhat.com> |
3767 | ||
3768 | * po/pt.po: Updates Portuguese translation. | |
3769 | * po/ru.po: Updated Russian translation. | |
3770 | * po/uk.po: Updated Ukranian translation. | |
3771 | ||
14470f07 L |
3772 | 2020-01-20 H.J. Lu <hongjiu.lu@intel.com> |
3773 | ||
3774 | PR ld/25416 | |
3775 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support | |
3776 | "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in | |
3777 | X32 mode. | |
3778 | (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE | |
3779 | transition, relax "rex leal x@tlsdesc(%rip), %reg" to | |
3780 | "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax | |
3781 | "rex leal x@tlsdesc(%rip), %reg" to | |
3782 | "rex movl x@gottpoff(%rip), %eax". For both transitions, relax | |
3783 | "call *(%eax)" to "nopl (%rax)". | |
3784 | ||
b9ca1af6 AM |
3785 | 2020-01-20 Alan Modra <amodra@gmail.com> |
3786 | ||
3787 | * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1), | |
3788 | (MTLR_R11): Don't define. | |
3789 | (LD_R0_0R3, CMPDI_R0_0): Define. | |
3790 | (build_tls_get_addr_stub): Don't use r11 in stub. | |
3791 | ||
ed7007c1 AM |
3792 | 2020-01-20 Alan Modra <amodra@gmail.com> |
3793 | ||
3794 | * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file. | |
3795 | (defined_sym_val, is_tls_get_addr): Likewise. | |
3796 | ||
1b1bb2c6 NC |
3797 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
3798 | ||
3799 | * version.m4 (BFD_VERSION): Set to 2.34.50. | |
3800 | * configure: Regenerate. | |
3801 | * po/bfd.pot: Regenerate. | |
3802 | ||
ae774686 NC |
3803 | 2020-01-18 Nick Clifton <nickc@redhat.com> |
3804 | ||
3805 | Binutils 2.34 branch created. | |
3806 | ||
07f1f3aa CB |
3807 | 2020-01-17 Christian Biesinger <cbiesinger@google.com> |
3808 | ||
3809 | * coff-arm.c: Fix spelling error (seperate). | |
3810 | * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling | |
3811 | error (seperate). | |
3812 | * sysdep.h (strnlen): Fix spelling error (seperate). | |
3813 | ||
0d1cc75d LB |
3814 | 2020-01-15 Lars Brinkhoff <lars@nocrew.org> |
3815 | ||
3816 | PR 20694 | |
3817 | * pdp11.c (TARGET_PAGE_SIZE): Set to 8192. | |
3818 | ||
e1c6cf61 AM |
3819 | 2020-01-15 Alan Modra <amodra@gmail.com> |
3820 | ||
3821 | PR 25384 | |
3822 | * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment. | |
3823 | (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies | |
3824 | of function symbols unless dot symbols are present. Do warn | |
3825 | whenever one is created, regardles of whether a PLT entry is | |
3826 | also emitted for the function symbol. | |
3827 | ||
ef4e5ba5 AM |
3828 | 2020-01-14 Alan Modra <amodra@gmail.com> |
3829 | ||
3830 | * som.c (som_bfd_count_ar_symbols): Error when file position | |
3831 | of symbols on chains is not strictly increasing. | |
3832 | ||
8ab484c2 AM |
3833 | 2020-01-14 Alan Modra <amodra@gmail.com> |
3834 | ||
3835 | * vms.h (VMS_DEBUG): Define as 0. | |
3836 | * vms-alpha.c (image_write): Move debug output after bounds check. | |
3837 | Tidy bounds check. | |
3838 | (_bfd_vms_slurp_eihd): Warning fix. | |
3839 | (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings. | |
3840 | ||
b50ef514 AM |
3841 | 2020-01-13 Alan Modra <amodra@gmail.com> |
3842 | ||
3843 | * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even | |
3844 | for "ignored" records. | |
3845 | ||
0c0adcc5 AM |
3846 | 2020-01-13 Alan Modra <amodra@gmail.com> |
3847 | ||
3848 | * wasm-module.c (wasm_scan_name_function_section): Formatting. | |
3849 | Delete asect name check. Move asect NULL check to wasm_object_p. | |
3850 | Correct bounds check of sizes against end. Replace uses of | |
3851 | bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use | |
3852 | just one bfd_release. | |
3853 | (wasm_scan): Don't use malloc/strdup for section names, | |
3854 | bfd_alloc instead. Simplify code prefixing section name. | |
3855 | Formatting. Don't attempt to free memory here.. | |
3856 | (wasm_object_p): ..do so here. | |
3857 | ||
7f026732 SN |
3858 | 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com> |
3859 | ||
3860 | PR ld/22269 | |
3861 | * elf32-arm.c (elf32_arm_final_link_relocate): Use | |
3862 | UNDEFWEAK_NO_DYNAMIC_RELOC. | |
3863 | (allocate_dynrelocs_for_symbol): Likewise. | |
3864 | ||
8cd0e5e9 TC |
3865 | 2020-01-10 Tamar Christina <tamar.christina@arm.com> |
3866 | ||
3867 | PR 25210 | |
3868 | * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass. | |
3869 | ||
71780f45 AM |
3870 | 2020-01-10 Alan Modra <amodra@gmail.com> |
3871 | ||
3872 | * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type. | |
3873 | ||
b899eb3b NC |
3874 | 2020-01-09 Nick Clifton <nickc@redhat.com> |
3875 | ||
3876 | PR 25221 | |
3877 | * bfd.c (bfd_convert_section_contents): Check for a compress | |
3878 | header size that is larger than the actual section size. | |
3879 | ||
4c6ee646 AM |
3880 | 2020-01-08 Alan Modra <amodra@gmail.com> |
3881 | ||
3882 | PR 25351 | |
3883 | * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms | |
3884 | after removing sections. | |
3885 | ||
85f78364 JW |
3886 | 2020-01-06 Jim Wilson <jimw@sifive.com> |
3887 | ||
3888 | PR 25205 | |
3889 | * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add | |
3890 | check for !bfd_link_pic (info). | |
3891 | <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL. | |
3892 | <R_RISCV_JAL>: Add comment. | |
3893 | (_bfd_riscv_relax_section): For plt.offset check, add check for | |
3894 | bfd_link_pic (info). Add comment. | |
3895 | ||
49078ece AM |
3896 | 2020-01-06 Alan Modra <amodra@gmail.com> |
3897 | ||
3898 | * format.c (bfd_check_format_matches): Ignore bfd_error on target | |
3899 | match failures. Don't init to bfd_error_wrong_format before | |
3900 | calling _bfd_check_format. | |
3901 | ||
ab356be7 AM |
3902 | 2020-01-06 Alan Modra <amodra@gmail.com> |
3903 | ||
3904 | * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail | |
3905 | status rather than exiting on stack overflow or underflow. | |
3906 | (_bfd_vms_slurp_etir): Adjust to suit. | |
3907 | ||
85d86817 AM |
3908 | 2020-01-06 Alan Modra <amodra@gmail.com> |
3909 | ||
3910 | * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index. | |
3911 | ||
3e6aa775 AM |
3912 | 2020-01-06 Alan Modra <amodra@gmail.com> |
3913 | ||
3914 | * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of | |
3915 | command. Check name offset is within command. | |
3916 | (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib), | |
3917 | (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints), | |
3918 | (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab), | |
3919 | (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid), | |
3920 | (bfd_mach_o_read_linkedit, bfd_mach_o_read_str), | |
3921 | (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min), | |
3922 | (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version), | |
3923 | (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main), | |
3924 | (bfd_mach_o_read_note, bfd_mach_o_read_build_version), | |
3925 | (bfd_mach_o_read_segment): Similarly. | |
3926 | (bfd_mach_o_read_thread): Properly bound check thread struct. | |
3927 | Don't repeat checks on second loop. | |
3928 | (bfd_mach_o_read_command): Fail on invalid command length. | |
3929 | ||
ea933f17 AM |
3930 | 2020-01-04 Alan Modra <amodra@gmail.com> |
3931 | ||
3932 | * format.c (bfd_check_format_matches): Add preserve_match. | |
3933 | Save initial bfd state in "preserve", matched bfd state in | |
3934 | "preserve_match". Save just the first match. Release | |
3935 | bfd_alloc memory. Restore and finish preserved state as | |
3936 | appropriate on all function exit paths. | |
3937 | ||
f24bdec4 AM |
3938 | 2020-01-04 Alan Modra <amodra@gmail.com> |
3939 | ||
3940 | * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc. | |
3941 | ||
991fb595 AM |
3942 | 2020-01-04 Alan Modra <amodra@gmail.com> |
3943 | ||
3944 | * coffgen.c (coff_real_object_p): Free malloc'd memory on target | |
3945 | match too. | |
3946 | ||
f2a3559d NC |
3947 | 2020-01-03 Nick Clifton <nickc@redhat.com> |
3948 | ||
3949 | PR 25307 | |
3950 | (bfd_pef_parse_function_stubs): Correct the test that ensures that | |
3951 | there is enough data remaining in the code buffer before | |
3952 | attempting to read a function stub. | |
3953 | ||
7a0fb7be NC |
3954 | 2020-01-03 Nick Clifton <nickc@redhat.com> |
3955 | ||
3956 | PR 25308 | |
3957 | * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the | |
3958 | return value from bfd_malloc. | |
3959 | * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
3960 | (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise. | |
3961 | (elf32_arm_filter_cmse_symbols): Likewise. | |
3962 | (elf32_arm_write_section): Likewise. | |
3963 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
3964 | (bfd_mach_o_follow_dsym): Likewise. | |
3965 | * pef.c (bfd_pef_print_loader_section): Likewise. | |
3966 | (bfd_pef_scan_start_address): Likewise. | |
3967 | (bfd_pef_parse_function_stubs): Likewise. | |
3968 | (bfd_pef_parse_symbols): Likewise. | |
3969 | ||
b26a3d58 ST |
3970 | 2020-01-03 Sergei Trofimovich <siarheit@google.com> |
3971 | ||
3972 | * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail | |
3973 | on binary inputs ld/PR25316. | |
3974 | (is_ia64_elf): new helper to filter on ia64 objects. | |
3975 | ||
4bb7a87e JB |
3976 | 2020-01-03 Jan Beulich <jbeulich@suse.com> |
3977 | ||
3978 | * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore | |
3979 | in parameter names. | |
3980 | (bfd_mach_o_scan): Insert underscore in two variable names. | |
3981 | ||
6655dba2 SB |
3982 | 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com> |
3983 | ||
3984 | * Makefile.am: Add z80-elf target support. | |
3985 | * configure.ac: Likewise. | |
3986 | * targets.c: Likewise. | |
3987 | * Makefile.in: Regenerate. | |
3988 | * configure: Regenerate. | |
3989 | * config.bfd: Add z80-elf target support and new arches: ez80 and | |
3990 | z180. | |
3991 | * elf32-z80.c: New file. | |
3992 | * archures.c: Add new z80 architectures: eZ80 and Z180. | |
3993 | * coffcode.h: Likewise. | |
3994 | * cpu-z80.c: Likewise. | |
3995 | * coff-z80.c: Add new relocations for Z80 target and local label | |
3996 | check. | |
3997 | * reloc.c: Add new relocs. | |
3998 | * bfd-in2.h: Regenerate. | |
3999 | * libbfd.h: Regenerate. | |
4000 | ||
0db131fb TC |
4001 | 2020-01-02 Tamar Christina <tamar.christina@arm.com> |
4002 | ||
4003 | PR 25210 | |
4004 | PR 24753 | |
4005 | * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class. | |
4006 | ||
b14ce8bf AM |
4007 | 2020-01-01 Alan Modra <amodra@gmail.com> |
4008 | ||
4009 | Update year range in copyright notice of all files. | |
4010 | ||
0b114740 | 4011 | For older changes see ChangeLog-2019 |
3499769a | 4012 | \f |
0b114740 | 4013 | Copyright (C) 2020 Free Software Foundation, Inc. |
3499769a AM |
4014 | |
4015 | Copying and distribution of this file, with or without modification, | |
4016 | are permitted in any medium without royalty provided the copyright | |
4017 | notice and this notice are preserved. | |
4018 | ||
4019 | Local Variables: | |
4020 | mode: change-log | |
4021 | left-margin: 8 | |
4022 | fill-column: 74 | |
4023 | version-control: never | |
4024 | End: |