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