opcodes sources should not include libbfd.h
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1624c9ca
MR
12018-05-16 Maciej W. Rozycki <macro@mips.com>
2
3 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
4
7cf7fcc8
AM
52018-05-16 Alan Modra <amodra@gmail.com>
6
7 PR 22458
8 * format.c (struct bfd_preserve): Add section_id.
9 (bfd_preserve_save, bfd_preserve_restore): Save and restore
10 _bfd_section_id.
11 (bfd_reinit): Set _bfd_section_id.
12 (bfd_check_format_matches): Put all matches of any priority into
13 matching_vector. Save initial section id and start each attempted
14 match at that section id.
15 * libbfd-in.h (_bfd_section_id): Declare.
16 * section.c (_bfd_section_id): Rename from section_id and make
17 global. Adjust uses.
18 (bfd_get_next_section_id): Delete.
19 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
20 bfd_get_section_id with _bfd_section_id.
21 * libbfd.h: Regenerate.
22 * bfd-in2.h: Regenerate.
23
810ed4db
CG
242018-05-15 Christophe Guillon <christophe.guillon@st.com>
25
26 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
27 of the aux structure are initialised.
28
1678bd35
FT
292018-05-15 Francois H. Theron <francois.theron@netronome.com>
30
31 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
32
293b4d4f
NC
332018-05-15 Nick Clifton <nickc@redhat.com>
34
35 * po/pt.po: New Portuguese translation.
36 * configure.ac (ALL_LINGUAS): Add pt.
37 * configure: Regenerate.
38
4ec09950
L
392018-05-14 H.J. Lu <hongjiu.lu@intel.com>
40
41 PR ld/23169
42 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
43 an error on IFUNC pointer defined in PDE.
44 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
45 _bfd_x86_elf_link_fixup_ifunc_symbol.
46 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
47 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
48 function.
49 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
50
9bc935ef
L
512018-05-14 H.J. Lu <hongjiu.lu@intel.com>
52
53 PR ld/23162
54 * elfxx-x86.c (elf_x86_linker_defined): New function.
55 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
56 _end and _edata locally defined within executables.
57
9933dc52
AM
582018-05-12 Alan Modra <amodra@gmail.com>
59
60 PR 20659
61 * elf.c (rewrite_elf_program_header): Use segment_mark only for
62 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
63 Instead make matching_lma and suggested_lma pointers to the
64 sections. Align section vma and lma calculated from segment.
65 Don't clear includes_phdrs or includes_filehdr based on p_paddr
66 test. Try to handle alignment padding before first section by
67 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
68
493ffac5
DD
692018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
70
71 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
72 conformant to TI ABI.
73 (pru_elf32_relax_section): Likewise.
74 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
75 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
76 (pru_elf32_pmem_relocate): Trap - should not get here.
77 (pru_elf32_relocate_section): Add support for REL relocations.
78 (elf_info_to_howto_rel): Enable REL.
79 (elf_backend_may_use_rel_p): Likewise.
80 (elf_backend_may_use_rela_p): Likewise.
81 (elf_backend_default_use_rela_p): Likewise.
82
b4560c7d
AM
832018-05-09 Alan Modra <amodra@gmail.com>
84
85 PR 23148
86 * peXXigen.c (pe_print_edata): Correct minimum size.
87
53db9cf9
AM
882018-05-09 Alan Modra <amodra@gmail.com>
89
90 PR 23147
91 * peXXigen.c (pe_print_idata): Bound check hint_addr.
92
95a6d235
NC
932018-05-08 Nick Clifton <nickc@redhat.com>
94
95 PR 22809
96 * elf.c (bfd_elf_get_str_section): Check for an excessively large
97 string section.
98 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
99 attribute section is larger than the size of the file.
100
7bd8862c
AM
1012018-05-07 Alan Modra <amodra@gmail.com>
102
103 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
104 strncmp when checking for ".bf" special symbol.
105 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
106 section name a char array, remove sentinal known_sections entry,
107 and adjust loop over known_sections to suit. Use memcmp rather
108 than strncmp.
109
602f1657
AM
1102018-05-04 Alan Modra <amodra@gmail.com>
111
112 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
113 (struct elf_external_linux_prpsinfo32_ugid16),
114 (struct elf_external_linux_prpsinfo64_ugid32),
115 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
116 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
117 Move comment to..
118 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
119 directives.
120 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
121 to data.
122 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
123 * elf32-s390.c (elf_s390_write_core_note): Likewise.
124 * elf64-s390.c (elf_s390_write_core_note): Likewise.
125 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
126 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
127 pragmas.
128 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
129 false positive gcc-8 warning.
7bd8862c 130 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
602f1657 131
a27ca19c
TMQMF
1322018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
133
134 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
135 of arguments when warning about different long double types.
136
3be08ea4
SA
1372018-05-03 Simon Atanasyan <simon@atanasyan.com>
138
139 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
140 (elf_backend_fixup_symbol): New macro.
141 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
142 handling.
143 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
144
fe944acf
FT
1452018-04-30 Francois H. Theron <francois.theron@netronome.com>
146
147 * Makefile.am: Added NFP files to build.
148 * archures.c: Added bfd_arch_nfp
149 * config.bfd: Added NFP support.
150 * configure.ac: Added NFP support.
151 * cpu-nfp.c: New, for NFP support.
152 * elf-bfd.h: Added elf_section_info()
153 * elf64-nfp.c: New, for NFP support.
154 * po/SRC-POTFILES.in: Added NFP source files.
155 * targets.c: Added nfp_elf64_vec
156 * bfd-in2.h: Regenerate.
157 * Makefile.in: Regenerate.
158 * configure: Regenerate.
159
ffa389a3
AM
1602018-04-27 Alan Modra <amodra@gmail.com>
161
162 * bfd-in2.h: Regenerate.
163 * libbfd.h: Regenerate.
164
04383fd1
AM
1652018-04-27 Alan Modra <amodra@gmail.com>
166
167 PR 23123
168 PR 22374
169 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
170 relocs for ifuncs.
171 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
172
bfa5bd2a
PA
1732018-04-26 Pedro Alves <palves@redhat.com>
174
175 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
176 ifunc and non-ifunc symbols duplicates.
177
59029f57
CL
1782018-04-25 Christophe Lyon <christophe.lyon@st.com>
179 Mickaël Guêné <mickael.guene@st.com>
180
181 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
182 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
183 (elf32_arm_populate_plt_entry): Likewise.
184 (elf32_arm_output_plt_map_1): Likewise.
185 (elf32_arm_output_arch_local_syms): Likewise.
186
fac7bd64
CL
1872018-04-25 Christophe Lyon <christophe.lyon@st.com>
188 Mickaël Guêné <mickael.guene@st.com>
189
190 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
191 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
192
29e9b073
CL
1932018-04-25 Christophe Lyon <christophe.lyon@st.com>
194 Mickaël Guêné <mickael.guene@st.com>
195
196 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
197 for R_ARM_TARGET2.
198
cb10292c
CL
1992018-04-25 Christophe Lyon <christophe.lyon@st.com>
200 Mickaël Guêné <mickael.guene@st.com>
201
202 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
203 (elf32_arm_always_size_sections): Create stack segment.
204
5c5a4843
CL
2052018-04-25 Christophe Lyon <christophe.lyon@st.com>
206 Mickaël Guêné <mickael.guene@st.com>
207
208 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
209 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
210 relocations.
211 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
212 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
213 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
214 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
215 (struct elf32_arm_link_hash_table): Update comment.
216 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
217 (IS_ARM_TLS_RELOC): Likewise.
218 (elf32_arm_check_relocs): Likewise.
219 (allocate_dynrelocs_for_symbol): Likewise.
220 (elf32_arm_size_dynamic_sections): Update comment.
221 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
222 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
223
7801f98f
CL
2242018-04-25 Christophe Lyon <christophe.lyon@st.com>
225 Mickaël Guêné <mickael.guene@st.com>
226
227 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
228 (elf32_arm_create_dynamic_sections): Handle FDPIC.
229 (elf32_arm_allocate_plt_entry): Likewise.
230 (elf32_arm_populate_plt_entry): Likewise.
231 (elf32_arm_output_plt_map_1): Likewise.
232
e8b09b87
CL
2332018-04-25 Christophe Lyon <christophe.lyon@st.com>
234 Mickaël Guêné <mickael.guene@st.com>
235
236 * elf32-arm.c (struct fdpic_local): New.
237 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
238 (elf32_arm_local_fdpic_cnts): New.
239 (struct fdpic_global): New.
240 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
241 (elf32_arm_link_hash_table): Add srofixup field.
242 (arm_elf_add_rofixup): New.
243 (arm_elf_fill_funcdesc): New.
244 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
245 (elf32_arm_allocate_local_sym_info): Likewise.
246 (create_got_section): Create .rofixup section.
247 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
248 (bfd_elf32_arm_set_target_params): Handle FDPIC.
249 (elf32_arm_final_link_relocate): Likewise.
250 (elf32_arm_check_relocs): Likewise.
251 (allocate_dynrelocs_for_symbol): Likewise.
252 (elf32_arm_size_dynamic_sections): Likewise.
253 (elf32_arm_finish_dynamic_sections): Likewise.
254 (elf32_arm_output_arch_local_syms): Likewise.
255 (elf32_arm_fdpic_omit_section_dynsym): New.
256
188fd7ae
CL
2572018-04-25 Christophe Lyon <christophe.lyon@st.com>
258 Mickaël Guêné <mickael.guene@st.com>
259
260 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
261 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
262 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
263 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
264 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
265 (elf32_arm_howto_from_type): Take new members of
266 elf32_arm_howto_table_2 into account.
267 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
268 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
269 BFD_RELOC_ARM_FUNCDESC_VALUE.
270 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
271 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
272 BFD_RELOC_ARM_FUNCDESC_VALUE.
273
18a20338
CL
2742018-04-25 Christophe Lyon <christophe.lyon@st.com>
275 Mickaël Guêné <mickael.guene@st.com>
276
277 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
278 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
279 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
280 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
281
617a5ada
CL
2822018-04-25 Christophe Lyon <christophe.lyon@st.com>
283 Mickaël Guêné <mickael.guene@st.com>
284
285 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
286 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
287 arm*-*-uclinuxfdpiceabi.
288 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
289 arm_elf32_fdpic_le_vec.
290 * configure: Regenerate.
291 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
292 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
293 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
294 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
295 (elf32_arm_fdpic_link_hash_table_create): New.
296 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
297 arm_elf32_fdpic_le_vec.
298
d99b4b92
AM
2992018-04-25 Alan Modra <amodra@gmail.com>
300
301 * elf-linux-core.h: Disable gcc-8 string truncation warning.
302 * elf.c (elfcore_write_prpsinfo): Likewise.
303
3042018-04-25 Alan Modra <amodra@gmail.com>
2ac93be7
AM
305
306 * Makefile.am: Remove arm-aout and arm-coff support.
307 * config.bfd: Likewise.
308 * configure.ac: Likewise.
309 * targets.c: Likewise.
310 * aout-arm.c: Delete.
311 * armnetbsd.c: Delete.
312 * riscix.c: Delete.
313 * Makefile.in: Regenerate.
314 * configure: Regenerate.
315 * po/SRC-POTFILES.in: Regenerate.
316
aa4a8c2a
NC
3172018-04-24 Nick Clifton <nickc@redhat.com>
318
db0c309f
NC
319 PR 23113
320 * elf.c (ignore_section_sym): Check for the output_section pointer
321 being NULL before dereferencing it.
322
aa4a8c2a
NC
323 PR 23110
324 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
325 a negative PE_DEBUG_DATA size before iterating over the debug data.
326
b9f26d2e
AM
3272018-04-23 Alan Modra <amodra@gmail.com>
328
329 * elf-linux-core.h: Revert last change.
330 * elf.c: Likewise.
331
bf82069d
NC
3322018-04-23 Nick Clifton <nickc@redhat.com>
333
334 PR 23056
335 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
336 the end of the string table, and zero it.
337
5a6312e8
AM
3382018-04-23 Alan Modra <amodra@gmail.com>
339
340 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
341 gcc-8 string truncation warning.
342 (swap_linux_prpsinfo32_ugid16_out): Likewise.
343 (swap_linux_prpsinfo64_ugid32_out): Likewise.
344 (swap_linux_prpsinfo64_ugid16_out): Likewise.
345 * elf.c (elfcore_write_prpsinfo): Likewise.
346
bf82069d
NC
3472018-04-23 Nick Clifton <nickc@redhat.com>
348
349 PR 23056
350 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
351 the end of the string table, and zero it.
352
4352556b
AM
3532018-04-20 Alan Modra <amodra@gmail.com>
354
355 PR 22978
356 * elf32-hppa.c (got_relocs_needed): Add extra param to special
357 case both dtprel and tprel relocs.
358 (allocate_dynrelocs): Adjust conditions for got relocs.
359 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
360 Emit dynamic relocs on TLS GOT entries for shared libraries,
361 not when pic. Omit dynamic reloc on dtprel entry when local,
362 and on tprel entry when local and executable.
363
f6a8b8c7
AM
3642018-04-19 Alan Modra <amodra@gmail.com>
365
366 PR 22537
367 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
368 (hppa_type_of_stub): Don't return a long branch stub for
369 symbols other than those defined statically.
370
8e415ce8
AM
3712018-04-19 Alan Modra <amodra@gmail.com>
372
373 * Makefile.am: Revert 2018-04-18 coff-mips changes.
374 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
375 to selvecs for mips targets change 2018-04-18.
376 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
377 and mips_ecoff_bele_vec.
378 * targets.c: Likewise.
379 * coff-mips.c: Resurrect.
380 * Makefile.in: Regenerate.
381 * configure: Regenerate.
382 * po/SRC-POTFILES.in: Regenerate.
383
3596d8ce
AM
3842018-04-18 Alan Modra <amodra@gmail.com>
385
386 * Makefile.am: Remove mips aout and coff support.
387 * config.bfd: Likewise.
388 * configure.ac: Likewise.
389 * targets.c: Likewise.
390 * coff-mips.c: Delete
391 * mipsbsd.c: Delete
392 * pe-mips.c: Delete
393 * pei-mips.c: Delete
394 * Makefile.in: Regenerate.
395 * configure: Regenerate.
396 * po/SRC-POTFILES.in: Regenerate.
397
d9dd2045
L
3982018-04-17 H.J. Lu <hongjiu.lu@intel.com>
399
400 * elf32-i386.c (elf32_bed): Define before including
401 "elf32-target.h".
402 * elf64-x86-64.c (elf64_bed): Define before including
403 "elf64-target.h".
404 (elf32_bed): Define before including "elf32-target.h".
405
e4e6a73d
L
4062018-04-17 H.J. Lu <hongjiu.lu@intel.com>
407
408 PR ld/23055
409 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
410 normal input file with compatible relocation.
411
c65c21e1
AM
4122018-04-18 Alan Modra <amodra@gmail.com>
413
414 * Makefile.am: Remove support for assorted i386 aout and coff targets.
415 * config.bfd: Likewise.
416 * configure.ac: Likewise.
417 * doc/bfdint.texi: Likewise.
418 * targets.c: Likewise.
419 * freebsd.h: Delete.
420 * i386dynix.c: Delete.
421 * i386freebsd.c: Delete.
422 * i386linux.c: Delete.
423 * i386mach3.c: Delete.
424 * i386netbsd.c: Delete.
425 * i386os9k.c: Delete.
426 * Makefile.in: Regenerate.
427 * configure: Regenerate.
428 * po/SRC-POTFILES.in: Regenerate.
429
884d4d8a 4302018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
3f0a5f17
ME
431
432 Microblaze Target: PIC data text relative
433
434 * bfd/reloc.c (2 new BFD relocations):
435 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
436 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
437 * bfd/bfd-in2.h: Regenerate
438 * bfd/libbfd.h: Regenerate
439 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
440 new relocs and handle them in both relocate and relax functions.
441 (microblaze_elf_reloc_type_lookup): add mapping between for new
442 bfd relocs.
443 (microblaze_elf_relocate_section): Handle new relocs in case of
444 elf relocation.
445 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
446
6327533b
NC
4472018-04-17 Nick Clifton <nickc@redhat.com>
448
808346fc
NC
449 PR 23055
450 * aoutx.h (find_nearest_line): Check that the symbol name exists
451 and is long enough, before attempting to see if it is for a .o
452 file.
453 * hash.c (bfd_hash_hash): Add an assertion that the string is not
454 NULL.
455 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
456 NULL.
457 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
458 has no name.
459
6327533b
NC
460 PR 23065
461 * dwarf2.c (concat_filename): Check for a NULL table pointer.
462
e9af4700
NC
4632018-04-16 Nick Clifton <nickc@redhat.com>
464
465 PR 23061
466 * coffgen.c (coff_pointerize_aux): Check for an out of range
467 fixup.
468
ddb00039
AM
4692018-04-16 Alan Modra <amodra@gmail.com>
470
471 * Makefile.am: Remove arm-epoc-pe support.
472 * coff-arm.c: Likewise.
473 * config.bfd: Likewise.
474 * configure.ac: Likewise.
475 * targets.c: Likewise.
476 * epoc-pe-arm.c: Delete.
477 * epoc-pei-arm.c: Delete.
478 * Makefile.in: Regenerate.
479 * configure: Regenerate.
480 * po/SRC-POTFILES.in: Regenerate.
481
c9098af4
AM
4822018-04-16 Alan Modra <amodra@gmail.com>
483
484 * Makefile.am: Remove sparc-aout and sparc-coff support.
485 * config.bfd: Likewise.
486 * configure.ac: Likewise.
487 * targets.c: Likewise.
488 * aout-sparcle.c: Delete.
489 * aoutf1.h: Delete.
490 * cf-sparclynx.c: Delete.
491 * coff-sparc.c: Delete.
492 * demo64.c: Delete.
493 * sparclinux.c: Delete.
494 * sparclynx.c: Delete.
495 * sparcnetbsd.c: Delete.
496 * sunos.c: Delete.
497 * Makefile.in: Regenerate.
498 * configure: Regenerate.
499 * po/SRC-POTFILES.in: Regenerate.
500
dc12032b
AM
5012018-04-16 Alan Modra <amodra@gmail.com>
502
503 * Makefile.am: Remove m68k-aout and m68k-coff support.
504 * aoutf1.h: Likewise.
505 * aoutx.h: Likewise.
506 * archive.c: Likewise.
507 * bfd-in.h: Likewise.
508 * bfd.c: Likewise.
509 * coffcode.h: Likewise.
510 * coffswap.h: Likewise.
511 * config.bfd: Likewise.
512 * configure.ac: Likewise.
513 * configure.host: Likewise.
514 * doc/bfd.texinfo: Likewise.
515 * doc/bfdint.texi: Likewise.
516 * freebsd.h: Likewise.
517 * gen-aout.c: Likewise.
518 * hpux-core.c: Likewise.
519 * libaout.h: Likewise.
520 * libbfd-in.h: Likewise.
521 * pdp11.c: Likewise.
522 * peicode.h: Likewise.
523 * riscix.c: Likewise.
524 * targets.c: Likewise.
525 * aout0.c: Delete.
526 * coff-apollo.c: Delete.
527 * coff-aux.c: Delete.
528 * coff-m68k.c: Delete.
529 * coff-svm68k.c: Delete.
530 * coff-u68k.c: Delete.
531 * hosts/delta68.h: Delete.
532 * hosts/hp300bsd.h: Delete.
533 * hosts/m68kaux.h: Delete.
534 * hosts/news.h: Delete.
535 * hp300bsd.c: Delete.
536 * hp300hpux.c: Delete.
537 * liboasys.h: Delete.
538 * m68k4knetbsd.c: Delete.
539 * m68klinux.c: Delete.
540 * m68knetbsd.c: Delete.
541 * oasys.c: Delete.
542 * versados.c: Delete.
543 * Makefile.in: Regenerate.
544 * bfd-in2.h: Regenerate.
545 * configure: Regenerate.
546 * libbfd.h: Regenerate.
547 * po/SRC-POTFILES.in: Regenerate.
548
211dc24b
AM
5492018-04-16 Alan Modra <amodra@gmail.com>
550
551 * Makefile.am: Remove sh5 and sh64 support.
552 * archures.c: Likewise.
553 * config.bfd: Likewise.
554 * configure.ac: Likewise.
555 * cpu-sh.c: Likewise.
556 * elf32-sh-relocs.h: Likewise.
557 * elf32-sh.c: Likewise.
558 * targets.c: Likewise.
559 * elf32-sh64-com.c: Delete.
560 * elf32-sh64.c: Delete.
561 * elf32-sh64.h: Delete.
562 * elf64-sh64.c: Delete.
563 * Makefile.in: Regenerate.
564 * bfd-in2.h: Regenerate.
565 * configure: Regenerate.
566 * po/SRC-POTFILES.in: Regenerate.
567
4db9937a
AM
5682018-04-16 Alan Modra <amodra@gmail.com>
569
570 * Makefile.am: Remove sh-symbianelf support.
571 * config.bfd: Likewise.
572 * configure.ac: Likewise.
573 * targets.c: Likewise.
574 * elf32-sh-symbian.c: Delete.
575 * Makefile.in: Regenerate.
576 * configure: Regenerate.
577 * po/SRC-POTFILES.in: Regenerate.
578
9f5d1593
AM
5792018-04-16 Alan Modra <amodra@gmail.com>
580
581 * Makefile.am: Remove vax-bsd and vax-ultrix support.
582 * config.bfd: Likewise.
583 * configure.ac: Likewise.
584 * targets.c: Likewise.
585 * vaxbsd.c: Delete.
586 * Makefile.in: Regenerate.
587 * configure: Regenerate.
588 * po/SRC-POTFILES.in: Regenerate.
589
a9a4b302
AM
5902018-04-16 Alan Modra <amodra@gmail.com>
591
592 * Makefile.am: Remove w65 support.
593 * archures.c: Likewise.
594 * coffcode.h: Likewise.
595 * config.bfd: Likewise.
596 * configure.ac: Likewise.
597 * targets.c: Likewise.
598 * coff-w65.c: Delete.
599 * cpu-w65.c: Delete.
600 * Makefile.in: Regenerate.
601 * bfd-in2.h: Regenerate.
602 * configure: Regenerate.
603 * po/SRC-POTFILES.in: Regenerate.
604
04cb01fd
AM
6052018-04-16 Alan Modra <amodra@gmail.com>
606
607 * Makefile.am: Remove we32k support.
608 * archures.c: Likewise.
609 * coffcode.h: Likewise.
610 * config.bfd: Likewise.
611 * configure.ac: Likewise.
612 * targets.c: Likewise.
613 * coff-we32k.c: Delete.
614 * cpu-we32k.c: Delete.
615 * Makefile.in: Regenerate.
616 * bfd-in2.h: Regenerate.
617 * configure: Regenerate.
618 * po/SRC-POTFILES.in: Regenerate.
619
c2bf1eec
AM
6202018-04-16 Alan Modra <amodra@gmail.com>
621
622 * Makefile.am: Remove m88k support.
623 * aoutx.h: Likewise.
624 * archures.c: Likewise.
625 * coffcode.h: Likewise.
626 * coffswap.h: Likewise.
627 * config.bfd: Likewise.
628 * configure.ac: Likewise.
629 * cpu-ns32k.c: Likewise.
630 * elf32-nds32.c: Likewise.
631 * mach-o.c: Likewise.
632 * netbsd-core.c: Likewise.
633 * reloc.c: Likewise.
634 * targets.c: Likewise.
635 * coff-m88k.c: Delete.
636 * cpu-m88k.c: Delete.
637 * elf32-m88k.c: Delete.
638 * hosts/m88kmach3.h: Delete.
639 * m88kmach3.c: Delete.
640 * m88kopenbsd.c: Delete.
641 * Makefile.in: Regenerate.
642 * bfd-in2.h: Regenerate.
643 * configure: Regenerate.
644 * po/SRC-POTFILES.in: Regenerate.
645
6793974d
AM
6462018-04-16 Alan Modra <amodra@gmail.com>
647
648 * Makefile.am: Remove i370 support.
649 * archures.c: Likewise.
650 * config.bfd: Likewise.
651 * configure.ac: Likewise.
652 * targets.c: Likewise.
653 * cpu-i370.c: Delete.
654 * elf32-i370.c: Delete.
655 * Makefile.in: Regenerate.
656 * bfd-in2.h: Regenerate.
657 * configure: Regenerate.
658 * po/SRC-POTFILES.in: Regenerate.
659
e82aa794
AM
6602018-04-16 Alan Modra <amodra@gmail.com>
661
662 * Makefile.am: Remove h8500 support.
663 * archures.c: Likewise.
664 * coffcode.h: Likewise.
665 * config.bfd: Likewise.
666 * configure.ac: Likewise.
667 * targets.c: Likewise.
668 * coff-h8500.c: Delete.
669 * cpu-h8500.c: Delete.
670 * Makefile.in: Regenerate.
671 * bfd-in2.h: Regenerate.
672 * configure: Regenerate.
673 * po/SRC-POTFILES.in: Regenerate.
674
fe0bf0fd
AM
6752018-04-16 Alan Modra <amodra@gmail.com>
676
677 * Makefile.am: Remove h8300-coff support.
678 * coffcode.h: Likewise.
679 * config.bfd: Likewise.
680 * configure.ac: Likewise.
681 * reloc16.c: Likewise.
682 * targets.c: Likewise.
683 * coff-h8300.c: Delete.
684 * Makefile.in: Regenerate.
685 * configure: Regenerate.
686 * po/SRC-POTFILES.in: Regenerate.
687
fdef3943
AM
6882018-04-16 Alan Modra <amodra@gmail.com>
689
690 * Makefile.am: Remove IEEE 695 support.
691 * archures.c: Likewise.
692 * bfd.c: Likewise.
693 * config.bfd: Likewise.
694 * configure.ac: Likewise.
695 * doc/bfd.texinfo: Likewise.
696 * doc/bfdint.texi: Likewise.
697 * doc/bfdsumm.texi: Likewise.
698 * section.c: Likewise.
699 * targets.c: Likewise.
700 * ieee.c: Delete.
701 * libieee.h: Delete.
702 * Makefile.in: Regenerate.
703 * bfd-in2.h: Regenerate.
704 * configure: Regenerate.
705 * po/SRC-POTFILES.in: Regenerate.
706
de96689e
AM
7072018-04-16 Alan Modra <amodra@gmail.com>
708
709 * config.bfd: Remove tandem support.
710
5972ac73
AM
7112018-04-16 Alan Modra <amodra@gmail.com>
712
713 * Makefile.am: Remove newsos3 support.
714 * aoutx.h: Likewise.
715 * config.bfd: Likewise.
716 * configure.ac: Likewise.
717 * targets.c: Likewise.
718 * newsos3.c: Delete.
719 * Makefile.in: Regenerate.
720 * configure: Regenerate.
721 * po/SRC-POTFILES.in: Regenerate.
722
b4b594e3
AM
7232018-04-16 Alan Modra <amodra@gmail.com>
724
725 * Makefile.am: Remove netware support.
726 * bfd-in.h: Likewise.
727 * bfd.c: Likewise.
728 * config.bfd: Likewise.
729 * configure.ac: Likewise.
730 * doc/bfdint.texi: Likewise.
731 * ecoff.c: Likewise.
732 * targets.c: Likewise.
733 * libnlm.h: Delete.
734 * nlm-target.h: Delete.
735 * nlm.c: Delete.
736 * nlm32-alpha.c: Delete.
737 * nlm32-i386.c: Delete.
738 * nlm32-ppc.c: Delete.
739 * nlm32-sparc.c: Delete.
740 * nlm32.c: Delete.
741 * nlm64.c: Delete.
742 * nlmcode.h: Delete.
743 * nlmswap.h: Delete.
744 * Makefile.in: Regenerate.
745 * bfd-in2.h: Regenerate.
746 * configure: Regenerate.
747 * po/SRC-POTFILES.in: Regenerate.
748
fceadf09
AM
7492018-04-16 Alan Modra <amodra@gmail.com>
750
751 * archures.c: Remove tahoe support.
752 * config.bfd: Likewise.
753 * configure.ac: Likewise.
754 * hosts/tahoe.h: Delete.
755 * bfd-in2.h: Regenerate.
756 * configure: Regenerate.
757
702d1671
AM
7582018-04-14 Alan Modra <amodra@gmail.com>
759
760 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
761 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
762 sanity test.
763 (elfNN_bed): Init relropagesize.
764 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
765 select relropagesize.
766 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
767 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
768 (ELF_MINPAGESIZE): Don't define.
769 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
770 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
771 * bfd-in2.h: Regenerate.
772
03aa9684
AM
7732018-04-14 Alan Modra <amodra@gmail.com>
774
775 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
776 on __QNXTARGET__ define.
777
24acfe5e
AM
7782018-04-14 Alan Modra <amodra@gmail.com>
779
780 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
781 to obsolete list.
782
a8eb42a8
AM
7832018-04-11 Alan Modra <amodra@gmail.com>
784
785 * aout-adobe.c: Delete.
786 * bout.c: Delete.
787 * coff-i860.c: Delete.
788 * coff-i960.c: Delete.
789 * cpu-i860.c: Delete.
790 * cpu-i960.c: Delete.
791 * elf32-i860.c: Delete.
792 * elf32-i960.c: Delete.
793 * hosts/i860mach3.h: Delete.
794 * Makefile.am: Remove i860, i960, bout, and adobe support.
795 * archures.c: Remove i860 and i960 support.
796 * coffcode.h: Likewise.
797 * reloc.c: Likewise.
798 * aoutx.h: Comment updates.
799 * archive.c: Remove BOUT and i960 support.
800 * bfd.c: Remove BOUT support.
801 * coffswap.h: Remove i960 support.
802 * config.bfd: Remove i860, i960 and adobe targets.
803 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
804 * targets.c: Likewise.
805 * ieee.c: Remove i960 support.
806 * mach-o.c: Remove i860 support.
807 * Makefile.in: Regenerate.
808 * bfd-in2.h: Regenerate.
809 * configure: Regenerate.
810 * libbfd.h: Regenerate.
811 * po/SRC-POTFILES.in: Regenerate.
812
aec2e0d2
MR
8132018-04-09 Maciej W. Rozycki <macro@mips.com>
814
815 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
816 in the BFD symbol referred by the relocation.
817 (mips_elf64_write_rela): Likewise.
818
9ccfa98b
MR
8192018-04-09 Maciej W. Rozycki <macro@mips.com>
820
821 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
822 error for out-of-range `r_sym' values.
823
3e04d765
AM
8242018-04-09 Alan Modra <amodra@gmail.com>
825
826 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
827 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
828 (ppc64_elf_check_relocs): Set has_pltcall.
829 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
830 (ppc64_elf_inline_plt): New function.
831 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
832 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
833 * elf32-ppc.c (has_pltcall): Define.
834 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
835 (ppc_elf_check_relocs): Set has_pltcall.
836 (ppc_elf_inline_plt): New function.
837 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
838 (ppc_elf_size_dynamic_sections): Likewise.
839 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
840
23cedd1d
AM
8412018-04-09 Alan Modra <amodra@gmail.com>
842
843 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
844 (is_plt_seq_reloc): New function.
845 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
846 (ppc_elf_tls_optimize): Handle inline plt call sequence.
847 (ppc_elf_relax_section): Handle PLTCALL reloc.
848 (ppc_elf_relocate_section): Nop out inline plt call sequence when
849 resolving locally.
850 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
851 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
852 (has_tls_get_addr_call): Correct comment.
853 (is_branch_reloc): Add PLTCALL.
854 (is_plt_seq_reloc): New function.
855 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
856 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
857 entry for R_PPC64_PLTCALL.
858 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
859 (ppc_type_of_stub): Handle PLTCALL reloc.
860 (toc_adjusting_stub_needed): Likewise.
861 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
862 reloc insn. Nop out inline plt call sequence when resolving
863 locally. Handle __tls_get_addr inline plt call optimization.
864
2d7ad24e
AM
8652018-04-09 Alan Modra <amodra@gmail.com>
866
867 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
868 (struct ppc_stub_hash_entry): Add symtype field.
869 (PLT_KEEP): Define.
870 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
871 (create_linkage_sections): Create pltlocal and relpltlocal.
872 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
873 Set PLT_KEEP.
874 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
875 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
876 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
877 Keep PLT entries for inline calls against locals.
878 (ppc_build_one_stub): Use pltlocal as appropriate.
879 (ppc_size_one_stub): Likewise.
880 (ppc64_elf_size_stubs): Set symtype.
881 (build_global_entry_stubs_and_plt): Init pltlocal and write
882 relpltlocal for globals.
883 (write_plt_relocs_for_local_syms): Likewise for local syms.
884 (ppc64_elf_relocate_section): Support PLT for local syms.
885 * elf32-ppc.c (PLT_KEEP): Define.
886 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
887 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
888 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
889 Set PLT_KEEP. Adjust update_local_sym_info call.
890 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
891 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
892 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
893 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
894 (write_global_sym_plt): Init pltlocal and write relpltlocal.
895 (ppc_finish_symbols): Likewise for locals.
896
49c09209
AM
8972018-04-09 Alan Modra <amodra@gmail.com>
898
899 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
900 for local symbols to..
901 (write_plt_relocs_for_local_syms): ..here. New function.
902 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
903 global symbols to..
904 (build_global_entry_stubs_and_plt): ..here. Rename from
905 build_global_entry_stubs.
906 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
907 Call write_plt_relocs_for_local_syms.
908 * elf32-ppc.c (get_sym_h): New function.
909 (ppc_elf_relax_section): Use get_sym_h.
910 (ppc_elf_relocate_section): Move output of PLT relocs and glink
911 stubs for local symbols to..
912 (ppc_finish_symbols): ..here. New function.
913 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
914 global syms to..
915 (write_global_sym_plt): ..here. New function.
916 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
917 (ppc_finish_symbols): Declare.
918
08be3224
AM
9192018-04-09 Alan Modra <amodra@gmail.com>
920
921 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
922 (ppc_elf_relocate_section): Likewise.
923 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
924 (ppc64_elf_relocate_section): Likewise. Correct PLT16
925 resolution to plt entry relative to toc pointer.
926
37da22e5
AM
9272018-04-09 Alan Modra <amodra@gmail.com>
928
929 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
930 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
931 file when other TLS flags are tested in a mask.
932 (TLS_MARK, NON_GOT): Define.
933 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
934 (update_local_sym_info): Don't create got entry when NON_GOT.
935 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
936 Set TLS_MARK.
937 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
938 (ppc64_elf_relocate_section): Likewise.
939 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
940 __tls_get_addr calls lacking a marker reloc.
941 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
942 TLS_TPRELGD): Renumber. Update comment.
943 (TLS_MARK, NON_GOT): Define.
944 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
945 (update_local_sym_info): Don't create got entry when NON_GOT.
946 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
947 Set TLS_MARK.
948 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
949 __tls_get_addr calls lacking a marker reloc.
950
a6fd92b0
L
9512018-04-06 H.J. Lu <hongjiu.lu@intel.com>
952
953 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
954 R_X86_64_converted_reloc_bit.
955
3cba8b6c
L
9562018-04-05 H.J. Lu <hongjiu.lu@intel.com>
957
958 PR gas/22318
959 * configure: Regenerated.
960
0e8452bb
AM
9612018-04-05 Alan Modra <amodra@gmail.com>
962
963 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
964 (elf_hppa_info_to_howto_rel): Likewise.
965
8ee55178
MR
9662018-04-04 Maciej W. Rozycki <macro@mips.com>
967
968 * elf-hppa.h (elf_hppa_info_to_howto): Also return
969 unsuccessfully for unimplemented relocations.
970 (elf_hppa_info_to_howto_rel): Likewise.
971
5d7c8b80
MR
9722018-04-04 Maciej W. Rozycki <macro@mips.com>
973
974 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
975 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
976 howto lookup failure.
977 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
978 accordingly.
979 (elf32_i860_info_to_howto_rela): Likewise.
980 (elf32_i860_relocate_splitn): Likewise.
981 (elf32_i860_relocate_pc16): Likewise.
982 (elf32_i860_relocate_pc26): Likewise.
983 (elf32_i860_relocate_section): Likewise.
984
707bad1b
MR
9852018-04-04 Maciej W. Rozycki <macro@mips.com>
986
987 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
988 check for `visium_elf_howto_table' table access.
989
0cc919dc
MR
9902018-04-04 Maciej W. Rozycki <macro@mips.com>
991
992 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
993 check for `iq2000_elf_howto_table' table access.
994
f428698e
MR
9952018-04-04 Maciej W. Rozycki <macro@mips.com>
996
997 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
998 for `elf32_frv_howto_table' table access.
999
7ed6f92a
MR
10002018-04-04 Maciej W. Rozycki <macro@mips.com>
1001
1002 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1003 unsuccessfully for placeholder howtos.
1004 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1005 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1006
75def2ab
MR
10072018-03-29 Maciej W. Rozycki <macro@mips.com>
1008
1009 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1010 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1011
8b6a949a
MR
10122018-03-28 Maciej W. Rozycki <macro@mips.com>
1013
1014 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1015 ATTRIBUTE_UNUSED from `abfd'.
1016
d81270c3
MR
10172018-03-28 Maciej W. Rozycki <macro@mips.com>
1018
1019 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1020 `_bfd_error_handler' call formatting.
1021
60dceb8d 10222018-03-28 Maciej W. Rozycki <macro@mips.com>
8205a328
MR
1023
1024 * elf32-mips.c (mips_info_to_howto_rel): Call
1025 `mips_elf32_rtype_to_howto' directly rather than via
1026 `->elf_backend_mips_rtype_to_howto'.
1027
e04ef022
RL
10282018-03-28 Renlin Li <renlin.li@arm.com>
1029
1030 PR ld/22970
1031 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1032 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1033 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1034 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1035 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1036 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1037 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1038 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1039 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1040 (elfNN_aarch64_final_link_relocate): Support new relocations.
1041 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1042 relocations.
1043 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1044
84f1b9fb
RL
10452018-03-28 Renlin Li <renlin.li@arm.com>
1046
1047 PR ld/22970
1048 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1049 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1050 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1051 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1052 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1053 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1054 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1055 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1056 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1057 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1058 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1059 TLSLE_LDST16_TPREL_LO12,
1060 TLSLE_LDST16_TPREL_LO12_NC,
1061 TLSLE_LDST32_TPREL_LO12,
1062 TLSLE_LDST32_TPREL_LO12_NC,
1063 TLSLE_LDST64_TPREL_LO12,
1064 TLSLE_LDST64_TPREL_LO12_NC,
1065 TLSLE_LDST8_TPREL_LO12,
1066 TLSLE_LDST8_TPREL_LO12_NC.
1067 * bfd-in2.h: Regenerated.
1068 * libbfd.h: Regenerated.
1069
f8745e1c
EB
10702018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1071
1072 PR ld/22972
1073 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1074 has_old_style_got_reloc.
1075 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1076 relocations. Fix a couple of long lines.
1077 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1078 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1079 GOT relocations.
1080
bf54968b
L
10812018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1082
1083 PR ld/23000
1084 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1085 ENDBR64 to the TLSDESC PLT entry.
1086
0ccf57bd
AM
10872018-03-21 Alan Modra <amodra@gmail.com>
1088
1089 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1090 symbols. Use size_t counts. Delete redundant opd test.
1091
4bad6366
AM
10922018-03-21 Alan Modra <amodra@gmail.com>
1093
1094 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1095
bac3c8c5
AM
10962018-03-21 Alan Modra <amodra@gmail.com>
1097
1098 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1099 field unsigned.
1100 (update_local_sym_info): Likewise for local_got_tls_masks.
1101 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1102
6a3858a6
AM
11032018-03-21 Alan Modra <amodra@gmail.com>
1104
1105 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1106 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1107 do in size_dynamic_sections.
1108
675e2809
AM
11092018-03-21 Alan Modra <amodra@gmail.com>
1110
1111 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1112 without first checking array bounds.
1113 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1114
416c34d6
L
11152018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1116
1117 PR ld/22983
1118 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1119 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1120
315aa1cf
NC
11212018-03-19 Nick Clifton <nickc@redhat.com>
1122
1123 * po/es.po: Updated Spanish translation.
1124
0854d504
MF
11252018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1126
1127 * elf32-xtensa.c (xlate_map_entry): Change types of address
1128 fields from 'unsigned' to 'bfd_vma'.
1129 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1130 the key argument to bsearch. Allow offsets past the end of a
1131 section, use the last map entry for translation of such offsets.
1132
f9671640
KLC
11332018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1134
1135 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1136 Not support the target feature.
1137 (nds32_elf_ex9_itb_base): Likewise.
1138 (nds32_elf_ex9_import_table): Likewise.
1139 (nds32_elf_ex9_finish): Likewise.
1140 (nds32_elf_ex9_reloc_jmp): Likewise.
1141 (nds32_elf_get_insn_with_reg): Likewise.
1142 (nds32_get_local_syms): Likewise.
1143 (nds32_elf_ex9_replace_instruction): Likewise.
1144 (nds32_elf_ifc_calc): Likewise.
1145 (nds32_elf_ifc_finish): Likewise.
1146 (nds32_elf_ifc_replace): Likewise.
1147 (nds32_elf_ifc_reloc): Likewise.
1148
7dda8d3c
AM
11492018-03-14 Alan Modra <amodra@gmail.com>
1150
1151 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1152 sfpr size added before defining alias symbols.
1153 (ppc64_elf_build_stubs): Add stub section padding before
1154 copying sfpr contents and defining save/restore alias symbols.
1155
9e223787
L
11562018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR ld/20882
1159 * elflink.c (elf_gc_mark_debug_section): Also check the local
1160 debug definition section.
1161
3e33b239
NC
11622018-03-13 Nick Clifton <nickc@redhat.com>
1163
1164 PR 22113
1165 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1166 function. Add an end address parameter. Check access of the data
1167 pointer to make sure that they do not extend beyond the end
1168 address. Return FALSE if any check fails. Add the end address
1169 pointer to the ui structure.
1170 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1171 codes to make sure that they do not extend beyond the end address
1172 pointer. Print an error message and return immediately if any
1173 check fails.
1174
f657f8c4
NC
11752018-03-09 Nick Clifton <nickc@redhat.com>
1176
1177 * elf64-s390.c (elf_s390_relocate_section): Move check for
1178 relocations against non-allocated sections to before the code that
1179 handles ifunc relocations.
1180 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1181 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1182 relocs against IFUNC symbols in non-allocated sections as relocs
1183 against FUNC symbols.
1184 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1185
347a8774
L
11862018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1187
1188 PR ld/22929
1189 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1190 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1191 relocation against FUNC symbol.
1192 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1193
0c1ded8d
RL
11942018-03-07 Renlin Li <renlin.li@arm.com>
1195
1196 PR ld/20402
1197 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1198 symbol, and don't emit relocation in specific case.
1199
0118219e
AM
12002018-03-07 Alan Modra <amodra@gmail.com>
1201
1202 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1203 (mips_elf64_slurp_one_reloc_table): Pass on error.
1204
dfb93f11
JC
12052018-03-03 James Cowgill <james.cowgill@mips.com>
1206 Maciej W. Rozycki <macro@mips.com>
1207
1208 PR ld/21900
1209 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1210 after calling `undefined_symbol' hook if this is an error
1211 condition. Assume the value of 0 for the symbol requested
1212 otherwise.
1213
9a2ebffd
JW
12142018-03-02 Jim Wilson <jimw@sifive.com>
1215
1216 PR 22903
1217 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1218 and nop instead of 4.
1219 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1220 8 instead of 4.
1221
788af978
JW
12222018-03-01 Jim Wilson <jimw@sifive.com>
1223
1224 PR 22756
1225 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1226 else if instead of if.
1227
5224fa03
AM
12282018-03-01 Alan Modra <amodra@gmail.com>
1229
1230 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1231
116acb2c
AM
12322018-02-28 Alan Modra <amodra@gmail.com>
1233
1234 PR 22887
1235 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1236
eef10466
NC
12372018-02-28 Nick Clifton <nickc@redhat.com>
1238
12c96342
NC
1239 PR 22895
1240 PR 22893
1241 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1242 pointer. Drop unused abfd parameter. Check the size of the block
1243 before initialising the data field. Return the end pointer if the
1244 size is invalid.
1245 (read_attribute_value): Adjust invocations of read_n_bytes.
1246
eef10466
NC
1247 PR 22894
1248 * dwarf1.c (parse_die): Check the length of form blocks before
1249 advancing the data pointer.
1250
0d329c0a
AM
12512018-02-28 Alan Modra <amodra@gmail.com>
1252
1253 PR 22887
1254 * aoutx.h (translate_symbol_table): Print an error message and set
1255 bfd_error on finding an invalid name string offset.
1256
f6aec96d
L
12572018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1258
1259 * config.in: Regenerated.
1260 * configure: Likewise.
1261 * configure.ac: Add --enable-separate-code.
1262 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1263 to 1 for Linux/x86 targets,
1264 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1265 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1266
f3185997
NC
12672018-02-27 Nick Clifton <nickc@redhat.com>
1268
e8f5af78
NC
1269 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1270 message.
1271 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1272 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1273 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1274 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1275 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1276 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1277 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1278 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1279 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1280
f3185997
NC
1281 PR 22875
1282 * elf-bfd.h (struct elf_backend_data): Change the return type of
1283 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1284 to bfd_boolean.
1285 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1286 value from the info_to_howto function and fail if that function
1287 failed.
1288 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1289 from the info_to_howto function.
1290 (elf32_h8_relax_section): Likewise.
1291 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1292 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1293 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1294 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1295 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1296 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1297 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1298 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1299 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1300 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1301 (riscv_elf_relocate_section): Likewise.
1302 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1303 bfd_boolean. Issue an error message, set an error value and
1304 return FALSE if the reloc is not recognized.
1305 (elf_hppa_info_to_howto_rel): Likewise.
1306 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1307 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1308 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1309 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1310 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1311 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1312 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1313 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1314 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1315 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1316 (cris_info_to_howto_rela): Likewise.
1317 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1318 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1319 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1320 Likewise.
1321 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1322 (elf32_dlx_info_to_howto_rel): Likewise.
1323 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1324 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1325 * elf32-frv.c (frv_info_to_howto_rela)
1326 (frvfdpic_info_to_howto_rel): Likewise.
1327 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1328 * elf32-gen.c (elf_generic_info_to_howto)
1329 (elf_generic_info_to_howto_rel): Likewise.
1330 * elf32-h8300.c (elf32_h8_info_to_howto)
1331 (elf32_h8_info_to_howto_rel): Likewise.
1332 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1333 * elf32-i386.c (elf_i386_reloc_type_lookup)
1334 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1335 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1336 Likewise.
1337 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1338 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1339 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1340 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1341 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1342 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1343 Likewise.
1344 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1345 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1346 * elf32-m68k.c (rtype_to_howto): Likewise.
1347 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1348 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1349 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1350 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1351 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1352 Likewise.
1353 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1354 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1355 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1356 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1357 Likewise.
1358 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1359 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1360 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1361 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1362 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1363 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1364 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1365 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1366 * elf32-score.c (s3_bfd_score_info_to_howto)
1367 (_bfd_score_info_to_howto): Likewise.
1368 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1369 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1370 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1371 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1372 (elf32_tic6x_info_to_howto_rel): Likewise.
1373 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1374 * elf32-v850.c (v850_elf_info_to_howto_rel)
1375 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1376 * elf32-vax.c (rtype_to_howto): Likewise.
1377 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1378 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1379 (elf32_wasm32_info_to_howto_rela): Likewise.
1380 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1381 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1382 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1383 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1384 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1385 * elf64-gen.c (elf_generic_info_to_howto)
1386 (elf_generic_info_to_howto_rel): Likewise.
1387 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1388 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1389 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1390 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1391 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1392 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1393 Likewise.
1394 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1395 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1396 Likewise.
1397 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1398 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1399 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1400 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1401 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1402 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1403 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1404 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1405 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1406 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1407 Default to NULL.
1408
1f4bace8
JW
14092018-02-26 Jim Wilson <jimw@sifive.com>
1410 Stephan Schreiber <info@fs-driver.org>
1411
1412 PR 15904
1413 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1414 call, set changed_contents and changed_relocs. Likewise after
1415 successful ia64_elf_relax_br call.
1416
6838f2be
AM
14172018-02-26 Alan Modra <amodra@gmail.com>
1418
1419 * elf.c (assign_file_positions_except_relocs): Don't segfault
1420 when actual number of phdrs is less than allocated. Delete
1421 outdated comment. Formatting.
1422
38f14ab8
AM
14232018-02-26 Alan Modra <amodra@gmail.com>
1424
1425 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1426 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1427 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1428 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1429 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1430 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1431 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1432 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1433 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1434 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1435 error/warning messages.
1436
6e05870c
AM
14372018-02-26 Alan Modra <amodra@gmail.com>
1438
1439 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1440 * syms.c: Standardize error/warning messages.
1441
59d08d6c
AM
14422018-02-26 Alan Modra <amodra@gmail.com>
1443
1444 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1445 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1446 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1447 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1448
90b6238f
AM
14492018-02-26 Alan Modra <amodra@gmail.com>
1450
1451 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1452
2c1c9679
AM
14532018-02-26 Alan Modra <amodra@gmail.com>
1454
1455 * elfxx-mips.c: Standardize error/warning messages.
1456
9793eb77
AM
14572018-02-26 Alan Modra <amodra@gmail.com>
1458
1459 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1460 * elflink.c: Standardize error/warning messages. Replace use of
1461 linker callback einfo with _bfd_error_handler when possible.
1462
0aa13fee
AM
14632018-02-26 Alan Modra <amodra@gmail.com>
1464
1465 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1466 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1467 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1468 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1469 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1470 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1471 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1472 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1473 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1474 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1475 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1476 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1477 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1478 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1479 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1480 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1481 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1482 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1483 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1484 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1485 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1486 unrecognized/unsupported reloc message.
1487
cf97bcb0
AM
14882018-02-26 Alan Modra <amodra@gmail.com>
1489
1490 * elf32-ppc.c: Standardize error/warning messages. Use
1491 _bfd_error_handler rather than einfo when einfo features not used.
1492 * elf64-ppc.c: Likewise.
1493
01f7e10c
AM
14942018-02-23 Alan Modra <amodra@gmail.com>
1495
1496 PR 22881
1497 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1498 segment if no matching LOAD segment.
1499
e859f655
KLC
15002018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1501
1502 * elf32-nds32.h: Define mask for ict_model.
1503
6e8d06db
JD
15042018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1505
1506 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1507
b248d650
MR
15082018-02-19 Maciej W. Rozycki <macro@mips.com>
1509
1510 Revert
1511 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1512
1513 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1514 .reginfo section has wrong size.
1515
6798f8bf
MR
15162018-02-19 Maciej W. Rozycki <macro@mips.com>
1517
1518 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1519 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1520 `.MIPS.abiflags' sections.
1521 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1522 section's end.
1523
8772de11
MR
15242018-02-19 Maciej W. Rozycki <macro@mips.com>
1525
1526 * section.c (SEC_FIXED_SIZE): New macro.
1527 * bfd-in2.h: Regenerate.
1528
4f7fd351
MR
15292018-02-19 Maciej W. Rozycki <macro@mips.com>
1530
1531 * section.c (SEC_HAS_GOT_REF): Remove macro.
1532 * bfd-in2.h: Regenerate.
1533
f2b740ac
AM
15342018-02-19 Alan Modra <amodra@gmail.com>
1535
1536 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1537 arguments.
1538 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1539 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1540 (_bfd_riscv_relax_pc): Likewise and fix typos.
1541 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1542 * libbfd.h: Regenerate.
1543
8979927a
AM
15442018-02-19 Alan Modra <amodra@gmail.com>
1545
1546 * dwarf2.c (read_section): Don't use 'll' format modifier.
1547 (find_abstract_instance): Likewise.
1548 * elfcore.h (elf_core_file_p): Likewise.
1549
2dcf00ce
AM
15502018-02-19 Alan Modra <amodra@gmail.com>
1551
1552 * bfd-in.h: Include inttypes.h or if not available define
1553 PRId64, PRIu64 and PRIx64.
1554 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1555 modifier to print bfd_vma.
1556 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1557 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1558 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1559 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1560 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1561 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1562 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1563 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1564 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1565 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1566 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1567 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1568 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1569 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1570 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1571 and cast input to uint64_t, and similarly for Ld and Lu.
1572 * bfd-in2.h: Regenerate.
1573
c1c8c1ef
AM
15742018-02-19 Alan Modra <amodra@gmail.com>
1575
1576 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1577 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1578 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1579 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1580 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1581 * reloc.c: Replace use of %R and %T in format strings passed to
1582 einfo and friends by %pR and %pT.
1583
871b3ab2
AM
15842018-02-19 Alan Modra <amodra@gmail.com>
1585
1586 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1587 of %A and %B.
1588 * aout-adobe.c: Update all messages using %A and %B.
1589 * aout-cris.c: Likewise.
1590 * aoutx.h: Likewise.
1591 * archive.c: Likewise.
1592 * binary.c: Likewise.
1593 * cache.c: Likewise.
1594 * coff-alpha.c: Likewise.
1595 * coff-arm.c: Likewise.
1596 * coff-i860.c: Likewise.
1597 * coff-mcore.c: Likewise.
1598 * coff-ppc.c: Likewise.
1599 * coff-rs6000.c: Likewise.
1600 * coff-sh.c: Likewise.
1601 * coff-tic4x.c: Likewise.
1602 * coff-tic54x.c: Likewise.
1603 * coff-tic80.c: Likewise.
1604 * coff64-rs6000.c: Likewise.
1605 * coffcode.h: Likewise.
1606 * coffgen.c: Likewise.
1607 * cofflink.c: Likewise.
1608 * coffswap.h: Likewise.
1609 * compress.c: Likewise.
1610 * cpu-arm.c: Likewise.
1611 * ecoff.c: Likewise.
1612 * elf-attrs.c: Likewise.
1613 * elf-eh-frame.c: Likewise.
1614 * elf-ifunc.c: Likewise.
1615 * elf-m10300.c: Likewise.
1616 * elf-properties.c: Likewise.
1617 * elf-s390-common.c: Likewise.
1618 * elf.c: Likewise.
1619 * elf32-arc.c: Likewise.
1620 * elf32-arm.c: Likewise.
1621 * elf32-avr.c: Likewise.
1622 * elf32-bfin.c: Likewise.
1623 * elf32-cr16.c: Likewise.
1624 * elf32-cr16c.c: Likewise.
1625 * elf32-cris.c: Likewise.
1626 * elf32-crx.c: Likewise.
1627 * elf32-d10v.c: Likewise.
1628 * elf32-d30v.c: Likewise.
1629 * elf32-epiphany.c: Likewise.
1630 * elf32-fr30.c: Likewise.
1631 * elf32-frv.c: Likewise.
1632 * elf32-gen.c: Likewise.
1633 * elf32-hppa.c: Likewise.
1634 * elf32-i370.c: Likewise.
1635 * elf32-i386.c: Likewise.
1636 * elf32-i960.c: Likewise.
1637 * elf32-ip2k.c: Likewise.
1638 * elf32-iq2000.c: Likewise.
1639 * elf32-lm32.c: Likewise.
1640 * elf32-m32c.c: Likewise.
1641 * elf32-m32r.c: Likewise.
1642 * elf32-m68hc11.c: Likewise.
1643 * elf32-m68hc12.c: Likewise.
1644 * elf32-m68hc1x.c: Likewise.
1645 * elf32-m68k.c: Likewise.
1646 * elf32-mcore.c: Likewise.
1647 * elf32-mep.c: Likewise.
1648 * elf32-metag.c: Likewise.
1649 * elf32-microblaze.c: Likewise.
1650 * elf32-moxie.c: Likewise.
1651 * elf32-msp430.c: Likewise.
1652 * elf32-mt.c: Likewise.
1653 * elf32-nds32.c: Likewise.
1654 * elf32-nios2.c: Likewise.
1655 * elf32-or1k.c: Likewise.
1656 * elf32-pj.c: Likewise.
1657 * elf32-ppc.c: Likewise.
1658 * elf32-rl78.c: Likewise.
1659 * elf32-rx.c: Likewise.
1660 * elf32-s390.c: Likewise.
1661 * elf32-score.c: Likewise.
1662 * elf32-score7.c: Likewise.
1663 * elf32-sh-symbian.c: Likewise.
1664 * elf32-sh.c: Likewise.
1665 * elf32-sh64.c: Likewise.
1666 * elf32-sparc.c: Likewise.
1667 * elf32-spu.c: Likewise.
1668 * elf32-tic6x.c: Likewise.
1669 * elf32-tilepro.c: Likewise.
1670 * elf32-v850.c: Likewise.
1671 * elf32-vax.c: Likewise.
1672 * elf32-visium.c: Likewise.
1673 * elf32-wasm32.c: Likewise.
1674 * elf32-xgate.c: Likewise.
1675 * elf32-xtensa.c: Likewise.
1676 * elf64-alpha.c: Likewise.
1677 * elf64-gen.c: Likewise.
1678 * elf64-hppa.c: Likewise.
1679 * elf64-ia64-vms.c: Likewise.
1680 * elf64-mmix.c: Likewise.
1681 * elf64-ppc.c: Likewise.
1682 * elf64-s390.c: Likewise.
1683 * elf64-sh64.c: Likewise.
1684 * elf64-sparc.c: Likewise.
1685 * elf64-x86-64.c: Likewise.
1686 * elfcode.h: Likewise.
1687 * elfcore.h: Likewise.
1688 * elflink.c: Likewise.
1689 * elfnn-aarch64.c: Likewise.
1690 * elfnn-ia64.c: Likewise.
1691 * elfnn-riscv.c: Likewise.
1692 * elfxx-mips.c: Likewise.
1693 * elfxx-sparc.c: Likewise.
1694 * elfxx-tilegx.c: Likewise.
1695 * elfxx-x86.c: Likewise.
1696 * hpux-core.c: Likewise.
1697 * ieee.c: Likewise.
1698 * ihex.c: Likewise.
1699 * libbfd.c: Likewise.
1700 * linker.c: Likewise.
1701 * mach-o.c: Likewise.
1702 * merge.c: Likewise.
1703 * mmo.c: Likewise.
1704 * oasys.c: Likewise.
1705 * pdp11.c: Likewise.
1706 * pe-mips.c: Likewise.
1707 * peXXigen.c: Likewise.
1708 * peicode.h: Likewise.
1709 * reloc.c: Likewise.
1710 * rs6000-core.c: Likewise.
1711 * srec.c: Likewise.
1712 * stabs.c: Likewise.
1713 * vms-alpha.c: Likewise.
1714 * xcofflink.c: Likewise.
1715
dbc88fc1
AM
17162018-02-19 Alan Modra <amodra@gmail.com>
1717
1718 PR 22845
1719 * elf.c (IS_TBSS): Define.
1720 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
1721 (assign_file_positions_for_non_load_sections): Revert last change.
1722 Properly calculate load segment limits to compare against relro limits.
1723
325ba6fb
AM
17242018-02-17 Alan Modra <amodra@gmail.com>
1725
1726 PR 22845
1727 * elf.c (assign_file_positions_for_non_load_sections): Ignore
1728 degenerate zero size PT_LOAD segments when finding one overlapping
1729 the PT_GNU_RELRO segment.
1730
d00dd7dc
AM
17312018-02-16 Alan Modra <amodra@gmail.com>
1732
1733 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
1734 (_bfd_bool_bfd_true): Rename from bfd_true.
1735 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
1736 (_bfd_int_bfd_0): Rename from bfd_0.
1737 (_bfd_uint_bfd_0): Rename from bfd_0u.
1738 (_bfd_long_bfd_0): Rename from bfd_0l.
1739 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
1740 (_bfd_void_bfd): Rename from bfd_void.
1741 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
1742 (_bfd_bool_bfd_link_false_error),
1743 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
1744 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
1745 (_bfd_bool_bfd_asection_bfd_asection_true),
1746 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
1747 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
1748 * archive.c (_bfd_noarchive_get_elt_at_index),
1749 (_bfd_noarchive_openr_next_archived_file),
1750 (_bfd_noarchive_construct_extended_name_table),
1751 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
1752 (_bfd_noarchive_write_armap): New functions.
1753 * archures.c (_bfd_nowrite_set_arch_mach): New function.
1754 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
1755 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
1756 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
1757 (alpha_ecoff_swap_coff_lineno_out),
1758 (alpha_ecoff_swap_coff_reloc_out): New functions.
1759 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
1760 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
1761 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
1762 (mips_ecoff_swap_coff_lineno_out),
1763 (mips_ecoff_swap_coff_reloc_out): New functions.
1764 * coffcode.h (coff_set_alignment_hook): Replace define with
1765 new function.
1766 (symname_in_debug_hook): Likewise.
1767 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
1768 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
1769 * elf.c (assign_file_positions_except_relocs): Test
1770 elf_backend_allow_non_load_phdr for NULL.
1771 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
1772 _bfd_elf_link_omit_section_dynsym. Update uses.
1773 (_bfd_elf_omit_section_dynsym_all): New function.
1774 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
1775 (_bfd_elf_omit_section_dynsym_default): Declare.
1776 (_bfd_elf_omit_section_dynsym_all): Declare.
1777 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
1778 (_bfd_nolink_bfd_get_relocated_section_contents),
1779 (_bfd_nolink_bfd_lookup_section_flags),
1780 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
1781 (_bfd_nolink_bfd_link_hash_table_create),
1782 (_bfd_nolink_bfd_link_just_syms),
1783 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
1784 (_bfd_nolink_bfd_link_split_section),
1785 (_bfd_nolink_section_already_linked),
1786 (_bfd_nolink_bfd_define_common_symbol),
1787 (_bfd_nolink_bfd_define_start_stop): New functions.
1788 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
1789 (_bfd_norelocs_bfd_reloc_name_lookup),
1790 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
1791 * section.c (_bfd_nowrite_set_section_contents): New function.
1792 * syms.c (_bfd_nosymbols_canonicalize_symtab),
1793 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
1794 (_bfd_nosymbols_get_symbol_version_string),
1795 (_bfd_nosymbols_bfd_is_local_label_name),
1796 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
1797 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
1798 (_bfd_nosymbols_bfd_make_debug_symbol),
1799 ( _bfd_nosymbols_read_minisymbols),
1800 ( _bfd_nosymbols_minisymbol_to_symbol),
1801 (_bfd_nodynamic_get_synthetic_symtab): New functions.
1802 * libbfd-in.h: Declare new functions. Update existing defines,
1803 removing casts.
1804 * aix386-core.c: Update to use new hooks. Formatting.
1805 * aout-adobe.c: Likewise.
1806 * aout-arm.c: Likewise.
1807 * aout-target.h: Likewise.
1808 * aout-tic30.c: Likewise.
1809 * aoutf1.h: Likewise.
1810 * binary.c: Likewise.
1811 * bout.c: Likewise.
1812 * cisco-core.c: Likewise.
1813 * coff-alpha.c: Likewise.
1814 * coff-i386.c: Likewise.
1815 * coff-i860.c: Likewise.
1816 * coff-i960.c: Likewise.
1817 * coff-ia64.c: Likewise.
1818 * coff-mips.c: Likewise.
1819 * coff-ppc.c: Likewise.
1820 * coff-rs6000.c: Likewise.
1821 * coff-sh.c: Likewise.
1822 * coff-tic30.c: Likewise.
1823 * coff-tic54x.c: Likewise.
1824 * coff-x86_64.c: Likewise.
1825 * coff64-rs6000.c: Likewise.
1826 * coffcode.h: Likewise.
1827 * elf-m10300.c: Likewise.
1828 * elf32-cr16.c: Likewise.
1829 * elf32-lm32.c: Likewise.
1830 * elf32-m32r.c: Likewise.
1831 * elf32-metag.c: Likewise.
1832 * elf32-score.c: Likewise.
1833 * elf32-score7.c: Likewise.
1834 * elf32-tilepro.c: Likewise.
1835 * elf32-xstormy16.c: Likewise.
1836 * elf32-xtensa.c: Likewise.
1837 * elf64-alpha.c: Likewise.
1838 * elf64-hppa.c: Likewise.
1839 * elf64-ia64-vms.c: Likewise.
1840 * elf64-mmix.c: Likewise.
1841 * elf64-sh64.c: Likewise.
1842 * elfnn-ia64.c: Likewise.
1843 * elfxx-sparc.c: Likewise.
1844 * elfxx-target.h: Likewise.
1845 * elfxx-tilegx.c: Likewise.
1846 * elfxx-x86.h: Likewise.
1847 * hp300hpux.c: Likewise.
1848 * hppabsd-core.c: Likewise.
1849 * hpux-core.c: Likewise.
1850 * i386msdos.c: Likewise.
1851 * i386os9k.c: Likewise.
1852 * ieee.c: Likewise.
1853 * ihex.c: Likewise.
1854 * irix-core.c: Likewise.
1855 * libaout.h: Likewise.
1856 * libecoff.h: Likewise.
1857 * mach-o-target.c: Likewise.
1858 * mach-o.c: Likewise.
1859 * mipsbsd.c: Likewise.
1860 * mmo.c: Likewise.
1861 * netbsd-core.c: Likewise.
1862 * nlm-target.h: Likewise.
1863 * oasys.c: Likewise.
1864 * osf-core.c: Likewise.
1865 * pdp11.c: Likewise.
1866 * pe-mips.c: Likewise.
1867 * pe-x86_64.c: Likewise.
1868 * pef.c: Likewise.
1869 * plugin.c: Likewise.
1870 * ppcboot.c: Likewise.
1871 * ptrace-core.c: Likewise.
1872 * sco5-core.c: Likewise.
1873 * som.c: Likewise.
1874 * sparclynx.c: Likewise.
1875 * srec.c: Likewise.
1876 * tekhex.c: Likewise.
1877 * trad-core.c: Likewise.
1878 * verilog.c: Likewise.
1879 * versados.c: Likewise.
1880 * vms-alpha.c: Likewise.
1881 * vms-lib.c: Likewise.
1882 * wasm-module.c: Likewise.
1883 * xsym.c: Likewise.
1884 * libbfd.h: Regenerate.
1885
2a0d9853
JW
18862018-02-15 Jim Wilson <jimw@sifive.com>
1887
09ca4b9d
JW
1888 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
1889 symbols whose section address is zero.
1890
2a0d9853
JW
1891 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
1892 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
1893 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
1894 Add %X%P to error messages.
1895
e513bd38
EB
18962018-02-15 Eric Botcazou <ebotcazou@adacore.com>
1897
1898 PR ld/22832
1899 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1900 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
1901 and assert that the result of the call is not NULL.
1902
12ef3f5a
NC
19032018-02-14 Nick Clifton <nickc@redhat.com>
1904
1905 PR 22823
1906 Revert previous delta. Add extra casts to avoid compile time
1907 warnings instead.
1908 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
1909 cast to avoid warning from gcc v8 compiler.
1910 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1911 (_bfd_generic_bfd_set_private_flags): Likewise.
1912 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1913 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1914 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1915 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1916 (_bfd_noarchive_construct_extended_name_table): Likewise.
1917 (_bfd_noarchive_truncate_arname): Likewise.
1918 (_bfd_noarchive_write_ar_hdr): Likewise.
1919 (_bfd_noarchive_get_elt_at_index): Likewise.
1920 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1921 (_bfd_nosymbols_print_symbol): Likewise.
1922 (_bfd_nosymbols_get_symbol_info): Likewise.
1923 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1924 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1925 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1926 (_bfd_nosymbols_get_lineno): Likewise.
1927 (_bfd_nosymbols_find_nearest_line): Likewise.
1928 (_bfd_nosymbols_find_line): Likewise.
1929 (_bfd_nosymbols_find_inliner_info): Likewise.
1930 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1931 (_bfd_nosymbols_read_minisymbols): Likewise.
1932 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1933 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1934 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1935 (_bfd_nowrite_set_arch_mach): Likewise.
1936 (_bfd_nowrite_set_section_contents): Likewise.
1937 (_bfd_nolink_sizeof_headers): Likewise.
1938 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1939 (_bfd_nolink_bfd_relax_section): Likewise.
1940 (_bfd_nolink_bfd_gc_sections): Likewise.
1941 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1942 (_bfd_nolink_bfd_merge_sections): Likewise.
1943 (_bfd_nolink_bfd_is_group_section): Likewise.
1944 (_bfd_nolink_bfd_discard_group): Likewise.
1945 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1946 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1947 (_bfd_nolink_bfd_link_just_syms): Likewise.
1948 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1949 (_bfd_nolink_bfd_final_link): Likewise.
1950 (_bfd_nolink_bfd_link_split_section): Likewise.
1951 (_bfd_nolink_section_already_linked): Likewise.
1952 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1953 (_bfd_nolink_bfd_define_start_stop): Likewise.
1954 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1955 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1956 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1957 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1958 * libbfd.c (bfd_false_any): Delete.
1959 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
1960 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
1961 * libbfd.h (extern): Regenerate
1962 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
1963 cast to avoid warning from gcc v8 compiler.
1964 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1965 * binary.c (binary_get_symbol_info): Likewise.
1966 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1967 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1968 * coffcode.h (coff_set_alignment_hook): Likewise.
1969 (symname_in_debug_hook): Likewise.
1970 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1971 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1972 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1973 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1974 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1975 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1976 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1977 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1978 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1979 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1980 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1981 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1982 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1983 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1984 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1985 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1986 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1987 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1988 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1989 (bfd_elfNN_bfd_set_private_flags): Likewise.
1990 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1991 (elf_backend_init_index_section): Likewise.
1992 (elf_backend_allow_non_load_phdr): Likewise.
1993 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1994 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1995 * ieee.c (ieee_construct_extended_name_table): Likewise.
1996 (ieee_write_armap): Likewise.
1997 (ieee_write_ar_hdr): Likewise.
1998 (ieee_bfd_is_target_special_symbol): Likewise.
1999 * ihex.c (ihex_canonicalize_symtab): Likewise.
2000 (ihex_bfd_is_target_special_symbol): Likewise.
2001 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2002 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2003 (_bfd_ecoff_set_alignment_hook): Likewise.
2004 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2005 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2006 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2007 * oasys.c (oasys_construct_extended_name_table): Likewise.
2008 (oasys_write_armap): Likewise.
2009 (oasys_write_ar_hdr): Likewise.
2010 (oasys_bfd_is_target_special_symbol): Likewise.
2011 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2012 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2013 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2014 * som.c (som_bfd_is_target_special_symbol): Likewise.
2015 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2016 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2017 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2018 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2019 (versados_bfd_reloc_name_lookup): Likewise.
2020 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2021 (vms_bfd_define_start_stop): Likewise.
2022 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2023 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2024 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2025
451875b4
L
20262018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2027
2028 PR ld/22842
2029 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2030 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2031 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2032 R_X86_64_PC32 reloc against dynamic function in data section.
2033 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2034 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2035 against dynamic function in data section.
2036 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2037 function address only if pcrel_plt is true.
2038 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2039 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2040 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2041 PC-relative relocation against a function definition in data
2042 secton in PIE. Remove the obsolete comments.
2043 (elf_x86_link_hash_table): Add pcrel_plt.
2044
1031c264
L
20452018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2046
2047 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2048 instead of bfd_link_pic, for building shared library.
2049
bd7ab16b
L
20502018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 PR gas/22791
2053 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2054 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2055 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2056 against protected function in shared object.
2057
80c96350
ST
20582018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2059
2060 PR 22828
2061 * po/ru.po: Fix typo in Russian translation.
2062
87993319
MR
20632018-02-13 Maciej W. Rozycki <macro@mips.com>
2064
2065 * wasm-module.c (wasm_scan_name_function_section): Rename
2066 `index' local variable to `idx'.
2067
68d20676
NC
20682018-02-13 Nick Clifton <nickc@redhat.com>
2069
2070 PR 22823
2071 Fix compile time warnings generated by gcc version 8.
2072 * libbfd-in.h: Remove extraneous text from prototypes.
2073 Add prototypes for bfd_false_any, bfd_true_any,
2074 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2075 bfd_n1_any, bfd_void_any.
2076 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2077 function.
2078 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2079 (_bfd_generic_bfd_set_private_flags): Likewise.
2080 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2081 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2082 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2083 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2084 (_bfd_noarchive_construct_extended_name_table): Likewise.
2085 (_bfd_noarchive_truncate_arname): Likewise.
2086 (_bfd_noarchive_write_ar_hdr): Likewise.
2087 (_bfd_noarchive_get_elt_at_index): Likewise.
2088 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2089 (_bfd_nosymbols_print_symbol): Likewise.
2090 (_bfd_nosymbols_get_symbol_info): Likewise.
2091 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2092 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2093 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2094 (_bfd_nosymbols_get_lineno): Likewise.
2095 (_bfd_nosymbols_find_nearest_line): Likewise.
2096 (_bfd_nosymbols_find_line): Likewise.
2097 (_bfd_nosymbols_find_inliner_info): Likewise.
2098 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2099 (_bfd_nosymbols_read_minisymbols): Likewise.
2100 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2101 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2102 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2103 (_bfd_nowrite_set_arch_mach): Likewise.
2104 (_bfd_nowrite_set_section_contents): Likewise.
2105 (_bfd_nolink_sizeof_headers): Likewise.
2106 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2107 (_bfd_nolink_bfd_relax_section): Likewise.
2108 (_bfd_nolink_bfd_gc_sections): Likewise.
2109 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2110 (_bfd_nolink_bfd_merge_sections): Likewise.
2111 (_bfd_nolink_bfd_is_group_section): Likewise.
2112 (_bfd_nolink_bfd_discard_group): Likewise.
2113 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2114 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2115 (_bfd_nolink_bfd_link_just_syms): Likewise.
2116 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2117 (_bfd_nolink_bfd_final_link): Likewise.
2118 (_bfd_nolink_bfd_link_split_section): Likewise.
2119 (_bfd_nolink_section_already_linked): Likewise.
2120 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2121 (_bfd_nolink_bfd_define_start_stop): Likewise.
2122 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2123 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2124 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2125 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2126 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2127 accepts one or more arguments.
2128 (bfd_true_any): Likewise.
2129 (bfd_nullvoidptr_any): Likewise.
2130 (bfd_0_any): Likewise.
2131 (bfd_0u_any): Likewise.
2132 (bfd_0l_any): Likewise.
2133 (_bfd_n1_any): Likewise.
2134 (bfd_void_any): Likewise.
2135 * libbfd.h (extern): Regenerate
2136 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2137 based dummy function.
2138 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2139 * binary.c (binary_get_symbol_info): Likewise.
2140 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2141 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2142 * coffcode.h (coff_set_alignment_hook): Likewise.
2143 (symname_in_debug_hook): Likewise.
2144 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2145 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2146 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2147 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2148 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2149 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2150 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2151 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2152 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2153 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2154 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2155 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2156 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2157 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2158 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2159 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2160 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2161 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2162 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2163 (bfd_elfNN_bfd_set_private_flags): Likewise.
2164 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2165 (elf_backend_init_index_section): Likewise.
2166 (elf_backend_allow_non_load_phdr): Likewise.
2167 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2168 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2169 * ieee.c (ieee_construct_extended_name_table): Likewise.
2170 (ieee_write_armap): Likewise.
2171 (ieee_write_ar_hdr): Likewise.
2172 (ieee_bfd_is_target_special_symbol): Likewise.
2173 * ihex.c (ihex_canonicalize_symtab): Likewise.
2174 (ihex_bfd_is_target_special_symbol): Likewise.
2175 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2176 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2177 (_bfd_ecoff_set_alignment_hook): Likewise.
2178 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2179 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2180 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2181 * oasys.c (oasys_construct_extended_name_table): Likewise.
2182 (oasys_write_armap): Likewise.
2183 (oasys_write_ar_hdr): Likewise.
2184 (oasys_bfd_is_target_special_symbol): Likewise.
2185 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2186 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2187 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2188 * som.c (som_bfd_is_target_special_symbol): Likewise.
2189 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2190 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2191 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2192 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2193 (versados_bfd_reloc_name_lookup): Likewise.
2194 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2195 (vms_bfd_define_start_stop): Likewise.
2196 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2197 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2198 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2199 * elf32-arc.c (get_replace_function): Assign replacement function
2200 to func pointer.
2201 * elf32-i370.c (i370_noop): Update prototype.
2202
6e5e9d58
AM
22032018-02-13 Alan Modra <amodra@gmail.com>
2204
2205 PR 22836
2206 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2207 relocation sections. If size reduces to just the flag word,
2208 remove that too and mark with SEC_EXCLUDE.
2209 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2210
f2731e0c
AM
22112018-02-13 Alan Modra <amodra@gmail.com>
2212
2213 PR 22829
2214 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2215 PT_GNU_RELRO setup.
2216
830db048
ZF
22172018-02-12 Zebediah Figura <z.figura12@gmail.com>
2218
2219 * i386msdos.c (msdos_mkobject); New function.
2220 (msdos_object_p): New function.
2221 (i386_msdos_vec): Use msdos_object_p as the check_format
2222 function.
2223 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2224 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2225 IMAGE_NT_SIGNATURE.
2226 * peXXigen.c: Likewise.
2227 * coff-ia64.c: Likewise.
2228
94fe5757
NC
22292018-02-12 Nick Clifton <nickc@redhat.com>
2230
2231 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2232 assignment.
0b8683b7 2233 * elf32-arc.c (elf_arc_relocate_section): Likewise.
94fe5757 2234
d805612e 22352018-02-09 Eric Botcazou <ebotcazou@adacore.com>
a8735c82
EB
2236
2237 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2238 (sparc_elf_append_rela): Assert that there is enough room in section.
2239 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2240 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2241 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2242 For a symbol subject to a GOT relocation, reserve a slot in the
2243 relocation section if the symbol isn't dynamic and we are in PIC mode.
2244 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2245 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2246 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2247 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2248 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2249 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2250 undefined weak symbol with non-default visibility. Remove superfluous
2251 'else' and fix formatting.
2252
3b4c3844
L
22532018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2254
2255 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2256 is_solaris.
2257 (i386_elf32_sol2_vec): Don't declare.
2258 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2259 Don't set need_global_offset_table.
2260 (elf_i386_solaris_arch_bed): New.
2261 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2262 Solaris.
2263 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2264 target_os != is_nacl instead of target_os == is_normal.
2265 (x86_64_elf64_sol2_vec): Don't declare.
2266 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2267 is_nacl instead of target_os == is_normal. Don't set
2268 need_global_offset_table.
2269 (elf_x86_64_solaris_arch_bed): New.
2270 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2271 Solaris.
2272 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2273 _GLOBAL_OFFSET_TABLE_ for Solaris.
2274 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2275 need_global_offset_table.
2276 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2277 (elf_x86_link_hash_table): Remove need_global_offset_table.
2278 (elf_x86_init_table): Likewise.
2279
15b23f36
L
22802018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2281
2282 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2283 Remove prototype.
2284 (i386_elf32_sol2_vec): Declared.
2285 (elf_i386_link_setup_gnu_properties): Set
2286 need_global_offset_table with info->output_bfd->xvec.
2287 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2288 Remove prototype.
2289 (x86_64_elf64_sol2_vec): Declared.
2290 (elf_x86_64_link_setup_gnu_properties): Set
2291 need_global_offset_table with info->output_bfd->xvec.
2292
dc11dea2
L
22932018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2294
2295 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2296 New prototype.
2297 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2298 for Solaris.
2299 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2300 New prototype.
2301 (elf_x86_64_link_setup_gnu_properties): Set
2302 need_global_offset_table for Solaris.
2303 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2304 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2305 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2306 need_global_offset_table.
2307 * elfxx-x86.h (elf_x86_link_hash_table): Add
2308 need_global_offset_table.
2309 (elf_x86_init_table): Likewise.
2310
3f48fe4a
JW
23112018-02-08 Jim Wilson <jimw@sifive.com>
2312
2313 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2314 change.
2315
ef135d43
NC
23162018-02-08 Nick Clifton <nickc@redhat.com>
2317
2318 PR 22788
2319 * elf.c (elf_parse_notes): Reject notes with excessuively large
2320 alignments.
2321
407aa07c
AM
23222018-02-07 Alan Modra <amodra@gmail.com>
2323
2324 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2325 * elf32-ppc.c: Remove speculation barrier support.
2326 * elf32-ppc.h: Likewise.
2327 * elf64-ppc.c: Likewise.
2328 * elf64-ppc.h: Likewise.
2329
ed01220c
JW
23302018-02-06 Jim Wilson <jimw@sifive.com>
2331
2332 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2333 callback to report an error.
2334
c20c30f6
EB
23352018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2336
2337 PR ld/22263
2338 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2339 into call to !bfd_link_executable and tidy up.
2340 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2341 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2342 !bfd_link_executable.
2343 <R_SPARC_TLS_IE_HI22>: Likewise.
2344 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2345 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2346 !bfd_link_executable.
2347 <R_SPARC_WPLT30>: Tidy up.
2348 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2349 !bfd_link_executable.
2350 (allocate_dynrelocs): Likewise.
2351 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2352 <R_SPARC_TLS_GD_HI22>: Merge into...
2353 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2354 sparc_elf_tls_transition and remove redundant code.
2355 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2356 !bfd_link_executable.
2357 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2358 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2359 <R_SPARC_TLS_LDM_CALL>: Likewise.
2360 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2361 <R_SPARC_TLS_GD_ADD>: Likewise.
2362 <R_SPARC_TLS_LDM_ADD>: Likewise.
2363 <R_SPARC_TLS_LDO_ADD>: Likewise.
2364 <R_SPARC_TLS_IE_LD>: Likewise.
2365
46d09186
NC
23662018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2367
2368 PR 22789
2369 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2370 functions failed to find the function name, try the generic elf
2371 find function instead.
2372
8278e7ce
SDJ
23732018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2374
2375 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2376 'memcpy' instead of 'strncpy' when writing the magic number.
2377
64e234d4
NC
23782018-02-06 Nick Clifton <nickc@redhat.com>
2379
2380 PR 22794
2381 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2382 section before attempting to read it in.
2383 (bfd_get_alt_debug_link_info): Likewise.
2384
422f3d3d
PC
23852018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2386
2387 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2388 line information in addition to name, if they can be found.
2389
279b2f94
RL
23902018-02-05 Renlin Li <renlin.li@arm.com>
2391
2392 PR ld/22764
2393 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2394 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2395 check for writeable section as well.
2396
cd048363
L
23972018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2398
2399 PR ld/22782
2400 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2401 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2402 undefined weak symbol to 0.
2403 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2404 if _GLOBAL_OFFSET_TABLE_ is referenced.
2405 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2406 got_referenced instead of ref_regular_nonweak. Remove the
2407 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2408 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2409
e65b1a78
MR
24102018-02-05 Maciej W. Rozycki <macro@mips.com>
2411
2412 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2413 initialize `hi_reloc'.
2414
2d6dda71
MR
24152018-02-05 Maciej W. Rozycki <macro@mips.com>
2416
2417 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2418 SHT_MIPS_REGINFO sections don't assert the correct size and
2419 report an error instead.
2420
75506100
MR
24212018-02-05 Maciej W. Rozycki <macro@mips.com>
2422
2423 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2424 status from `->elf_backend_section_processing'.
2425
7f02625e
JW
24262018-02-02 Jim Wilson <jimw@sifive.com>
2427
2428 PR ld/22756
2429 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2430 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2431 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2432 Pass new argument to riscv_relax_delete_bytes.
2433 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2434 ATTRIBUTE_UNUSED from link_info parameter.
2435
d830549d
AM
24362018-02-02 Alan Modra <amodra@gmail.com>
2437
2438 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2439 emitted for toc sequence optimization. Set and use "howto" later.
2440
e99955cd
SM
24412018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2442
2443 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2444 arithmetic on NULL pointer.
2445 * elflink.c (_bfd_elf_archive_symbol_lookup,
2446 elf_link_add_archive_symbols): Likewise.
2447
bf3077a6
MM
24482018-01-31 Michael Matz <matz@suse.de>
2449
2450 * elflink.c (bfd_elf_define_start_stop): Fix check of
2451 def_dynamic.
2452
823143c6
L
24532018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2454
2455 PR ld/21964
2456 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2457 __stop symbols are referenced by shared objects.
2458
76cb3a89
AM
24592018-01-30 Alan Modra <amodra@gmail.com>
2460
2461 PR 22758
2462 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2463 segment when demand paged with lma on the same page. Test this
2464 before load/non-load, executable/non-executable,
2465 writable/non-writable tests and simplify. Delete bogus relro
2466 condition in writable/non-writable test. Delete outdated
2467 comment. Formatting.
2468
36b8fda5
AM
24692018-01-30 Alan Modra <amodra@gmail.com>
2470
2471 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2472 symbols dynamic.
2473
eb77f6a4
AM
24742018-01-29 Alan Modra <amodra@gmail.com>
2475
2476 PR 22741
2477 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2478 range before converting to a symbol table pointer.
2479
7d73b4c8
NC
24802018-01-27 Nick Clifton <nickc@redhat.com>
2481
2482 * po/ru.po: Updated Russian translation.
2483
32253bb7
AM
24842018-01-26 Alan Modra <amodra@gmail.com>
2485
2486 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2487 they are defined dynamically.
2488
ba21f564
AM
24892018-01-26 Alan Modra <amodra@gmail.com>
2490
2491 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2492 .branch_lt changes size.
2493
38e64b0e
AM
24942018-01-25 Alan Modra <amodra@gmail.com>
2495
2496 PR 22746
2497 * elfcode.h (elf_object_p): Avoid integer overflow.
2498
bb363086
EB
24992018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2500
2501 PR ld/22727
2502 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2503 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2504
2505 Revert
2506 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2507
2508 PR ld/22263
2509 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2510 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2511 bfd_link_executable for TLS check.
2512 (_bfd_sparc_elf_check_relocs): Likewise.
2513 (allocate_dynrelocs): Likewise.
2514 (_bfd_sparc_elf_relocate_section): Likewise.
2515
1daf502a
RL
25162018-01-24 Renlin Li <renlin.li@arm.com>
2517
2518 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2519 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2520 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2521 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2522 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2523 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2524 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2525
32247401
RL
25262018-01-24 Renlin Li <renlin.li@arm.com>
2527
2528 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2529 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2530 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2531 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2532 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2533 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2534 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2535 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2536 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2537 * bfd-in2.h: Regenerate.
2538 * libbfd.h: Regenerate.
2539
1c5e4ee9
MR
25402018-01-23 Maciej W. Rozycki <macro@mips.com>
2541
2542 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2543 `mips_elf32_section_processing' comment reference.
2544
8a1b824a
L
25452018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2546
2547 PR ld/22721
2548 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2549 versioned __tls_get_addr symbol.
2550
ee3fbc1e
NC
25512018-01-19 Nick Clifton <nickc@redhat.com>
2552
2553 * po/fr.po: Updated French translation.
2554
691d2e9a
AM
25552018-01-18 Alan Modra <amodra@gmail.com>
2556
2557 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2558 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2559 (ppc64_elf_build_stubs): Likewise.
2560
4bfce128
NC
25612018-01-17 Nick Clifton <nickc@redhat.com>
2562
2563 * po/ru.po: Updated Russian translation.
2564 * po/uk/po: Updated Ukranian translation.
2565
c75bc4f7
AM
25662018-01-17 Alan Modra <amodra@gmail.com>
2567
2568 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2569
1be5d8d3
AM
25702018-01-17 Alan Modra <amodra@gmail.com>
2571
2572 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2573 (CRSETEQ, BEQCTRM): Define.
2574 (is_nonpic_glink_stub): Don't check bctr.
2575 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2576 (ppc_elf_relax_section): Size speculation barrier.
2577 (output_bctr): New function.
2578 (write_glink_stub): Use output_bctr.
2579 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2580 (ppc_elf_finish_dynamic_symbol): Likewise.
2581 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2582 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2583 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2584 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2585 (size_global_entry_stubs): Handle speculation barrier sizing.
2586 (plt_stub_size): Likewise.
2587 (output_bctr): New function.
2588 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2589 barrier.
2590 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2591 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2592 (build_global_entry_stubs): Output speculation barrier.
2593 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2594 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2595
9e390558
AM
25962018-01-17 Alan Modra <amodra@gmail.com>
2597
2598 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2599 __tls_get_addr_opt, and alignment sizing.
2600 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2601 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2602 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2603 or 8 insns.
2604 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2605 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2606 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2607 by PLT reloc count.
2608 (write_glink_stub): Handle __tls_get_addr_opt stub.
2609 Pad out to size given by GLINK_ENTRY_SIZE.
2610 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2611 (ppc_elf_finish_dynamic_symbol): Likewise.
2612 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2613 insn array since so many need rewriting.
2614 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2615 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2616 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2617 nops. Adjust all uses.
2618 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2619 in glink_vma calculation.
2620 (struct ppc_link_hash_table): Add global_entry section pointer.
2621 (create_linkage_sections): Create separate section for global
2622 entry stubs.
2623 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2624 (size_global_entry_stubs): Handle sizing for aligned stubs.
2625 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2626 and don't stash end of glink branch table in rawsize.
2627 (ppc_build_one_stub): Rewrite stub size calculations.
2628 (build_global_entry_stubs): Use new section.
2629 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2630 Build lazy link stubs out to end of section. Build global entry
2631 stubs in new section.
2632
616dcb87
NC
26332018-01-15 Nick Clifton <nickc@redhat.com>
2634
2635 * po/uk.po: Updated Ukranian translation.
2636
3957a496
NC
26372018-01-13 Nick Clifton <nickc@redhat.com>
2638
2639 * po/bfd.pot: Regenerated.
2640
769c7ea5
NC
26412018-01-13 Nick Clifton <nickc@redhat.com>
2642
2643 * version.m4: Bump version to 2.30.51
2644 * configure: Regenerate.
2645
faf766e3
NC
26462018-01-13 Nick Clifton <nickc@redhat.com>
2647
2648 2.30 branch created.
2649
564e11c9
JW
26502018-01-12 Jens Widell <jl@opera.com>
2651
2652 * elf.c (setup_group): Optimize search for group by remembering
2653 last found group and restarting search at that index.
2654 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
2655
a78eea16
AM
26562018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
2657
2658 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
2659 bfd_link_common_skip_none in switch.
2660
87e79a65
AM
26612018-01-12 Alan Modra <amodra@gmail.com>
2662
2663 PR ld/22649
2664 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
2665 references on forced local symbols.
2666
58807c48
VI
26672018-01-12 Vlad Ivanov <vlad@ivanov.email>
2668
2669 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2670 .reginfo section has wrong size.
2671
2888249f
L
26722018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2673
2674 PR ld/22393
2675 * elf.c (_bfd_elf_map_sections_to_segments): When generating
2676 separate code and read-only data LOAD segments, create a new
2677 LOAD segment if the previous section contains text and the
2678 current section doesn't or vice versa. Don't put a writable
2679 section in a read-only segment if there is a RELRO segment.
2680
d664fd41
L
26812018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2682
2683 PR ld/22649
2684 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
2685 references on forced local symbols.
2686
8b6f4cd3
L
26872018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 PR ld/22677
2690 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
2691 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
2692
9c70c522 26932018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6cef73f9
KLC
2694
2695 PR 22662
2696 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
2697
ddb2bbcf
JB
26982018-01-03 John Baldwin <jhb@FreeBSD.org>
2699
2700 * elf.c (elfcore_grok_freebsd_note): Handle
2701 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
2702 NT_FREEBSD_PROCSTAT_VMMAP.
2703
219d1afa
AM
27042018-01-03 Alan Modra <amodra@gmail.com>
2705
2706 Update year range in copyright notice of all files.
2707
1e563868 2708For older changes see ChangeLog-2017
3499769a 2709\f
1e563868 2710Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
2711
2712Copying and distribution of this file, with or without modification,
2713are permitted in any medium without royalty provided the copyright
2714notice and this notice are preserved.
2715
2716Local Variables:
2717mode: change-log
2718left-margin: 8
2719fill-column: 74
2720version-control: never
2721End:
This page took 0.336112 seconds and 4 git commands to generate.