Extract get_uncompressed_size
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
8bed4e0f
L
12015-04-04 H.J. Lu <hongjiu.lu@intel.com>
2
3 * compress.c (get_uncompressed_size): New. Extracted from ...
4 (bfd_init_section_decompress_status): This. Use it.
5
15c7659f
AT
62015-04-02 Andrew Turner <andrew@freebsd.org>
7
8 * config.bfd: Add aarch64-*-freebsd* target triple.
9
39f3de7c
L
102015-04-02 H.J. Lu <hongjiu.lu@intel.com>
11
12 * configure: Regenerated.
13
4106101c
MS
142015-04-01 Tejas Belagod <tejas.belagod@arm.com>
15 Marcus Shawcroft <marcus.shawcroft@arm.com>
16 Jiong Wang <jiong.wang@arm.com>
17
18 * bfd-in.h (bfd_elf64_aarch64_set_options)
19 (bfd_elf32_aarch64_set_options): Add parameter.
20 * bfd-in2.h: Regenerated.
21 * elfnn-aarch64.c (aarch64_erratum_843419_stub)
22 (_bfd_aarch64_adrp_p, _bfd_aarch64_erratum_843419_sequence_p)
23 (_bfd_aarch64_erratum_843419_stub_name)
24 (_bfd_aarch64_erratum_843419_fixup)
25 (_bfd_aarch64_erratum_843419_scan)
26 (_bfd_aarch64_erratum_843419_branch_to_stub)
27 (_bfd_aarch64_erratum_843419_p): Define.
28 (enum elf_aarch64_stub_type): Define
29 aarch64_stub_erratum_843419_veneer.
30 (struct elf_aarch64_stub_hash_entry): Define adrp_offset.
31 (struct elf_aarch64_link_hash_table): Define fix_erratum_843419
32 and fix_erratum_843419_adr.
33 (stub_hash_newfunc): Initialize adrp_offset;
34 (_bfd_aarch64_add_stub_entry_after): Define.
35 (aarch64_map_one_stub, aarch64_build_one_stub)
36 (aarch64_size_one_stub): Handle
37 aarch64_stub_erratum_843419_veneer.
38 (_bfd_aarch64_resize_stubs): Round stub section size.
39 (elfNN_aarch64_size_stubs): Add scan for 843419.
40 (bfd_elfNN_aarch64_set_options): Add parameter. Initialize
41 fix_erratum_843419 and fix_erratum_843419_adr.
42 (struct erratum_835769_branch_to_stub_data): Add info.
43 (elfNN_aarch64_write_section): Initialise info. Handle 843419.
44 (elfNN_aarch64_size_dynamic_sections): Handle 843419.
45 * elfxx-aarch64.c (_bfd_aarch64_decode_adrp_imm)
46 (_bfd_aarch64_sign_extend): Define.
47 (reencode_adr_imm): Remove static. Rename to:
48 (_bfd_aarch64_reencode_adr_imm): Define.
49 (_bfd_aarch64_elf_put_addend): Call _bfd_aarch64_reencode_adr_imm.
50 * elfxx-aarch64.h (AARCH64_ADR_OP, AARCH64_ADRP_OP)
51 (AARCH64_ADRP_OP_MASK, _bfd_aarch64_sign_extend)
52 (_bfd_aarch64_decode_adrp_imm, _bfd_aarch64_reencode_adr_imm):
53 Define.
54
afa59b79
L
552015-04-01 H.J. Lu <hongjiu.lu@intel.com>
56
57 * configure: Regenerated.
58
6036f486
ES
592015-03-31 Ed Schouten <ed@nuxi.nl>
60
61 * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec
62 for x86_64-*-cloudabi*.
63 * configure.ac: Handle x86_64_elf64_cloudabi_vec.
64 * configure: Regenerated.
65 * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*.
66 (TARGET_LITTLE_NAME): Likewise.
67 (ELF_OSABI): Likewise.
68 (elf64_bed): Likewise.
69 * targets.c (x86_64_elf64_cloudabi_vec): New.
70 (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec.
71
9ae46699
L
722015-03-31 H.J. Lu <hongjiu.lu@intel.com>
73
74 * configure.ac: Revert the AM_ZLIB change.
75 * Makefile.in: Regenerated.
76 * aclocal.m4: Likewise.
77 * configure: Likewise.
78 * doc/Makefile.in: Likewise.
79
bd53a53a
L
802015-03-30 H.J. Lu <hongjiu.lu@intel.com>
81
82 PR ld/18169
83 * elf-bfd.h (elf_backend_data): Add get_reloc_section.
84 (_bfd_elf_get_reloc_section): New.
85 * elf.c (_bfd_elf_get_reloc_section): Likewise.
86 (assign_section_numbers): Call get_reloc_section to look up the
87 section the relocs apply.
88 * elfxx-target.h (elf_backend_get_reloc_section): Likewise.
89 (elfNN_bed): Initialize get_reloc_section with
90 elf_backend_get_reloc_section.
91
243340ad
L
922015-03-29 H.J. Lu <hongjiu.lu@intel.com>
93
94 * Makefile.am (ZLIB): New.
95 (ZLIBINC): Likewise.
96 (AM_CFLAGS): Add $(ZLIBINC).
97 (libbfd_la_LIBADD): Add $(ZLIB).
98 * compress.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
99 (decompress_contents): Don't check HAVE_ZLIB_H.
243340ad
L
100 (bfd_compress_section_contents): Likewise.
101 (bfd_get_full_section_contents): Likewise.
102 (bfd_init_section_decompress_status): Likewise.
103 (bfd_init_section_compress_status): Likewise.
b51724e8 104 * configure.ac (AM_ZLIB): Removed.
243340ad
L
105 (zlibdir): New. AC_SUBST.
106 (zlibinc): Likewise.
107 Add --with-system-zlib.
108 * Makefile.in: Regenerated.
109 * acinclude.m4: Likewise.
110 * config.in: Likewise.
111 * configure: Likewise.
112 * doc/Makefile.in: Likewise.
113
b8417128
AM
1142015-03-27 Alan Modra <amodra@gmail.com>
115
116 PR ld/15228
117 PR ld/18167
118 * elflink.c (elf_merge_st_other): Add "sec" parameter. Don't set
119 protected_def when symbol section is read-only. Adjust all calls.
120 * elf-bfd.h (struct elf_link_hash_entry): Update protected_def comment.
121
93ca8569
TB
1222015-03-26 Tejas Belagod <tejas.belagod@arm.com>
123
124 * elfnn-aarch64.c (aarch64_build_one_stub): Replace the call to generic
125 _bfd_final_link_relocate with aarch64_relocate.
126
b19a8f85
L
1272015-03-26 H.J. Lu <hongjiu.lu@intel.com>
128
129 PR ld/18160
130 * elflink.c (elf_gc_sweep): Skip if relocation is incompatible.
131 (bfd_elf_gc_sections): Likewise.
132
61865519
MS
1332015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
134
135 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Adjust stub section
136 size for initial branch.
137 (elfNN_aarch64_build_stubs): Write initial branch.
138 _bfd_aarch64_decode_(elfNN_aarch64_output_arch_local_syms): Write
139 mapping symbol on initial branch.
140
d9ced15d 1412015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
357d1523
MS
142
143 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan):
144 Update erratum count.
145
d422d1c4
SKS
1462015-03-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
147
148 * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on
149 first matching debug section.
150
8d001214
L
1512015-03-24 H.J. Lu <hongjiu.lu@intel.com>
152
153 PR gas/18087
154 * compress.c (bfd_compress_section_contents): Don't write the
155 zlib header and set contents as well as compress_status if
156 compression didn't make the section smaller.
157 (bfd_init_section_compress_status): Don't check compression
158 size here.
159
fc42baf3
NC
1602015-03-24 Nick Clifton <nickc@redhat.com>
161
162 PR binutils/17512
163 * coffgen.c (coff_get_normalized_symtab): Fix test for out of
164 range auxillary sections.
165
fc6d53be
MS
1662015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
167
168 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor
169 code into:
170 (_bfd_aarch64_get_stub_for_link_section): Define.
171
30068a6d
MS
1722015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
173
174 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Adjust
175 update of section_group[].stub_sec.
176
5421cc6e
MS
1772015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
178
179 * elfnn-aarch64.c (struct aarch64_erratum_835769_fix) Remove.
180 (erratum_835769_scan) Drop fix_table_size_p and fixes_p arguments.
181 Delete fixes, fix_table_size and associated code. Call
182 _bfd_aarch64_add_stub_entry_in_group. Rename to...
183 (bfd_aarch64_erratum_835769_scan): Define.
184 (elfNN_aarch64_size_stubs): Delete erratum_835769_fixes,
185 erratum_835769_fix_table_size, i and associated code. Relocate
186 call to _bfd_aarch64_erratum_835769_scan. Delete adhoc stub size
187 correction. Delete construction of stub entry from
188 erratum_835769_fixes array.
189
e572930b
MS
1902015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
191
192 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Use
193 _bfd_aarch64_add_stub_entry_in_group.
194
8131c122
AM
1952015-03-24 Alan Modra <amodra@gmail.com>
196
197 * elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to
198 stubs, even those for undefined weak symbols. Otherwise, don't
199 report relocation overflow on branches to undefined strong
200 symbols. Fix memory leak.
201 * elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation
202 overflow on branches to undefined strong symbols.
203
c53ed7cf
KS
2042015-03-23 Keith Seitz <keiths@redhat.com>
205
206 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Add
207 missing ';'.
208
94a75bde
MS
2092015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
210
211 * elfnn-aarch64.c (erratum_835769_scan): Factor stub name
212 construction into...
213 (_bfd_aarch64_erratum_835769_stub_name): Define.
214
13f622ec
MS
2152015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
216
217 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Factor out
218 stub resize code into...
219 (bfd_aarch64_resize_stubs): Define.
220
66585675
MS
2212015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
222
223 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor stub
224 creation code into...
225 (bfd_aarch64_create_stub_section): Define.
226
ef857521
MS
2272015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
228
229 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Rename
230 from elf_aarch64_create_or_find_stub_sec.
231 (_bfd_aarch64_add_stub_entry_in_group): Rename from
232 elfNN_aarch64_add_stub. Call
233 _bfd_aarch64_create_or_find_stub_sec.
234 (elfNN_aarch64_size_stubs, elfNN_aarch64_size_stubs): Call
235 _bfd_aarch64_add_stub_entry_in_group.
236
2144188d
MS
2372015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
238
239 * elfnn-aarch64.c (erratum_835769_scan) Add comment. Reverse
240 sense of boolean return.
241 (elfNN_aarch64_size_stubs): Adjust for above.
242
4c77202d
MS
2432015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
244
245 * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec):
246 Remove unused parameter.
247 (elfNN_aarch64_size_stubs): Adjust for above.
248
9b9971aa
MS
2492015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
250
251 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx.
252
e2cdef47
MS
2532015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
254
255 * elfnn-aarch64.c (aarch64_erratum_835769_fixes)
256 (num_aarch64_erratum_835769_fixes): Remove.
257 (elfNN_aarch64_size_stubs): Remove assignments to above.
258
3d14faea
MS
2592015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
260
23956543
MS
261 * elfnn-aarch64.c (aarch64_mem_op_p): Update comment. Rename rtn
262 to rt2.
3d14faea
MS
263 (aarch64_erratum_seqeunce): Rename rtn to rt2.
264
f872121a
MS
2652015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
266
267 * elfnn-aarch64.c (elfNN_aarch64_write_section): Adjust layout.
268
1740ba0c
NC
2692015-03-19 Nick Clifton <nickc@redhat.com>
270
271 * elf32-rl78.c (rl78_cpu_name): New function. Prints the name of
272 the RL78 core based upon the flags.
273 (rl78_elf_merge_private_bfd_data): Handle merging of G13 and G14
274 flags.
275 (rl78_elf_print_private_bfd_data): Use rl78_cpu_name.
276 (elf32_rl78_machine): Always return bfd_mach_rl78.
277
e2575e05
NC
2782015-03-19 Nick Clifton <nickc@redhat.com>
279
280 PR 18078
281 * compress.c (bfd_compress_section_contents): Do not define this
282 function if it is not used.
283
0b0732e1
L
2842015-03-18 H.J. Lu <hongjiu.lu@intel.com>
285
286 * compress.c (bfd_compress_section_contents): Make it static.
287 * bfd/bfd-in2.h: Regenerated.
288
27aaeda0
NC
2892015-03-18 Eric Youngdale <eyoungdale@ptc.com>
290
291 PR ld/16598
292 * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs
293 suitable for the AMD64.
294
273a4985
JT
2952015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
296 Nick Clifton <nickc@redhat.com>
297
298 PR binutils/18087
299 * coffgen.c (make_a_section_from_file): Only prepend a z to a
300 debug section's name if the section was actually compressed.
301 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
302 * compress.c (bfd_init_section_compress_status): Do not compress
303 the section if doing so would make it bigger. In such cases leave
304 the section alone and return COMPRESS_SECTION_NONE.
305
c4b0b099
AM
3062015-03-17 Alan Modra <amodra@gmail.com>
307
308 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return count of 0
309 on nothing to do, before malloc of returned symbol array.
310
9c761a55
NC
3112015-03-16 Nick Clifton <nickc@redhat.com>
312
313 * elf32-rx.c (elf32_rx_relax_delete_bytes): If the relocs are not
314 stored in the elf_section_data structure then load them as
315 necessary.
316
b9005ba7
AK
3172015-03-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
318
319 * elf-s390-common.c (elf_s390_elf_sort_relocs_p): Don't sort
320 relocs against code sections.
321 * elf32-s390.c: Define elf_backend_sort_relocs_p.
322 * elf64-s390.c: Likewise.
323
1079403c
AM
3242015-03-11 Alan Modra <amodra@gmail.com>
325
326 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Examine stubs in
327 reverse order. Account for larger size of __tls_get_addr_opt stub.
328
a5721edd
JW
3292015-03-10 Yuri Gribov <y.gribov@samsung.arm>
330
331 PR ld/16572
332 * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for
333 ELF_ARM_HASENTRY.
334 (elf32_arm_print_private_bfd_data): Likewise.
335
65164438
NC
3362015-03-06 Nick Clifton <nickc@redhat.com>
337
338 PR binutils/17765
339 * elflink.c (put_value): Like previous delta, but for the 32-bit
340 case.
341
41cd1ad1
NC
3422015-03-05 Nick Clifton <nickc@redhat.com>
343
344 PR binutils/17765
345 * elflink.c (put_value): Avoid using an undefined shift
346 operation.
347
ca3fe95e
L
3482015-03-05 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR ld/pr15228
351 PR ld/pr17709
352 * elf-bfd.h (elf_backend_data): Add extern_protected_data.
353 * elf32-i386.c (elf_backend_extern_protected_data): New.
354 Defined to 1.
355 * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
356 * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on
357 copy relocs against protected symbols if extern_protected_data
358 is true.
359 (_bfd_elf_symbol_refs_local_p): Don't return true on protected
360 non-function symbols if extern_protected_data is true.
361 * elfxx-target.h (elf_backend_extern_protected_data): New.
362 Default to 0.
363 (elfNN_bed): Initialize extern_protected_data with
364 elf_backend_extern_protected_data.
365
425bd9e1
NC
3662015-03-05 Nick Clifton <nickc@redhat.com>
367
368 PR binutils/18025
369 * coffgen.c (coff_find_nearest_line_with_names): If the dwarf2
370 lookup fails, check for an address bias in the dwarf info, and if
371 one exists, retry the lookup with the biased value.
372 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): New function.
373 Determines if a bias exists bewteen the addresses of functions
374 based on DWARF information vs symbol table information.
375 * libbfd-in.h (_bfd_dwarf2_find_symbol_bias): Prototype.
376 * libbfd.h: Regenerate.
377
8ef229f3
MS
3782015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
379
380 * elfxx-aarch64.c (decode_add_imm, decode_movw_imm)
381 (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19)
382 (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove.
383
8e2fe09f
MS
3842015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
385
386 * elfnn-aarch64.c (aarch64_build_one_stub): Call abort.
387 (aarch64_size_one_stub): Likewise.
388 (aarch64_map_one_stub): Likewise.
389
df88b702
AA
3902015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
391
392 * cpu-s390.c (N): New macro.
393 (bfd_s390_31_arch): New. Define only if default target word size
394 is 64 bits. Otherwise define...
395 (bfd_390_64_arch): ...this. Make static.
396 (bfd_s390_arch): Define according to the default target word size.
397 Let the 'next' field point to the alternate arch.
398
e09ab7ac
RS
3992015-03-04 Richard Sandiford <richard.sandiford@arm.com>
400
401 PR gas/17843
402 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect
403 R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
404 to be used with MOVK rather than MOVZ.
405
71eef2bd
DD
4062015-03-03 DJ Delorie <dj@redhat.com>
407
408 * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if
409 there's a symbol.
410
f01f1741
AM
4112015-02-28 Alan Modra <amodra@gmail.com>
412
413 * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
414 not PLT_NEW.
415
c1d11331
L
4162015-02-27 H.J. Lu <hongjiu.lu@intel.com>
417
418 * elf32-i386.c (need_convert_mov_to_lea): New.
419 (elf_i386_check_relocs): Set need_convert_mov_to_lea if needed.
420 (elf_i386_convert_mov_to_lea): Return TRUE if
421 need_convert_mov_to_lea is unset.
422 * elf64-x86-64.c (need_convert_mov_to_lea): New.
423 (elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed.
424 (elf_x86_64_convert_mov_to_lea): Return TRUE if
425 need_convert_mov_to_lea is unset.
426
cdb602b1
NC
4272015-02-27 Nick Clifton <nickc@redhat.com>
428
429 PR binutils/17910
430 * coffgen.c (_bfd_coff_internal_syment_name): Only check for
431 string length overflow when the string table length is actually
432 set.
433
96c20bc1
MS
4342015-02-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
435
436 * bfd/bfd-in2.h: Regenerate.
437 * bfd/libbfd.h: Regenerate.
438
1ada945d
MS
4392015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
440
441 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix
442 TLSDESC_LD_PREL19 field width and masks.
443 (aarch64_tls_transition_without_check)
444 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
445 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
446 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
447 BFD_RELOC_AARCH64_TLSDESC_LD_PREL19.
448 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
449 (_bfd_aarch64_elf_resolve_relocation): Likewise.
450
389b8029
MS
4512015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
452
73920eed
MS
453 * elfnn-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Reorder R_TYPE
454 tests.
389b8029
MS
455 (aarch64_tls_transition_without_check)
456 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
457 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
458 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
459 BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
460 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
461 (_bfd_aarch64_elf_resolve_relocation): Likewise.
462 * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
463
3c12b054
MS
4642015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
465
466 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC)
467 (elfNN_aarch64_howto_table, aarch64_tls_transition_without_check)
468 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
469 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
470 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
471 BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
472 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
473 (_bfd_aarch64_elf_resolve_relocation): Likewise.
474 * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
475
043bf05a
MS
4762015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
477
478 * elfnn-aarch64.c: (TLSIE_LD_GOTTREL_PREL19): Fix HOWTO bit field width.
479 (aarch64_tls_transition_without_check, aarch64_reloc_got_type)
480 (elfNN_aarch64_final_link_relocate, elfNN_aarch64_tls_relax)
481 (elfNN_aarch64_relocate_section, elfNN_aarch64_gc_sweep_hook)
482 (elfNN_aarch64_check_relocs): Handle
483 BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
484
485 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
486 (_bfd_aarch64_elf_resolve_relocation): Likewise.
487
7366006f
MS
4882015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
489
490 * elfnn-aarch64.c: (TLSDESC_CALL): Fix HOWTO bit field width.
491
07875fbc
MS
4922015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
493
494 * elfnn-aarch64.c (TLSLE_MOVW_TPREL_G2)
495 (TLSLE_MOVW_TPREL_G1, TLSLE_MOVW_TPREL_G1_NC)
496 (TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC): Fix bit field
497 width.
498
49d8f92c
MS
4992015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
500
501 * elfnn-aarch64.c: (TLSIE_MOVW_GOTTPREL_G0_NC): Fix HOWTO bit
502 field width.
503
c86934ce
NC
5042015-02-26 Nick Clifton <nickc@redhat.com>
505
506 PR binutils/17512
507 * coffcode.h (coff_compute_section_file_positions): Report
508 negative page sizes.
509 * elf.c (elf_fake_sections): Handle excessive alignmment powers.
510 (assign_file_positions_for_non_load_sections): Replace assertion
511 with an error message.
512 (rewrite_elf_program_header): Handle excessive segment
513 alignments.
514 * mach-o.c (bfd_mach_o_read_section_32): Likewise.
515 (bfd_mach_o_read_section_64): Likewise.
516 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Use %B to
517 print a bfd name, not %A.
518
bd4d2eaa
AM
5192015-02-26 Alan Modra <amodra@gmail.com>
520
521 * elf64-ppc.c (plt_stub_size, build_plt_stub): Don't build
522 thread-safe stubs for iplt.
523 (build_tls_get_addr_stub): Restore r2 immediately after call.
524
99654aaf
TG
5252015-02-26 Terry Guo <terry.guo@arm.com>
526
527 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we
528 merge Tag_ABI_HardFP_use.
529
a127494f
AM
5302015-02-26 Alan Modra <amodra@gmail.com>
531
532 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Heed -z nocopyreloc.
533 Use text relocs rather than giving an error on trying to use
534 .dynbss for protected shared lib vars.
535 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
536
bac13f5a
AB
5372015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * elf32-avr.c (struct elf_avr_section_data): New structure.
540 (struct avr_relax_info): New structure.
541 (elf_avr_new_section_hook): New function.
542 (struct elf_avr_section_data): Add relax_info.
543 (get_avr_relax_info): New function.
544 (init_avr_relax_info): New function.
545 (elf32_avr_relax_delete_bytes): Find next property record before
546 deleting bytes. When deleting don't move bytes beyond the next
547 property record.
548 (avr_elf32_assign_records_to_section): New function.
549 (avr_property_record_compare): New function.
550 (avr_load_all_property_sections): New function.
551 (elf32_avr_relax_section): Load property data. After relaxing the
552 section, move any .align directives that have enough deleted bytes
553 before them.
554 (bfd_elf32_new_section_hook): Define.
555
137c83d6
AB
5562015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * elf32-avr.h (struct avr_property_header): New strucure.
559 (avr_elf32_load_property_records): Declare.
560 (avr_elf32_property_record_name): Declare.
561 * elf32-avr.c: Add bfd_stdint.h include.
562 (retrieve_local_syms): New function.
563 (get_elf_r_symndx_section): New function.
564 (get_elf_r_symndx_offset): New function.
565 (internal_reloc_compare): New function.
566 (struct avr_find_section_data): New structure.
567 (avr_is_section_for_address): New function.
568 (avr_find_section_for_address): New function.
569 (avr_elf32_load_records_from_section): New function.
570 (avr_elf32_load_property_records): New function.
571 (avr_elf32_property_record_name): New function.
572
fdd410ac
AB
5732015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * elf32-avr.h (AVR_PROPERTY_RECORD_SECTION_NAME): Define.
576 (AVR_PROPERTY_RECORDS_VERSION): Define.
577 (AVR_PROPERTY_SECTION_HEADER_SIZE): Define.
578 (struct avr_property_record): New structure.
579
685080f2
NC
5802015-02-24 Nick Clifton <nickc@redhat.com>
581
582 * elf32-v850.c (v850_set_note): New function. Creates a Renesas
583 style note entry.
584 (v850_elf_make_note_section): New function. Creates a note
585 section.
586 (v850_elf_create_sections): New function. Create a note section
587 if one is not already present.
588 (v850_elf_set_note): New function. Adds a note to a bfd.
589 (v850_elf_copy_private_bfd_data): New function. Copies V850
590 notes.
591 (v850_elf_merge_notes): New function. Merges V850 notes.
592 (print_v850_note): New function. Displays a V850 note.
593 (v850_elf_print_notes): New function. Displays all notes attached
594 to a bfd.
595 (v850_elf_merge_private_bfd_data): Call v850_elf_merge_notes.
596 (v850_elf_print_private_bfd_data): Call v850_elf_print_notes.
597 (v850_elf_fake_sections): Set the type of the V850 note section.
598 * bfd-in.h (v850_elf_create_sections): Add prototype.
599 (v850_elf_set_note): Add prototype.
600 * bfd-in2.h: Regenerate.
601
31593e1b
NC
6022015-02-24 Nick Clifton <nickc@redhat.com>
603
604 * configure.ac (AC_CHECK_HEADERS): Add wctype.h.
605 * configure: Regenerate.
606 * config.in: Regenerate.
607 * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined.
608 (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined.
609 (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H
610 is defined.
611
3ad797fd
NC
6122015-02-24 Nick Clifton <nickc@redhat.com>
613
614 * pdp11.c (set_section_contents): Pad the .text and .data sections
615 to their aligned sizes.
616
5518c738
YS
6172015-02-23 Yoshinori Sato <ysato@users.sourceforge.jp>
618
619 * config.bfd: Add h8300-*-linux.
620 * configure.ac: Add h8300_elf32_linux_vec.
621 * configure: Regenerate.
622 * elf32-h8300.c: Likewise.
623 * targets.c(_bfd_target_vector): Likewise.
624
cb967f0d
NC
6252015-02-23 Nick Clifton <nickc@redhat.com>
626
627 PR 17914
628 * cpu-w65.c: Correct typos in license notice.
629
0f8f0c57
NC
630 PR 17940
631 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug
632 symbols at end of sections. Adjust function sizes.
633
4ef9f41a
AA
6342015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
635
636 * elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype.
637 (elfcore_write_s390_vxrs_high): Likewise.
638 * elf.c (elfcore_grok_s390_vxrs_low): New function.
639 (elfcore_grok_s390_vxrs_high): New function.
640 (elfcore_grok_note): Call them.
641 (elfcore_write_s390_vxrs_low): New function.
642 (elfcore_write_s390_vxrs_high): New function.
643 (elfcore_write_register_note): Call them.
644
837914ee
BD
6452015-02-19 Branko Drevensek <branko.drevensek@gmail.com>
646
647 PR 17995
648 * verilog.c (verilog_write_record): Correct buffer size.
649
cf18fda4
AM
6502015-02-19 Alan Modra <amodra@gmail.com>
651
652 * elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.
653
d983c8c5
AM
6542015-02-19 Alan Modra <amodra@gmail.com>
655
656 PR ld/4317
657 * elflink.c (elf_link_input_bfd): Drop undefined local syms.
658 (elf_link_output_extsym): Drop local and global undefined syms.
659 Tidy. Expand comment.
660
2ec55de3
AM
6612015-02-17 Alan Modra <amodra@gmail.com>
662
663 PR ld/17975
664 * elflink.c (struct elf_outext_info): Remove need_second_pass
665 and second_pass.
666 (elf_link_output_extsym): Delete code handling second forced
667 local pass. Move code emitting NULL STT_FILE symbol later, so
668 that it can be omitted if forced local is stripped. Don't
669 emit the NULL STT_FILE if no file symbols have been output.
670 (bfd_elf_final_link): Remove second forced local pass.
671 * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms.
672 (ppc_elf_size_dynamic_sections): Likewise.
673 * elf64-ppc.c (ppc_build_one_stub): Likewise.
674 (build_global_entry_stubs): Likewise.
675 (ppc64_elf_build_stubs): Likewise.
676
6dfb72b9
L
6772015-02-16 H.J. Lu <hongjiu.lu@intel.com>
678
679 PR ld/17975
680 * elflink.c (elf_link_output_extsym): Only check filesym_count
681 when outputting a NULL FILE symbol. Set second_pass_sym to
682 h->forced_local && !h->root.linker_def.
683
576fa883
L
6842015-02-15 H.J. Lu <hongjiu.lu@intel.com>
685
686 * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def
687 on _TLS_MODULE_BASE_.
688 * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise.
689
62f8d217
AM
6902015-02-15 Alan Modra <amodra@gmail.com>
691
692 * dwarf2.c (read_rangelist): Correct buffer overflow check
693 Whitespace throughout file.
694
ce875075
AM
6952015-02-14 Alan Modra <amodra@gmail.com>
696
697 PR ld/17973
698 * bfd.c (struct bfd): Add lto_output.
699 * linker.c (_bfd_handle_already_linked): Explicitly test for
700 objects added by the lto plugin.
701 * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and
702 no_export flags from archive.
703 * archive.c (open_nested_file): New function, setting lto_output
704 and no_export, extracted from..
705 (find_nested_archive): ..here. Flip params. Rename from
706 _bfd_find_nested_archive.
707 (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file.
708 (_bfd_look_for_bfd_in_cache): Copy no_export.
709 * elflink.c (elf_link_add_object_symbols): Remove now unnecessary
710 my_archive->no_export test.
711 (elf_link_input_bfd): Drop existing lto_output STT_FILE syms.
712 Don't use the file name when adding lto_output STT_FILE sym.
713 * bfd-in2.h: Regenerate.
714
451dfd38
AM
7152015-02-13 Alan Modra <amodra@gmail.com>
716
717 PR binutils/17512
718 * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
719 now redundant assert.
720
dbb3fbbb
NC
7212015-02-12 Nick Clifton <nickc@redhat.com>
722
723 PR binutils/17512
724 * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes)
725 (read_4_bytes, read_8_bytes, read_n_bytes, read_string)
726 (read_indirect_string, read_alt_indirect_string)
727 (read_alt_indirect_ref, read_address, read_abbrevs)
728 (read_attribute_value, read_attribute, decode_line_info)
729 (find_abstract_instance_name, read_rangelist)
730 (scan_unit_for_symbols, parse_comp_unit)
731 (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass
732 end pointers to reading functions and check for offsets taking
733 pointers out of range. Replace calls to read_*_leb128 with calls
734 to safe_read_leb128.
735
736 (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge
737 offset.
738 * syms.c (_bfd_stab_section_find_nearest_line): Add checks for
739 computed file_name address being before the start of the string
740 table.
741
b9dc5a87
L
7422015-02-11 H.J. Lu <hongjiu.lu@intel.com>
743
744 PR ld/17878
745 * bfd.c (bfd_plugin_format): New.
746 (bfd): Add plugin_format and plugin_dummy_bfd.
747 * plugin.c (try_load_plugin): Take a pointer to bfd_boolean
748 argument to return TRUE if any plugin is found. Set plugin_format.
749 (has_plugin): New.
750 (bfd_plugin_target_p): New.
751 (bfd_plugin_specified_p): Likewise.
752 (bfd_plugin_target_p): Likewise.
753 (register_ld_plugin_object_p): Likewise.
754 (bfd_plugin_set_plugin): Set has_plugin.
755 (load_plugin): Cache try_load_plugin result.
756 (bfd_plugin_object_p): Try ld_plugin_object_p first. Check
757 plugin_format.
758 * plugin.h (bfd_plugin_target_p): New.
759 (bfd_plugin_specified_p): Likewise.
760 (register_ld_plugin_object_p): Likewise.
761 * bfd-in2.h: Regenerated.
762
55172d69
PA
7632015-02-11 Pedro Alves <palves@redhat.com>
764
765 * libbfd-in.h [__cplusplus]: Open extern "C" scope.
766 * libcoff-in.h [__cplusplus]: Open extern "C" scope.
767 * libbfd.h: Regenerate.
768 * libcoff.h: Regenerate.
769
770 * elf-bfd.h [__cplusplus]: Wrap in extern "C".
771 * mach-o.h [__cplusplus]: Wrap in extern "C".
772 * som.h [__cplusplus]: Wrap in extern "C".
773
77ef8654
NC
7742015-02-10 Nick Clifton <nickc@redhat.com>
775
776 PR binutils/17512
777 * coffcode.h (styp_to_sec_flags): Use an unsigned long type to
778 hold the flag bits.
779 * peXXigen.c (pe_print_reloc): Use unsigned types to hold the
780 size and number of relocs.
781 (pe_print_debugdata): Use a 32-bit aligned buffer to store the
782 codeview record.
783 * versados.c (process_otr): Check the esdid value before using it
784 to access the EDATA.
785
35181b3e
EM
7862015-02-09 Ed Maste <emaste@freebsd.org>
787
788 * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing
789 uninitialized and unused variable.
790 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
791
989f9879
AM
7922015-02-09 Alan Modra <amodra@gmail.com>
793
794 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL
795 tls_sec.
796 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
797 * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec.
798
ca4be51c
AM
7992015-02-09 Alan Modra <amodra@gmail.com>
800
801 * elflink.c: Whitespace, formatting fixes.
802 (elf_link_input_bfd): Clarify comment.
803 (elf_link_output_extsym): Exclude symbols in linker created
804 sections when testing for plugin symbols.
805
1952c5cd
L
8062015-02-07 H.J. Lu <hongjiu.lu@intel.com>
807
808 PR ld/17935
809 * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a
810 warning for relocation in readonly section for -z text.
811 (elf_i386_size_dynamic_sections): Likewise.
812 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
813 (elf_x86_64_size_dynamic_sections): Likewise.
814
9e2dec47
L
8152015-02-06 H.J. Lu <hongjiu.lu@intel.com>
816
817 PR ld/12365
818 PR ld/14272
819 * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change.
820 (elf_link_input_bfd): Mark the plugin symbol undefined if it is
821 referenced from a non-IR file.
822
5929c344
NC
8232015-02-06 Nick Clifton <nickc@redhat.com>
824
825 PR binutils/17512
826 * peXXigen.c (rsrc_print_resource_entries): Add range check for
827 addresses that wrap around the address space.
828 (rsrc_parse_entry): Likewise.
829
60f79275
L
8302015-02-03 H.J. Lu <hongjiu.lu@intel.com>
831
832 PR ld/12365
833 PR ld/14272
834 * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
835 undefined if it is referenced from a non-IR file.
836
64d29018
NC
8372015-02-03 Nick Clifton <nickc@redhat.com>
838
839 PR binutils/17512
840 * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays.
841 (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol
842 index or an out of range fdr index.
843 * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message.
844 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
845 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
846 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
847 * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise.
848 * elf32-cris.c (cris_info_to_howto_rela): Likewise.
849 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
850 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
851 * elf32-d30v.c (d30v_info_to_howto_rel): Likewise.
852 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
853 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
854 * elf32-frv.c (frv_info_to_howto_rela): Likewise.
855 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
856 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
857 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
858 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
859 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
860 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
861 * elf32-m32r.c (m32r_info_to_howto_rel): Likewise.
862 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
863 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
864 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
865 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
866 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
867 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
868 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
869 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
870 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
871 * elf32-nds32.c (nds32_info_to_howto_rel): Likewise.
872 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
873 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
874 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
875 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
876 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
877 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
878 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
879 * elf32-v850.c (v850_elf_perform_relocation): Likewise.
880 * elf32-vax.c (rtype_to_howto): Likewise.
881 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
882 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
883 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
884 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
885 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
886 * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays.
887 (bfd_mach_o_canonicalize_one_reloc): Fix check on out
888 of range symbol indicies.
889 (bfd_mach_o_canonicalize_relocs): Check for out of range alloc.
890 (bfd_mach_o_canonicalize_dynamic_reloc): Likewise.
891 (bfd_mach_o_build_dysymtab): Likewise.
892 (bfd_mach_o_write_symtab_content): Set the string table size to
893 zero upon error.
894 (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the
895 read fails.
896 * peXXigen.c (pe_print_edata): Check for numeric overflow in edt
897 fields.
898 * tekhex.c (first_phase): Check for src pointer reaching end of
899 buffer.
900
3a635617
WN
9012015-02-03 Will Newton <will.newton@linaro.org>
902
46b87d49
WN
903 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol):
904 Set st_value to zero for undefined symbols if the reference
905 is weak or pointer_equality_needed is FALSE.
906
3a635617
WN
907 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve
908 comment discussing why we clear st_value for some symbols.
909
0c4bd9d9
KLC
9102015-02-02 Kuan-Lin Chen <kuanlinchentw@gmail.com>
911
912 * elf32-nds32.c (nds32_get_section_contents): Add one more argument.
913 (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7.
914
b86ac8e3
AM
9152015-01-29 Alan Modra <amodra@gmail.com>
916
917 * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD
918 optimization. Tidy mask for GOT_TLSGD optimization.
919 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct
920 location of nop zapping high insn too.
921
dbd1e97e
AM
9222015-01-28 Alan Modra <amodra@gmail.com>
923
924 * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc".
925 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols
926 in .toc indicate xlc compiled code that might require a rw .toc.
927
3f8107ab
AM
9282015-01-28 James Bowman <james.bowman@ftdichip.com>
929
930 * Makefile.am: Add FT32 files.
931 * archures.c (enum bfd_architecture): Add bfd_arch_ft32.
932 (bfd_mach_ft32): Define.
933 (bfd_ft32_arch): Declare.
934 (bfd_archures_list): Add bfd_ft32_arch.
935 * config.bfd: Handle FT32.
936 * configure.ac: Likewise.
937 * cpu-ft32.c: New file.
938 * elf32-ft32.c: New file.
939 * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17,
940 BFD_RELOC_FT32_18): Define.
941 * targets.c (_bfd_target_vector): Add ft32_elf32_vec.
942 * bfd-in2.h: Regenerate.
943 * libbfd.h: Regenerate.
944 * Makefile.in: Regenerate.
945 * configure: Regenerate.
946 * po/SRC-POTFILES.in: Regenerate.
947
37e3922e
NC
9482015-01-27 Nick Clifton <nickc@redhat.com>
949
950 PR binutils/17512
951 * pdp11.c (aout_get_external_symbols): Return false if there are
952 no symbols.
953
877a8638
NC
954 * dwarf2.c (concat_filename): Check for an empty directory table.
955 (scan_unit_for_symbols): Check for reading off the end of the
956 unit.
957 (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a
958 non-string form.
959 * elf64-ppc.c (opd_entry_value): Fail if there are no relocs
960 available.
961
18393a2e
KLC
9622015-01-26 Kuan-Lin Chen <kuanlinchentw@gmail.com>
963
964 * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting.
965
055173ca
DD
9662015-01-22 DJ Delorie <dj@redhat.com>
967
968 * elf32-m32c.c (m32c_apply_reloc_24): New.
969 (m32c_elf_howto_table): Use it for R_M32C_24.
970 (m32c_elf_relocate_section): Handle R_M32C_24 specially.
971
4e5cb37e
NC
9722015-01-22 Nick Clifton <nickc@redhat.com>
973
974 PR binutils/17512
975 * coffcode.h (handle_COMDAT): When searching for the section
976 symbol, make sure that there is space left in the symbol table.
977 * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks.
978
86eafac0
NC
9792015-01-21 Nick Clifton <nickc@redhat.com>
980
981 PR binutils/17512
982 * coffcode.h (coff_set_arch_mach_hook): Check return value from
983 bfd_malloc.
984 (coff_slurp_line_table): Return FALSE if the line number
985 information was corrupt.
986 (coff_slurp_symbol_table): Return FALSE if the symbol information
987 was corrupt.
988 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always
989 initialise the fields of the dyld_info structure.
990 (bfd_mach_o_build_exec_seg_command): Replace assertion with an
991 error message and a return value.
992 (bfd_mach_o_layout_commands): Change the function to boolean.
993 Return FALSE if the function fails.
994 (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands
995 fails.
996 (bfd_mach_o_read_command): Fail if an unrecognised command is
997 encountered.
998 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the
999 read fails.
1000 (slurp_symtab): Check the return from bfd_malloc.
1001 (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy
1002 encountered an error.
1003 (_bfd_XXi_final_link_postscript): Fail if a section could not be
1004 copied.
1005 * peicode.h (pe_bfd_object_p): Fail if the header could not be
1006 swapped in.
1007 * tekhex.c (first_phase): Fail if the section is too big.
1008 * versados.c (struct esdid): Add content_size field.
1009 (process_otr): Use and check the new field.
1010 (versados_get_section_contents): Check that the section exists and
1011 that the requested data is available.
1012
03d5b773
CLT
10132015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1014
1015 * elf32-nios2.c (elf_backend_default_execstack): Define as 0.
1016
1c9177d9
AM
10172015-01-20 Alan Modra <amodra@gmail.com>
1018
1019 PR ld/17615
1020 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop
1021 ELF_COMMON_DEF syms.
1022
c4621b33
AM
10232015-01-19 Alan Modra <amodra@gmail.com>
1024
3e2aa5bb 1025 PR ld/17615
c4621b33
AM
1026 * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for
1027 linker script assignments too.
1028 * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms.
1029 (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly.
1030
0ba38529
AM
10312015-01-19 Alan Modra <amodra@gmail.com>
1032
1033 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration
1034 to allow return of first howto.
1035 * elf32-fr30.c (fr30_reloc_type_lookup): Likewise.
1036 * elf32-m32c.c (m32c_reloc_type_lookup): Likewise.
1037 * elf32-moxie.c (moxie_reloc_type_lookup): Likewise.
1038 * elf32-or1k.c (or1k_reloc_type_lookup): Likewise.
1039 * elf32-rl78.c (rl78_reloc_type_lookup): Likewise.
1040 * elf32-rx.c (rx_reloc_type_lookup): Likewise.
1041 * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise.
1042 * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise.
1043 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1044 * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE.
1045 * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE.
1046 (spu_elf_reloc_type_lookup): Adjust to suit.
1047
6346d5ca
AM
10482015-01-19 Alan Modra <amodra@gmail.com>
1049
1050 * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from..
1051 (bfd_get_section_limit): ..here.
1052 * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check.
1053 (bfd_install_relocation, _bfd_final_link_relocate): Add same check here.
1054 * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check.
1055 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated
1056 bfd_reloc_outofrange check.
1057 * bfd-in2.h: Regenerate.
1058
1059 * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok
1060 on zero size relocs.
1061 * ecoff.c (ecoff_reloc_link_order): Likewise.
1062 * elf32-nds32.c (nds32_relocate_contents): Likewise.
1063 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1064
1065 * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs.
1066 (_bfd_clear_contents): Likewise.
1067 * elfxx-mips.c (mips_elf_obtain_contents): Likewise.
1068 (mips_elf_perform_relocation): Likewise.
1069
1070 * aoutx.h (aout_link_reloc_link_order): Allow for NULL return
1071 from malloc on zero size alloc.
1072 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
1073 * elflink.c (elf_reloc_link_order): Likewise.
1074 * linker.c (_bfd_generic_reloc_link_order): Likewise.
1075 * pdp11.c (aout_link_reloc_link_order): Likewise.
1076 * xcofflink.c (xcoff_reloc_link_order): Likewise.
1077
1078 * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3,
1079 bitsize 0, and complain_overflow_dont.
1080 * coff-sparc.c (coff_sparc_howto_table): Likewise.
1081 * elf-hppa.h (elf_hppa_howto_table): Likewise.
1082 * elf-m10200.c (elf_mn10200_howto_table): Likewise.
1083 * elf-m10300.c (elf_mn10300_howto_table): Likewise.
1084 * elf32-arc.c (elf_arc_howto_table): Likewise.
1085 * elf32-arm.c (elf32_arm_howto_table_1): Likewise.
1086 * elf32-avr.c (elf_avr_howto_table): Likewise.
1087 * elf32-bfin.c (bfin_howto_table): Likewise.
1088 * elf32-cr16.c (cr16_elf_howto_table): Likewise.
1089 * elf32-cris.c (cris_elf_howto_table): Likewise.
1090 * elf32-crx.c (crx_elf_howto_table): Likewise.
1091 * elf32-d10v.c (elf_d10v_howto_table): Likewise.
1092 * elf32-d30v.c (elf_d30v_howto_table): Likewise.
1093 * elf32-dlx.c (dlx_elf_howto_table): Likewise.
1094 * elf32-epiphany.c (epiphany_elf_howto_table): Likewise.
1095 * elf32-fr30.c (fr30_elf_howto_table): Likewise.
1096 * elf32-frv.c (elf32_frv_howto_table): Likewise.
1097 * elf32-h8300.c (h8_elf_howto_table): Likewise.
1098 * elf32-i370.c (i370_elf_howto_raw): Likewise.
1099 * elf32-i386.c (elf_howto_table): Likewise.
1100 * elf32-i860.c (elf32_i860_howto_table): Likewise.
1101 * elf32-i960.c (elf32_i960_relocate): Likewise.
1102 * elf32-ip2k.c (ip2k_elf_howto_table): Likewise.
1103 * elf32-iq2000.c (iq2000_elf_howto_table): Likewise.
1104 * elf32-lm32.c (lm32_elf_howto_table): Likewise.
1105 * elf32-m32c.c (m32c_elf_howto_table): Likewise.
1106 * elf32-m32r.c (m32r_elf_howto_table): Likewise.
1107 * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise.
1108 * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise.
1109 * elf32-m68k.c (howto_table): Likewise.
1110 * elf32-mcore.c (mcore_elf_howto_raw): Likewise.
1111 * elf32-mep.c (mep_elf_howto_table): Likewise.
1112 * elf32-metag.c (elf_metag_howto_table): Likewise.
1113 * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise.
1114 * elf32-mips.c (elf_mips_howto_table_rel): Likewise.
1115 * elf32-moxie.c (moxie_elf_howto_table): Likewise.
1116 * elf32-msp430.c (elf_msp430_howto_table): Likewise.
1117 * elf32-mt.c (mt_elf_howto_table): Likewise.
1118 * elf32-nds32.c (nds32_elf_howto_table): Likewise.
1119 * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise.
1120 * elf32-or1k.c (or1k_elf_howto_table): Likewise.
1121 * elf32-pj.c (pj_elf_howto_table): Likewise.
1122 * elf32-ppc.c (ppc_elf_howto_raw): Likewise.
1123 * elf32-rl78.c (rl78_elf_howto_table): Likewise.
1124 * elf32-rx.c (rx_elf_howto_table): Likewise.
1125 * elf32-s390.c (elf_howto_table): Likewise.
1126 * elf32-score.c (elf32_score_howto_table): Likewise.
1127 * elf32-score7.c (elf32_score_howto_table): Likewise.
1128 * elf32-sh-relocs.h (R_SH_NONE): Likewise.
1129 * elf32-spu.c (elf_howto_table): Likewise.
1130 * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise.
1131 * elf32-tilepro.c (tilepro_elf_howto_table): Likewise.
1132 * elf32-v850.c (v850_elf_howto_table): Likewise.
1133 * elf32-vax.c (howto_table): Likewise.
1134 * elf32-visium.c (visium_elf_howto_table): Likewise.
1135 * elf32-xc16x.c (xc16x_elf_howto_table): Likewise.
1136 * elf32-xgate.c (elf_xgate_howto_table): Likewise.
1137 * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise.
1138 * elf32-xtensa.c (elf_howto_table): Likewise.
1139 * elf64-alpha.c (elf64_alpha_howto_table): Likewise.
1140 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
1141 * elf64-mmix.c (elf_mmix_howto_table): Likewise.
1142 * elf64-ppc.c (ppc64_elf_howto_raw): Likewise.
1143 * elf64-s390.c (elf_howto_table): Likewise.
1144 * elf64-sh64.c (sh_elf64_howto_table): Likewise.
1145 * elf64-x86-64.c (x86_64_elf_howto_table): Likewise.
1146 * elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
1147 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
1148 (elfNN_aarch64_howto_none): Likewise.
1149 * elfxx-ia64.c (ia64_howto_table): Likewise.
1150 * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise.
1151 * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise.
1152 * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise.
1153
6333bc0d
L
11542015-01-15 H.J. Lu <hongjiu.lu@intel.com>
1155
1156 PR ld/17847
1157 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain
1158 about -fPIC if the symbol is undefined when building executable.
1159
cd21f5da
NC
11602015-01-15 Nick Clifton <nickc@redhat.com>
1161
1162 PR binutils/17512
1163 * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an
1164 error message. Never return an invalid howto pointer.
1165 * elf32-cr16.c (cr16_info_to_howto): Likewise.
1166 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1167 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1168 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1169 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1170 * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise.
1171 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1172 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1173 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1174 * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise.
1175 * elf32-vax.c (rtype_to_howto): Likewise.
1176 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1177 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1178 * elfn32-mips.c (sh_elf_info_to_howto): Likewise.
1179 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1180 (sh_elf_reloc): Check that the reloc is in range.
1181 * reloc.c (bfd_perform_relocation): Check that the section is big
1182 enough for the entire reloc.
1183 (bfd_generic_get_relocated_section_contents): Report unexpected
1184 return values from perform_reloc.
1185
2d071cfc
NC
11862015-01-15 Nick Clifton <nickc@redhat.com>
1187
1188 * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled
1189 relocs. Include PC-relative adjustment for R_MSP430X_ABS16
1190 relaxation.
1191
ca55926c
AM
11922015-01-15 Alan Modra <amodra@gmail.com>
1193
1194 * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for
1195 any output section matching a linker created dynobj section.
1196
8539e4e8
AM
11972015-01-15 Alan Modra <amodra@gmail.com>
1198
1199 PR 17842
1200 * elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
1201 (bfd_elf_final_link): Always create a symbol table when emit_relocs.
1202 Don't assign symtab file position unless symbols will be output.
1203 Merge blocks with condition in common. Don't call
1204 elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
1205 unless other symbols are output. Move assignment of symtab_shndx
1206 file position. Localize variable.
1207
52db4ec2
JW
12082015-01-14 Jiong Wang <jiong.wang@arm.com>
1209
1210 * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
1211 trying to defer them to runtime.
1212
0941db69
JW
12132015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1214
1215 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
1216 to check if a symbol should be bound symbolically.
1217
0172429c
JW
12182015-01-13 Jiong Wang <jiong.wang@arm.com>
1219
1220 * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
1221 for TLSLE_MOVW_TPREL_G2.
1222
bab91cce
JW
12232015-01-13 Jiong Wang <jiong.wang@arm.com>
1224
1225 PR ld/17415
1226 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
1227 R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
1228 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
1229 bit mask.
1230
3c758495
TG
12312015-01-12 Terry Guo <terry.guo@arm.com>
1232
1233 * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
1234 function.
1235 (_bfd_elf_gc_mark_extra_sections): Use it.
1236
9d1d54d5
L
12372015-01-11 H.J. Lu <hongjiu.lu@intel.com>
1238
1239 PR ld/17827
1240 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
1241 only discard space for pc-relative relocs symbols which turn
1242 out to need copy relocs.
1243
c6e8e93a
NC
12442015-01-09 Nick Clifton <nickc@redhat.com>
1245
1246 * tekhex.c (getvalue): Fix thinko in test for correct extraction
1247 of value.
1248 (getsym): Return false if there was not enough data to extract the
1249 symbol.
1250
400cf8cb
AG
12512015-01-09 Anthony Green <green@moxielogic.com>
1252
1253 * elf32-moxie.c (ELF_MACHINE_ALT1): Define.
1254
23d4663e
NC
12552015-01-08 Nick Clifton <nickc@redhat.com>
1256
1257 * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
1258 16-bit absolute BR instructions to 10-bit pc-relative JMP
1259 instructions.
1260
063bb025
NC
12612015-01-08 Nick Clifton <nickc@redhat.com>
1262
1263 PR binutils/17512
1264 * coffcode.h (coff_slurp_symbol_table): Return false if we failed
1265 to load the line table.
1266 * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
1267 maxpagesize of 1.
1268 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
1269 the Data Directory Size is too large.
1270
6f25f223
L
12712015-01-06 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 PR binutils/17512
1274 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
1275 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
1276
85880250
NC
12772015-01-06 Nick Clifton <nickc@redhat.com>
1278
1279 PR binutils/17512
e7287c7f
NC
1280 * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
1281 string table.
1282
ec93045b
NC
1283 * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
1284 (bfd_perform_relocation): Include the size of the reloc in the
1285 test for an out of range relocation.
1286 (bfd_generic_get_relocated_section_contents): Remove reloc range
1287 test.
1288
85880250
NC
1289 * coff-i860.c (CALC_ADDEND): Always set an addend value.
1290 * tekhex.c (getvalue): Add an end pointer parameter. Use it to
1291 avoid reading off the end of the buffer.
1292 (getsym): Likewise.
1293 (first_phase): Likewise.
1294 (pass_over): Pass an end pointer to the invoked function.
1295
533d0af0
L
12962015-01-05 H.J. Lu <hongjiu.lu@intel.com>
1297
1298 PR binutils/17512
1299 * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
1300 input.
1301 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
1302
896ca098
NC
13032015-01-05 Nick Clifton <nickc@redhat.com>
1304
1305 PR binutils/17512
1306 * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
1307 is at least big enough for the header to be read.
1308 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
1309 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
1310 (bfd_mach_o_read_command): Prevetn duplicate error messages about
1311 unrecognized commands.
1312 * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
1313 when indexing into the string table.
1314
b90efa5b 13152015-01-01 Alan Modra <amodra@gmail.com>
ee3b52e9 1316
b90efa5b 1317 Update year range in copyright notice of all files.
ee3b52e9 1318
b90efa5b 1319For older changes see ChangeLog-2014
56882138 1320\f
b90efa5b 1321Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
1322
1323Copying and distribution of this file, with or without modification,
1324are permitted in any medium without royalty provided the copyright
1325notice and this notice are preserved.
1326
56882138
AM
1327Local Variables:
1328mode: change-log
1329left-margin: 8
1330fill-column: 74
1331version-control: never
1332End:
This page took 0.825183 seconds and 4 git commands to generate.