]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2015-02-14 Alan Modra <amodra@gmail.com>
2
3 PR ld/17973
4 * bfd.c (struct bfd): Add lto_output.
5 * linker.c (_bfd_handle_already_linked): Explicitly test for
6 objects added by the lto plugin.
7 * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and
8 no_export flags from archive.
9 * archive.c (open_nested_file): New function, setting lto_output
10 and no_export, extracted from..
11 (find_nested_archive): ..here. Flip params. Rename from
12 _bfd_find_nested_archive.
13 (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file.
14 (_bfd_look_for_bfd_in_cache): Copy no_export.
15 * elflink.c (elf_link_add_object_symbols): Remove now unnecessary
16 my_archive->no_export test.
17 (elf_link_input_bfd): Drop existing lto_output STT_FILE syms.
18 Don't use the file name when adding lto_output STT_FILE sym.
19 * bfd-in2.h: Regenerate.
20
21 2015-02-13 Alan Modra <amodra@gmail.com>
22
23 PR binutils/17512
24 * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
25 now redundant assert.
26
27 2015-02-12 Nick Clifton <nickc@redhat.com>
28
29 PR binutils/17512
30 * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes)
31 (read_4_bytes, read_8_bytes, read_n_bytes, read_string)
32 (read_indirect_string, read_alt_indirect_string)
33 (read_alt_indirect_ref, read_address, read_abbrevs)
34 (read_attribute_value, read_attribute, decode_line_info)
35 (find_abstract_instance_name, read_rangelist)
36 (scan_unit_for_symbols, parse_comp_unit)
37 (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass
38 end pointers to reading functions and check for offsets taking
39 pointers out of range. Replace calls to read_*_leb128 with calls
40 to safe_read_leb128.
41
42 (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge
43 offset.
44 * syms.c (_bfd_stab_section_find_nearest_line): Add checks for
45 computed file_name address being before the start of the string
46 table.
47
48 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR ld/17878
51 * bfd.c (bfd_plugin_format): New.
52 (bfd): Add plugin_format and plugin_dummy_bfd.
53 * plugin.c (try_load_plugin): Take a pointer to bfd_boolean
54 argument to return TRUE if any plugin is found. Set plugin_format.
55 (has_plugin): New.
56 (bfd_plugin_target_p): New.
57 (bfd_plugin_specified_p): Likewise.
58 (bfd_plugin_target_p): Likewise.
59 (register_ld_plugin_object_p): Likewise.
60 (bfd_plugin_set_plugin): Set has_plugin.
61 (load_plugin): Cache try_load_plugin result.
62 (bfd_plugin_object_p): Try ld_plugin_object_p first. Check
63 plugin_format.
64 * plugin.h (bfd_plugin_target_p): New.
65 (bfd_plugin_specified_p): Likewise.
66 (register_ld_plugin_object_p): Likewise.
67 * bfd-in2.h: Regenerated.
68
69 2015-02-11 Pedro Alves <palves@redhat.com>
70
71 * libbfd-in.h [__cplusplus]: Open extern "C" scope.
72 * libcoff-in.h [__cplusplus]: Open extern "C" scope.
73 * libbfd.h: Regenerate.
74 * libcoff.h: Regenerate.
75
76 * elf-bfd.h [__cplusplus]: Wrap in extern "C".
77 * mach-o.h [__cplusplus]: Wrap in extern "C".
78 * som.h [__cplusplus]: Wrap in extern "C".
79
80 2015-02-10 Nick Clifton <nickc@redhat.com>
81
82 PR binutils/17512
83 * coffcode.h (styp_to_sec_flags): Use an unsigned long type to
84 hold the flag bits.
85 * peXXigen.c (pe_print_reloc): Use unsigned types to hold the
86 size and number of relocs.
87 (pe_print_debugdata): Use a 32-bit aligned buffer to store the
88 codeview record.
89 * versados.c (process_otr): Check the esdid value before using it
90 to access the EDATA.
91
92 2015-02-09 Ed Maste <emaste@freebsd.org>
93
94 * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing
95 uninitialized and unused variable.
96 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
97
98 2015-02-09 Alan Modra <amodra@gmail.com>
99
100 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL
101 tls_sec.
102 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
103 * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec.
104
105 2015-02-09 Alan Modra <amodra@gmail.com>
106
107 * elflink.c: Whitespace, formatting fixes.
108 (elf_link_input_bfd): Clarify comment.
109 (elf_link_output_extsym): Exclude symbols in linker created
110 sections when testing for plugin symbols.
111
112 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR ld/17935
115 * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a
116 warning for relocation in readonly section for -z text.
117 (elf_i386_size_dynamic_sections): Likewise.
118 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
119 (elf_x86_64_size_dynamic_sections): Likewise.
120
121 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR ld/12365
124 PR ld/14272
125 * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change.
126 (elf_link_input_bfd): Mark the plugin symbol undefined if it is
127 referenced from a non-IR file.
128
129 2015-02-06 Nick Clifton <nickc@redhat.com>
130
131 PR binutils/17512
132 * peXXigen.c (rsrc_print_resource_entries): Add range check for
133 addresses that wrap around the address space.
134 (rsrc_parse_entry): Likewise.
135
136 2015-02-03 H.J. Lu <hongjiu.lu@intel.com>
137
138 PR ld/12365
139 PR ld/14272
140 * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
141 undefined if it is referenced from a non-IR file.
142
143 2015-02-03 Nick Clifton <nickc@redhat.com>
144
145 PR binutils/17512
146 * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays.
147 (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol
148 index or an out of range fdr index.
149 * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message.
150 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
151 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
152 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
153 * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise.
154 * elf32-cris.c (cris_info_to_howto_rela): Likewise.
155 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
156 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
157 * elf32-d30v.c (d30v_info_to_howto_rel): Likewise.
158 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
159 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
160 * elf32-frv.c (frv_info_to_howto_rela): Likewise.
161 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
162 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
163 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
164 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
165 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
166 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
167 * elf32-m32r.c (m32r_info_to_howto_rel): Likewise.
168 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
169 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
170 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
171 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
172 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
173 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
174 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
175 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
176 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
177 * elf32-nds32.c (nds32_info_to_howto_rel): Likewise.
178 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
179 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
180 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
181 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
182 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
183 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
184 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
185 * elf32-v850.c (v850_elf_perform_relocation): Likewise.
186 * elf32-vax.c (rtype_to_howto): Likewise.
187 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
188 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
189 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
190 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
191 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
192 * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays.
193 (bfd_mach_o_canonicalize_one_reloc): Fix check on out
194 of range symbol indicies.
195 (bfd_mach_o_canonicalize_relocs): Check for out of range alloc.
196 (bfd_mach_o_canonicalize_dynamic_reloc): Likewise.
197 (bfd_mach_o_build_dysymtab): Likewise.
198 (bfd_mach_o_write_symtab_content): Set the string table size to
199 zero upon error.
200 (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the
201 read fails.
202 * peXXigen.c (pe_print_edata): Check for numeric overflow in edt
203 fields.
204 * tekhex.c (first_phase): Check for src pointer reaching end of
205 buffer.
206
207 2015-02-03 Will Newton <will.newton@linaro.org>
208
209 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol):
210 Set st_value to zero for undefined symbols if the reference
211 is weak or pointer_equality_needed is FALSE.
212
213 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve
214 comment discussing why we clear st_value for some symbols.
215
216 2015-02-02 Kuan-Lin Chen <kuanlinchentw@gmail.com>
217
218 * elf32-nds32.c (nds32_get_section_contents): Add one more argument.
219 (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7.
220
221 2015-01-29 Alan Modra <amodra@gmail.com>
222
223 * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD
224 optimization. Tidy mask for GOT_TLSGD optimization.
225 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct
226 location of nop zapping high insn too.
227
228 2015-01-28 Alan Modra <amodra@gmail.com>
229
230 * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc".
231 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols
232 in .toc indicate xlc compiled code that might require a rw .toc.
233
234 2015-01-28 James Bowman <james.bowman@ftdichip.com>
235
236 * Makefile.am: Add FT32 files.
237 * archures.c (enum bfd_architecture): Add bfd_arch_ft32.
238 (bfd_mach_ft32): Define.
239 (bfd_ft32_arch): Declare.
240 (bfd_archures_list): Add bfd_ft32_arch.
241 * config.bfd: Handle FT32.
242 * configure.ac: Likewise.
243 * cpu-ft32.c: New file.
244 * elf32-ft32.c: New file.
245 * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17,
246 BFD_RELOC_FT32_18): Define.
247 * targets.c (_bfd_target_vector): Add ft32_elf32_vec.
248 * bfd-in2.h: Regenerate.
249 * libbfd.h: Regenerate.
250 * Makefile.in: Regenerate.
251 * configure: Regenerate.
252 * po/SRC-POTFILES.in: Regenerate.
253
254 2015-01-27 Nick Clifton <nickc@redhat.com>
255
256 PR binutils/17512
257 * pdp11.c (aout_get_external_symbols): Return false if there are
258 no symbols.
259
260 * dwarf2.c (concat_filename): Check for an empty directory table.
261 (scan_unit_for_symbols): Check for reading off the end of the
262 unit.
263 (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a
264 non-string form.
265 * elf64-ppc.c (opd_entry_value): Fail if there are no relocs
266 available.
267
268 2015-01-26 Kuan-Lin Chen <kuanlinchentw@gmail.com>
269
270 * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting.
271
272 2015-01-22 DJ Delorie <dj@redhat.com>
273
274 * elf32-m32c.c (m32c_apply_reloc_24): New.
275 (m32c_elf_howto_table): Use it for R_M32C_24.
276 (m32c_elf_relocate_section): Handle R_M32C_24 specially.
277
278 2015-01-22 Nick Clifton <nickc@redhat.com>
279
280 PR binutils/17512
281 * coffcode.h (handle_COMDAT): When searching for the section
282 symbol, make sure that there is space left in the symbol table.
283 * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks.
284
285 2015-01-21 Nick Clifton <nickc@redhat.com>
286
287 PR binutils/17512
288 * coffcode.h (coff_set_arch_mach_hook): Check return value from
289 bfd_malloc.
290 (coff_slurp_line_table): Return FALSE if the line number
291 information was corrupt.
292 (coff_slurp_symbol_table): Return FALSE if the symbol information
293 was corrupt.
294 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always
295 initialise the fields of the dyld_info structure.
296 (bfd_mach_o_build_exec_seg_command): Replace assertion with an
297 error message and a return value.
298 (bfd_mach_o_layout_commands): Change the function to boolean.
299 Return FALSE if the function fails.
300 (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands
301 fails.
302 (bfd_mach_o_read_command): Fail if an unrecognised command is
303 encountered.
304 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the
305 read fails.
306 (slurp_symtab): Check the return from bfd_malloc.
307 (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy
308 encountered an error.
309 (_bfd_XXi_final_link_postscript): Fail if a section could not be
310 copied.
311 * peicode.h (pe_bfd_object_p): Fail if the header could not be
312 swapped in.
313 * tekhex.c (first_phase): Fail if the section is too big.
314 * versados.c (struct esdid): Add content_size field.
315 (process_otr): Use and check the new field.
316 (versados_get_section_contents): Check that the section exists and
317 that the requested data is available.
318
319 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
320
321 * elf32-nios2.c (elf_backend_default_execstack): Define as 0.
322
323 2015-01-20 Alan Modra <amodra@gmail.com>
324
325 PR ld/17615
326 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop
327 ELF_COMMON_DEF syms.
328
329 2015-01-19 Alan Modra <amodra@gmail.com>
330
331 PR ld/17615
332 * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for
333 linker script assignments too.
334 * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms.
335 (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly.
336
337 2015-01-19 Alan Modra <amodra@gmail.com>
338
339 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration
340 to allow return of first howto.
341 * elf32-fr30.c (fr30_reloc_type_lookup): Likewise.
342 * elf32-m32c.c (m32c_reloc_type_lookup): Likewise.
343 * elf32-moxie.c (moxie_reloc_type_lookup): Likewise.
344 * elf32-or1k.c (or1k_reloc_type_lookup): Likewise.
345 * elf32-rl78.c (rl78_reloc_type_lookup): Likewise.
346 * elf32-rx.c (rx_reloc_type_lookup): Likewise.
347 * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise.
348 * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise.
349 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
350 * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE.
351 * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE.
352 (spu_elf_reloc_type_lookup): Adjust to suit.
353
354 2015-01-19 Alan Modra <amodra@gmail.com>
355
356 * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from..
357 (bfd_get_section_limit): ..here.
358 * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check.
359 (bfd_install_relocation, _bfd_final_link_relocate): Add same check here.
360 * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check.
361 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated
362 bfd_reloc_outofrange check.
363 * bfd-in2.h: Regenerate.
364
365 * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok
366 on zero size relocs.
367 * ecoff.c (ecoff_reloc_link_order): Likewise.
368 * elf32-nds32.c (nds32_relocate_contents): Likewise.
369 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
370
371 * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs.
372 (_bfd_clear_contents): Likewise.
373 * elfxx-mips.c (mips_elf_obtain_contents): Likewise.
374 (mips_elf_perform_relocation): Likewise.
375
376 * aoutx.h (aout_link_reloc_link_order): Allow for NULL return
377 from malloc on zero size alloc.
378 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
379 * elflink.c (elf_reloc_link_order): Likewise.
380 * linker.c (_bfd_generic_reloc_link_order): Likewise.
381 * pdp11.c (aout_link_reloc_link_order): Likewise.
382 * xcofflink.c (xcoff_reloc_link_order): Likewise.
383
384 * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3,
385 bitsize 0, and complain_overflow_dont.
386 * coff-sparc.c (coff_sparc_howto_table): Likewise.
387 * elf-hppa.h (elf_hppa_howto_table): Likewise.
388 * elf-m10200.c (elf_mn10200_howto_table): Likewise.
389 * elf-m10300.c (elf_mn10300_howto_table): Likewise.
390 * elf32-arc.c (elf_arc_howto_table): Likewise.
391 * elf32-arm.c (elf32_arm_howto_table_1): Likewise.
392 * elf32-avr.c (elf_avr_howto_table): Likewise.
393 * elf32-bfin.c (bfin_howto_table): Likewise.
394 * elf32-cr16.c (cr16_elf_howto_table): Likewise.
395 * elf32-cris.c (cris_elf_howto_table): Likewise.
396 * elf32-crx.c (crx_elf_howto_table): Likewise.
397 * elf32-d10v.c (elf_d10v_howto_table): Likewise.
398 * elf32-d30v.c (elf_d30v_howto_table): Likewise.
399 * elf32-dlx.c (dlx_elf_howto_table): Likewise.
400 * elf32-epiphany.c (epiphany_elf_howto_table): Likewise.
401 * elf32-fr30.c (fr30_elf_howto_table): Likewise.
402 * elf32-frv.c (elf32_frv_howto_table): Likewise.
403 * elf32-h8300.c (h8_elf_howto_table): Likewise.
404 * elf32-i370.c (i370_elf_howto_raw): Likewise.
405 * elf32-i386.c (elf_howto_table): Likewise.
406 * elf32-i860.c (elf32_i860_howto_table): Likewise.
407 * elf32-i960.c (elf32_i960_relocate): Likewise.
408 * elf32-ip2k.c (ip2k_elf_howto_table): Likewise.
409 * elf32-iq2000.c (iq2000_elf_howto_table): Likewise.
410 * elf32-lm32.c (lm32_elf_howto_table): Likewise.
411 * elf32-m32c.c (m32c_elf_howto_table): Likewise.
412 * elf32-m32r.c (m32r_elf_howto_table): Likewise.
413 * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise.
414 * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise.
415 * elf32-m68k.c (howto_table): Likewise.
416 * elf32-mcore.c (mcore_elf_howto_raw): Likewise.
417 * elf32-mep.c (mep_elf_howto_table): Likewise.
418 * elf32-metag.c (elf_metag_howto_table): Likewise.
419 * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise.
420 * elf32-mips.c (elf_mips_howto_table_rel): Likewise.
421 * elf32-moxie.c (moxie_elf_howto_table): Likewise.
422 * elf32-msp430.c (elf_msp430_howto_table): Likewise.
423 * elf32-mt.c (mt_elf_howto_table): Likewise.
424 * elf32-nds32.c (nds32_elf_howto_table): Likewise.
425 * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise.
426 * elf32-or1k.c (or1k_elf_howto_table): Likewise.
427 * elf32-pj.c (pj_elf_howto_table): Likewise.
428 * elf32-ppc.c (ppc_elf_howto_raw): Likewise.
429 * elf32-rl78.c (rl78_elf_howto_table): Likewise.
430 * elf32-rx.c (rx_elf_howto_table): Likewise.
431 * elf32-s390.c (elf_howto_table): Likewise.
432 * elf32-score.c (elf32_score_howto_table): Likewise.
433 * elf32-score7.c (elf32_score_howto_table): Likewise.
434 * elf32-sh-relocs.h (R_SH_NONE): Likewise.
435 * elf32-spu.c (elf_howto_table): Likewise.
436 * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise.
437 * elf32-tilepro.c (tilepro_elf_howto_table): Likewise.
438 * elf32-v850.c (v850_elf_howto_table): Likewise.
439 * elf32-vax.c (howto_table): Likewise.
440 * elf32-visium.c (visium_elf_howto_table): Likewise.
441 * elf32-xc16x.c (xc16x_elf_howto_table): Likewise.
442 * elf32-xgate.c (elf_xgate_howto_table): Likewise.
443 * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise.
444 * elf32-xtensa.c (elf_howto_table): Likewise.
445 * elf64-alpha.c (elf64_alpha_howto_table): Likewise.
446 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
447 * elf64-mmix.c (elf_mmix_howto_table): Likewise.
448 * elf64-ppc.c (ppc64_elf_howto_raw): Likewise.
449 * elf64-s390.c (elf_howto_table): Likewise.
450 * elf64-sh64.c (sh_elf64_howto_table): Likewise.
451 * elf64-x86-64.c (x86_64_elf_howto_table): Likewise.
452 * elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
453 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
454 (elfNN_aarch64_howto_none): Likewise.
455 * elfxx-ia64.c (ia64_howto_table): Likewise.
456 * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise.
457 * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise.
458 * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise.
459
460 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR ld/17847
463 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain
464 about -fPIC if the symbol is undefined when building executable.
465
466 2015-01-15 Nick Clifton <nickc@redhat.com>
467
468 PR binutils/17512
469 * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an
470 error message. Never return an invalid howto pointer.
471 * elf32-cr16.c (cr16_info_to_howto): Likewise.
472 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
473 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
474 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
475 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
476 * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise.
477 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
478 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
479 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
480 * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise.
481 * elf32-vax.c (rtype_to_howto): Likewise.
482 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
483 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
484 * elfn32-mips.c (sh_elf_info_to_howto): Likewise.
485 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
486 (sh_elf_reloc): Check that the reloc is in range.
487 * reloc.c (bfd_perform_relocation): Check that the section is big
488 enough for the entire reloc.
489 (bfd_generic_get_relocated_section_contents): Report unexpected
490 return values from perform_reloc.
491
492 2015-01-15 Nick Clifton <nickc@redhat.com>
493
494 * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled
495 relocs. Include PC-relative adjustment for R_MSP430X_ABS16
496 relaxation.
497
498 2015-01-15 Alan Modra <amodra@gmail.com>
499
500 * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for
501 any output section matching a linker created dynobj section.
502
503 2015-01-15 Alan Modra <amodra@gmail.com>
504
505 PR 17842
506 * elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
507 (bfd_elf_final_link): Always create a symbol table when emit_relocs.
508 Don't assign symtab file position unless symbols will be output.
509 Merge blocks with condition in common. Don't call
510 elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
511 unless other symbols are output. Move assignment of symtab_shndx
512 file position. Localize variable.
513
514 2015-01-14 Jiong Wang <jiong.wang@arm.com>
515
516 * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
517 trying to defer them to runtime.
518
519 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
520
521 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
522 to check if a symbol should be bound symbolically.
523
524 2015-01-13 Jiong Wang <jiong.wang@arm.com>
525
526 * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
527 for TLSLE_MOVW_TPREL_G2.
528
529 2015-01-13 Jiong Wang <jiong.wang@arm.com>
530
531 PR ld/17415
532 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
533 R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
534 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
535 bit mask.
536
537 2015-01-12 Terry Guo <terry.guo@arm.com>
538
539 * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
540 function.
541 (_bfd_elf_gc_mark_extra_sections): Use it.
542
543 2015-01-11 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR ld/17827
546 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
547 only discard space for pc-relative relocs symbols which turn
548 out to need copy relocs.
549
550 2015-01-09 Nick Clifton <nickc@redhat.com>
551
552 * tekhex.c (getvalue): Fix thinko in test for correct extraction
553 of value.
554 (getsym): Return false if there was not enough data to extract the
555 symbol.
556
557 2015-01-09 Anthony Green <green@moxielogic.com>
558
559 * elf32-moxie.c (ELF_MACHINE_ALT1): Define.
560
561 2015-01-08 Nick Clifton <nickc@redhat.com>
562
563 * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
564 16-bit absolute BR instructions to 10-bit pc-relative JMP
565 instructions.
566
567 2015-01-08 Nick Clifton <nickc@redhat.com>
568
569 PR binutils/17512
570 * coffcode.h (coff_slurp_symbol_table): Return false if we failed
571 to load the line table.
572 * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
573 maxpagesize of 1.
574 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
575 the Data Directory Size is too large.
576
577 2015-01-06 H.J. Lu <hongjiu.lu@intel.com>
578
579 PR binutils/17512
580 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
581 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
582
583 2015-01-06 Nick Clifton <nickc@redhat.com>
584
585 PR binutils/17512
586 * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
587 string table.
588
589 * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
590 (bfd_perform_relocation): Include the size of the reloc in the
591 test for an out of range relocation.
592 (bfd_generic_get_relocated_section_contents): Remove reloc range
593 test.
594
595 * coff-i860.c (CALC_ADDEND): Always set an addend value.
596 * tekhex.c (getvalue): Add an end pointer parameter. Use it to
597 avoid reading off the end of the buffer.
598 (getsym): Likewise.
599 (first_phase): Likewise.
600 (pass_over): Pass an end pointer to the invoked function.
601
602 2015-01-05 H.J. Lu <hongjiu.lu@intel.com>
603
604 PR binutils/17512
605 * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
606 input.
607 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
608
609 2015-01-05 Nick Clifton <nickc@redhat.com>
610
611 PR binutils/17512
612 * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
613 is at least big enough for the header to be read.
614 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
615 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
616 (bfd_mach_o_read_command): Prevetn duplicate error messages about
617 unrecognized commands.
618 * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
619 when indexing into the string table.
620
621 2015-01-01 Alan Modra <amodra@gmail.com>
622
623 Update year range in copyright notice of all files.
624
625 For older changes see ChangeLog-2014
626 \f
627 Copyright (C) 2015 Free Software Foundation, Inc.
628
629 Copying and distribution of this file, with or without modification,
630 are permitted in any medium without royalty provided the copyright
631 notice and this notice are preserved.
632
633 Local Variables:
634 mode: change-log
635 left-margin: 8
636 fill-column: 74
637 version-control: never
638 End: