Always consider infcall breakpoints as non-permanent.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
35a14c6b
L
12014-11-22 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check
4 branch displacement overflow in PLT entry.
5
0a9d414a
NC
62014-11-21 Nick Clifton <nickc@redhat.com>
7
8 PR binutils/17512
9 * coffgen.c (coff_get_normalized_symtab): Check for an excessive
10 number of auxillary entries.
11 * ieee.c (next_byte): Convert to a function. Return FALSE if the
12 next byte is beyond the end of the buffer.
13 (parse_int): Test the return value of next_byte.
14 (parse_expression): Convert to boolean. Return FALSE if the
15 parsing failed. Test the return value of next_byte.
16 (ieee_seek): Convert to a function. Return FALSE if the seek goes
17 beyond the end of the buffer.
18 (ieee_slurp_external_symbols): Test the return value of ieee_seek
19 and next_byte.
20 (ieee_slurp_sections): Convert to boolean. Return FALSE if the
21 operation failed. Test the return value of ieee_seek and
22 next_byte.
23 (ieee_archive_p): Test the return value of ieee_seek and
24 next_byte.
25 (do_one): Likewise.
26 (ieee_slurp_section_data): Likewise.
27 (ieee_object_p): Likewise. Store the size of the buffer in the
28 total_amt field in the header.
29 * libieee.h (common_header_type): Add amt field.
30 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Check that the
31 reloc's value is within range.
32 (bfd_mach_o_read_symtab_symbols): Nullify the symbols field if the
33 operation fails.
34 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Replace abort with
35 an error message.
36 (pex64_dump_xdata): Check for buffer overflows.
37 * versados.c (process_otr): Check that the section exists before
38 taking its size.
39 (versados_object_p): Make sure that enough data was read for the
40 header to be checked.
41 * vms-alpha.c (vms_get_remaining_object_record): Change
42 read_so_far parameter to an unsigned int. Check that the amount
43 read is in range.
44
5974eba6
L
452014-11-21 H.J. Lu <hongjiu.lu@intel.com>
46
47 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Optimize
48 PC-relative offset overflow check.
49
cd11f78f
AC
502014-11-21 Alexander Cherepanov <cherepan@mccme.ru>
51
52 PR binutils/17512
53 * coffgen.c (_bfd_coff_read_string_table): Test allocation of
54 string table before clearing the first few bytes.
55
a715796b
TG
562014-11-21 Terry Guo <terry.guo@arm.com>
57
58 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support FPv5.
59
0cfb0717
AM
602014-11-20 Alan Modra <amodra@gmail.com>
61
62 * elf64-ppc.c (group_sections): Init stub14_group_size from
63 --stub-group-size parameter divided by 1024.
64
1e269e9b
AM
652014-11-20 Alan Modra <amodra@gmail.com>
66
67 * elf32-ppc.c (ppc_elf_relax_section): Correct ppc476 workaround
68 alignment calculation.
69
9274e9de
TG
702014-11-20 Terry Guo <terry.guo@arm.com>
71
72 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Skip if input bfd
73 hasn't attribute section.
74
f9dffbf0
AM
752014-11-20 Alan Modra <amodra@gmail.com>
76
77 * elf64-ppc.c (ppc64_elf_size_stubs): Add __go_go to thread_starters.
78
ab7fede8
L
792014-11-18 H.J. Lu <hongjiu.lu@intel.com>
80
81 PR ld/17618
82 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check
83 PC-relative offset overflow in PLT entry.
84
6937bb54
NC
852014-11-18 Nick Clifton <nickc@redhat.com>
86
87 PR binutils/17512
88 * peXXIgen.c (pe_print_pdata): Fail if the section's virtual size
89 is larger than its real size.
90 (rsrc_print_section): Fix off-by-one error checking for overflow.
91 * pei-x86_64.c (pex64_bfd_print_pdata): Handle empty unwind
92 sections.
93
d258b828
IZ
942014-11-18 Igor Zamyatin <igor.zamyatin@intel.com>
95
96 * elf64-x86-64.c (elf_x86_64_check_relocs): Enable MPX PLT only
97 for -z bndplt.
98
470c009b
NC
992014-11-14 Nick Clifton <nickc@redhat.com>
100
101 PR binutils/17597
102 * opncls.c (bfd_get_debug_link_info): Avoid reading off the end of
103 the section.
104 (bfd_get_alt_debug_link_info): Likewise.
105
041830e0
NC
1062014-11-14 Nick Clifton <nickc@redhat.com>
107
108 PR binutils/17512
109 * ieee.c (ieee_archive_p) Skip processing if no bytes are read at
110 all.
111 (ieee_object_p): Likewise.
112
57494d81
L
1132014-11-13 H.J. Lu <hongjiu.lu@intel.com>
114
115 * coffcode.h (coff_slurp_line_table): Add cast to unsigned int.
116
f8521a03
L
1172014-11-13 H.J. Lu <hongjiu.lu@intel.com>
118
119 * coffcode.h (coff_pointerize_aux_hook): Fix a typo.
120
553d1284
L
1212014-11-13 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR gas/17598
124 * elf64-x86-64.c (elf_x86_64_check_relocs): Treat
125 R_X86_64_GOTPLT64 the same as R_X86_64_GOT64.
126 (elf_x86_64_relocate_section): Likewise.
127
a5c71af8
NC
1282014-11-13 Nick Clifton <nickc@redhat.com>
129
130 PR binutils/17512
131 * coffcode.h (coff_ptr_struct): Add is_sym field.
132 (coff_new_section_hook): Set the is_sym field.
133 (coff_pointerize_aux_hook): Check the is_sym field.
134 (coff_print_aux): Likewise.
135 (coff_compute_section_file_positions): Likewise.
136 (coff_write_object_contents): Likewise.
137 (coff_slurp_line_table): Likewise.
138 (coff_slurp_symbol_table): Likewise.
139 (CALC_ADDEND): Likewise.
140 * coffgen.c (coff_renumber_symbols): Likewise.
141 (coff_mangle_symbols): Likewise.
142 (coff_fix_symbol_name): Likewise.
143 (coff_write_symbol): Likewise.
144 (coff_write_alien_symbol): Likewise.
145 (coff_write_native_symbol): Likewise.
146 (coff_write_symbols): Likewise.
147 (coff_write_linenumbers): Likewise.
148 (coff_pointerize_aux): Likewise.
149 (coff_get_normalized_symtab): Likewise.
150 (coff_get_symbol_info): Likewise.
151 (bfd_coff_get_syment): Likewise.
152 (bfd_coff_get_auxent): Likewise.
153 (coff_print_symbol): Likewise.
154 (coff_find_nearest_line_with_names): Likewise.
155 (bfd_coff_set_symbol_class): Likewise.
156 (coff_make_empty_symbol): Set the is_sym field.
157 (coff_bfd_make_debug_symbol): Likewise.
158 * peicode.h (pe_ILF_make_a_symbol): Likewise.
159 * libcoff.h: Regenerate.
160 * libcoff-in.h: Regenerate.
161
f41e4712
NC
1622014-11-12 Nick Clifton <nickc@redhat.com>
163
164 PR binutils/17512
165 * coffcode.h (coff_slurp_line_table): Set the line number of
166 corrupt entries to -1.
167 (coff_slurp_symbol_table): Alway initialise the value of the
168 symbol.
169 * coffgen.c (coff_print_symbol): Check that the combined pointer
170 is valid.
171 (coff_print_symbol): Do not print negative line numbers.
172 * peXXigen.c (pe_print_idata): Add range checking displaying
173 member names.
174
6bb3e679
AM
1752014-11-12 Alan Modra <amodra@gmail.com>
176
177 PR binutils/17512
178 * coffcode.h (coff_slurp_line_table): Drop line number info
179 not preceded by a valid function entry. Revert last change.
180
201159ec
NC
1812014-11-11 Nick Clifton <nickc@redhat.com>
182
183 PR binutils/17512
184 * coffcode.h (coff_slurp_line_table): Initialise the parts of the
185 line number cache that would not be initialised by the copy from
186 the new line number table.
187 (coff_classify_symbol): Allow for _bfd_coff_internal_syment_name
188 returning NULL.
189 * coffgen.c (coff_get_normalized_symbols): Get the external
190 symbols before allocating space for the internal symbols, in case
191 the get fails.
192 * elf.c (_bfd_elf_slurp_version_tables): Only allocate a verref
193 array if one is needed. Likewise with the verdef array.
194 * peXXigen.c (_bfd_XXi_swap_sym_in): Replace abort()'s with error
195 messages.
196 (_bfd_XXi_swap_aux_in): Make sure that all fields of the aux
197 structure are initialised.
198 (pe_print_edata): Avoid reading off the end of the data buffer.
199
0ac23374
AM
2002014-11-11 Alan Modra <amodra@gmail.com>
201
202 PR binutils/17512
203 * coffcode.h (coff_slurp_line_table): Use updated lineno_count
204 when building func_table.
205
fcfa6240
AM
2062014-11-11 Alan Modra <amodra@gmail.com>
207
208 PR binutils/17512
209 * coffcode.h (coff_slurp_line_table): Don't bfd_zalloc, just
210 memset the particular bits we need. Update src after hitting loop
211 "continue". Don't count lineno omitted due to invalid symbols in
212 nbr_func, and update lineno_count. Init entire terminating
213 lineno. Don't both allocating terminator in n_lineno_cache.
214 Redirect sym->lineno pointer to where n_lineno_cache will be
215 copied, and free n_lineno_cache.
216 * pe-mips.c (NUM_HOWTOS): Typo fix.
217
4de1599b
AM
2182014-11-11 Alan Modra <amodra@gmail.com>
219
220 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust section
221 size check to account for possible zero terminator.
222
fd6f9d17
RS
2232014-11-10 James Cowgill <James.Cowgill@imgtec.com>
224
225 * elfxx-mips.c (_bfd_mips_elf_section_processing): don't force small
226 data sections to be PROGBITS
227
36e9d67b
NC
2282014-11-10 Nick Clifton <nickc@redhat.com>
229
230 PR binutils/17521
231 * coff-i386.c (NUM_HOWTOS): New define.
232 (RTYPE2HOWTO): Use it.
233 (coff_i386_rtype_to_howto): Likewise.
234 (coff_i386_reloc_name_lookup): Likewise.
235 (CALC_ADDEND): Check that reloc r_type field is valid.
236 * coff-x86_64.c (NUM_HOWTOS): New define.
237 (RTYPE2HOWTO): Use it.
238 (coff_amd64_rtype_to_howto): Likewise.
239 (coff_amd64_reloc_name_lookup): Likewise.
240 (CALC_ADDEND): Check that reloc r_type field is valid.
241 * coffcode.h (coff_slurp_line_table): Check for symbol table
242 indexing underflow.
243 (coff_slurp_symbol_table): Use zalloc to ensure that all table
244 entries are initialised.
245 * coffgen.c (_bfd_coff_read_string_table): Initialise unused bits
246 in the string table. Also ensure that the table is 0 terminated.
247 (coff_get_normalized_symtab): Check for symbol table indexing
248 underflow.
249 * opncls.c (bfd_alloc): Catch the case where a small negative size
250 can result in only 1 byte being allocated.
251 (bfd_alloc2): Use bfd_alloc.
252 * pe-mips.c (NUM_HOWTOS): New define.
253 (coff_mips_reloc_name_lookup): Use it.
254 (CALC_ADDEND): Check that reloc r_type field is valid.
255 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Initialise unused entries
256 in the DataDirectory.
257 (pe_print_idata): Avoid reading beyond the end of the data block
258 wen printing strings.
259 (pe_print_edata): Likewise.
260 Check for table indexing underflow.
261 * peicode.h (pe_mkobject): Initialise the pe_opthdr field.
262 (pe_bfd_object_p): Allocate and initialize enough space to hold a
263 PEAOUTHDR, even if the opt_hdr field specified less.
264
d1f5d98a
AM
2652014-11-08 Alan Modra <amodra@gmail.com>
266
267 * peXXigen.c (pe_print_idata): Revert last patch, cast lhs instead.
268
01158262
L
2692014-11-07 H.J. Lu <hongjiu.lu@intel.com>
270
271 * peXXigen.c (pe_print_idata): Cast to unsigned long in range
272 checks.
273
cf61b747
L
2742014-11-07 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR ld/17482
277 * elf64-x86-64.c (elf_x86_64_relocate_section): Update comments
278 for IE->LE transition.
279
56aedec7
AM
2802014-11-07 Alan Modra <amodra@gmail.com>
281
282 * tekhex.c (tekhex_set_arch_mach): Ignore unknown arch errors.
283
e5242d4b
AM
2842014-11-07 Alan Modra <amodra@gmail.com>
285
286 * tekhex.c (CHUNK_SPAN): Define.
287 (struct data_struct <chunk_init>): Use one byte per span, update
288 all code accessing this field.
289 (find_chunk): Add create param, don't create new entry unless set.
290 (insert_byte): Don't save zeros.
291 (first_phase): Set section SEC_CODE or SEC_DATA flag depending
292 on symbol type. Create an alternate section if both types of
293 symbol are given. Attach type '2' and '6' symbols to absolute
294 section.
295 (move_section_contents): Fix caching of chunk. Don't create chunk
296 when reading, or for writing zeros.
297 (tekhex_set_section_contents): Don't create initial chunks.
298 (tekhex_write_object_contents): Use CHUNK_SPAN.
299
7c53fd1c
AM
3002014-11-07 Alan Modra <amodra@gmail.com>
301
302 * aoutx.h (aout_get_external_symbols): Tidy allocation of symbol buffer.
303
40572405
AM
3042014-11-07 Alan Modra <amodra@gmail.com>
305
306 * archive.c (_bfd_slurp_extended_name_table): Revert bfd_get_size check.
307 * coffcode.h (coff_set_alignment_hook): Likewise.
308 (coff_slurp_line_table): Likewise.
309 * coffgen.c (coff_get_normalized_symtab): Likewise.
310 (_bfd_coff_get_external_symbols): Likewise.
311 * elf.c (bfd_elf_get_str_section): Likewise.
312 * tekhex.c (first_phase): Likewise.
313
83410725
NC
3142014-11-06 Nick Clifton <nickc@redhat.com>
315
316 * aoutx.h (slurp_symbol_table): Revert previous delta.
317 (slurp_reloc_table): Likewise.
318 * compress.c (bfd_get_full_section_contents): Remove file size
319 test.
320 * coffgen.c (coff_get_normalized_symtab): Allow zero-sized symtabs
321 and do not complain about linker generated files.
322
1fe9dc45
WN
3232014-11-06 Will Newton <will.newton@linaro.org>
324
325 * elf-attrs.c (_bfd_elf_parse_attributes): Handle zero
326 length sections and sub-sections.
327
a6f921c8
NC
3282014-11-04 Nick Clifton <nickc@redhat.com>
329
330 PR binutils/17512
331 * coffcode.h (handle_COMDAT): Replace abort with BFD_ASSERT.
332 Replace another abort with an error message.
333 (coff_slurp_line_table): Add more range checking.
334 * peXXigen.c (pe_print_debugdata): Add range checking.
335
131e2f8e
MF
3362014-11-05 James Cowgill <james.cowgill@imgtec.com>
337
338 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Fix segfault
339 when creating a dso with discarded dynsym section.
340
09c14161
MF
3412014-11-05 Matthew Fortune <matthew.fortune@imgtec.com>
342
343 * elfxx-mips.c (update_mips_abiflags_isa): Add E_MIPS_ARCH_32R6
344 and E_MIPS_ARCH_64R6 support.
345
20ad5e28
NC
3462014-11-05 Nick Clifton <nickc@redhat.com>
347
348 PR binutils/17512
349 * coffcode.h (coff_set_alignment_hook): Warn if the file lies
350 about the number of relocations it contains.
351 (coff_sort_func_alent): Return 0 if the pointers are NULL.
352 (coff_slurp_line_table): Add more range checks. Do not free new
353 tables created when sorting line numbers.
354 * peXXigen.c (pe_print_idata): Add range checks.
355 (pe_print_edata): Likewise.
356 (rsrc_print_resource_entries): Likewise. Avoid printing control
357 characters. Terminate priniting if corruption is detected.
358 (rsrc_print_resource_directory): Terminate printing if an unknown
359 directory type is encountered.
360 (pe_print_debugdata): Fix off-by-one error.
361 (rsrc_count_entries): Add range checking.
362 (rsrc_parse_entry): Likewise.
363
bb0d8671
NC
3642014-11-04 Nick Clifton <nickc@redhat.com>
365
79f2a78e
NC
366 PR binutils/17512
367 * compress.c (bfd_get_full_section_contents): Improve test for
368 linker created objects.
369
bb0d8671
NC
370 PR binutils/17533
371 * archive.c (_bfd_slurp_extended_name_table): Handle archives with
372 corrupt extended name tables.
373
ef42b83e
AM
3742014-11-04 Alan Modra <amodra@gmail.com>
375
376 * elf32-spu.c (ovl_mgr_stat): New function.
377 (spu_elf_open_builtin_lib): Pass to bfd_openr_iovec.
378
931b79cc
AB
3792014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * elf32-avr.c (elf32_avr_relax_delete_bytes): During linker
382 relaxation, reduce the size of symbols that span the deleted
383 bytes.
384
a12d0ffc
AB
3852014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * elf32-avr.c (elf32_avr_relax_delete_bytes): Modify symbols
388 located at the very end of the section.
389
5a3f568b
NC
3902014-11-03 Nick Clifton <nickc@redhat.com>
391
392 PR binutils/17512
393 * aoutx.h (slurp_symbol_table): Check that computed table size is
394 not bigger than the file from which is it being read.
395 (slurp_reloc_table): Likewise.
396 * coffcode.h (coff_slurp_line_table): Remove unneeded local
397 'warned'. Do not try to print the details of a symbol with an
398 invalid index.
399 * coffgen.c (make_a_sectiobn_from_file): Check computed string
400 index against length of string table.
401 (bfd_coff_internal_syment_name): Check read in string offset
402 against length of string table.
403 (build_debug_section): Return a pointer to the section used.
404 (_bfd_coff_read_string_table): Store the length of the string
405 table in the coff_tdata structure.
406 (bfd_coff_free_symbols): Set the length of the string table to
407 zero when it is freed.
408 (coff_get_normalized_symtab): Check offsets against string table
409 or data table lengths as appropriate.
410 * cofflink.c (_bfd_coff_link_input_bfd): Check offset against
411 length of string table.
412 * compress.c (bfd_get_full_section_contents): Check computed size
413 against the size of the file.
414 * libcoff-in.h (obj_coff_strings_len): Define.
415 (struct coff_tdata): Add strings_len field.
416 * libcoff.h: Regenerate.
417 * peXXigen.c (pe_print_debugdata): Do not attempt to print the
418 data if the debug section is too small.
419 * xcofflink.c (xcoff_link_input_bfd): Check offset against
420 length of string table.
421
ba241f2d
NC
4222014-11-03 Nick Clifton <nickc@redhat.com>
423
424 * po/fi.po: Updated Finnish translation.
425
2c629856
N
4262014-10-31 Andrew Pinski <apinski@cavium.com>
427 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
428
429 * archures.c: Add octeon3 for mips target.
430 * bfd-in2.h: Regenerate.
431 * bfd/cpu-mips.c: Define I_mipsocteon3.
432 nfo_struct): Add octeon3 support.
433 * bfd/elfxx-mips.c: (_bfd_elf_mips_mach): Add support for
434 octeon3.
435 (mips_set_isa_flags): Add support for octeon3.
ba241f2d 436 (bfd_mips_isa_ext): Add bfd_mach_mips_octeon3.
2c629856
N
437 (mips_mach_extensions): Make bfd_mach_mips_octeon3 an
438 extension of bfd_mach_mips_octeon2.
439 (print_mips_isa_ext): Print the value of Octeon3.
440
f54498b4
NC
4412014-10-31 Nick Clifton <nickc@redhat.com>
442
443 PR binutils/17512
444 * coffgen.c (_bfd_coff_get_external_symbols): Do not try to load a
445 symbol table bigger than the file.
446 * elf.c (bfd_elf_get_str_section): Do not try to load a string
447 table bigger than the file.
690725fa 448 * tekhex.c (first_phase): Check that the section range is sane.
f54498b4 449
7e760b06
NC
4502014-10-30 Nick Clifton <nickc@redhat.com>
451
452 PR binutils/17512
0102ea8c 453 * ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte.
7e760b06
NC
454 * coffgen.c (coff_get_normalized_symtab): Prevent buffer overrun.
455
e5b470e2
NC
4562014-10-29 Nick Clifton <nickc@redhat.com>
457
458 * elf.c (bfd_section_from_shdr): Fix heap use after free memory
459 leak.
460
d1e8523e
DB
4612014-10-29 Dennis Brueni <dbrueni@slickedit.com>
462
e5b470e2 463 * elf.c (elfcore_write_lwpstatus): Fix typo in call to memcpy.
d1e8523e 464
5a4b0ccc
NC
4652014-10-28 Nick Clifton <nickc@redhat.com>
466
467 PR binutils/17512
468 * elf.c (bfd_section_from_shdr): Allocate and free the recursion
469 detection table on a per-bfd basis.
470 * peXXigen.c (pe_print_edata): Handle binaries with a truncated
471 export table.
472
708d7d0d
NC
4732014-10-28 Andreas Schwab <schwab@suse.de>
474 Nick Clifton <nickc@redhat.com>
475
476 PR binutils/17510
477 * srec.c (srec_bad_byte): Increase size of buf to allow for
478 negative values.
479 (srec_scan): Use an unsigned char buffer to hold header bytes.
480
493a3386
NC
4812014-10-27 Nick Clifton <nickc@redhat.com>
482
7e1e1988 483 PR binutils/17512
bf67003b
NC
484 * elf.c (bfd_section_from_shdr): Detect and warn about ELF
485 binaries with a group of sections linked by the string table
486 indicies.
7e1e1988
NC
487 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Handle corrupt binaries
488 with an invalid value for NumberOfRvaAndSizes.
bf67003b
NC
489 (pe_print_edata): Detect out of range rvas and entry counts for
490 the Export Address table, Name Pointer table and Ordinal table.
7e1e1988 491
493a3386
NC
492 PR binutils/17510
493 * elf.c (setup_group): Improve handling of corrupt group
494 sections.
495
68fcca92
JW
4962014-10-24 Tejas Belagod <tejas.belagod@arm.com>
497
498 * bfd-in.h (bfd_elf64_aarch64_set_options): Add a parameter.
499 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
500 * elfnn-aarch64.c (aarch64_erratum_835769_stub): New.
501 (elf_aarch64_stub_type): Add new type
502 aarch64_stub_erratum_835769_veneer.
503 (elf_aarch64_stub_hash_entry): New fields for erratum 835769.
504 (aarch64_erratum_835769_fix): New data struct to record erratum
505 835769.
506 (elf_aarch64_link_hash_table: Global flags for 835769.
507 (aarch64_build_one_stub): Add case for 835769.
508 (aarch64_size_one_stub): Likewise.
509 (aarch64_mem_op_p, aarch64_mlxl_p,
510 aarch64_erratum_sequence,erratum_835769_scan):
511 New. Decode and scan functions for erratum 835769.
512 (elf_aarch64_create_or_find_stub_sec): New.
513 (elfNN_aarch64_size_stubs): Look for erratum 835769 and record
514 them.
515 (bfd_elfNN_aarch64_set_options: Set global flag for 835769.
516 (erratum_835769_branch_to_stub_data,
517 make_branch_to_erratum_835769_stub):New. Connect up all the
518 erratum stubs to occurances by branches.
519 (elfNN_aarch64_write_section): New hook.
520 (aarch64_map_one_stub): Output erratum stub symbol.
521 (elfNN_aarch64_size_dynamic_sections): Init mapping symbol
522 information for erratum 835769.
523 (elf_backend_write_section): Define.
524
685e70ae
VK
5252014-10-23 Victor Kamensky <victor.kamensky@linaro.org>
526
527 * elf32-arm.c (read_code32): New function to read 32 bit
528 arm instruction.
529 (read_code16): New function to read 16 bit thumb instrution.
530 (elf32_arm_plt0_size, elf32_arm_plt_size): Use read_code32
531 and read_code16 to read instructions.
532
00ac7aa0
MF
5332014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
534
535 * elfxx-mips.c (print_mips_ases): Print unknown ASEs.
536 (print_mips_isa_ext): Print the value of an unknown extension.
537
73242275
AM
5382014-10-21 Alan Modra <amodra@gmail.com>
539
540 * elf64-ppc.c (ppc64_elf_tls_optimize): Ignore relocs against toc
541 entries that aren't a multiple of 8 rather than failing assertion.
542
2300b5a1
AM
5432014-10-21 Alan Modra <amodra@gmail.com>
544
545 * elf64-ppc.c (ppc64_elf_size_stubs): Add gcc-4.9 libgomp functions
546 to thread_starter.
547
b53dfeb2
AM
5482014-10-18 Alan Modra <amodra@gmail.com>
549
550 * elf64-ppc.c (ppc64_elf_add_symbol_hook): If function code
551 section for function symbols defined in .opd is discarded, let
552 the symbol appear to be undefined.
553 (opd_entry_value): Ensure the result section is that for the
554 function code section in the same object as the OPD entry.
555
f1885d1e
AM
5562014-10-16 Alan Modra <amodra@gmail.com>
557
558 PR 17492
559 * elf32-arm.c (elf32_arm_add_symbol_hook): Only set has_gnu_symbols
560 on ELF output bfd.
561 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
562 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
563 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
564 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
565 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
566 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
567 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
568 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
569 * elf-s390-common.c (elf_s390_add_symbol_hook): Likewise. Handle
570 STB_GNU_UNIQUE too.
571
459609d6
AM
5722014-10-16 Alan Modra <amodra@gmail.com>
573
574 * elf64-ppc.c (ppc64_elf_before_check_relocs): Do .opd processing
575 even when output is not ppc64 ELF. Remove redundant tests on
576 type of input bfd.
577
fb167eb2
AM
5782014-10-15 Alan Modra <amodra@gmail.com>
579
580 PR 17481
581 * aoutx.h (NAME (aout, find_nearest_line)): Add "discriminator_ptr"
582 param, group "section" and "offset" params. Zero discriminator.
583 * bfd.c (bfd_find_nearest_line): Implement with new
584 _bfd_find_nearest_line.
585 (bfd_find_nearest_line_discriminator): Likewise.
586 * coff-i386.c (_bfd_generic_find_nearest_line_discriminator): Don't
587 define.
588 * coff-rs6000.c (xcoff_find_nearest_line,
589 xcoff_find_nearest_line_discriminator): Delete.
590 (_bfd_xcoff_find_nearest_line): Don't define.
591 (_bfd_xcoff_find_nearest_line): Define as coff_find_nearest_line.
592 * coff-x86_64.c (_bfd_generic_find_nearest_line_discriminator): Don't
593 define.
594 * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Adjust.
595 * coffgen.c (coff_find_nearest_line_with_names): Reorder params,
596 adjust _bfd_dwarf2_find_nearest_line call.
597 (coff_find_nearest_line): Add "discriminator_ptr" param, reorder
598 others. Set discriminator. Adjust call.
599 (coff_find_nearest_line_discriminator): Delete.
600 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Reorder params.
601 * dwarf2.c (find_line): Rename to..
602 (_bfd_dwarf2_find_nearest_line): ..this, reordering params.
603 Simplify setting of do_line. Delete old function.
604 (_bfd_dwarf2_find_line): Delete.
605 * ecoff.c (_bfd_ecoff_find_nearest_line): Reorder params, add
606 discriminator_ptr and set it.
607 * elf-bfd.h (_bfd_elf_find_nearest_line): Update prototype.
608 (_bfd_elf_find_nearest_line_discriminator): Delete.
609 (_bfd_elf_find_line_discriminator): Delete.
610 (_bfd_generic_find_nearest_line_discriminator): Don't define.
611 * elf.c (elf_find_function): Reorder params.
612 (_bfd_elf_find_nearest_line): Reorder params, add discriminator_ptr.
613 Adjust calls.
614 (_bfd_elf_find_nearest_line_discriminator): Delete.
615 (_bfd_elf_find_line): Adjust call.
616 * elf32-arm.c (arm_elf_find_function): Reorder params.
617 (elf32_arm_find_nearest_line): Reorder params, add discriminator_ptr.
618 Adjust calls.
619 * elf64-alpha.c (elf64_alpha_find_nearest_line): Similarly.
620 * elfnn-aarch64.c (aarch64_elf_find_function): Reorder params.
621 (elfNN_aarch64_find_nearest_line): Reorder params, add
622 discriminator_ptr. Adjust calls.
623 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Similarly.
624 * elfxx-mips.h (_bfd_mips_elf_find_nearest_line): Update prototype.
625 * libaout.h (NAME (aout, find_nearest_line)): Update prototype.
626 * libbfd-in.h (_bfd_nosymbols_find_nearest_line): Update.
627 (_bfd_dwarf1_find_nearest_line): Likewise.
628 (_bfd_dwarf2_find_nearest_line): Likewise.
629 (_bfd_dwarf2_find_line): Delete.
630 (_bfd_generic_find_nearest_line_discriminator): Delete.
631 * libbfd.c (_bfd_generic_find_nearest_line_discriminator): Delete.
632 * libcoff-in.h (coff_find_nearest_line): Update prototype.
633 (coff_find_nearest_line_discriminator): Delete.
634 (coff_find_nearest_line_with_names): Update prototype.
635 * libecoff.h (_bfd_ecoff_find_nearest_line): Update prototype.
636 * mach-o.c (bfd_mach_o_find_nearest_line): Reorder params, add
637 discriminator_ptr. Adjust calls.
638 * mach-o.h (bfd_mach_o_find_nearest_line): Update prototype.
639 * pdp11.c (NAME (aout, find_nearest_line)): Reorder params, add
640 discriminator_ptr and set.
641 * som.c (som_find_nearest_line): Similarly.
642 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Delete entry for
643 _bfd_find_nearest_line_discriminator.
644 (struct bfd_target <_bfd_find_nearest_line>): Adjust prototype.
645 (struct bfd_target <_bfd_find_nearest_line_discriminator>): Delete.
646 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Rename to..
647 (_bfd_vms_find_nearest_line): ..this. Reorder params, add
648 "discriminator" and set.
649 (_bfd_vms_find_nearest_line_discriminator): Delete.
650 (_bfd_generic_find_nearest_line_discriminator): Don't define.
651 (alpha_vms_find_nearest_line): Update define.
652 * bfd-in2.h: Regenerate.
653 * libbfd.h: Regenerate.
654 * libcoff.h: Regenerate.
655
9c461f7d
AM
6562014-10-15 Alan Modra <amodra@gmail.com>
657
658 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Use NAME##_find_line.
659 * aout-adobe.c (aout_32_find_line): Define.
660 (aout_32_bfd_make_debug_symbol, aout_32_bfd_reloc_type_lookup,
661 aout_32_bfd_reloc_name_lookup): Define using _bfd_nosymbols define.
662 * aout-target.h (MY_find_line): Define.
663 * aout-tic30.c (MY_find_line): Define.
664 * binary.c (binary_find_line): Define.
665 * bout.c (aout_32_find_line): Define.
666 * coff-rs6000.c (_bfd_xcoff_find_line): Define.
667 * coff64-rs6000.c (rs6000_xcoff64_vec): Use coff_find_line.
668 (rs6000_xcoff64_aix_vec): Likewise.
669 * elf-bfd.h (_bfd_generic_find_line): Don't define.
670 * elfxx-target.h (bfd_elfNN_find_line): Define.
671 * i386msdos.c (msdos_find_line): Define.
672 * i386os9k.c (aout_32_find_line): Define.
673 * ieee.c (ieee_find_nearest_line, ieee_find_inliner_info): Delete func.
674 (ieee_find_nearest_line, ieee_find_line,
675 ieee_find_inliner_info): Define.
676 * ihex.c (ihex_find_line): Define.
677 * libbfd-in.h (_bfd_nosymbols_find_line): Define.
678 (_bfd_generic_find_line): Don't define.
679 * libbfd.c (_bfd_generic_find_line): Delete.
680 * libcoff-in.h (coff_find_line): Define.
681 * libecoff.h (_bfd_ecoff_find_line): Define.
682 * mach-o.h (bfd_mach_o_find_line): Define.
683 * mmo.c (mmo_find_line): Define.
684 * nlm-target.h (nlm_find_line): Define.
685 * oasys.c (oasys_find_nearest_line, oasys_find_inliner_info): Delete.
686 (oasys_find_nearest_line, oasys_find_line,
687 oasys_find_inliner_info): Define.
688 * pef.c (bfd_pef_find_line): Define.
689 * plugin.c (bfd_plugin_find_line): Define.
690 * ppcboot.c (ppcboot_find_line): Define.
691 * som.c (som_find_line): Define.
692 * srec.c (srec_find_line): Define.
693 * tekhex.c (tekhex_find_line): Define.
694 * versados.c (versados_find_line): Define.
695 * vms-alpha.c (alpha_vms_find_line): Define.
696 * xsym.c (bfd_sym_find_line): Define.
697 * bfd-in2.h: Regenerate.
698 * libbfd.h: Regenerate.
699 * libcoff.h: Regenerate.
700
91dc4e0a
TG
7012014-10-15 Tristan Gingold <gingold@adacore.com>
702
703 * version.m4: Bump version to 2.25.51
704 * configure: Regenerate.
705
5697705a
L
7062014-10-14 H.J. Lu <hongjiu.lu@intel.com>
707
708 * elf32-i386.c (elf_i386_convert_mov_to_lea): Skip if relocation
709 offset is less than 2.
710 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
711
65879393
AM
7122014-10-14 Alan Modra <amodra@gmail.com>
713
714 PR 17453
715 * libbfd.c (COERCE16, COERCE32, COERCE64): Use unsigned types.
716 (EIGHT_GAZILLION): Delete.
717
5b69e357
AM
7182014-10-13 Alan Modra <amodra@gmail.com>
719
720 PR 17467
721 * elf-eh-frame.c (ENSURE_NO_RELOCS): Don't stop at first NONE reloc.
722 (_bfd_elf_parse_eh_frame): When relocatable output, don't set
723 flags enabling conversion of CIEs and FDEs to use relative encoding.
724 (find_merged_cie): Similarly.
725 (_bfd_elf_write_section_eh_frame): Don't edit FDEs when
726 relocatable, except for CIE pointer.
727 * elflink.c (bfd_elf_reloc_symbol_deleted_p): Return true for
728 relocs against symbols in dropped comdat group sections.
729 (bfd_elf_discard_info): Do some eh_frame optimisation when
730 relocatable.
731
3d68f91c
JM
7322014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
733
734 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Handle
735 the hwcaps2 object attribute.
736
c2aaac08
AM
7372014-10-04 Alan Modra <amodra@gmail.com>
738
739 PR 17447
740 * elf-bfd.h (struct eh_cie_fde): Comment re NULL u.fde.cie_inf.
741 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Mark zero address
742 range FDEs for discarding.
743 (vma_compare): Sort on range after address.
744 (_bfd_elf_gc_mark_fdes): Test for NULL u.fde.cie_inf.
745 (_bfd_elf_discard_section_eh_frame): Likewise. Write "FDE" in
746 error message rather than "fde".
747 (_bfd_elf_write_section_eh_frame_hdr): Write "PC" and "FDE" in
748 error message.
749
cf7363b4
L
7502014-09-29 H.J. Lu <hongjiu.lu@intel.com>
751
752 PR ld/17440
753 * elf32-i386.c (elf_i386_fbsd_post_process_headers): Fix build
754 for OLD_FREEBSD_ABI_LABEL.
755
e44f5bef
MT
7562014-09-24 Markus Trippelsdorf <markus@trippelsdorf.de>
757
758 PR 17422
759 * plugin.c (try_claim): New function. Moved from
760 bfd_plugin_object_p.
761 (try_load_plugin): Pass through bfd. Add test.
762 (load_plugin): Pass through bfd.
763 (bfd_plugin_object_p): Move logic to try_claim.
764
331ed130
SA
7652014-09-23 Sterling Augustine <augustine.sterling@gmail.com>
766
767 * elf32-xtensa.c (is_resolvable_asm_expansion): for cross-section
768 call relaxation use furthermost addresses where call source and
769 destination can be to check whether it's in the range of a direct
770 call.
771
aa8f4d1e
AM
7722014-09-22 Alan Modra <amodra@gmail.com>
773
774 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Don't return
775 false for overflow or overlapping FDEs. Give more detail in
776 error messages.
777
c3eb94b4
MF
7782014-09-22 Andrew Bennett <andrew.bennett@imgtec.com>
779
780 * elfxx-mips.c (mips_elf_calculate_relocation): Don't sign extend
781 the addend if relocations are RELA.
782
f4cb41f4
KLC
7832014-09-22 Kuan-Lin Chen <kuanlinchentw@gmail.com>
784
785 * elf32-nds32.c (nds32_elf_ex9_build_hash_table,
786 nds32_elf_ex9_relocation_check): Synchronize the argument type.
787
e00d879a
AK
7882014-09-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
789
790 * elf32-s390.c: Don't replace R_390_TLS_LE32 with R_390_TLS_TPOFF
791 for PIE.
792 * elf64-s390.c: Don't replace R_390_TLS_LE64 with R_390_TLS_TPOFF
793 for PIE.
794
92c9bcd4
JK
7952014-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
796
797 PR gdb/17407
798 * elfcode.h (bfd_from_remote_memory): Use SIZE for HIGH_OFFSET.
799
70e99720
TG
8002014-09-16 Terry Guo <terry.guo@arm.com>
801
802 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Return false if
803 failed to merge.
804
1c8f6a4d
KLC
8052014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
806
807 * bfd-in2.h: Regenerate.
808 * elf32-nds32.c (nds32_elf_mkobject): Hook bfd_elf32_mkobject.
809 (nds32_elf_relax_section): Code refactoring.
810 (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2,
811 nds32_elf_relax_longcall3, nds32_elf_relax_longcall4,
812 nds32_elf_relax_longcall5, nds32_elf_relax_longcall6): Relax call
813 pattern. The first three is moved from nds32_elf_relax_section,
814 and the last three is new function.
815 (nds32_elf_relax_longjump1, nds32_elf_relax_longjump2,
816 nds32_elf_relax_longjump3, nds32_elf_relax_longjump4,
817 nds32_elf_relax_longjump5, nds32_elf_relax_longjump6,
818 nds32_elf_relax_longjump7): Relax condition branch pattern. The first
819 three is moved from nds32_elf_relax_section, and the last four
820 is new function.
821 (nds32_elf_relax_loadstore, nds32_elf_relax_lo12): Relax load-store
822 pattern and address setting pattern.
823 (nds32_elf_relax_piclo12, nds32_elf_relax_ptr,
824 nds32_elf_relax_pltgot_suff, nds32_elf_relax_got_suff,
825 nds32_elf_relax_gotoff_suff): Relax pic pattern.
826 (nds32_elf_relax_letlslo12, nds32_elf_relax_letlsadd,
827 nds32_elf_relax_letlsls): Relax TLS pattern.
828 (nds32_relax_adjust_label): Adjust alignment and nop.
829 (nds32_elf_pick_relax): Choose relaxation optimization.
830 (nds32_elf_get_relocated_section_contents): New hook.
831 (nds32_elf_order_insn_times, nds32_elf_ex9_build_itable): Release ex9
832 table 234th entry.
833 * elf32-nds32.h: Declare.
834 * libbfd.h: Regenerate.
835 * reloc.c: Add nds32 new relocations.
836
6d74e8a1
CG
8372014-09-15 Chen Gang <gang.chen.5i5j@gmail.com>
838
839 * dwarf2.c (find_abstract_instance_name): Use 'form' instead of
840 'name' for the typo issue, which related with commit
841 60d77146a249ae9b51d7ce98930cdbedb2cfa352.
842
7361da2c
AB
8432014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
844 Matthew Fortune <matthew.fortune@imgtec.com>
845
846 * aoutx.h (NAME (aout, machine_type)): Add mips32r6 and mips64r6.
847 * archures.c (bfd_architecture): Likewise.
848 * bfd-in2.h (bfd_architecture): Likewise.
849 (bfd_reloc_code_real): Add relocs BFD_RELOC_MIPS_21_PCREL_S2,
850 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3 and
851 BFD_RELOC_MIPS_19_PCREL_S2.
852 * cpu-mips.c (arch_info_struct): Add mips32r6 and mips64r6.
853 * elf32-mips.c: Define relocs R_MIPS_PC21_S2, R_MIPS_PC26_S2
854 R_MIPS_PC18_S3, R_MIPS_PC19_S2, R_MIPS_PCHI16 and R_MIPS_PCLO16.
855 (mips_reloc_map): Add entries for BFD_RELOC_MIPS_21_PCREL_S2,
856 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3,
857 BFD_RELOC_MIPS_19_PCREL_S2, BFD_RELOC_HI16_S_PCREL and
858 BFD_RELOC_LO16_PCREL.
859 * elf64-mips.c: Define REL, and RELA relocations R_MIPS_PC21_S2,
860 R_MIPS_PC26_S2, R_MIPS_PC18_S3, R_MIPS_PC19_S2, R_MIPS_PCHI16
861 and R_MIPS_PCLO16.
862 (mips_reloc_map): Add entries for BFD_RELOC_MIPS_21_PCREL_S2,
863 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3,
864 BFD_RELOC_MIPS_19_PCREL_S2, BFD_RELOC_HI16_S_PCREL and
865 BFD_RELOC_LO16_PCREL.
866 * elfn32-mips.c: Likewise.
867 * elfxx-mips.c (MIPSR6_P): New define.
868 (mipsr6_exec_plt_entry): New array.
869 (hi16_reloc_p): Add support for R_MIPS_PCHI16.
870 (lo16_reloc_p): Add support for R_MIPS_PCLO16.
871 (aligned_pcrel_reloc_p): New function.
872 (mips_elf_relocation_needs_la25_stub): Add support for relocs:
873 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
874 (mips_elf_calculate_relocation): Add support for relocs:
875 R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3, R_MIPS_PC19_S2,
876 R_MIPS_PCHI16 and R_MIPS_PCLO16.
877 (_bfd_elf_mips_mach): Add support for mips32r6 and mips64r6.
878 (mips_elf_add_lo16_rel_addend): Add support for R_MIPS_PCHI16.
879 (_bfd_mips_elf_check_relocs): Add support for relocs:
880 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
881 (_bfd_mips_elf_relocate_section): Add a check for unaligned
882 pc relative relocs.
883 (_bfd_mips_elf_finish_dynamic_symbol): Add support for MIPS r6
884 plt entry.
885 (mips_set_isa_flags): Add support for mips32r6 and mips64r6.
886 (_bfd_mips_elf_print_private_bfd_data): Likewise.
887 (mips_32bit_flags_p): Add support for mips32r6.
888 * libbfd.h (bfd_reloc_code_real_names): Add entries for
889 BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2,
890 BFD_RELOC_MIPS_18_PCREL_S3 and BFD_RELOC_MIPS_19_PCREL_S2.
891 * reloc.c: Document relocs BFD_RELOC_MIPS_21_PCREL_S2,
892 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3 and
893 BFD_RELOC_MIPS_19_PCREL_S2.
894 * config.bfd: Add mips*-img-elf* target triple.
895
a9d58c06
AB
8962014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
897
898 * config.bfd: Add mips*-img-elf* target triple.
899
ae6c7e33
AM
9002014-09-12 Alan Modra <amodra@gmail.com>
901
902 * elf-bfd.h (struct eh_frame_array_ent): Add "range".
903 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Stash address
904 range of FDEs to hdr_info->array.
905 (_bfd_elf_write_section_eh_frame_hdr): Report overflow in
906 .eh_frame_hdr entries, and overlapping FDEs.
907
a485e98e
AM
9082014-09-10 Alan Modra <amodra@gmail.com>
909
910 * elf.c (assign_file_positions_except_relocs): Move section header
911 placement to..
912 (_bfd_elf_assign_file_positions_for_relocs): ..here. Make static.
913 * elf-bfd.h (_bfd_elf_assign_file_positions_for_relocs): Delete.
914 * elflink.c (bfd_elf_final_link): Don't call above function.
915
6128f9cf
AM
9162014-08-30 Alan Modra <amodra@gmail.com>
917
918 * elf32-ppc.c (ppc_elf_relax_section): Fix off by one error.
919
4805fc55
AM
9202014-08-29 Alan Modra <amodra@gmail.com>
921
922 * elf64-ppc.c (ppc64_elf_relocate_section): Report a different
923 error for calls via a toc adjusting stub without a nop.
924
b138affb
AM
9252014-08-29 Alan Modra <amodra@gmail.com>
926
927 * vms-alpha.c (alpha_vma_object_p): Don't return file_truncated
928 error. Remove redundant bfd_set_error.
929
bd25671c
AM
9302014-08-29 Alan Modra <amodra@gmail.com>
931
932 * srec.c (srec_scan): Revert last change. Report an error for
933 S-records with less than the miniumum byte count.
934
376c8d5b
L
9352014-08-28 H.J. Lu <hongjiu.lu@intel.com>
936
937 * srec.c (srec_scan): Return error for 0 size.
938
c8831961
L
9392014-08-27 H.J. Lu <hongjiu.lu@intel.com>
940
941 PR ld/17306
942 * elf32-i386.c (elf_i386_convert_mov_to_lea): Use bfd_is_abs_section
943 to check discarded input section.
944 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
945
29a9f53e
L
9462014-08-27 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR ld/17313
949 * elflink.c (elf_link_add_object_symbols): Don't attach dynamic
950 sections to input from ld --just-symbols.
951
32e79d39
DD
9522014-08-26 DJ Delorie <dj@redhat.com>
953
954 * elf32-rl78.c (rl78_elf_relax_section): Disambiguate test for
955 relaxation type.
956
614b09ce
JW
9572014-08-26 Jiong Wang <jiong.wang@arm.com>
958
959 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Initialize non_got_ref
960 properly for MOVW_G0/1/2_NC and MOVW_G3. Reject them when linking
961 shared library.
962 (elfNN_aarch64_gc_sweep_hook): Add check on these relocs.
963
0d6d4c82
NC
9642014-08-26 Nick Clifton <nickc@redhat.com>
965
966 * config.bfd: Fix typo in or1knd selection.
967
a4a027b7
KT
9682014-08-22 Kai Tietz <ktietz@redhat.com>
969
970 PR binutils/11822
971 * coffcode.h (coff_compute_section_file_positions): Keep
972 FileAlignment valid as set.
973
4564fb94
AM
9742014-08-22 Alan Modra <amodra@gmail.com>
975
976 * elf-eh-frame.c (struct cie): Delete "output_sec" field.
977 (cie_eq, cie_compute_hash): Use output_section from cie_inf instead.
978
da44f4e5
AM
9792014-08-22 Alan Modra <amodra@gmail.com>
980
981 * elf-bfd.h (struct eh_frame_hdr_info): Delete merge_cies and
982 parsed_eh_frames.
983 (_bfd_elf_begin_eh_frame_parsing): Delete.
984 (_bfd_elf_end_eh_frame_parsing): Delete.
985 * elf-eh-frame.c (_bfd_elf_begin_eh_frame_parsing): Delete.
986 (_bfd_elf_end_eh_frame_parsing): Delete.
987 (_bfd_elf_parse_eh_frame): Don't test parsed_eh_frame. Test
988 !info->relocatable in place of merge_cies.
989 * elflink.c (bfd_elf_gc_sections, bfd_elf_discard_info): Adjust.
990 * elf64-ppc.c (glink_eh_frame_cie): Pad to multiple of 8.
991 (ppc64_elf_size_stubs): Likewise pad stub FDE.
992 (ppc64_elf_build_stubs): Move code setting glink .eh_frame to..
993 (ppc64_elf_size_stubs): ..here and..
994 (ppc64_elf_finish_dynamic_sections): ..here.
995
1d7c9635
MR
9962014-08-21 Maciej W. Rozycki <macro@codesourcery.com>
997
998 * elf64-ppc.h (ppc64_elf_set_toc): Fix indentation.
999
c5423981
TG
10002014-08-21 Tony Wang <tony.wang@arm.com>
1001
1002 * elf32-arm.c (elf32_arm_final_link_relocate): Implement
1003 the veneer routine for R_ARM_THM_JUMP19.
1004 (arm_type_of_stub): Add conditional clause for R_ARM_THM_JUMP19
1005 (elf32_arm_size_stub): Ditto.
1006
469a3493
RM
10072014-08-20 Roland McGrath <mcgrathr@google.com>
1008
1009 PR ld/17277
1010 * elf32-arm.c (elf32_arm_check_relocs): Increment P->pc_count for
1011 all reloc types with pc_relative set in the howto, not just for
1012 R_ARM_REL32 and R_ARM_REL32_NOI.
1013 (allocate_dynrelocs_for_symbol): Update comment.
1014 (elf32_arm_gc_sweep_hook): For all reloc types with pc_relative
1015 set in the howto, set call_reloc_p and may_need_local_target_p but
1016 not may_become_dynamic_p; not only for R_ARM_REL32 and R_ARM_REL32_NOI.
1017 (elf32_arm_check_relocs): Likewise.
1018
01e6c1a4
WN
10192014-08-20 Will Newton <will.newton@linaro.org>
1020
1021 * config.bfd: Default armeb-*-eabi* to big endian.
1022
2974be62
AM
10232014-08-19 Alan Modra <amodra@gmail.com>
1024
1025 * configure: Regenerate.
1026
1009ef28
AM
10272014-08-18 Alan Modra <amodra@gmail.com>
1028
1029 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't attempt to
1030 use dynrelocs for ifunc.
1031 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Similarly.
1032
1240be6b
AM
10332014-08-18 Alan Modra <amodra@gmail.com>
1034
1035 PR 17287
1036 * elflink.c (on_needed_list): Only consider libraries that have
1037 been loaded.
1038
75938853
AM
10392014-08-18 Alan Modra <amodra@gmail.com>
1040
1041 * elflink.c (bfd_elf_discard_info): Return int error status.
1042 * stabs.c (_bfd_discard_section_stabs): Comment typo fix.
1043 * bfd-in.h (bfd_elf_discard_info): Updata prototype.
1044 * bfd-in2.h: Regenerate.
1045
513ea82e
AM
10462014-08-14 Alan Modra <amodra@gmail.com>
1047
1048 * peXXigen.c (pe_print_reloc): Protect against access past end
1049 of .reloc section.
1050
18cd5bce
AM
10512014-08-14 Alan Modra <amodra@gmail.com>
1052
1053 PR 16563
1054 * elflink.c (bfd_elf_discard_info): Process .eh_frame and .stab
1055 in the order they are mapped to output sections.
1056
b879806f
AM
10572014-08-14 Alan Modra <amodra@gmail.com>
1058
1059 * configure.ac: Delete redundant plugin related checks.
1060 * configure: Regenerate.
1061
ffccb7af
SK
10622014-08-13 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
1063
1064 * elf32-or1k.c (or1k_elf_relocate_section, or1k_elf_check_relocs,
1065 allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL
1066 and SYMBOLIC_BIND.
1067
46135103
AM
10682014-08-12 Alan Modra <amodra@gmail.com>
1069
1070 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Only call "notice"
1071 here when not calling the generic add_symbol function. Formatting.
1072 Correct handling of indirect symbols. Update notice call.
1073 * elflink.c (_bfd_elf_notice_as_needed): Update notice call.
1074 * linker.c (_bfd_generic_link_add_one_symbol): Create indirect
1075 symbols early. Update notice call. Add comments regarding weak
1076 symbols vs. indirect.
1077
88d3f087
AM
10782014-08-12 Alan Modra <amodra@gmail.com>
1079
1080 PR ld/16746
1081 * linker.c (_bfd_generic_link_add_one_symbol <WARN>): Handle
1082 !lto_plugin_active.
1083
7f59d2ac
CG
10842014-08-07 Chen Gang <gang.chen.5i5j@gmail.com>
1085
1086 * coff-ppc.c (coff_ppc_relocate_section): Ensure local symbols are
1087 zero terminated.
1088
db712946
L
10892014-08-07 H.J. Lu <hongjiu.lu@intel.com>
1090 Alan Modra <amodra@gmail.com>
1091
1092 PR ld/16746
1093 * linker.c (_bfd_generic_link_add_one_symbol): Don't issue a
1094 warning for references in LTO IR to warning symbols.
1095
59c26567
AM
10962014-08-07 Alan Modra <amodra@gmail.com>
1097
1098 * linker.c (WARN, CWARN): Collapse these states to WARN.
1099 (_bfd_generic_link_add_one_symbol): Use old CWARN case for
1100 new WARN.
1101
aaffae57
DE
11022014-08-05 Doug Evans <dje@google.com>
1103
1104 * bfd-in2.h: Regenerate.
1105 * libcoff.h: Regenerate.
1106
e034b2cc
MR
11072014-08-05 Maciej W. Rozycki <macro@codesourcery.com>
1108
1109 * elfxx-mips.c (_bfd_mips_elf_discard_info): Set section's
1110 rawsize if changing size.
1111
7833fb7b
AM
11122014-08-05 Alan Modra <amodra@gmail.com>
1113
1114 PR ld/17226
1115 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.
1116
02eb0a49
AM
11172014-08-05 Alan Modra <amodra@gmail.com>
1118
1119 * linker.c (generic_link_check_archive_element): Move handling
1120 of command link -u symbols with a common symbol def to the
1121 code handling non-common symbols so that archive element symbols
1122 are loaded. Use generic_link_add_object_symbols.
1123
13e570f8
AM
11242014-08-05 Alan Modra <amodra@gmail.com>
1125
1126 PR 13557
1127 * linker.c (struct archive_list, struct archive_hash_entry,
1128 struct archive_hash_table, archive_hash_newfunc,
1129 archive_hash_table_init, archive_hash_lookup, archive_hash_allocate,
1130 archive_hash_table_free): Delete.
1131 (_bfd_generic_link_add_archive_symbols): Add h and name params to
1132 checkfn. Rewrite using a straight-forward scan over archive map.
1133 (generic_link_check_archive_element_no_collect,
1134 generic_link_check_archive_element_collect,
1135 generic_link_check_archive_element): Add h and name params.
1136 * aoutx.h (aout_link_check_archive_element): Likewise.
1137 * pdp11.c (aout_link_check_archive_element): Likewise.
1138 * xcofflink.c (xcoff_link_check_archive_element): Likewise.
1139 * cofflink.c (coff_link_check_archive_element): Likewise. Don't
1140 scan symbols, simply add archive element whenever h is undefined.
1141 (coff_link_check_ar_symbols): Delete.
1142 * ecoff.c (read_ext_syms_and_strs): Delete.
1143 (reread_ext_syms_and_strs): Delete.
1144 (ecoff_link_check_archive_element): Add h and name param. Don't
1145 scan symbols, simply add based on h. Use ecoff_link_add_object_symbols.
1146 * elflink.c (elf_link_is_defined_archive_symbol): Don't test
1147 archive_pass.
1148 (elf_link_add_archive_symbols): Delete "defined" array, merge
1149 functionality into "included". Make "included" a char array. Don't
1150 set or test archive_pass.
1151 * libbfd-in.h (_bfd_generic_link_add_archive_symbols): Update.
1152 * libbfd.h: Regenerate.
1153
8c784016
KK
11542014-08-01 Takashi Yoshii <yoshii.takashi@renesas.com>
1155
1156 PR 10373
1157 * elf32-sh.c (sh_elf_relax_section): Add jmp to bra relaxing.
1158
351cdf24
MF
11592014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
1160
1161 * elfxx-mips.c (ABI_O32_P, MIPS_ELF_ABIFLAGS_SECTION_NAME_P): New macro.
1162 (mips_elf_obj_tdata): Add abiflags and abiflags_valid fields.
1163 (bfd_mips_elf_swap_abiflags_v0_in): New function.
1164 (bfd_mips_elf_swap_abiflags_v0_out): Likewise.
1165 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_ABIFLAGS.
1166 (_bfd_mips_elf_fake_sections): Likewise.
1167 (_bfd_mips_elf_always_size_sections): Handle .MIPS.abiflags.
1168 (_bfd_mips_elf_additional_program_headers): Account for new
1169 PT_MIPS_ABIFLAGS program header.
1170 (_bfd_mips_elf_modify_segment_map): Create PT_MIPS_ABIFLAGS segment and
1171 associate with .MIPS.abiflags.
1172 (_bfd_mips_elf_gc_mark_extra_sections): New function.
1173 (bfd_mips_isa_ext, update_mips_abiflags_isa): New static function.
1174 (infer_mips_abiflags): Likewise.
1175 (_bfd_mips_elf_final_link): Handle .MIPS.abiflags.
1176 (mips_32bit_flags_p): Moved higher.
1177 (mips_elf_merge_obj_attributes, _bfd_mips_fp_abi_string): Error
1178 checking for FP ABIs.
1179 (_bfd_mips_elf_merge_private_bfd_data): Restructure and add abiflags
1180 checks. Check EF_MIPS_FP64 flag consistency.
1181 (print_mips_ases, print_mips_isa_ext): New static function.
1182 (print_mips_fp_abi_value, get_mips_reg_size): Likewise.
1183 (_bfd_mips_elf_print_private_bfd_data): Display abiflags data.
1184 (_bfd_mips_post_process_headers): Set EI_ABIVERSION = 3 for
1185 Val_GNU_MIPS_ABI_FP_64 or Val_GNU_MIPS_ABI_FP_64A.
1186 * elfxx-mips.h (_bfd_mips_elf_gc_mark_extra_sections): New prototype.
1187 * elf32-mips.c (elf_backend_gc_mark_extra_sections): Implement.
1188 * elfn32-mips.c (elf_backend_gc_mark_extra_sections): Implement.
1189 * elf64-mips.c (elf_backend_gc_mark_extra_sections): Implement.
1190
b794fc1d
AM
11912014-07-28 Alan Modra <amodra@gmail.com>
1192
1193 PR 13227
1194 * archive.c (_bfd_compute_and_write_armap): Warn on adding
1195 __gnu_lto_slim to armap.
1196 * linker.c (_bfd_generic_link_add_one_symbol): Warn on adding
1197 __gnu_lto_slim to linker hash table.
1198
48494700
AG
11992014-07-27 Anthony Green <green@moxielogic.org>
1200
1201 * config.bfd: Add moxie-*-moxiebox*.
1202
3d52a869
JS
12032014-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1204
1205 Add or reactivate or1k-*-rtems*
1a8bdf69 1206 * config.bfd (or1k-*-rtems*): Reactivate.
3d52a869 1207
cca5b8b6
L
12082014-07-16 H.J. Lu <hongjiu.lu@intel.com>
1209
1210 * elf32-i386.c (elf_i386_plt_sym_val): Match PLT entry only for
1211 ELFOSABI_GNU input.
1212 * elf64-x86-64.c (elf_x86_64_plt_sym_val): Likewise.
1213 (elf_x86_64_plt_sym_val_offset_plt_bnd): Likewise.
1214
144bed8d
L
12152014-07-16 H.J. Lu <hongjiu.lu@intel.com>
1216
1217 PR binutils/17154
1218 * elf32-i386.c (elf_i386_plt_sym_val): Only match R_*_JUMP_SLOT
1219 and R_*_IRELATIVE relocation offset with PLT entry.
1220 * elf64-x86-64.c (elf_x86_64_plt_sym_val): Likewise.
1221 (elf_x86_64_plt_sym_val_offset_plt_bnd): New.
1222 (elf_x86_64_get_synthetic_symtab): Use it.
1223
998d811a
L
12242014-07-15 H.J. Lu <hongjiu.lu@intel.com>
1225
1226 PR ld/17057
1227 * elf32-i386.c (elf_i386_compute_jump_table_size): Replace
1228 next_tls_desc_index with elf.srelplt->reloc_count.
1229
87f14779
AM
12302014-07-15 Alan Modra <amodra@gmail.com>
1231
1232 * cache.c (cache_bread_1): Don't return -1 when fread returns
1233 a positive value.
1234
cd3416da
AM
12352014-07-15 Alan Modra <amodra@gmail.com>
1236
1237 * elflink.c (elf_merge_st_other): Update comments. Simplify
1238 visibility handling. Make isym const. Move code modifying
1239 isym->st_other for --exclude-libs to..
1240 (elf_link_add_object_symbols): ..here.
1241
17ca87fc
MN
12422014-07-11 Maks Naumov <maksqwe1@ukr.net>
1243
1244 PR 17141
1245 * elf.c (_bfd_elf_strtab_add): Check strtab name for failure.
1246
5bc8cb6f
NC
12472014-07-08 Nick Clifton <nickc@redhat.com>
1248
1249 PR ld/17110
1250 * elf32-sh.c (sh_elf_osec_to_segment): Do not look for output
1251 segments in input bfds.
1252
7572ca89
WN
12532014-07-08 Will Newton <will.newton@linaro.org>
1254
1255 * elf32-arm.c (ELF_MAXPAGESIZE): Increase the default
1256 value to 64kB and remove custom setting for NaCl.
1257
bffebb6b
AM
12582014-07-08 Alan Modra <amodra@gmail.com>
1259
1260 * elflink.c (_bfd_elf_copy_link_hash_symbol_type): Copy st_other
1261 bits from source to dest.
1262 * linker.c (_bfd_generic_copy_link_hash_symbol_type): Update comment.
1263 * targets.c (struct bfd_target <_bfd_copy_link_hash_symbol_type>):
1264 Likewise.
1265 * bfd-in2.h: Regenerate.
1266
2e0488d3
JW
12672014-07-08 Jiong Wang <jiong.wang@arm.com>
1268
1269 * elfnn-aarch64.c (elf_backend_rela_normal): Set to 1.
1270 (elfNN_aarch64_relocate_section): Remove duplicated addend adjustment
1271 when info->relocatable be true.
1272
75f58085
BS
12732014-07-07 Barney Stratford <barney_stratford@fastmail.fm>
1274
1275 * elf32-avr.c: Handle R_AVR_PORT5 and R_AVR_PORT6.
1276 * reloc.c: Add BFD_RELOC_AVR_PORT5 and BFD_RELOC_AVR_PORT6.
1277 * bfd-in2.h: Regenerate.
1278 * libbfd.h: Regenerate.
1279
1110793a
AM
12802014-07-04 Alan Modra <amodra@gmail.com>
1281
1282 * Makefile.am: Update "configure.in" comments.
1283 * PORTING: Likewise.
1284 * aoutx.h: Likewise.
1285 * configure.host: Likewise.
1286 * doc/bfdint.texi: Likewise.
1287 * targets.c: Likewise.
1288 * warning.m4: Likewise.
1289 * Makefile.in: Regenerate.
1290
35eafcc7
AM
12912014-07-04 Alan Modra <amodra@gmail.com>
1292
1293 * configure.ac: Rename from configure.in.
1294 * Makefile.in: Regenerate.
1295 * config.in: Regenerate.
1296 * doc/Makefile.in: Regenerate.
1297
82b57a90
AM
12982014-07-04 Alan Modra <amodra@gmail.com>
1299
1300 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove configure.in.
1301 * Makefile.in: Regenerate.
1302
2e98a7bd
AM
13032014-07-04 Alan Modra <amodra@gmail.com>
1304
1305 * version.m4: New file.
1306 * configure.in: Include version.m4.
1307 (AC_INIT): Update.
1308 * Makefile.am (RELEASE): Delete.
1309 (bfdver.h): Depend on development.sh, use instead of RELEASE.
1310 * Makefile.in: Regenerate.
1311 * doc/Makefile.in: Regenerate.
1312
d1eca1e4
AM
13132014-07-02 Alan Modra <amodra@gmail.com>
1314
1315 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Clear
1316 pointer_equality_needed when !readonly_dynrelocs.
1317 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1318
afb93314
AM
13192014-07-02 Alan Modra <amodra@gmail.com>
1320
1321 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_STATIC_TLS for PIEs too.
1322 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1323
b6a1c03a
AM
13242014-07-01 Alan Modra <amodra@gmail.com>
1325
1326 * bfd.c (struct bfd): Reorganise for better packing. Delete
1327 "ifd" field. Make "format", "direction" and "flags" bitfields.
1328 (HAS_LOAD_PAGE): Delete, renumber following flags.
1329 * bfd-in2.h: Regenerate.
1330 * coff-tic4x.c: Remove HAS_LOAD_PAGE from extra flags in target vecs.
1331
7341d5e2
AM
13322014-07-01 Alan Modra <amodra@gmail.com>
1333
1334 * elf64-ppc.c (ppc_stub_type): Add ppc_stub_global_entry.
1335 (struct ppc_link_hash_table): Increase size of stub_count array.
1336 (build_global_entry_stubs): Emit symbol on global entry stub.
1337 (ppc64_elf_build_stubs): NULL check htab->brlt. Add global entry
1338 stub stats.
1339
810d4e75
AM
13402014-07-01 Alan Modra <amodra@gmail.com>
1341
1342 * elf64-ppc.c (abiversion, set_abiversion): Move earlier.
1343 (ppc64_elf_branch_reloc): Adjust addend for ELFv2 local offset.
1344 (ppc64_elf_set_toc): Set ".TOC." symbol value when using
1345 generic linker.
1346 (ppc64_elf_relocate_section): Disable ELFv2 function entry
1347 optimisation when --traditional-format.
1348
f36e8886
BS
13492014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
1350 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1351 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1352 Soundararajan <Sounderarajan.D@atmel.com>
1353
1354 * archures.c: Add avrtiny architecture for avr target.
1355 * cpu-avr.c (arch_info_struct): Add avrtiny arch info.
1356 * elf32-avr.c (elf_avr_howto_table): New relocation R_AVR_LDS_STS_16
1357 added for 16 bit LDS/STS instruction of avrtiny arch.
1358 (avr_reloc_map): Reloc R_AVR_LDS_STS_16 is mapped to
1359 BFD_RELOC_AVR_LDS_STS_16.
1360 (bfd_elf_avr_final_write_processing): Select machine number
1361 avrtiny arch.
1362 (elf32_avr_object_p): Set machine number for avrtiny arch.
1363 * reloc.c: Add documentation for BFD_RELOC_AVR_LDS_STS_16 reloc.
1364 * bfd-in2.h: Regenerate.
1365 * libbfd.h: Regenerate.
1366
60d77146
NC
13672014-06-26 Nick Clifton <nickc@redhat.com>
1368
1369 PR binutils/16949
1370 * dwarf2.c (is_str_attr): New function.
1371 (find_abstract_instance_name): Use it to determine when an
1372 attribute has a string value.
1373
15bfcc77
AM
13742014-06-24 Alan Modra <amodra@gmail.com>
1375
1376 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Arrange to keep
1377 .sdata/.sdata2 when _SDA_BASE_/_SDA2_BASE_ should be output
1378 for --emit-relocs.
1379
886aba9e
PDM
13802014-06-21 Philippe De Muyter <phdm@macqel.be>
1381
1382 * targets.c (_bfd_target_vector): Add missing #ifdef BFD64 for
1383 a number of targets.
1384
eea6dad2
KM
13852014-06-20 Kyle McMartin <kyle@redhat.com>
1386
1387 * elf32-arm.c (elf32_arm_check_relocs): Set DF_STATIC_TLS when
1388 emitting initial-exec relocs when not linking an executable.
1389
9f19ab6d
WN
13902014-06-16 Will Newton <will.newton@linaro.org>
1391
1392 * elf32-arm.c (elf32_arm_allocate_plt_entry): Increment
1393 htab->next_tls_desc_index in the non-IPLT case.
1394 Calculate GOT offset correctly for the non-IPLT case.
1395 (allocate_dynrelocs_for_symbol): Don't increment
1396 htab->next_tls_desc_index here.
1397
eb9a5ecf
AM
13982014-06-16 Alan Modra <amodra@gmail.com>
1399
1400 * elf32-vax.c (elf_vax_size_dynamic_sections): Clear linker
1401 created sections.
1402
d0ae9fbd
OJ
14032014-06-13 Omair Javaid <omair.javaid@linaro.org>
1404
1405 * elfxx-aarch64.c (stdarg.h): Include.
1406 (string.h): Include.
1407 (_bfd_aarch64_elf_grok_prstatus): Updated.
1408 (_bfd_aarch64_elf_grok_psinfo): New function.
1409 (_bfd_aarch64_elf_write_core_note): New function.
1410 * elfxx-aarch64.h (elf_backend_grok_psinfo): Define.
1411 (elf_backend_write_core_note): Define.
1412
d495ab0d
AM
14132014-06-13 Alan Modra <amodra@gmail.com>
1414
1415 * archive.c: Include bfdlink.h.
1416 (_bfd_archive_close_and_cleanup): Call linker hash_table_free.
1417 * bfd.c (struct bfd): Add is_linker_output field.
1418 * elf-bfd.h (_bfd_elf_link_hash_table_free): Update prototype.
1419 * linker.c (_bfd_link_hash_table_init): Set up hash_table_free,
1420 link.hash and is_linker_output.
1421 (_bfd_generic_link_hash_table_free): Replace bfd_link_hash_table*
1422 param with bfd*. Assert is_linker_output and link.hash, and
1423 clear them before exit.
1424 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Replace
1425 bfd_link_hash_table* param with bfd*. Hack is_linker_output
1426 and link.hash so we can free two linker hash tables.
1427 (elf32_mn10300_link_hash_table_create): Create static_hash_table
1428 first. Clean up on errors. Set hash_table_free pointer.
1429 * elf32-arm.c (elf32_arm_link_hash_table_free): Replace
1430 bfd_link_hash_table* param with bfd*.
1431 (elf32_arm_link_hash_table_create): Clean up on errors. Set
1432 hash_table_free pointer.
1433 * elf32-avr.c, * elf32-hppa.c, * elf32-i386.c, * elf32-m68hc1x.c,
1434 * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c, * elf32-xgate.c,
1435 * elf64-ia64-vms.c, * elf64-ppc.c, * elf64-x86-64.c, * elflink.c,
1436 * elfnn-aarch64.c, * elfnn-ia64.c, * elfxx-sparc.c,
1437 * xcofflink.c: Similarly.
1438 * simple.c (bfd_simple_get_relocated_section_contents): Save and
1439 clear link.next before creating linker hash table. Clean up on
1440 errors, and restore link.next on exit.
1441 * elf32-m68hc1x.h (m68hc11_elf_bfd_link_hash_table_free): Delete.
1442 * elf32-xgate.h (xgate_elf_bfd_link_hash_table_free): Delete.
1443 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table_free): Delete.
1444 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Delete.
1445 * hash.c (bfd_hash_table_init_n): Free table on error.
1446 * libbfd-in.h (_bfd_generic_link_hash_table_free): Update proto.
1447 * bfd-in2.h: Regenerate.
1448 * libbfd.h: Regenerate.
1449 * libcoff.h: Regenerate.
1450
caa4096e
AM
14512014-06-13 Alan Modra <amodra@gmail.com>
1452
1453 PR 17047
1454 * targets.c (BFD_JUMP_TABLE): Delete NAME##_bfd_link_hash_table_free.
1455 (struct bfd_target <_bfd_link_hash_table_free>): Delete.
1456 * bfd.c (bfd_link_hash_table_free): Don't define.
1457 * aout-adobe.c, * aout-target.h, * aout-tic30.c, * binary.c, * bout.c,
1458 * coff64-rs6000.c, * coffcode.h, * elf-m10300.c, * elf32-arm.c,
1459 * elf32-avr.c, * elf32-hppa.c, * elf32-i386.c, * elf32-m68hc11.c,
1460 * elf32-m68hc12.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
1461 * elf32-sparc.c, * elf32-xgate.c, * elf64-ia64-vms.c, * elf64-ppc.c,
1462 * elf64-sparc.c, * elf64-x86-64.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1463 * elfxx-target.h, * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c,
1464 * libbfd-in.h, * libecoff.h, * mach-o-target.c, * mmo.c,
1465 * nlm-target.h, * oasys.c, * pef.c, * plugin.c, * ppcboot.c, * som.c,
1466 * srec.c, * tekhex.c, * verilog.c, * versados.c, * vms-alpha.c,
1467 * xsym.c: Don't define various link_hash_table_free defines, and
1468 remove from bfd_target vars. Temporarily reference some of the
1469 target link_hash_table_free functions to avoid warnings.
1470 * bfd-in2.h: Regenerate.
1471 * libbfd.h: Regenerate.
1472
68faa637
AM
14732014-06-13 Alan Modra <amodra@gmail.com>
1474
1475 * elf-m10300.c, * elf32-arm.c, * elf32-avr.c, * elf32-hppa.c,
1476 * elf32-i386.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-metag.c,
1477 * elf32-nios2.c, * elf64-ia64-vms.c, * elf64-ppc.c, * elf64-x86-64.c,
1478 * elfnn-aarch64.c, * elfnn-ia64.c, * elfxx-sparc.c, * xcofflink.c:
1479 Move link_hash_table_free functions before their corresponding
1480 link_hash_table_create functions.
1481
c72f2fb2
AM
14822014-06-13 Alan Modra <amodra@gmail.com>
1483
1484 * bfd.c (struct bfd): Replace link_next with a union.
1485 * aoutx.h, * bfd.c, * coff-ppc.c, * coff-rs6000.c, * cofflink.c,
1486 * ecoff.c, * elf-m10300.c, * elf32-arm.c, * elf32-avr.c,
1487 * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c, * elf32-m32c.c,
1488 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-metag.c,
1489 * elf32-microblaze.c, * elf32-nds32.c, * elf32-nios2.c,
1490 * elf32-or1k.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-s390.c,
1491 * elf32-score.c, * elf32-score7.c, * elf32-sh.c, * elf32-spu.c,
1492 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-xstormy16.c,
1493 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1494 * elf64-mmix.c, * elf64-ppc.c, * elf64-s390.c, * elf64-x86-64.c,
1495 * elflink.c, * elfnn-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c,
1496 * elfxx-tilegx.c, * linker.c, * pdp11.c, * peXXigen.c, * simple.c,
1497 * sunos.c, * vms-alpha.c, * xcofflink.c: Update for above.
1498 * bfd-in2.h: Regenerate.
1499
7ed689ad
AM
15002014-06-11 Alan Modra <amodra@gmail.com>
1501
1502 * linker.c (unwrap_hash_lookup): Add missing parens.
1503
07821655
KT
15042014-06-11 Kai Tietz <ktietz@redhat.com>
1505
1506 * libcoff-in.h (coff_tdata): Make relocbase member unsigned.
1507 * libcoff.h: Regenerated.
1508
7b8e2718
AM
15092014-06-10 Alan Modra <amodra@gmail.com>
1510
b71c4043 1511 PR ld/16910
7b8e2718 1512 * linker.c (unwrap_hash_lookup): New function.
1a8bdf69 1513 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Call unwrap_hash_lookup.
7b8e2718
AM
1514 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1515 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1516 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1517 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1518 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1519 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1520 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1521
a47622ac
AM
15222014-06-07 Alan Modra <amodra@gmail.com>
1523
1524 * elf32-ppc.c (ppc_elf_relocate_section): Treat field of cmpli
1525 insn as a bitfield; Use complain_overflow_bitfield.
1526 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1527
270c9937
JB
15282014-06-05 Joel Brobecker <brobecker@adacore.com>
1529
1530 * development.sh: New file.
1531 * warning.m4 (AM_BINUTILS_WARNINGS): Source bfd/development.sh.
1532 Make -Werror the default with GCC only if DEVELOPMENT is true.
1533 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
1534 $(srcdir)/development.sh.
1535 * Makefile.in, configure: Regenerate.
1536
ac21917f
WN
15372014-06-04 Will Newton <will.newton@linaro.org>
1538
810d4e75 1539 * elfnn-aarch64.c (tpoff_base): Make test of tls_sec
ac21917f
WN
1540 being non-NULL into an assert.
1541 (elfNN_aarch64_tls_relax): Remove unused code.
1542
33ac0ca1
DD
15432014-06-03 DJ Delorie <dj@redhat.com>
1544
1545 * elf32-rx.c (rx_table_map): Use BFD_VMA_FMT for portability.
1546
c32abae8
NC
15472014-06-03 Nick Clifton <nickc@redhat.com>
1548
1549 PR ld/16807
1550 * peXXigen.c (rsrc_process_section): Page align the new contents
1551 befgore writing out.
1552
397998fc
AM
15532014-06-03 Alan Modra <amodra@gmail.com>
1554
1555 * elf64-ppc.c (ADDIS_R12_R2): Define.
1556 (build_plt_stub): Support fusion on ELFv2 stub.
1557 (ppc_build_one_stub): Likewise for plt branch stubs.
1558
b4894562
AM
15592014-05-28 Alan Modra <amodra@gmail.com>
1560
1561 * elf32-rx.c (rx_table_map): Delete set but not used variables.
1562
4ba3b326
TG
15632014-05-28 Tristan Gingold <gingold@adacore.com>
1564
1565 * dwarf2.c (lookup_address_in_function_table): Add best_fit_len
1566 to keep the length of the best fit range.
1567 (lookup_symbol_in_function_table, info_hash_lookup_funcinfo):
1568 Likewise.
1569
7a2f2d82
DD
15702014-05-27 DJ Delorie <dj@redhat.com>
1571
1a8bdf69 1572 * elf32-rx.c (get_symbol_value_maybe): New.
7a2f2d82
DD
1573 (rx_elf_relocate_section): If we find a reloc against
1574 $tableentry$default$<name>, redirect it to the appropriate
1575 $tableentry$<n>$.
1576 (RX_Table_Info): New.
1577 (rx_table_find): New. Check all tables and SEC_KEEP all sections
1578 with table parts in them.
1579 (rx_check_directives): New.
1580 (rx_table_map_2): New.
1581 (rx_table_map): New.
1582 (rx_additional_link_map_text): New. Called to dump tables to the
1583 map file.
1a8bdf69 1584 * elf32-rx.h: New.
7a2f2d82 1585
bceec4b9
DD
15862014-05-20 DJ Delorie <dj@redhat.com>
1587
1588 * elf32-msp430.c (msp430_elf_relax_adjust_locals): Avoid overflow.
1589
93d1b056
AM
15902014-05-20 Alan Modra <amodra@gmail.com>
1591
1592 PR 16952
1593 * elf32-ppc.c (ppc_elf_create_linker_section): Move earlier.
1594 Remove redundant setting of htab->elf.dynobj. Don't align.
1595 Define .sdata symbols using _bfd_elf_define_linkage_sym.
1596 (ppc_elf_create_glink): Call ppc_elf_create_linker_section.
1597 (create_sdata_sym): Delete.
1598 (elf_allocate_pointer_linker_section): Rename from
1599 elf_create_pointer_linker_section. Align section.
1600 (ppc_elf_check_relocs): Don't call ppc_elf_creat_linker_section
1601 directly here, or create_sdata_sym. Set ref_regular on _SDA_BASE_
1602 and _SDA2_BASE_.
1603 (ppc_elf_size_dynamic_sections): Remove ATTRIBUTE_UNUSED on param.
1604 Remove unnecessary tests on _SDA_BASE_ sym.
1605 (maybe_strip_sdasym, ppc_elf_maybe_strip_sdata_syms): New functions.
1606 (ppc_elf_relocate_section): Tighten SDA reloc symbol section checks.
1607 * elf32-ppc.h (ppc_elf_set_sdata_syms): Delete.
1608 (ppc_elf_maybe_strip_sdata_syms): Declare.
1609
a7c7b2ba
RM
16102014-05-16 Ryan Mansfield <rmansfield@qnx.com>
1611
b4894562 1612 * config.bfd: Move QNX target_cflags from arm-*-netbsd* to arm-*-nto*.
a7c7b2ba
RM
1613
16142014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
6e6e7cfc
JT
1615
1616 * peXXigen.c (pe_print_debugdata): Don't interpret debug directory
1617 in a section with no contents.
1618 (is_vma_in_section, find_section_by_vma): New functions.
1619 (_bfd_XX_bfd_copy_private_bfd_data_common): Recalculate file
1620 offsets in the debug directory.
1621 (_bfd_XXi_slurp_codeview_record, _bfd_XXi_write_codeview_record):
1622 Byte-swap GUID from little-endian to big-endian order for
1623 consistent and conventional display.
1624
856ea05c
KP
16252014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
1626
1627 * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if
1628 64-bit doubles objects mix with 32-bit doubles objects.
1629 (rl78_elf_print_private_bfd_data): Describe 64-bit doubles flag.
1630
68e0f6b1
HPN
16312014-05-08 Hans-Peter Nilsson <hp@bitrange.com>
1632
1633 * mmo.c: Update URLs in documentation comments.
1634
1058c753
VA
16352014-05-02 Volodymyr Arbatov <arbatov@cadence.com>
1636 David Weatherford <weath@cadence.com>
1637 Max Filippov <jcmvbkbc@gmail.com>
1638
1639 * elf32-xtensa.c (relax_section): treat R_XTENSA_DIFF* relocations as
1640 signed.
1641
e59bc75b
AT
16422014-05-07 Andreas Tobler <andreast@fgznet.ch>
1643
1644 * config.bfd: Add proper arm config for *-*-freebsd*.
1645
ae52f483
AB
16462014-05-07 Andrew Bennett <andrew.bennett@imgtec.com>
1647
1648 * aoutx.h (NAME (aout, machine_type)): Add mips32r3, mips64r3,
1649 mips32r5 and mips64r5.
1650 * archures.c (bfd_architecture): Likewise.
1651 * bfd-in2.h (bfd_architecture): Likewise.
1652 * cpu-mips.c (arch_info_struct): Likewise.
1653 * elfxx-mips.c (mips_set_isa_flags): Likewise.
1654
757a636f
RS
16552014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
1656
1657 * elfxx-mips.h (elfxx-mips.h): Declare.
1658 * elfxx-mips.c (mips_elf_merge_obj_attributes): Use it to report
1659 Tag_GNU_MIPS_ABI_FP mismatches.
1660 (_bfd_mips_fp_abi_string): New function.
1661
2f67d686
AM
16622014-05-02 Alan Modra <amodra@gmail.com>
1663
1664 * targets.c: Sort bfd_target vectors somewhat alphabetically.
1665 * configure.in: Likewise.
1666 * configure: Regenerate.
1667
6d00b590
AM
16682014-05-02 Alan Modra <amodra@gmail.com>
1669
1670 * aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-ns32k.c,
1671 * aout-sparcle.c, * aout0.c, * aoutx.h, * armnetbsd.c, * bout.c,
1672 * cf-i386lynx.c, * cf-sparclynx.c, * cisco-core.c, * coff-alpha.c,
1673 * coff-apollo.c, * coff-arm.c, * coff-aux.c, * coff-go32.c,
1674 * coff-h8300.c, * coff-h8500.c, * coff-i386.c, * coff-i860.c,
1675 * coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mips.c,
1676 * coff-rs6000.c, * coff-sh.c, * coff-sparc.c, * coff-stgo32.c,
1677 * coff-svm68k.c, * coff-tic80.c, * coff-u68k.c, * coff-w65.c,
1678 * coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
1679 * coff64-rs6000.c, * config.bfd, * configure.com, * configure.in,
1680 * demo64.c, * elf-m10200.c, * elf-m10300.c, * elf32-am33lin.c,
1681 * elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
1682 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1683 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1684 * elf32-fr30.c, * elf32-frv.c, * elf32-gen.c, * elf32-h8300.c,
1685 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c, * elf32-i860.c,
1686 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1687 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1688 * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c, * elf32-mep.c,
1689 * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1690 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-nios2.c,
1691 * elf32-or1k.c, * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c,
1692 * elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-sh-symbian.c,
1693 * elf32-sh.c, * elf32-sh64.c, * elf32-sparc.c, * elf32-spu.c,
1694 * elf32-tic6x.c, * elf32-tilegx.c, * elf32-tilepro.c, * elf32-v850.c,
1695 * elf32-vax.c, * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
1696 * elf32-xtensa.c, * elf64-alpha.c, * elf64-gen.c, * elf64-hppa.c,
1697 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, * elf64-ppc.c,
1698 * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c, * elf64-tilegx.c,
1699 * elf64-x86-64.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1700 * epoc-pe-arm.c, * epoc-pei-arm.c, * hp300bsd.c, * hp300hpux.c,
1701 * hppabsd-core.c, * hpux-core.c, * i386aout.c, * i386bsd.c,
1702 * i386dynix.c, * i386freebsd.c, * i386linux.c, * i386lynx.c,
1703 * i386mach3.c, * i386msdos.c, * i386netbsd.c, * i386os9k.c,
1704 * irix-core.c, * m68k4knetbsd.c, * m68klinux.c, * m68knetbsd.c,
1705 * m88kmach3.c, * m88kopenbsd.c, * mach-o-i386.c, * mach-o-x86-64.c,
1706 * makefile.vms, * mipsbsd.c, * mmo.c, * netbsd-core.c, * newsos3.c,
1707 * nlm32-alpha.c, * nlm32-i386.c, * nlm32-ppc.c, * nlm32-sparc.c,
1708 * ns32knetbsd.c, * osf-core.c, * pc532-mach.c, * pe-arm-wince.c,
1709 * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-mips.c, * pe-ppc.c,
1710 * pe-sh.c, * pe-x86_64.c, * pei-arm-wince.c, * pei-arm.c,
1711 * pei-i386.c, * pei-ia64.c, * pei-mcore.c, * pei-mips.c, * pei-ppc.c,
1712 * pei-sh.c, * pei-x86_64.c, * ppcboot.c, * ptrace-core.c, * riscix.c,
1713 * sco5-core.c, * som.c, * sparclinux.c, * sparclynx.c,
1714 * sparcnetbsd.c, * sunos.c, * targets.c, * trad-core.c,
1715 * vax1knetbsd.c, * vaxbsd.c, * vaxnetbsd.c, * versados.c,
1716 * vms-alpha.c, * vms-lib.c: Rename bfd targets to
1717 <cpu>_<format>_<other>_<endian>_vec. Adjust associated MY macros
1718 on aout targets.
1719 * configure: Regenerate.
1720
1218d67d
HPN
17212014-05-01 Hans-Peter Nilsson <hp@bitrange.com>
1722
1723 * mmo.c (mmo File layout documentation): Add note about low bits
1724 of address.
1725 (mmo_write_chunk): When handling data remainder, assert that
1726 previous remaining data is flushed.
1727 (mmo_write_loc_chunk): Only look for trailing and leading zeros
1728 when dealing with an aligned VMA and for aligned lengths. Don't skip
1729 the last 32-bit-word of zeros.
1730 (mmo_write_loc_chunk): Emit an error if the VMA is not aligned.
1731 (mmo_scan) <case LOP_QUOTE>: Move re-alignment of vma before
1732 emitting data, not after updating it.
1733 <case LOP_LOC>: Call mmo_decide_section with aligned vma.
1734
a953eec9
NC
17352014-04-30 Nick Clifton <nickc@redhat.com>
1736
1737 * compress.c (bfd_is_section_compressed): When checking the
1738 .debug_str section, also check the fifth byte in the section is
1739 not part of a string.
1740
5087d529
AM
17412014-04-30 Alan Modra <amodra@gmail.com>
1742
1743 * elf-eh-frame.c (struct cie.personality): Replace val with sym.
1744 (find_merged_cie): Identify personality functions by (bfd_id,index)
1745 pair when a local sym is used.
1746
230977a4
CS
17472014-04-29 Christian Svensson <blue@cmd.nu>
1748
1749 * elf32-or1k.c: Fix a bug where non-TLS relocations would be forced
1750 into .rela.got if it contained TLS relocations as well.
1751
40af4a36
NC
17522014-04-28 Nick Clifton <nickc@redhat.com>
1753
1754 PR ld/16821
1755 * peXXigen.c (_bfd_XXi_swap_sym_out): Rework fix to avoid compile
1756 time warning.
1757
a9e18c6a
AM
17582014-04-26 Alan Modra <amodra@gmail.com>
1759
1760 * po/SRC-POTFILES.in: Regenerate.
1761 * configure: Regenerate.
1762
88667baf
NC
17632014-04-25 Nick Clifton <nickc@redhat.com>
1764
1765 PR ld/16821
1766 * peXXigen.c (_bfd_XXi_swap_sym_out): Another fix for building on
1767 a 342-bit host. This time for older versions of gcc.
1768
08937d80
NC
17692014-04-24 Nick Clifton <nickc@redhat.com>
1770
1771 * peXXigen.c (rsrc_print_section): Fix compile time warning for
1772 32-bit hosts.
1773
93ee1e36
AM
17742014-04-24 Alan Modra <amodra@gmail.com>
1775
1776 PR 16867
1777 * dwarf2.c: Formatting.
1778 (struct dwarf2_debug): Make adjusted_section_count signed.
1779 (unset_sections): Make i signed.
1780 (set_debug_vma): New function.
1781 (place_sections): Handle separate debug object file. Set VMA
1782 on debug sections, even if they have an output section. Also
1783 set VMA on zero size sections, and non-load but alloc sections.
1784 Set adjusted_section_count to -1 when no section adjustment.
1785 Malloc adjusted_sections. Don't double last_vma. Transfer
1786 alloc section VMAs to separate debug file.
1787 (_bfd_dwarf2_cleanup_debug_info): Free adjusted_sections.
1788 (_bfd_dwarf2_slurp_debug_info): Add do_place parameter. Drop
1789 test on symbols being the same before using old stash. Read
1790 and use separate debug file symbols. Call place_sections.
1791 (find_line): Don't call place_sections here.
1792 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Update proto.
1793 * libbfd.h: Regenerate.
1794 * mach-o.c (bfd_mach_o_find_nearest_line): Adjust
1795 _bfd_dwarf2_slurp_debug_info call.
1796 * simple.c (simple_save_output_info): Clarify comment.
1797
3714081c
NC
17982014-04-24 Nick Clifton <nickc@redhat.com>
1799
1800 PR ld/16807
1801 * peXXigen.c (struct rsrc_regions): New structure.
1802 (rsrc_print_resource_directory): Use new structure. Include
1803 offset of directory in listing.
1804 (rsrc_print_resource_entry): Likewise.
1805 (rsrc_print_section): Likewise.
1806 (rsrc_count_entries): Do not increment sizeof_strings or
1807 sizeof_leaves.
1808 (rsrc_count_directory): Do not increment sizeof_tables.
1809 (rsrc_compute_region_sizes): New function.
1810 (rsrc_write_leaf): Maintain 8-byte alignment for resource data.
1811 (rsrc_process_section): Compute size of regions after merging
1812 entries.
1813
cd0449ab
AM
18142014-04-23 Alan Modra <amodra@gmail.com>
1815
1816 PR ld/16787
1817 * dwarf2.c (struct dwarf2_debug): Add sec_vma field.
1818 (place_sections): Do not modify VMA of sections when called from
1819 linker after sections have been placed in output sections. Short
1820 circuit single section case.
1821 (save_section_vma, section_vma_same): New functions.
1822 (_bfd_dwarf2_slurp_debug_info): Throw away stash if section VMAs
1823 change.
1824 * reloc.c (bfd_perform_relocation): Do not modify reloc addend
1825 when non-relocatable.
1826
d5f59c10
NC
18272014-04-22 Nick Clifton <nickc@redhat.com>
1828
1829 PR ld/16821
1830 * peXXigen.c (_bfd_XXi_swap_sym_out): Fix for 32-bit hosts.
1831
73589c9d
CS
18322014-04-22 Christian Svensson <blue@cmd.nu>
1833
1834 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
1835 * archures.c: Likewise.
1836 * coffcode.h: Likewise.
1837 * config.bfd: Likewise.
1838 * configure.in: Likewise.
1839 * reloc.c: Likewise.
1840 * targets.c: Likewise.
1841 * cpu-or1k.c: New file.
1842 * elf32-or1k.c: New file.
1843 * coff-or32.c: Delete.
1844 * cpu-openrisc.c: Delete.
1845 * cpu-or32.c: Delete.
1846 * elf32-openrisc.c: Delete.
1847 * elf32-or32.c: Delete.
1848 * Makefile.in: Regenerate.
1849 * bfd-in2.h: Regenerate.
1850 * configure: Regenerate.
1851 * libbfd.h: Regenerate.
1852
285fc9d8
YZ
18532014-04-22 Yuanhui Zhang <asmwarrior@gmail.com>
1854
1855 PR ld/16821
1856 * peXXigen.c (abs_finder): Fix for 32-bit host builds.
1857
5d3b02f0
WN
18582014-04-22 Will Newton <will.newton@linaro.org>
1859
1860 * elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove
1861 function. (elf_backend_section_flags): Remove define.
1862
cc75d373
RH
18632014-04-21 Richard Henderson <rth@redhat.com>
1864
d1c109de
RH
1865 * elf64-alpha.c (elf64_alpha_size_got_sections): New may_merge
1866 parameter; honor it and disable got merging when false.
1867 (elf64_alpha_relax_got_load): Do not relax to GPREL relocs during
1868 the first pass of relaxation.
1869 (elf64_alpha_relax_with_lituse): Likewise. Move relaxed relocs to
1870 the end of the LITERAL+LITUSE chain.
1871 (elf64_alpha_relax_section): Only process LITERAL relocs during the
1872 second pass of relaxation.
1873
cc75d373
RH
1874 * configure.ac (use_secureplt): Enable by default.
1875 * configure: Rebuild.
1876
c9ffd2ea
TG
18772014-04-18 Tristan Gingold <gingold@adacore.com>
1878
1879 * mach-o.h (bfd_mach_o_dyld_info_command): Add rebase_content,
1880 bind_content, weak_bind_content, lazy_bind_content,
1881 export_content.
1882 (bfd_mach_o_load_command): Add comments, add next field.
1883 (mach_o_data_struct): Replace commands field by first_command
1884 and last_command.
1885 * mach-o.c (bfd_mach_o_append_command): New function.
1886 (bfd_mach_o_bfd_copy_private_symbol_data): Add blank lines.
1887 (bfd_mach_o_bfd_copy_private_section_data): Check flavour,
1888 copy fields.
1889 (bfd_mach_o_bfd_copy_private_header_data): Copy load commands.
1890 (bfd_mach_o_pad4, bfd_mach_o_pad_command): New functions.
1891 (bfd_mach_o_write_thread): Use macro instead of literal.
1892 (bfd_mach_o_write_dylinker, bfd_mach_o_write_dylib)
1893 (bfd_mach_o_write_main, bfd_mach_o_write_dyld_info): New
1894 functions.
1895 (bfd_mach_o_write_symtab_content): New function (extracted
1896 from bfd_mach_o_write_symtab).
1897 (bfd_mach_o_write_symtab): Split.
1898 (bfd_mach_o_count_indirect_symbols): Move
1899 (bfd_mach_o_build_dysymtab): Remove layout code.
1900 (bfd_mach_o_write_contents): Rewritten to build commands in order.
1901 (bfd_mach_o_count_sections_for_seg): Remove.
1902 (bfd_mach_o_build_obj_seg_command): New function (extracted from
1903 bfd_mach_o_build_seg_command).
1904 (bfd_mach_o_build_exec_seg_command): New function.
1905 (bfd_mach_o_build_dysymtab_command): Remove.
1906 (bfd_mach_o_layout_commands): New function.
1907 (bfd_mach_o_init_segment): New function.
1908 (bfd_mach_o_build_commands): Major rework to handle non-object
1909 files.
1910 (bfd_mach_o_alloc_and_read, bfd_mach_o_read_dyld_content): New
1911 function.
1912 (bfd_mach_o_read_dyld_info): Clear content fields.
1913 (bfd_mach_o_read_segment): Adjust call.
1914 (bfd_mach_o_flatten_sections): Adjust as now load commands are
1915 chained.
1916 (bfd_mach_o_scan_start_address, bfd_mach_o_scan)
1917 (bfd_mach_o_mkobject_init, bfd_mach_o_get_base_address)
1918 (bfd_mach_o_lookup_command, bfd_mach_o_core_fetch_environment):
1919 Likewise.
1920
967b2c53
TG
19212014-04-18 Tristan Gingold <gingold@adacore.com>
1922
1923 * mach-o-target.c (bfd_mach_o_bfd_copy_private_header_data):
1924 Define instead of bfd_mach_o_bfd_copy_private_bfd_data.
1925 * mach-o.c (bfd_mach_o_bfd_copy_private_bfd_data): Rename.
1926 * mach-o.h (bfd_mach_o_bfd_copy_private_bfd_data): Likewise.
1927
4525c51a
TG
19282014-04-18 Tristan Gingold <gingold@adacore.com>
1929
1930 * mach-o.h (bfd_mach_o_dylinker_command)
1931 (bfd_mach_o_dylib_command, bfd_mach_o_fvmlib_command): Remove
1932 name_len field.
1933 * mach-o.c (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib)
1934 (bfd_mach_o_read_fvmlib): Adjust after name_len removal.
1935
4384b284
TG
19362014-04-18 Tristan Gingold <gingold@adacore.com>
1937
1938 * mach-o.h (bfd_mach_o_backend_data): Add page_size field.
1939 * mach-o-target.c: Check TARGET_PAGESIZE is defined.
1940 (TARGET_NAME_BACKEND): Add TARGET_PAGESIZE.
1941 * mach-o.c (TARGET_PAGESIZE): Define and undefined for
1942 each targets declared.
1943 * mach-o-x86-64.c (TARGET_PAGESIZE): Define.
1944 * mach-o-i386.c (TARGET_PAGESIZE): Define.
1945
452216ab
TG
19462014-04-18 Tristan Gingold <gingold@adacore.com>
1947
1948 * mach-o.c (bfd_mach_o_write_thread)
1949 (bfd_mach_o_write_section_32, bfd_mach_o_write_section_64)
1950 (bfd_mach_o_write_segment_32, bfd_mach_o_write_segment_64)
1951 (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib)
1952 (bfd_mach_o_read_prebound_dylib, bfd_mach_o_read_prebind_cksum)
1953 (bfd_mach_o_read_twolevel_hints, bfd_mach_o_read_fvmlib)
1954 (bfd_mach_o_read_thread, bfd_mach_o_read_dysymtab)
1955 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid)
1956 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str)
1957 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_segment)
1958 (bfd_mach_o_read_segment_32, bfd_mach_o_read_segment_64)
1959 (bfd_mach_o_read_command): Now return a boolean status.
1960 Adjust return statements.
1961 (bfd_mach_o_write_contents, bfd_mach_o_scan): Adjust tests.
1962 (bfd_mach_o_core_file_failing_command): Remove useless initialization.
1963
cb22ccf4
KCY
19642014-04-17 Kwok Cheung Yeung <kcy@codesourcery.com>
1965
1966 * elfxx-mips.c (struct mips_got_info): Delete assigned_gotno
1967 field. Add assigned_low_gotno and assigned_high_gotno fields.
1968 (mips_elf_create_local_got_entry): Update out-of-space condition.
1969 Set index of new GOT entry to assigned_low_gotno if required by
1970 the current relocation, else set it to assigned_high_gotno.
1971 (mips_elf_set_global_gotidx): Replace uses of assigned_gotno
1972 with assigned_low_gotno.
1973 (mips_elf_multi_got): Initialize assigned_low_gotno and
1974 assigned_high_gotno in secondary GOTs. Use assigned_low_gotno
1975 in place of assigned_gotno when handling global GOT entries.
1976 (mips_elf_lay_out_got): Initialize assigned_low_gotno and
1977 assigned_high_gotno.
1978 (_bfd_mips_elf_finish_dynamic_sections): Account for a possible
1979 gap in the middle of local GOT space.
1980
4c34aff8
AM
19812014-04-17 Alan Modra <amodra@gmail.com>
1982
1983 PR 16846
1984 * elflink.c (_bfd_elf_merge_symbol): Ignore TLS mismatch when
1985 current bfd is a plugin. Don't always set type_change_ok
1986 when old bfd is a plugin.
1987
12241a34
TG
19882014-04-16 Tristan Gingold <gingold@adacore.com>
1989
1990 * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Adjust cpusubtype
1991 flag.
1992
40fd06d1
AM
19932014-04-16 Alan Modra <amodra@gmail.com>
1994
1995 * elf32-ppc.c (ppc_elf_relocate_section): Fill 476 fixup area
1996 with "ba 0" rather than zeros.
1997
fa85fb9a
MS
19982014-04-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
1999
2000 * (elfNN_aarch64_tls_relax): Fix instruction mask.
2001
da3a2088
AM
20022014-04-14 Alan Modra <amodra@gmail.com>
2003
2004 * elf32-ppc.c (BA): Define
2005 (ppc_elf_link_hash_table_create): Correct default_params.
2006 (write_glink_stub): Pad small plt call stub with "ba 0" rather
2007 than "nop" for ppc476_workaround.
2008 (ppc_elf_finish_dynamic_sections): Likewise for branch table
2009 and __glink_PLTresolve. Ensure plt call stub at end of page
2010 doesn't allow fall-thru prefetch.
2011
32ae0d80
NC
20122014-04-11 Nick Clifton <nickc@redhat.com>
2013
2014 PR ld/16821
2015 * peXXigen.c (abs_finder): New function.
2016 (_bfd_XXi_swap_sym_out): For absolute symbols with values larger
2017 than 1^32 try to convert them into section relative values
2018 instead.
2019
85cf705b
NC
20202014-04-11 Nick Clifton <nickc@redhat.com>
2021
2022 * bfd-in2.h: Regenerate.
2023 * libbfd.h: Regenerate.
2024
1511baec
SL
20252014-04-10 Cesar Philippidis <cesar@codesourcery.com>
2026
2027 * elf32-nios2.c (nios2_elf32_build_stubs): Ignore dynobjs
2028 when building function stubs.
2029
e4ef1b6c
DC
20302014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2031
2032 * elf32-avr.c: Add DIFF relocations for AVR.
2033 (avr_final_link_relocate): Handle the DIFF relocs.
2034 (bfd_elf_avr_diff_reloc): New.
2035 (elf32_avr_is_diff_reloc): New.
2036 (elf32_avr_adjust_diff_reloc_value): Reduce difference value.
2037 (elf32_avr_relax_delete_bytes): Recompute difference after deleting
2038 bytes.
2039
2040 * reloc.c: Add BFD_RELOC_AVR_DIFF8/16/32 relocations
2041
e30d16e9
AM
20422014-04-09 Alan Modra <amodra@gmail.com>
2043
2044 * libcoff.h: Regenerate.
2045
b4ab4364
AM
20462014-04-09 Alan Modra <amodra@gmail.com>
2047
2048 * elf32-ppc.c (ppc_elf_relocate_section): Remove bctr from list
2049 of safe ppc476 insns at end of page. Also remove non-branch insns.
2050 Expand comments.
2051
6e6e7cfc 20522014-04-08 Jon Turney <jon.turney@dronecode.org.uk>
61e2488c
JT
2053
2054 * peXXigen.c (pe_print_debugdata): New function: Displays the
2055 contents of the debug directory and decodes codeview entries.
2056 (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out)
2057 (_bfd_XXi_slurp_codeview_record, _bfd_XXi_write_codeview_record):
2058 Add functions for reading and writing debugdir and codeview
2059 records.
2060 * libpei.h (_bfd_XXi_swap_debugdir_in, _bfd_XXi_swap_debugdir_out)
2061 (_bfd_XXi_write_codeview_record): Add prototypes and macros.
2062 * libcoff-in.h (pe_tdata): Add build-id data.
2063 * libcoff.h: Regenerate.
2064 * coffcode.h (coff_write_object_contents): Run build_id
2065 after_write_object_contents hook.
2066
115c6d5c
AM
20672014-04-05 Alan Modra <amodra@gmail.com>
2068
2069 * elflink.c (_bfd_elf_add_default_symbol): Pass poldbfd when
2070 merging non-default sym.
2071
26954155
TG
20722014-04-04 Tristan Gingold <gingold@adacore.com>
2073
2074 * mach-o.c (bfd_mach_o_header_p): Reject 64 bit target when not
2075 configured for.
2076
ca148c5a
TG
20772014-04-04 Tristan Gingold <gingold@adacore.com>
2078
2079 * mach-o.c (bfd_mach_o_convert_section_name_to_mach_o): Fix
2080 thinko on names length.
2081
47c50932
TG
20822014-04-04 Tristan Gingold <gingold@adacore.com>
2083
2084 * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_out): Use target index
2085 of output_section.
2086 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Ditto.
2087
4ef27e04
TG
20882014-04-04 Tristan Gingold <gingold@adacore.com>
2089
2090 * bfd.c (bfd_get_arch_size): Default is taken from arch.
2091
b69c8728
JT
20922014-04-03 Jon Turney <jon.turney@dronecode.org.uk>
2093
2094 * peXXigen.c (pe_print_edata): Verify edt.name lies inside
2095 section before dereferencing.
2096 (pe_print_idata, pe_print_edata, pe_print_reloc)
2097 (rsrc_print_section): Don't bother interpreting the contents
2098 of sections which have no contents.
2099
1b6aeedb
MG
21002014-04-03 Maria Guseva <m.guseva@samsung.com>
2101
2102 PR ld/16803
2103 * elf.c (_bfd_elf_set_section_contents): Use correct type to hold
2104 file position.
2105
707e555b
TG
21062014-04-03 Tristan Gingold <gingold@adacore.com>
2107
2108 * mach-o.c (bfd_mach_o_mangle_symbols): Use index from
2109 output_section.
2110 (bfd_mach_o_build_seg_command): Add comment. Realign segment.
2111 Fix style.
2112 (bfd_mach_o_build_commands, bfd_mach_o_read_thread): Fix style.
2113
c3fcb775
AM
21142014-04-03 Alan Modra <amodra@gmail.com>
2115
2116 * elf-bfd.h (struct elf_backend_data
2117 <elf_backend_bfd_from_remote_memory>): Replace "size_t size"
2118 with "bfd_size_type size".
2119 (_bfd_elf32_bfd_from_remote_memory): Likewise.
2120 (_bfd_elf64_bfd_from_remote_memory): Likewise.
2121 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
2122 * elfcode.h (bfd_from_remote_memory): Likewise.
2493504a
AM
2123 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Likewise.
2124 * bfd-in2.h: Regenerate.
c3fcb775 2125
7a79c514
TG
21262014-04-02 Tristan Gingold <gingold@adacore.com>
2127
2128 * mach-o.h (bfd_mach_o_twolevel_hints_command)
2129 (bfd_mach_o_prebind_cksum_command): New types.
2130 (bfd_mach_o_prebound_dylib_command): Rewrite.
2131 (bfd_mach_o_load_command): Add prebind_cksum and twolevel_hints
2132 fields.
2133 * mach-o.c (bfd_mach_o_read_prebound_dylib): Read and decode the
2134 command.
2135 (bfd_mach_o_read_prebind_cksum): New function.
2136 (bfd_mach_o_read_twolevel_hints): Ditto.
2137 (bfd_mach_o_read_command): Handle prebind cksum and twolevel hints
2138 commands.
2139
5979d6b6
AM
21402014-04-02 Alan Modra <amodra@gmail.com>
2141
2142 * elfcode.h (bfd_from_remote_memory): Add "size" parameter.
2143 Consolidate code handling possible section headers past end of
2144 segment. Don't use p_align for page size guess, instead use
2145 minpagesize. Take note of ld.so clearing section headers when
2146 p_memsz > p_filesz. Handle file header specifying no section
2147 headers. Handle zero p_align throughout. Default loadbase to
2148 zero. Add comments. Rename contents_size to high_offset, and
2149 make it a bfd_vma. Delete unnecessary bfd_set_error calls.
2150 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Update prototpe.
2151 * elf-bfd.h (struct elf_backend_data <elf_backend_from_remote_memory>):
2152 Likewise.
2153 (_bfd_elf32_bfd_from_remote_memory): Likewise.
2154 (_bfd_elf64_bfd_from_remote_memory): Likewise.
2155 * elf.c (bfd_elf_bfd_from_remote_memory): Adjust.
2156 * bfd-in2.h: Regnerate.
2157
23d72939
TG
21582014-04-01 Tristan Gingold <gingold@adacore.com>
2159
2160 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Avoid to crash
2161 when num == 0.
2162
6a631e86 21632014-03-27 Yury Gribov <y.gribov@samsung.com>
b4894562 2164 Pavel Fedin <p.fedin@samsung.com>
6a631e86 2165
b4894562 2166 * elf32-arm.c: Add support for limited pretty-printing of PLT
6a631e86
YG
2167 entries on eabi and nacl targets.
2168 (elf32_arm_get_synthetic_symtab): Add new callback.
b4894562
AM
2169 (elf32_arm_nacl_plt_sym_val): Likewise.
2170 (elf32_arm_plt0_size): Add helper function.
2171 (elf32_arm_plt_size): Likewise.
6a631e86 2172
10be66a4
TG
21732014-03-27 Tristan Gingold <gingold@adacore.com>
2174
2175 * mach-o.c (bfd_mach_o_read_dylinker): Remove assert.
2176 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DYLD_ENVIRONMENT.
2177
3cc27770
TG
21782014-03-27 Tristan Gingold <gingold@adacore.com>
2179
2180 * mach-o.h (bfd_mach_o_get_base_address): New prototype.
2181 * mach-o.c (bfd_mach_o_write_symtab)
2182 (bfd_mach_o_write_contents)
2183 (bfd_mach_o_set_section_flags_from_bfd)
2184 (bfd_mach_o_build_seg_command): Fix indentation.
2185 (bfd_mach_o_get_base_address): New function.
2186
55bfc9ac
NC
21872014-03-26 Nick Clifton <nickc@redhat.com>
2188
2189 * cofflink.c (_bfd_coff_generic_relocate_section): Skip
2190 relocations in discarded sections.
2191
d8028530
TG
21922014-03-26 Tristan Gingold <gingold@adacore.com>
2193
2194 * mach-o.c (bfd_mach_o_convert_architecture): Add
2195 BFD_MACH_O_CPU_TYPE_ARM64.
2196
f6c7c3e8
AM
21972014-03-26 Alan Modra <amodra@gmail.com>
2198
2199 * elf64-ppc.c (ppc64_elf_check_relocs): Account for possibly
2200 needed plt entries when taking the address of functions for
2201 abiversion == 0 (ie. unknown) as well as abiversion == 2.
2202 Move opd setup and abiversion checks to..
2203 (ppc64_elf_before_check_relocs): ..here. Renamed from
2204 ppc64_elf_process_dot_syms. Set output abiversion from input and
2205 input abiversion from output, if either is not set.
2206 (ppc64_elf_merge_private_bfd_data): Don't merge flags here.
2207 (elf_backend_check_directives): Update.
2208
c955de36
WN
22092014-03-25 Will Newton <will.newton@linaro.org>
2210
2211 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections):
2212 Set value of DT_PLTRELSZ and DT_RELASZ based on the size
2213 of input sections rather than output sections.
2214
97323ad1
WN
22152014-03-20 Will Newton <will.newton@linaro.org>
2216
2217 PR ld/16715
2218 * elf32-arm.c (elf32_arm_check_relocs): Set
2219 pointer_equality_needed for absolute references within
2220 executable links.
2221 (elf32_arm_finish_dynamic_symbol): Set st_value to zero
2222 unless pointer_equality_needed is set.
2223
1d63324c
NC
22242014-03-19 Nick Clifton <nickc@redhat.com>
2225
6caf7111
NC
2226 * peXXigen.c (rsrc_process_section): Add code to scan input
2227 sections and record their lengths. Use these lengths to find the
2228 start of each merged .rsrc section.
1d63324c 2229
fbe383b9
TG
22302014-03-17 Tristan Gingold <gingold@adacore.com>
2231
2232 * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib.
2233 (bfd_mach_o_read_command): Ditto.
2234
5a026fc9
NC
22352014-03-14 Meador Inge <meadori@codesourcery.com>
2236
b4894562
AM
2237 * configure.in: Add strnlen to AC_CHECK_DECLS.
2238 * config.in: Regenerate.
2239 * configure: Regenerate.
2240 * sysdep.h (strnlen): Add prototype.
5a026fc9 2241
c3301df1
AM
22422014-03-14 Alan Modra <amodra@gmail.com>
2243
2244 * elf32-ppc.c (ppc_elf_relocate_section): Correct overflow
2245 handling for VLE_SDA21 relocs.
2246
167ad85b
TG
22472014-03-13 Tristan Gingold <gingold@adacore.com>
2248
2249 * peicode.h (pe_ILF_object_p): Adjust, as the version number
2250 has been read.
2251 (pe_bfd_object_p): Also read version number to detect ILF.
2252 * pe-x86_64.c (COFF_WITH_PE_BIGOBJ): Define.
2253 (x86_64pe_bigobj_vec): Define
2254 * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_max_nscns field.
2255 (bfd_coff_max_nscns): New macro.
2256 (coff_compute_section_file_positions): Use unsigned int for
2257 target_index. Compare with bfd_coff_max_nscns.
2258 (bfd_coff_std_swap_table, ticoff0_swap_table, ticoff1_swap_table):
2259 Set a value for _bfd_coff_max_nscns.
2260 (header_bigobj_classid): New constant.
2261 (coff_bigobj_swap_filehdr_in, coff_bigobj_swap_filehdr_out)
2262 (coff_bigobj_swap_sym_in, coff_bigobj_swap_sym_out)
2263 (coff_bigobj_swap_aux_in, coff_bigobj_swap_aux_out): New
2264 functions.
2265 (bigobj_swap_table): New table.
2266 * libcoff.h: Regenerate.
2267 * coff-sh.c (bfd_coff_small_swap_table): Likewise.
2268 * coff-alpha.c (alpha_ecoff_backend_data): Add value for
2269 _bfd_coff_max_nscns.
2270 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2271 * coff-rs6000.c (bfd_xcoff_backend_data)
2272 (bfd_pmac_xcoff_backend_data): Likewise.
2273 * coff64-rs6000.c (bfd_xcoff_backend_data)
2274 (bfd_xcoff_aix5_backend_data): Likewise.
2275 * targets.c (x86_64pe_bigobj_vec): Declare.
2276 * configure.in (x86_64pe_bigobj_vec): New vector.
2277 * configure: Regenerate.
2278 * config.bfd: Add bigobj object format for Windows targets.
2279
c792917c
NC
22802014-03-12 Nick Clifton <nickc@redhat.com>
2281
2282 PR ld/16671
2283 * elf32-arm.c (elf32_arm_add_symbol_hook): Check for ARM format
2284 before testing for vxworks.
2285
fa47fa92
AM
22862014-03-12 Alan Modra <amodra@gmail.com>
2287
2288 * Makefile.in: Regenerate.
2289
bbefd0a9
AM
22902014-03-12 Alan Modra <amodra@gmail.com>
2291
2292 PR 16690
2293 * elf.c (copy_elf_program_header): Ignore first section lma if
2294 non-alloc.
2295
3c865fca
AM
22962014-03-11 Alan Modra <amodra@gmail.com>
2297
2298 PR 16686
2299 * coff-rs6000.c: Include stdint.h.
2300 * coff64-rs6000.c: Likewise.
2301
ce15efd8
TG
23022014-03-10 Tristan Gingold <gingold@adacore.com>
2303
2304 * ticoff.h: Removed.
2305
86c95733
AM
23062014-03-08 Alan Modra <amodra@gmail.com>
2307
2308 * elf32-ppc.c (ppc_elf_howto_raw): Correct overflow check for
2309 many relocations. Correct bitsize and rightshift too for a number
2310 of VLE relocs. Describe R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO.
2311 Correct dst_mask on R_PPC_VLE_SDA21_LO.
2312 (ppc_elf_vle_split16): Tidy, delete unnecessary prototype.
2313 (ppc_elf_relocate_section): Modify overflow test for 16-bit
2314 fields in instructions to signed/unsigned according to whether
2315 the field takes a signed or unsigned value. Tidy vle split16 code.
2316 Correct R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO handling.
2317
b80eed39
AM
23182014-03-08 Alan Modra <amodra@gmail.com>
2319
2320 * elf64-ppc.c (ppc64_elf_howto_raw): Use complain_overflow_signed
2321 for R_PPC64_ADDR14, R_PPC64_ADDR14_BRTAKEN, R_PPC64_ADDR14_BRNTAKEN,
2322 R_PPC64_SECTOFF, R_PPC64_ADDR16_DS, R_PPC64_SECTOFF_DS,
2323 R_PPC64_REL16 entries. Use complain_overflow_dont for R_PPC64_TOC.
2324 (ppc64_elf_relocate_section): Modify overflow test for 16-bit
2325 fields in instructions to signed/unsigned according to whether
2326 the field takes a signed or unsigned value.
2327
c38e8559
PA
23282014-03-07 Pedro Alves <palves@redhat.com>
2329
5893c83a 2330 PR gdb/16696
c38e8559
PA
2331 * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma
2332 through ptr_to_uint instead of through long.
2333
e9847026
NC
23342014-03-06 Nick Clifton <nickc@redhat.com>
2335
2336 PR 16664
2337 * elf-attrs.c (_bfd_elf_parse_attributes): Add checks for corrupt
2338 attribute section names.
2339
4b95cf5c
AM
23402014-03-05 Alan Modra <amodra@gmail.com>
2341
2342 Update copyright years.
2343
45965137
AM
23442014-03-05 Alan Modra <amodra@gmail.com>
2345
2346 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_ADDR64_LOCAL entry.
2347 (ppc64_elf_reloc_type_lookup): Support R_PPC64_ADDR64_LOCAL.
2348 (ppc64_elf_check_relocs): Likewise.
2349 (ppc64_elf_relocate_section): Likewise.
2350 * Add BFD_RELOC_PPC64_ADDR64_LOCAL.
2351 * bfd-in2.h: Regenerate.
2352 * libbfd.h: Regenerate.
2353
cd0c81e9 23542014-03-04 Heiher <r@hev.cc>
4ba154f5
RS
2355
2356 * elfxx-mips.c (mips_set_isa_flags): Use E_MIPS_ARCH_64R2 for
2357 Loongson-3A.
2358 (mips_mach_extensions): Make bfd_mach_mips_loongson_3a an
2359 extension of bfd_mach_mipsisa64r2.
2360
eed94f8f
NC
23612014-03-04 Nick Clifton <nickc@redhat.com>
2362
2363 PR ld/16017
2364 * elf32-arm.c (elf32_thumb2_plt0_entry): New array.
2365 (elf32_thumb2_plt_entry): New array.
2366 (elf32_arm_create_dynamic_sections): Set PLT entry sizes when
2367 using thumb2 based PLT.
2368 (elf32_arm_populate_plt_entry): Handle generating Thumb2 based PLT
2369 entries.
2370 (elf32_arm_final_link_relocate): Do not bias jumps to Thumb based
2371 PLT entries.
2372 (elf32_arm_finish_dynamic_sections): Handle creation of Thumb2
2373 based PLT 0-entry.
2374 (elf32_arm_output_plt_map_1): Handle creation of local symbols for
2375 Thumb2 based PLT 0-entry.
2376 (elf32_arm_output_arch_local_syms): Handle creation of local
2377 symbols for Thumb2 based PLT entries.
2378
9850436d
AM
23792014-02-28 Alan Modra <amodra@gmail.com>
2380
2381 PR ld/16643
2382 * elflink.c (elf_gc_sweep): Call gc_sweep_hook for exactly
2383 the same conditions we called check_relocs.
2384
1db37fe6
YG
23852014-02-27 Yuri Gribov <y.gribov@samsung.com>
2386
2387 * bfd-in.h: Add export of bfd_elf32_arm_use_long_plt.
2388 * bfd-in2.h: Regenerate.
2389 * elf32-arm.c (elf32_arm_plt_entry_long): New array.
2390 (elf32_arm_link_hash_table_create): Set plt_entry_size to 16 if
2391 using long PLT entries.
2392 (bfd_elf32_arm_use_long_plt): New function.
2393 (elf32_arm_populate_plt_entry): Add support for long PLT entries.
2394
db434ba0
AM
23952014-02-27 Alan Modra <amodra@gmail.com>
2396
2397 * elf32-ppc.c (ppc_elf_link_hash_table_create): Provide default
2398 params for targets that don't use ppc32elf.em.
2399
d9972968
CLT
24002014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
2401
2402 * elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation
2403 of GOTOFF relocations.
2404
0ff2b86e
L
24052014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
2406 H.J. Lu <hongjiu.lu@intel.com>
2407
2408 * elf64-x86-64.c (elf_x86_64_bnd_plt0_entry): New.
2409 (elf_x86_64_legacy_plt_entry): Likewise.
2410 (elf_x86_64_bnd_plt_entry): Likewise.
2411 (elf_x86_64_legacy_plt2_entry): Likewise.
2412 (elf_x86_64_bnd_plt2_entry): Likewise.
2413 (elf_x86_64_bnd_arch_bed): Likewise.
2414 (elf_x86_64_link_hash_entry): Add has_bnd_reloc and plt_bnd.
2415 (elf_x86_64_link_hash_table): Add plt_bnd.
2416 (elf_x86_64_link_hash_newfunc): Initialize has_bnd_reloc and
2417 plt_bnd.
2418 (elf_x86_64_copy_indirect_symbol): Also copy has_bnd_reloc.
2419 (elf_x86_64_check_relocs): Create the second PLT for Intel MPX
2420 in 64-bit mode.
2421 (elf_x86_64_allocate_dynrelocs): Handle the second PLT for IFUNC
2422 symbols. Resolve call to the second PLT if it is created.
2423 (elf_x86_64_size_dynamic_sections): Keep the second PLT section.
2424 (elf_x86_64_relocate_section): Resolve PLT references to the
2425 second PLT if it is created.
2426 (elf_x86_64_finish_dynamic_symbol): Use BND PLT0 and fill the
2427 second PLT entry for BND relocation.
2428 (elf_x86_64_finish_dynamic_sections): Use MPX backend data if
2429 the second PLT is created.
2430 (elf_x86_64_get_synthetic_symtab): New.
2431 (bfd_elf64_get_synthetic_symtab): Likewise. Undefine for NaCl.
2432
7d4c687d
AM
24332014-02-19 Alan Modra <amodra@gmail.com>
2434
2435 * elf64-ppc.h (struct ppc64_elf_params): Add save_restore_funcs.
2436 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Use it to control
2437 provision of out-of-line register save/restore routines.
2438
5db3e65d
JC
24392014-02-18 Jack Carter <jack.carter@imgtec.com>
2440
b4894562
AM
2441 * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of
2442 PT_DYNAMIC segment flags.
5db3e65d 2443
024a2310
JK
24442014-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2445
2446 PR binutils/16595
2447 * simple.c (struct saved_offsets): New.
2448 (simple_save_output_info): Use it for ptr.
2449 (simple_restore_output_info): Use it for ptr. Check section_count.
2450 (bfd_simple_get_relocated_section_contents): Use it for saved_offsets.
2451
e7d1c40c
AM
24522014-02-17 Alan Modra <amodra@gmail.com>
2453
2454 * elf64-ppc.h (struct ppc64_elf_params): Define.
2455 (ppc64_elf_init_stub_bfd, ppc64_elf_edit_opd, ppc64_elf_tls_setup,
2456 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
2457 ppc64_elf_build_stubs): Update prototype.
2458 * elf64-ppp.c (struct ppc_link_hash_table): Add params, delete other
2459 fields now in params. Adjust code throughout file.
2460 (ppc64_elf_init_stub_bfd): Delete "abfd" parameter, add "params".
2461 Save params pointer in htab.
2462 (ppc64_elf_edit_opd, ppc64_elf_tls_setup,
2463 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
2464 ppc64_elf_build_stubs): Remove parameters now in "params".
2465
668e22e5
AM
24662014-02-17 Alan Modra <amodra@gmail.com>
2467
2468 * elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns
2469 patched for ppc476 workaround. Reapply branch taken/not taken
2470 relocs.
2471
9f7552cf
AM
24722014-02-12 Alan Modra <amodra@gmail.com>
2473
2474 * elf32-ppc.c (ppc_elf_relax_section): Don't build long-branch
2475 stubs for calls to __tls_get_addr that we know will later be
2476 optimised away.
2477
795bc6b3
AM
24782014-02-12 Alan Modra <amodra@gmail.com>
2479
2480 * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround
2481 for ld -r, when code sections are sufficiently aligned.
2482 * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add
2483 pagesize_p2.
2484
b407645f
AM
24852014-02-12 Alan Modra <amodra@gmail.com>
2486
2487 PR gold/15530
2488 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
2489 --export-dynamic and --dynamic-list marking of symbols.
2490 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Reorder
2491 cheap tests first.
2492
d6f6f455
L
24932014-02-10 H.J. Lu <hongjiu.lu@intel.com>
2494
2495 PR gold/16530
2496 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark symbol in
2497 executables if it matches dynamic_list.
2498
c1c69e83
AM
24992014-02-10 Alan Modra <amodra@gmail.com>
2500
2501 * po/SRC-POTFILES.in: Regenerate.
2502 * po/bfd.pot: Regenerate.
2503
53291d1f
AM
25042014-02-09 Alan Modra <amodra@gmail.com>
2505
2506 * elf-bfd.h (struct elf_backend_data): Add caches_rawsize.
2507 * elfxx-target.h (elf_backend_caches_rawsize): Define.
2508 (elfNN_bed): Init new field.
2509 * elflink.c (elf_link_input_bfd): Handle caches_rawsize.
2510 * elf32-ppc.c (shared_stub_entry): Zero addi offset.
2511 (ppc_elf_relax_section): Don't reallocate section here, write
2512 stubs, or write out relocs for ld -r here..
2513 (ppc_elf_relocate_section): ..instead write stubs here, and use
2514 existing code to write out relocs for ld -r. Fix offset
2515 adjustment on reloc for little-endian.
2516 (elf_backend_caches_rawsize): Define.
2517
d1eb5696
RO
25182014-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2519
85773039 2520 PR build/16550
d1eb5696
RO
2521 * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
2522
2915c55b
JK
25232014-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in
2526 return paths. Three times.
2527 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all
2528 return paths.
2529 (ppc64_elf_tls_optimize): Free TOC_REF in return path.
2530 (ppc64_elf_edit_toc): Free USED in return path.
2531
1c2de463
SL
25322014-02-03 Sandra Loosemore <sandra@codesourcery.com>
2533
2534 * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New.
2535 (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New.
2536 * libbfd.h: Regenerated.
2537 * bfd-in2.h: Regenerated.
2538 * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations.
2539 (nios2_reloc_map): Likewise.
2540 (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED.
2541 Fixed all references.
2542 (nios2_elf32_relocate_section): Add new relocations.
2543 (nios2_elf32_check_relocs): Likewise.
2544 (nios2_elf32_gc_sweep_hook): Likewise.
2545
5446cbdf
AM
25462014-02-03 Alan Modra <amodra@gmail.com>
2547
2548 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add params.
2549 Delete emit_stub_syms, no_tls_get_addr_opt. Update all uses.
2550 (ppc_elf_link_params): New function.
2551 (ppc_elf_create_glink): Align .glink to 64 bytes for ppc476
2552 workaround.
2553 (ppc_elf_select_plt_layout): Remove plt_style and emit_stub_syms
2554 parameters. Use htab->params instead.
2555 (ppc_elf_tls_setup): Remove no_tls_get_addr_opt parameter.
2556 (ppc_elf_size_dynamic_sections): Align __glink_PLTresolve to
2557 64 bytes for ppc476 workaround.
2558 (struct ppc_elf_relax_info): New.
2559 (ppc_elf_relax_section): Exclude linker created sections and
2560 those too small to hold one instruction. Don't add another
cd3416da 2561 branch around trampolines on later relax passes. Don't
5446cbdf
AM
2562 generate trampolines for undefined symbols when !relocatable,
2563 nor for plugin symbols. Allocate space for ppc476 workaround
2564 patch area. Free fixups on error return path.
2565 (ppc_elf_relocate_section): Handle ppc476 workaround patching.
2566 * elf32-ppc.h (struct ppc_elf_params): New.
2567 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Update prototype.
2568 (ppc_elf_link_params): Declare.
2569 * section.c (SEC_INFO_TYPE_TARGET): Define.
2570 * bfd-in2.h: Regenerate.
2571
82e91538
SL
25722014-02-02 Sandra Loosemore <sandra@codesourcery.com>
2573
2574 * elf32-nios2.c (struct elf32_nios2_link_hash_table): Add
2575 h_gp_got field.
2576 (nios2_elf32_relocate_section): Use got_base to adjust
2577 GOT-pointer-relative relocations relative to _gp_got.
2578 (create_got_section): Create _gp_got symbol.
2579 (nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute.
2580 (nios2_elf32_size_dynamic_sections): Set _gp_got offset.
2581
78058a5e
SL
25822014-01-30 Sandra Loosemore <sandra@codesourcery.com>
2583
2584 * bfd-in2.h: Update from reloc.c.
2585 * elf32-nios2.c: Include elf32-nios2.h.
2586 (elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT.
2587 (nios2_reloc_map): Likewise.
2588 (enum elf32_nios2_stub_type): Declare.
2589 (struct elf32_nios2_stub_hash_entry): Declare.
2590 (nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros.
2591 (struct elf32_nios2_link_hash_entry): Add hsh_cache field.
2592 (struct elf32_nios2_link_hash_table): Add new fields bstab,
2593 stub_bfd, add_stub_section, layout_sections_again, stub_group,
2594 bfd_count, top_index, input_list, all_local_syms.
2595 (nios2_call26_stub_entry): New.
2596 (nios2_elf32_install_imm16): Move up in file.
2597 (nios2_elf32_install_data): Move up in file.
2598 (hiadj): Move up in file.
2599 (stub_hash_newfunc): New.
2600 (link_hash_newfunc): Initialize hsh_cache field.
2601 (STUB_SUFFIX): New.
2602 (nios2_stub_name): New.
2603 (nios2_get_stub_entry): New.
2604 (nios2_add_stub): New.
2605 (nios2_elf32_setup_section_lists): New.
2606 (nios2_elf32_next_input_section): New.
2607 (CALL26_SEGMENT): New.
2608 (MAX_STUB_SECTION_SIZE): New.
2609 (group_sections): New.
2610 (nios2_type_of_stub): New.
2611 (nios2_build_one_stub): New.
2612 (nios2_size_one_stub): New.
2613 (get_local_syms): New.
2614 (nios2_elf32_size_stubs): New.
2615 (nios2_elf32_build_stubs): New.
2616 (nios2_elf32_do_call26_relocate): Correct CALL26 overflow test.
2617 (nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add
2618 trampolines for R_NIOS2_CALL26 stubs.
2619 (nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT.
2620 (nios2_elf32_gc_sweep_hook): Likewise.
2621 (nios2_elf32_link_hash_table_create): Initialize the stub hash table.
2622 (nios2_elf32_link_hash_table_free): New.
2623 (bfd_elf32_bfd_link_hash_table_free): Define.
2624 * elf32-nios2.h: New file.
2625 * libbfd.h: Update from reloc.c.
2626 * reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New.
2627
df3ce959
NC
26282014-01-29 Nick Clifton <nickc@redhat.com>
2629
2630 PR binutils/16318
2631 * elf32-metag.c (elf_metag_post_process_headers): Call
2632 _bfd_elf_post_process_headers.
2633 * elf32-sh64.c (sh64_elf_copy_private_data): Call
2634 _bfd_elf_copy_private_data.
2635 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
2636
27b829ee
NC
26372014-01-29 Nick Clifton <nickc@redhat.com>
2638
2639 * bfd-in.h (bfd_set_section_vma): Delete.
2640 (bfd_set_section_alignment): Delete.
2641 (bfd_set_section_userdata): Delete.
2642 (bfd_set_cacheable): Delete.
2643 * bfd.c (bfd_set_cacheable): New static inline function.
2644 * section.c (bfd_set_section_userdata): Likewise.
2645 (bfd_set_section_vma): Likewise.
2646 (bfd_set_section_alignment): Likewise.
2647 * bfd-in2.h: Regenerate.
2648
0a9c7b2b
NC
26492014-01-28 Nick Clifton <nickc@redhat.com>
2650
2651 * dwarf2.c (find_abstract_instance_name): For DW_FORM_ref_addr
2652 attributes select the CU containing the abbreviation, which may not
2653 be the current CU.
2654
3ba720c7
AM
26552014-01-24 Alan Modra <amodra@gmail.com>
2656
2657 * elf64-ppc.c (ppc_build_one_stub): Correct reloc count passed
2658 to get_relocs for ELFv2.
2659
d923cae0
L
26602014-01-23 H.J. Lu <hongjiu.lu@intel.com>
2661
2662 PR ld/16498
3ba720c7 2663 * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error
d923cae0
L
2664 if TLS sections are not adjacent.
2665
16e4ecc0
AM
26662014-01-22 Alan Modra <amodra@gmail.com>
2667
2668 * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed.
2669
eb8d7fda
AM
26702014-01-22 Alan Modra <amodra@gmail.com>
2671
2672 * elf64-ppc.c (STK_LINKER): Comment typo fix.
2673
4584ec12
L
26742014-01-21 H.J. Lu <hongjiu.lu@intel.com>
2675
2676 PR ld/16467
2677 * elflink.c (_bfd_elf_merge_symbol): When types of the existing
2678 regular default symbol definition and the versioned dynamic
2679 symbol definition mismatch, skip the default symbol definition
2680 if one of them is IFUNC.
2681
22ef172a
L
26822014-01-21 H.J. Lu <hongjiu.lu@intel.com>
2683
2684 PR ld/2404
2685 * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared,
2686 info->export_dynamic nor h->ref_dynamic for type mismatch when
2687 adding the default version.
2688
b75d42bc
AM
26892014-01-16 Alan Modra <amodra@gmail.com>
2690
2691 * elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a
2692 mips_elf_traverse_got_arg* rather than mips_got_info*.
2693 Adjust caller. Alloc on output_bfd rather than symbol section
2694 owner.
2695
c353e543
L
26962014-01-15 H.J. Lu <hongjiu.lu@intel.com>
2697
2698 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
2699 change.
2700 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2701
818d220a
L
27022014-01-14 H.J. Lu <hongjiu.lu@intel.com>
2703
2704 PR ld/16428
2705 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't discard relocs
2706 against __ehdr_start.
2707 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2708
c3ce498c
L
27092014-01-14 H.J. Lu <hongjiu.lu@intel.com>
2710
2711 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
2712 change.
2713 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2714
d1ec1e40
L
27152014-01-14 H.J. Lu <hongjiu.lu@intel.com>
2716
2717 PR ld/16428
2718 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't update reloc
2719 count if there are any non pc-relative relocs.
2720 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2721
f44a1f8e
CL
27222014-01-14 Michael Hudson-Doyle <michael.hudson@linaro.org>
2723 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2724
2725 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use correct
2726 offset while calculating relocation address.
2727 (elfNN_aarch64_create_small_pltn_entry): Likewise.
2728 (elfNN_aarch64_init_small_plt0_entry): Likewise.
2729
fd0fd00c
MJ
27302014-01-13 Ma Jiang <ma.jiang@zte.com.cn>
2731
2732 PR ld/16202
2733 * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for
2734 R_ARM_ABS8 and R_ARM_ABS16.
2735
aa726b9e
AM
27362014-01-13 Alan Modra <amodra@gmail.com>
2737
2738 * elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc,
2739 error when shared and force a plt call otherwise.
2740 (ppc_elf_size_dynamic_sections): Don't emit DT_PPC_GOT unless
2741 plt_type == PLT_NEW.
2742 (ppc_elf_relocate_section): Add missing test to resolve ifuncs to
2743 the appropriate call stub.
2744
eec2f3ed
AM
27452014-01-10 Alan Modra <amodra@gmail.com>
2746
2747 PR ld/14207
2748 PR ld/16322
2749 PR binutils/16323
2750 * elf.c (assign_file_positions_for_load_sections): Revert last change.
2751 (assign_file_positions_for_non_load_sections): When setting up
2752 PT_GNU_RELRO header, don't require a corresponding PT_LOAD
2753 header that completely covers the relro region.
2754
09bf66a8
TG
27552014-01-09 Tristan Gingold <gingold@adacore.com>
2756
2757 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): use jump
2758 table macros and add macros to initializa the structure.
2759
43a8475c
L
27602014-01-08 H.J. Lu <hongjiu.lu@intel.com>
2761
2762 PR ld/14207
2763 PR ld/16322
2764 PR binutils/16323
2765 * elf.c (_bfd_elf_map_sections_to_segments): Don't check section
2766 size for PT_GNU_RELRO segment.
2767 (assign_file_positions_for_load_sections): If PT_LOAD segment
2768 doesn't fit PT_GNU_RELRO segment, adjust its p_filesz and p_memsz.
2769
1651e569
TT
27702014-01-07 Tom Tromey <tromey@redhat.com>
2771
2772 * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
2773 wrappers.
2774
dc9155b2
NC
27752014-01-03 Nick Clifton <nickc@redhat.com>
2776
2777 PR binutils/16199
2778 * elf.c (vma_page_aligned_bias): Handle a maxpagesize value of
2779 zero.
2780
dd8dfa39 27812014-01-02 Yuanhui Zhang <asmwarrior@gmail.com>
044387af
A
2782
2783 PR binutils/14289
2784 * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.
2785
1be5090b
NC
27862014-01-02 Nick Clifton <nickc@redhat.com>
2787
2788 PR binutils/11983
2789 * archive.c (_bfd_get_elt_at_filepos): Store a copy of the
2790 filename in the bfd's filename field.
2791 * elfcode.h (bfd_from_remote_memory): Likewise.
2792 * ieee.c (ieee_object_p): Likewise.
2793 * mach-o.c (bfd_mach_o_fat_member_init): Likewise.
2794 * oasys.c (oasys_openr_next_archived_file): Likewise.
2795 * vms-lib.c (_bfd_vms_lib_get_module): Likewise.
2796 * opncls.c (bfd_fopen): Likewise.
2797 (bfd_openstreamr): Likewise.
2798 (bfd_openr_iovec): Likewise.
2799 (bfd_openw): Likewise.
2800 (bfd_create): Likewise.
2801 (_bfd_delete_bfd): Free filename.
2802
5fb776a6 2803For older changes see ChangeLog-2013
56882138 2804\f
5fb776a6 2805Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
2806
2807Copying and distribution of this file, with or without modification,
2808are permitted in any medium without royalty provided the copyright
2809notice and this notice are preserved.
2810
56882138
AM
2811Local Variables:
2812mode: change-log
2813left-margin: 8
2814fill-column: 74
2815version-control: never
2816End:
This page took 0.844847 seconds and 4 git commands to generate.