Re: PR27311, ld.bfd (symbol from plugin): undefined reference
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2021-02-03 Alan Modra <amodra@gmail.com>
2
3 PR 27311
4 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
5 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
6 libraries when H is an indirect symbol after calling
7 _bfd_elf_add_default_symbol.
8
9 2021-02-03 Alan Modra <amodra@gmail.com>
10
11 PR 27311
12 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
13 undecorated symbol will have a different version.
14
15 2021-02-02 Alan Modra <amodra@gmail.com>
16
17 PR 27311
18 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
19 Use when handling default versioned symbol. Rename existing
20 override variable to nondef_override and use for non-default
21 versioned symbol.
22 (elf_link_add_object_symbols): Adjust call to suit. Don't
23 pull in as-needed libraries when override is set.
24
25 2021-02-01 Emery Hemingway <ehmry@posteo.net>
26
27 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
28
29 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
30
31 PR 27254
32 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
33 offset for the R_RL78_RH_SADDR relocation.
34
35 2021-01-29 Alan Modra <amodra@gmail.com>
36
37 PR 27271
38 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
39 on symbols defined in absolute or other special sections.
40
41 2021-01-28 Alan Modra <amodra@gmail.com>
42
43 PR 27259
44 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
45 prevent endless looping of linked-to sections.
46
47 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
48
49 * bfd-elf.h (elfcore_write_file_note): New function.
50 * elf.c (elfcore_write_file_note): New function.
51
52 2021-01-26 Alan Modra <amodra@gmail.com>
53
54 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
55
56 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR binutils/27231
59 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
60 number tables.
61
62 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR binutils/27231
65 * dwarf2.c (read_rnglists): Advance rngs_ptr after
66 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
67
68 2021-01-20 Alan Modra <amodra@gmail.com>
69
70 * elf32-ppc.c: Delete outdated comment.
71 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
72 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
73
74 2021-01-20 Alan Modra <amodra@gmail.com>
75
76 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
77 section symbols are present.
78
79 2021-01-19 Alan Modra <amodra@gmail.com>
80
81 * elf64-ppc.c (elf_hash_entry): New inline function. Use
82 throughout to replace casts.
83 (branch_reloc_hash_match): Remove const from params.
84 (use_local_plt): New function.
85 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
86 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
87 Use use_local_plt.
88 * elf32-ppc.c (use_local_plt): New function.
89 (allocate_dynrelocs, ppc_elf_relocate_section),
90 (write_global_sym_plt): Use use_local_plt.
91
92 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR ld/27193
95 * elflink.c (elf_create_symbuf): Also ignore section symbols.
96
97 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
98
99 PR ld/23169
100 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
101 check pointer_equality_needed.
102
103 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
104
105 * elf-linker-x86.h (elf_linker_x86_params): Add
106 report_relative_reloc.
107 * elf32-i386.c (elf_i386_relocate_section): Call
108 _bfd_x86_elf_link_report_relative_reloc to report relative
109 relocations for -z report-relative-reloc.
110 (elf_i386_finish_dynamic_symbol): Likewse.
111 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
112 (elf_x86_64_finish_dynamic_symbol): Likewse.
113 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
114 function.
115 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
116 prototype.
117
118 2021-01-16 Alan Modra <amodra@gmail.com>
119
120 * compress.c (decompress_contents): Tidy inflateEnd result test.
121
122 2021-01-16 Alan Modra <amodra@gmail.com>
123
124 PR 26002
125 * elflink.c (elf_link_output_extsym): Use version 1 in
126 .gnu.version for undefined unversioned symbols.
127
128 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
129
130 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
131 caused the by previous commit accidentally.
132
133 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
134
135 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
136 also aligned the code.
137
138 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
139
140 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
141
142 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
143
144 * elfnn-riscv.c: Comments tidy and improvement.
145 * elfxx-riscv.c: Likewise.
146 * elfxx-riscv.h: Likewise.
147
148 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
149
150 PR ld/26688
151 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
152 section for R_BFIN_FUNCDESC.
153
154 2021-01-14 Nick Clifton <nickc@redhat.com>
155
156 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
157
158 2021-01-13 Alan Modra <amodra@gmail.com>
159
160 * Makefile.in: Regenerate.
161 * doc/Makefile.in: Regenerate.
162
163 2021-01-13 Alan Modra <amodra@gmail.com>
164
165 PR 27160
166 * section.c (struct bfd_section): Remove pattern field.
167 (BFD_FAKE_SECTION): Adjust to suit.
168 * bfd-in2.h: Regenerate.
169 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
170 (bfd_elf_final_link): Don't call elf_fixup_link_order.
171
172 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR binutils/26792
175 * configure.ac: Use GNU_MAKE_JOBSERVER.
176 * aclocal.m4: Regenerated.
177 * configure: Likewise.
178
179 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
180
181 PR ld/27171
182 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
183 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
184
185 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
186
187 PR ld/27173
188 * configure: Regenerated.
189
190 2021-01-11 Nick Clifton <nickc@redhat.com>
191
192 * po/fr.po: Updated French translation.
193 * po/pt.po: Updated Portuguese translation.
194 * po/sr.po: Updated Serbian translation.
195 * po/uk.po: Updated Ukranian translation.
196
197 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
198
199 * configure: Regenerated.
200
201 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR ld/27166
204 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
205 -z lam-u48 and -z lam-u57.
206
207 2021-01-09 Nick Clifton <nickc@redhat.com>
208
209 * version.m4: Change to 2.36.50.
210 * configure: Regenerate.
211 * po/bfd.pot: Regenerate.
212
213 2021-01-09 Nick Clifton <nickc@redhat.com>
214
215 * 2.36 release branch crated.
216
217 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
218
219 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
220 LAM_U57 when setting LAM_U48.
221
222 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR ld/26256
225 PR ld/27160
226 * elflink.c (elf_fixup_link_order): Verify that fixing up
227 SHF_LINK_ORDER doesn't increase the output section size.
228
229 2021-01-09 Alan Modra <amodra@gmail.com>
230
231 * configure: Regenerate.
232
233 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
234
235 * configure: Regenerate.
236
237 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
238
239 PR 27109
240 * aix386-core.c (core_aix386_vec): Initialize
241 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
242 * aout-target.h (MY (vec)): Likewise.
243 * binary.c (binary_vec): Likewise.
244 * cisco-core.c (core_cisco_be_vec): Likewise.
245 (core_cisco_le_vec): Likewise.
246 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
247 * coff-i386.c (TARGET_SYM): Likewise.
248 (TARGET_SYM_BIG): Likewise.
249 * coff-ia64.c (TARGET_SYM): Likewise.
250 * coff-mips.c (mips_ecoff_le_vec): Likewise.
251 (mips_ecoff_be_vec): Likewise.
252 (mips_ecoff_bele_vec): Likewise.
253 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
254 (powerpc_xcoff_vec): Likewise.
255 * coff-sh.c (sh_coff_small_vec): Likewise.
256 (sh_coff_small_le_vec): Likewise.
257 * coff-tic30.c (tic30_coff_vec): Likewise.
258 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
259 (tic54x_coff0_beh_vec): Likewise.
260 (tic54x_coff1_vec): Likewise.
261 (tic54x_coff1_beh_vec): Likewise.
262 (tic54x_coff2_vec): Likewise.
263 (tic54x_coff2_beh_vec): Likewise.
264 * coff-x86_64.c (TARGET_SYM): Likewise.
265 (TARGET_SYM_BIG): Likewise.
266 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
267 (rs6000_xcoff64_aix_vec): Likewise.
268 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
269 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
270 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
271 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
272 (TARGET_LITTLE_SYM): Likewise.
273 * hppabsd-core.c (core_hppabsd_vec): Likewise.
274 * hpux-core.c (core_hpux_vec): Likewise.
275 * i386msdos.c (i386_msdos_vec): Likewise.
276 * ihex.c (ihex_vec): Likewise.
277 * irix-core.c (core_irix_vec): Likewise.
278 * mach-o-target.c (TARGET_NAME): Likewise.
279 * mmo.c (mmix_mmo_vec): Likewise.
280 * netbsd-core.c (core_netbsd_vec): Likewise.
281 * osf-core.c (core_osf_vec): Likewise.
282 * pdp11.c (MY (vec)): Likewise.
283 * pef.c (pef_vec): Likewise.
284 (pef_xlib_vec): Likewise.
285 * plugin.c (plugin_vec): Likewise.
286 * ppcboot.c (powerpc_boot_vec): Likewise.
287 * ptrace-core.c (core_ptrace_vec): Likewise.
288 * sco5-core.c (core_sco5_vec): Likewise.
289 * som.c (hppa_som_vec): Likewise.
290 * srec.c (srec_vec): Likewise.
291 (symbolsrec_vec): Likewise.
292 * tekhex.c (tekhex_vec): Likewise.
293 * trad-core.c (core_trad_vec): Likewise.
294 * verilog.c (verilog_vec): Likewise.
295 * vms-alpha.c (alpha_vms_vec): Likewise.
296 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
297 * wasm-module.c (wasm_vec): Likewise.
298 * xsym.c (sym_vec): Likewise.
299 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
300 isn't set.
301 (elf_map_symbols): Don't include ignored section symbols.
302 * elfcode.h (elf_slurp_symbol_table): Also set
303 BSF_SECTION_SYM_USED on STT_SECTION symbols.
304 * elflink.c (bfd_elf_final_link): Generated section symbols only
305 when emitting relocations or reqired.
306 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
307 * syms.c (BSF_SECTION_SYM_USED): New.
308 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
309 (bfd_target): Add keep_unused_section_symbols.
310 (bfd_keep_unused_section_symbols): New.
311 * bfd-in2.h: Regenerated.
312
313 2021-01-07 Nick Clifton <nickc@redhat.com>
314
315 PR 25713
316 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
317 absolute paths and check to see if they are longer than MAX_PATH.
318
319 2021-01-07 Philipp Tomsich <prt@gnu.org>
320
321 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
322
323 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
324 Jim Wilson <jimw@sifive.com>
325 Andrew Waterman <andrew@sifive.com>
326 Maxim Blinov <maxim.blinov@embecosm.com>
327 Kito Cheng <kito.cheng@sifive.com>
328 Nelson Chu <nelson.chu@sifive.com>
329
330 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
331
332 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
333
334 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
335 (bfinfdpic_check_relocs): Likewise.
336
337 2021-01-06 Alan Modra <amodra@gmail.com>
338
339 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
340 on unknown r_type.
341 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
342
343 2021-01-06 Alan Modra <amodra@gmail.com>
344
345 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
346 (sparc64-*-solaris2*): Add sparc_elf64_vec and
347 sparc_elf32_vec.
348
349 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
350
351 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
352 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
353 * configure.ac: Handle riscv_elf[32|64]_be_vec.
354 * configure: Regenerate.
355 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
356 riscv_is_insn_reloc.
357 (riscv_get_insn): RISC-V instructions are always little endian, but
358 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
359 the insturctions.
360 (riscv_put_insn): Likewsie.
361 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
362 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
363 use riscv_[get|put]_insn or bfd_[get|put].
364 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
365 or bfd_[get|put]l16 for code.
366 (riscv_elf_relocate_section): Likewise.
367 (riscv_elf_finish_dynamic_symbol): Likewise.
368 (riscv_elf_finish_dynamic_sections): Likewise.
369 (_bfd_riscv_relax_call): Likewise.
370 (_bfd_riscv_relax_lui): Likewise.
371 (_bfd_riscv_relax_align): Likewise.
372 (_bfd_riscv_relax_pc): Likewise.
373 (riscv_elf_object_p): Handled for big endian.
374 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
375 * targets.c: Add riscv_elf[32|64]_be_vec.
376 (_bfd_target_vector): Likewise.
377
378 2021-01-05 Alan Modra <amodra@gmail.com>
379
380 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
381 for relocatable executable.
382
383 2021-01-05 Alan Modra <amodra@gmail.com>
384
385 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
386
387 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
388
389 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
390 make sure gp symbol is output as a dynamic symbol.
391
392 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR ld/26256
395 * elflink.c (compare_link_order): Place unordered sections before
396 ordered sections.
397 (elf_fixup_link_order): Add a link info argument. Allow mixed
398 ordered and unordered input sections for non-relocatable link.
399 Sort the consecutive bfd_indirect_link_order sections with the
400 same pattern. Change the offsets of the bfd_indirect_link_order
401 sections only.
402 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
403 * section.c (bfd_section): Add pattern.
404 (BFD_FAKE_SECTION): Initialize pattern to NULL.
405 * bfd-in2.h: Regenerated.
406
407 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
408
409 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
410 of private flags with 0x.
411 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
412
413 2021-01-04 Alan Modra <amodra@gmail.com>
414
415 PR 26822
416 * elflink.c (elf_link_input_bfd): Use the file base name in
417 linker generated STT_FILE symbols.
418
419 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
420
421 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
422 * elfxx-riscv.h: Add declaration.
423 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
424 riscv_compare_subsets to check the orders.
425 (riscv_skip_prefix): Removed.
426 (riscv_prefix_cmp): Removed.
427
428 2021-01-04 Alan Modra <amodra@gmail.com>
429
430 PR 26741
431 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
432 calculating subset version length.
433
434 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
435
436 * xcofflink.c: Correct spelling in comments.
437
438 2021-01-01 Alan Modra <amodra@gmail.com>
439
440 Update year range in copyright notice of all files.
441
442 For older changes see ChangeLog-2020
443 \f
444 Copyright (C) 2021 Free Software Foundation, Inc.
445
446 Copying and distribution of this file, with or without modification,
447 are permitted in any medium without royalty provided the copyright
448 notice and this notice are preserved.
449
450 Local Variables:
451 mode: change-log
452 left-margin: 8
453 fill-column: 74
454 version-control: never
455 End:
This page took 0.039346 seconds and 5 git commands to generate.