2007-08-14 Michael Snyder <msnyder@access-company.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3fec76aa
JK
12007-08-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now
4 initialized only on the first PT_LOAD. New variable LOADBASE_SET.
5 Removed PF_R checking for IA-64 vDSOs as redundant now.
6 Code advisory: Roland McGrath
7
8275b357
RS
82007-08-13 Richard Sandiford <richard@codesourcery.com>
9
10 * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
11 (mips_elf_record_global_got_symbol): Increment local_gotno for
12 each forced-local symbol.
13 (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
14 mips_elf_record_global_got_symbol for VxWorks too.
15 (_bfd_mips_elf_always_size_sections): Set computed_got_sizes
16 to true after computing the GOT size.
17 (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
18 got.offset == 1. Only adjust global_gotno if computed_got_sizes.
19 For VxWorks, add a local entry when hiding a symbol that needs a
20 plt but has not been marked as needing a global got entry.
21 (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
22 false.
23
649aeae3
DJ
242007-08-12 Daniel Jacobowitz <dan@codesourcery.com>
25
26 * coffgen.c (coff_get_normalized_symtab): Correct cast.
27
3dea8fca
AM
282007-08-13 Alan Modra <amodra@bigpond.net.au>
29
30 * elf.c (elf_modify_segment_map): Add remove_empty_load param.
31 Don't remove empty PT_LOAD header if false.
32 (_bfd_elf_map_sections_to_segments): If user phdrs, pass false
33 to elf_modify_segment_map.
34 (assign_file_positions_for_load_sections): Pass false to
35 elf_modify_segment_map.
36
ac2df442
AM
372007-08-13 Alan Modra <amodra@bigpond.net.au>
38
39 * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define.
40 Update stub comments.
41 (build_plt_stub): Build two variants, one without "addis".
42 (ppc_build_one_stub): Build stubs without "addis" if possible.
43 (ppc_size_one_stub): Size new stubs.
44
2f964f43
RS
452007-08-11 Richard Sandiford <richard@codesourcery.com>
46
47 * config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
48
6b8f0fd5
MS
492007-08-09 Michael Snyder <msnyder@access-company.com>
50
51 * aoutx.h (aout_get_external_symbols): Return if count is zero.
52
6d33f217
L
532007-08-09 H.J. Lu <hongjiu.lu@intel.com>
54
55 PR ld/4909
56 * elf.c (print_segment_map): New function.
57 (assign_file_positions_for_load_sections): Call print_segment_map
58 when a section can't be allocated in segment.
59
c309eac2
JK
602007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
63
e6902efc
NC
642007-08-07 Nick Clifton <nickc@redhat.com>
65
66 * po/bfd.pot: Updated template.
67 * po/BLD-POTFILES.in: Regenerate.
68
d5191d0c
AM
692007-08-07 Alan Modra <amodra@bigpond.net.au>
70
71 * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle
72 bss segments.
73
5eda1c47
DJ
742007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
75
76 * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h.
77 * Makefile.in: Regenerated.
78
be118e79
DJ
792007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
80
81 * configure.in: Update version to 2.18.50.
82 * configure: Regenerated.
83
bd97cb95
DJ
842007-08-06 Paul Brook <paul@codesourcery.com>
85
86 * elf32-arm.c (elf32_arm_link_hash_entry): Add
87 plt_maybe_thumb_refcount.
88 (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
89 (elf32_arm_copy_indirect_symbol): Ditto.
90 (elf32_arm_adjust_dynamic_symbol): Ditto.
91 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
92 (arm_add_to_rel): Ditto.
93 (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
94 R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub.
95 (elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts
96 for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
97 (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
98 and R_ARM_THM_JUMP19.
99 (allocate_dynrelocs): Use plt_maybe_thumb_refcount.
100 (elf32_arm_finish_dynamic_symbol): Ditto.
101 (elf32_arm_output_plt_map): Ditto.
102
c981028a
DJ
1032007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
104
105 * elf.c (rewrite_elf_program_header): Handle sections not sorted
106 by address.
107 (copy_elf_program_header): Likewise.
108
f7231afc
L
1092007-08-04 H.J. Lu <hongjiu.lu@intel.com>
110
111 * elf-bfd.h (xvec_get_elf_backend_data): Add const.
112
113 * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
114 * elfcore.h (elf_core_file_p): Likewise.
115
bd33be6e
L
1162007-08-02 H.J. Lu <hongjiu.lu@intel.com>
117
118 * coffcode.h (ALIGN_SET): Removed.
119 (ELIFALIGN_SET): Likewise.
120 (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
121 IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
122 IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
123 IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
124
dcf6c779
MS
1252007-08-01 Michael Snyder <msnyder@access-company.com>
126
9b0ec667
MS
127 * vms-tir.c (new_section): Fix cut and paste error.
128
20c6e70e
MS
129 * aoutx.h (aout_link_add_symbols): Return if count is zero.
130
dcf6c779
MS
131 * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
132 pointer must be non-null.
133
e708816d
NC
1342007-08-01 Tristan Gingold <gingold@adacore.com>
135
136 * coffcode.h (coff_sort_func_alent): New function.
137 (coff_slurp_line_table): Sort line table if not already sorted.
138
55b581a6
JJ
1392007-08-01 Jakub Jelinek <jakub@redhat.com>
140
141 * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
142 GCC 3.4.x warning.
143
ad756e3f
AM
1442007-08-01 Alan Modra <amodra@bigpond.net.au>
145
146 * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
147 r_type.
148 (swap_std_reloc_in): Likewise.
149 (aout_link_input_section_std): Likewise. Return with an error
150 on unexpected relocation type.
151 (aout_link_input_section_ext): Likewise.
152
f6e688f7
AM
1532007-08-01 Alan Modra <amodra@bigpond.net.au>
154
155 PR4694
156 * aoutx.h (final_link): Write a zero in first word of
157 stringtab if no symbols rather than corrupting last byte
158 of text/data.
159
1c5265b5
JJ
1602007-07-31 Jakub Jelinek <jakub@redhat.com>
161
162 * elf.c (get_program_header_size): Adjacent loadable .note*
163 sections need just one PT_NOTE segment.
164 (_bfd_elf_map_sections_to_segments): Likewise.
165
9ee2139f
MS
1662007-07-30 Michael Snyder <msnyder@access-company.com>
167
168 * coffgen.c (_bfd_coff_read_internal_relocs): Revert change of
169 2007-07-26. Buffer still in use, can't be freed.
170
c6aa130f
MS
1712007-07-27 Michael Snyder <msnyder@access-company.com>
172
d63388ff
MS
173 * cofflink.c (coff_link_add_symbols): Return if count is zero.
174
50a39e97
MS
175 * coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
176
87b32780
MS
177 * aoutx.h (slurp_symbol_table): Return if count == 0.
178
9d7038d3
MS
179 * coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
180
c6aa130f
MS
181 * elf32-i386.c (elf_i386_check_relocs): Check for null pointer.
182
170bfeb9
L
1832007-07-27 H.J. Lu <hongjiu.lu@intel.com>
184
185 * config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec.
186
507f5898
MS
1872007-07-26 Michael Snyder <msnyder@access-company.com>
188
189 * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
a6626e8c
MS
190
191 * linker.c (bfd_section_already_linked_table_insert): Change
192 return type from void to boolean. Return FALSE on failure.
193 (_bfd_generic_section_already_linked): Test return value of
194 bfd_section_already_linked_table_insert, call fatal on error.
195
196 * elflink.c (_bfd_elf_section_already_linked): Test return value
197 of bfd_section_already_linked_table_insert, call fatal on error.
198
199 * libbfd-in.h (bfd_section_already_linked_table_insert): Update
200 return type to bfd_boolean.
201
202 * libbfd.h: Regenerate.
203
36e44abd
AN
2042007-07-26 Adam Nemet <anemet@caviumnetworks.com>
205
206 * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap,
207 bfd_slurp_armap): Improve function comment.
208
b7fd5ce1
MS
2092007-07-26 Michael Snyder <msnyder@access-company.com>
210
2d4f3e92
MS
211 * linker.c (already_linked_newfunc): Check for NULL return from
212 bfd_hash_allocate.
213
ac38308c
MS
214 * coffgen.c (fixup_symbol_value): Guard against null;
215 bfd_is_com_section will dereference the section pointer.
216
c82a7c57
MS
217 * syms.c (bfd_decode_symclass): Guard against NULL, since
218 bfd_is_com_section dereferences the pointer.
219
3d7b34d8
MS
220 * srec.c (srec_scan): Check for EOF (critical because return value
221 will be used as array index).
222
44c62d9e
MS
223 * coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
224 are not to be cached, free the temporary buffer.
225
078c4bfc
MS
226 * aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero
227 or count == zero.
228
814b5378
MS
229 * tekhex.c (first_phase): Check return value for null.
230
b7fd5ce1
MS
231 * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
232 pointer increment.
233
b9da616a
AM
2342007-07-26 Alan Modra <amodra@bigpond.net.au>
235
33774f08
AM
236 * elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
237 check on dynobj. Remove bed shadow.
238
e62071b6
AM
239 * srec.c (srec_get_section_contents): Return immediately on
240 count zero. Check that offset and count are within section.
241 * libbfd.c (_bfd_generic_get_section_contents): Check that
242 offset + count does not overflow.
243
b9da616a
AM
244 * srec.c (srec_canonicalize_symtab): Don't alloc when symcount
245 is zero. Correct return value on error.
246 * mmo.c (mmo_canonicalize_symtab): Likewise.
247 * binary.c (binary_canonicalize_symtab) Correct return on error.
248
c2c96631
TS
2492007-07-26 Thiemo Seufer <ths@mips.com>
250
251 * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL.
252
d4947150
AM
2532007-07-26 Alan Modra <amodra@bigpond.net.au>
254
255 * reloc.c (bfd_generic_get_relocated_section_contents): Avoid
256 bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
257 says there are no relocs.
258
bd210d54 2592007-07-26 Doug Kwan <dougkwan@google.com>
d4947150 260
bd210d54
NC
261 Speed up bfd_dwarf2_find_line.
262 * dwarf2.c (struct dwarf2_debug): Add new fields to support function
263 and variable info hash tables. Add last_comp_unit, info_hash_count,
264 funcinfo_hash_table, varinfo_hash_table, hash_units_head.
265 (struct comp_unit): Add prev_unit, cached.
266 (struct info_list_node, struct info_hash_entry,
267 struct info_hash_table): New.
268 (info_hash_table_newfunc, create_info_hash_table,
269 insert_info_hash_table, lookup_info_hash_table): New functions
270 implementing function and variable info hash tables.
271 (scan_unit_for_symbols): Add checks to make sure hash tables are
272 consistent with compilation units.
273 (comp_unit_maybe_decode_line_info): New function.
274 (comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
275 (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info,
276 info_hash_lookup_funcinfo, info_hash_lookup_varinfo,
277 stash_maybe_update_info_hash_table, stash_verify_info_hash_table,
278 stash_maybe_enable_info_hash_tables, stash_find_line_fast): New
279 functions. Make use of info hash tables to speed up
280 bfd_dwarf2_find_line.
281 (find_line): Use hash table for faster lookup if it is turned on.
282 Also add code to maintain bi-directional link in comp units.
283
353c5574
MS
2842007-07-25 Michael Snyder <msnyder@access-company.com>
285
286 * coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
287 if size == 0; return and avoid possible null pointer issues.
288
f08c429c
AM
2892007-07-25 Alan Modra <amodra@bigpond.net.au>
290
291 * linker.c (generic_link_add_symbol_list): Warning fix.
292
d0f16d5e
MS
2932007-07-24 Michael Snyder <msnyder@access-company.com>
294
f6eea5ae
MS
295 * opncls.c (bfd_make_writable): Check return from bfd_malloc.
296
d0f16d5e
MS
297 * elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
298 on bfd_malloc error rather than goto error_return.
299
4d269e42
AM
3002007-07-24 Alan Modra <amodra@bigpond.net.au>
301
302 * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
303 _bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc,
304 _bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol,
305 _bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create,
306 bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class,
307 bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list,
308 bfd_elf_get_runpath_list, bfd_elf_get_dt_soname,
309 bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol,
310 struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol,
311 elf_sym_name_compare, elf_create_symbuf,
312 bfd_elf_match_symbols_in_sections,
313 _bfd_elf_match_sections_by_type): Move to here..
314 * elf.c: ..from here.
315
a26587ba
RS
3162007-07-23 Richard Sandiford <richard@codesourcery.com>
317
318 * elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
319 of weakdef->root.type if weakdef has no regular definition.
320
0e53d9da
AN
3212007-07-22 Adam Nemet <anemet@caviumnetworks.com>
322
323 * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
324 small_data_overflow_reported.
325 (_bfd_mips_elf_link_hash_table_create): Initialize it.
326 (_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
327 small-data section overflow.
328
6b33789f
NC
3292007-07-19 Doug Kwan <dougkwan@google.com>
330
4d269e42
AM
331 PR binutils/4797
332 * dwarf2.c: (find_line) Do not dereference functionname_ptr if
333 do_line is true.
6b33789f 334
13161072 3352007-07-18 Bob Wilson <bob.wilson@acm.org>
4d269e42 336
13161072
BW
337 * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
338 non-ELF sections.
4d269e42 339
e29297b7 3402007-07-18 Bob Wilson <bob.wilson@acm.org>
4d269e42 341
e29297b7
BW
342 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
343 vma and size for dynamic tags from the output sections.
4d269e42 344
a5d1b3b5
AM
3452007-07-18 Alan Modra <amodra@bigpond.net.au>
346
347 * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
348 * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
349 symbol. Instead cache ELF section index. Remove redundant
350 checks of st_shndx.
351
d955dada
MF
3522007-07-15 Mike Frysinger <vapier@gentoo.org>
353
354 * trad-core.c (NBPG): If not defined, set to getpagesize().
355
979dc3bc
RM
3562007-07-13 Roland McGrath <roland@redhat.com>
357
358 * elf-bfd.h (struct elf_obj_tdata): Revert last change.
359 Add after_write_object_contents, after_write_object_contents_info.
360 * elf.c (_bfd_elf_write_object_contents): Revert last change.
361 Instead, call after_write_object_contents if set.
362
d2df793a
NC
3632007-07-12 Kai Tietz <kai.tietz@onevision.com>
364
365 * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
366 (BFD_HOSTPTR_T): Host pointer type for casting a
367 pointer to an integer type.
368 (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
369 (sprintf_vma, fprintf_vma): Add support for long long prints.
370 * bfd-in2.h: Regenerate.
371 * configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
372 (BFD_HOSTPTR_T): Host pointer type for casting a
373 pointer to an integer type. Default is "unsigned long".
374 (AC_CHECK_SIZEOF(void *)): New.
375 (host64): Set it if the pointer size is 8.
376 * configure: Regenerate.
377 * config.in: Add macro SIZEOF_VOID_P.
378 * coffcode.h: Replace host ptr type assuming "long" with
379 bfd_hostptr_t type.
380 * coffgen.c: Likewise.
381 * elf-eh-frame.c: Likewise.
382 * peicode.h: Likewise.
383
a3a4ddad
L
3842007-07-10 H.J. Lu <hongjiu.lu@intel.com>
385
386 * Makefile.in: Regenerated.
387
329b43c4
L
3882007-07-10 H.J. Lu <hongjiu.lu@intel.com>
389
390 PR binutils/4756
391 * simple.c (bfd_simple_get_relocated_section_content): Don't
392 apply relocation on executable and shared library.
393
cfd2c773
NS
3942007-07-10 Nathan Sidwell <nathan@codesourcery.com>
395
396 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
397 copy relocs on vxworks.
398
1489a3a0
AM
3992007-07-10 Alan Modra <amodra@bigpond.net.au>
400
401 * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
402 * elf64-alpha.c (alpha_elf_size_info): Likewise.
403 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
404 * elf64-mips.c (mips_elf64_size_info): Likewise.
405 * elf64-s390.c (s390_elf64_size_info): Likewise.
406 * elf64-sparc.c (elf64_sparc_size_info): Likewise.
407
00cbee0a
L
4082007-07-09 H.J. Lu <hongjiu.lu@intel.com>
409
410 * elflink.c (bfd_elf_record_link_assignment): Handle indirect
411 symbol.
412 (_bfd_elf_merge_symbol): Properly update normal symbol when
413 overriding the versioned symbol from a dynamic library.
414
fd2f25da
RM
4152007-07-09 Roland McGrath <roland@redhat.com>
416
417 * elf-bfd.h (struct elf_obj_tdata): Add members
418 emit_note_gnu_build_id and note_gnu_build_id_sec.
419 * elf.c (_bfd_id_note_section_size): New global function.
420 (read_hex, _bfd_elf_write_build_id_section): New static functions.
421 (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
422 if emit_note_gnu_build_id is set.
423 * Makefile.am (elf.lo): Update dependencies.
424
425 * elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
426 (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
427 * elfcode.h (elf_checksum_contents): New macro and function.
428 (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
429
9af2a943
AM
4302007-07-06 Michael Snyder <msnyder@access-company.com>
431
432 * elflink.c (elf_link_add_object_symbols): Return via
433 error_free_vers on "notice" failure.
434
a93221e5
L
4352007-07-04 H.J. Lu <hongjiu.lu@intel.com>
436
437 * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
438 if arch is unknown.
439
b4928193
NC
4402007-07-04 Nick Clifton <nickc@redhat.com>
441
442 Import this patch from an internal tree:
9af2a943 443
b4928193
NC
444 2001-07-17 Richard Henderson <rth@redhat.com>
445
446 * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly
447 compensate for high bit set in R_MEP_LOW16.
448
3cfad14c
JM
4492007-07-03 Joseph Myers <joseph@codesourcery.com>
450
451 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
452 input attributes if value has been copied.
453
cd123cb7
NC
4542007-07-03 Nick Clifton <nickc@redhat.com>
455
456 * COPYING: Replace with GPLv3 text.
457 * aix386-core.c: Update copyright notice to refer to GPLv3.
458 * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c,
459 aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c,
460 aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c,
461 archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c,
462 binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c,
463 cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c,
464 coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c,
465 coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c,
466 coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
467 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
468 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
469 coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c,
470 coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c,
471 coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c,
472 cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c,
473 cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
474 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
475 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
476 cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c,
477 cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c,
478 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
479 cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c,
480 cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c,
481 cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c,
482 cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c,
483 cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c,
484 cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c,
485 demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c,
486 ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c,
487 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
488 elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c,
489 elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c,
490 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
491 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
492 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
493 elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c,
494 elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c,
495 elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c,
496 elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c,
497 elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c,
498 elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c,
499 elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h,
500 elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c,
501 elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c,
502 elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c,
503 elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
504 elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h,
505 elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c,
506 elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c,
507 elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
508 elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c,
509 epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h,
510 hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c,
511 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
512 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
513 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
514 libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h,
515 libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h,
516 linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c,
517 m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c,
518 mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h,
519 newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c,
520 nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h,
521 ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c,
522 pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h,
523 pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h,
524 pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c,
525 pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c,
526 pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c,
527 reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c,
528 simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c,
529 srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c,
530 sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h,
531 trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c,
532 vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c,
533 xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c,
534 xtensa-modules.c: Likewise.
535 * elf32-sh-relocs.h: Add copyright notice.
536 * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h,
537 hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h,
538 hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h,
539 hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h,
540 hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h,
541 hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h,
542 hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h,
543 hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise.
544 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
545
741d6ea8
JM
5462007-07-02 Joseph Myers <joseph@codesourcery.com>
547
548 * elfxx-mips.c (mips_elf_calculate_relocation): Handle
549 R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
550 * elf64-mips.c (mips_elf64_howto_table_rela): Support
551 R_MIPS_TLS_DTPREL64.
552
ae351704
AM
5532007-07-02 Alan Modra <amodra@bigpond.net.au>
554
555 * Makefile.am: Run "make dep-am".
556 * Makefile.in: Regenerate.
557 * aclocal.m4: Regenerate.
558 * config.in: Regenerate.
559 * po/SRC-POTFILES.in: Regenerate.
560 * po/bfd.pot: Regenerate.
561
3e5484db
AM
5622007-07-02 Alan Modra <amodra@bigpond.net.au>
563
564 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
565 symsec != NULL tests.
566
08a40648
AM
5672007-07-02 Alan Modra <amodra@bigpond.net.au>
568
569 PR 4712
570 * elf.c (assign_file_positions_for_load_sections): Adjust lma
571 by p_vaddr_offset.
572
86b57e31
L
5732007-06-30 H.J. Lu <hongjiu.lu@intel.com>
574
575 * aclocal.m4: Regenerated.
576 * Makefile.in: Likewise.
577
34c8bcba
JM
5782007-06-29 Joseph Myers <joseph@codesourcery.com>
579
580 * elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
581 (ppc_elf_merge_private_bfd_data): Call it.
582
2cf19d5c
JM
5832007-06-29 Joseph Myers <joseph@codesourcery.com>
584
585 * elfxx-mips.c (mips_elf_merge_obj_attributes): New.
586 (_bfd_mips_elf_merge_private_bfd_data): Call it.
587
104d59d1
JM
5882007-06-29 Joseph Myers <joseph@codesourcery.com>
589
590 * elf-attrs.c: New.
591 * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
592 (BFD32_BACKENDS_CFILES): Add elf-attrs.c.
593 (elf-attrs.lo): Generate dependencies.
594 * Makefile.in: Regenerate.
595 * configure.in (elf): Add elf-attrs.lo.
596 * configure: Regenerate.
597 * elf-bfd.h (struct elf_backend_data): Add entries for object
598 attributes.
599 (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
600 OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
601 Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
602 New.
603 (struct elf_obj_tdata): Add entries for object attributes.
604 (elf_known_obj_attributes, elf_other_obj_attributes,
605 elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
606 New.
607 (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
608 bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
609 bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
610 bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
611 bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
612 _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
613 _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
614 * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
615 (bfd_section_from_shdr): Handle attributes sections.
616 * elflink.c (bfd_elf_final_link): Handle attributes sections.
617 * elfxx-target.h (elf_backend_obj_attrs_vendor,
618 elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
619 elf_backend_obj_attrs_section_type): New.
620 (elfNN_bed): Update.
621 * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
622 aeabi_attribute_list): Remove.
623 (struct elf32_arm_obj_tdata): Remove object attributes fields.
624 (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
625 elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
626 Update for new object attributes interfaces.
627 (uleb128_size, is_default_attr, eabi_attr_size,
628 elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
629 elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
630 elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
631 elf32_arm_add_eabi_attr_int, attr_strdup,
632 elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
633 copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
634 to generic code in elf-attrs.c.
635 (elf32_arm_obj_attrs_arg_type): New.
636 (elf32_arm_fake_sections): Do not handle .ARM.attributes.
637 (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
638 (bfd_elf32_bfd_final_link): Remove.
639 (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
640 elf_backend_obj_attrs_arg_type,
641 elf_backend_obj_attrs_section_type): New.
642 * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
643 attributes.
644 * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
645 * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
646 * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
647 * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
648 * elf32-sh.c (sh_elf_copy_private_data): Likewise.
649 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
650
5ab79981
PB
6512007-06-29 Paul Brook <paul@codesourcery.com>
652
653 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
654 call veneers for call relocations against undefined symbols.
655 (elf32_arm_final_link_relocate): Turn call to undefined symbol
656 into a jump to the next instruction.
657
c6aa130f 6582007-06-29 Michael Snyder <msnyder@access-company.com>
32e8a950
NC
659
660 * bfd.c (bfd_demangle): Plug memory leak (Coverity).
661
3d3d428f
NC
6622007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
663
664 * Makefile.am: Add cr16 related entry
665 * Makefile.in: Regenerate
666 * archures.c: Add bfd_cr16_arch
667 * bfd-in2.h: Regenerate
668 * config.bfd: Add cr16-elf
669 * configure.in: Add bfd_elf32_cr16_vec
670 * configure: Regenerate.
671 * targets.c: Added cr16 related information
672 * cpu-cr16.c: New file.
673 * elf32-cr16.c: New file.
674 * reloc.c: Added cr16 relocs.
675
c55fe096
AM
6762007-06-29 Alan Modra <amodra@bigpond.net.au>
677
678 * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
679 message for undefined version nodes.
680 (elf_gc_sweep): Don't warn when zero size sections are
681 removed.
682
375de94a
AM
6832007-06-29 Nathan Froyd <froydnj@codesourcery.com>
684
685 * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
686 types.
687
7d3287cb
AM
6882007-06-29 Alan Modra <amodra@bigpond.net.au>
689
690 * elf32-spu.c (spu_elf_fake_sections): New function.
691 (elf_backend_fake_sections): Define.
692
6a3cd2b4
AM
6932007-06-29 Alan Modra <amodra@bigpond.net.au>
694
695 * elf.c (assign_file_positions_for_load_sections): Use elf
696 section header sh_size rather than bfd section size, simplifying
697 .tbss handling.
698
bf988460
AM
6992007-06-29 Alan Modra <amodra@bigpond.net.au>
700
36fc76ae 701 PR ld/4701
bf988460
AM
702 * elf.c (assign_file_positions_for_load_sections): Ensure bss
703 segments meet gABI alignment requirements. Don't allocate
704 file space for bss sections in a segment also containing file
705 or program headers.
706
60b31e8d
AM
7072007-06-27 Alan Modra <amodra@bigpond.net.au>
708
cc481421
AM
709 * bfd.c (struct bfd): Rename "next" to "archive_next".
710 * archive.c: Rename uses throughout file.
711 * archive64.c: Likewise.
712 * coff-rs6000.c: Likewise.
713 * ecoff.c: Likewise.
714 * som.c: Likewise.
715 * bfd-in2.h: Regenerate.
716
60b31e8d
AM
717 * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
718 input bfds.
58eb693e 719 * elf32-spu.c (spu_elf_create_sections): Likewise.
60b31e8d 720
bec42b15
NC
7212007-06-26 H.J. Lu <hongjiu.lu@intel.com>
722
723 * dwarf2.c (find_line): New. Contains the duplicated code from:
724 (_bfd_dwarf2_find_nearest_line): Use it.
725 (_bfd_dwarf2_find_line): Use it.
726
3d3e6f9a
JM
7272007-06-26 Joseph Myers <joseph@codesourcery.com>
728
729 * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
730
b314ec0e
RS
7312007-06-25 Richard Sandiford <richard@codesourcery.com>
732
733 * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
734 to be used for calls from MIPS16 code.
735
0d4a1476
AS
7362007-06-23 Andreas Schwab <schwab@suse.de>
737
738 * configure.in (--with-separate-debug-dir): New option.
739 * configure: Regenerate.
740 * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
741 * Makefile.in: Regenerate.
742 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
743 bfd_follow_gnu_debuglink.
744 (_bfd_dwarf2_find_line): Likewise.
745
0d161102
NC
7462007-06-22 Nick Clifton <nickc@redhat.com>
747
748 * dwarf2.c: Add support for reading in debug information via a
749 .gnu_debuglink section:
750 (struct dwarf2_debug): Add bfd field to record the bfd containing
751 the debug info.
752 (parse_comp_unit): Remove ABFD parameter. Instead use the bfd
753 field in the dwarf2_debug structure.
754 (_bfd_dwarf2_find_nearest_line): If a debug info section could not
755 be found in the current bfd call bfd_follow_gnu_debuglink to see
756 if another file contains the debug information. If it does, open
757 it and continue.
758 (_bfd_dwarf2_find_line): Likewise.
759
293a0124
L
7602007-06-19 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR ld/4590
763 * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
764 when removing duplicated entries.
765 (get_dyn_sym_info): Initialize the got_offset field to -1.
766 Update call to sort_dyn_sym_info.
767 (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
768 array of addend and remove duplicates.
769
dc1f3d8a
L
7702007-06-18 H.J. Lu <hongjiu.lu@intel.com>
771
772 * libpei.h (_bfd_XXi_final_link_postscript): Remove
773 duplication.
774 (bfd_target_pei_p): New.
775 (bfd_target_pei_arch): New
776 (bfd_target_efi_p): Likewise.
777 (bfd_target_efi_arch): New
778 (bfd_pe_executable_p): Use bfd_target_pei_p and
779 bfd_target_efi_p.
780
781 * peicode.h (arch_type): New enum.
782 (pe_arch): New function.
783 (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
784 if there is an EFI/PE target.
785
79887925
L
7862007-06-14 H.J. Lu <hongjiu.lu@intel.com>
787
788 * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
789
790 * acinclude.m4: Don't include m4 files. Remove libtool
791 kludge.
792
793 * Makefile.in: Regenerated.
79887925
L
794 * aclocal.m4: Likewise.
795 * configure: Likewise.
796
99ded152
BW
7972007-06-11 Sterling Augustine <sterling@tensilica.com>
798 Bob Wilson <bob.wilson@acm.org>
bf988460 799
99ded152
BW
800 * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
801 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
802 (extend_ebb_bounds_backward, compute_text_actions): Likewise.
803 (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
804 (xtensa_get_property_predef_flags): Likewise.
805 (compute_removed_literals): Pass new arguments to is_removable_literal.
806 (is_removable_literal): Add sec, prop_table and ptblsize arguments.
807 Do not remove literal if the NO_TRANSFORM property flag is set.
bf988460 808
cbf2cba4
RS
8092007-05-31 Richard Sandiford <rsandifo@nildram.co.uk>
810
811 * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
812 type (3) single-GOT entry, read tls_type from the hash table entry
813 rather than the GOT entry.
814
a9a4c53e
AM
8152007-06-01 Alan Modra <amodra@bigpond.net.au>
816
817 * simple.c (bfd_simple_get_relocated_section_contents): Init
818 input_bfds_tail.
819
02bf8d82
AM
8202007-05-30 Alan Modra <amodra@bigpond.net.au>
821
42bb2e33
AM
822 * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
823 created by objcopy --only-keep-debug.
824 (_bfd_elf_init_private_section_data): Only change elf_section_type
825 if it is SHT_NULL.
826
02bf8d82
AM
827 * elf.c (assign_file_positions_for_load_sections): Correct sh_type
828 to SHT_NOBITS earlier. Base actions in rest of function on sh_type
829 and sh_flags instead of bfd section flags. Delete voff and code
830 keeping nobits segments aligned.
831
4e591bc1
EC
8322007-05-25 Eric Christopher <echristo@apple.com>
833
834 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
835 Check that sym_sec isn't NULL before accessing.
836
37ad9514
SE
8372007-05-24 Steve Ellcey <sje@cup.hp.com>
838
839 * Makefile.in: Regnerate.
840 * configure: Regenerate.
841 * aclocal.m4: Regenerate.
842 * doc/Makefile.in: Regenerate.
843
91a5743d
PB
8442007-05-22 Paul Brook <paul@codesourcery.com>
845
846 * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
847 with sec and sec_shndx.
848 (elf32_arm_ouput_plt_map_sym): Use them.
849 (elf32_arm_output_arch_local_syms): Output mapping symbols for
850 interworking glue.
851
26079076
PB
8522007-05-18 Paul Brook <paul@codesourcery.com>
853
854 * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
855 (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
856 (record_arm_to_thumb_glue): Add v5t non-pic glue.
857 (elf32_arm_create_thumb_stub): Ditto.
858
91ac5911
L
8592007-05-16 H.J. Lu <hongjiu.lu@intel.com>
860 Alan Modra <amodra@bigpond.net.au>
861
862 * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
863 section to the minimum alignment.
864
027297b7
L
8652007-05-15 H.J. Lu <hongjiu.lu@intel.com>
866 Alan Modra <amodra@bigpond.net.au>
867
868 PR ld/4504
869 * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
870 * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
871
872 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
873 _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
874 bss section.
875 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
876 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
877 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
878 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
879 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
880 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
881 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
882 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
883 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
884 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
885 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
886 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
887 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
888 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
889 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
890 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
891 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
892
5c18022e
RS
8932007-05-15 Richard Sandiford <richard@codesourcery.com>
894
895 * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
896 input_section argument. Create .rela.dyn relocations against
897 symbol 0 rather than the section symbol.
898 (mips_elf_local_got_index): Remove input_section argument.
899 Update call to mips_elf_create_local_got_entry.
900 (mips_elf_got_page, mips_elf_got16_entry): Likewise.
901 (mips_elf_calculate_relocation): Update calls to
902 mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
903
a00a1f35
MS
9042007-05-15 Mark Shinwell <shinwell@codesourcery.com>
905
906 * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
907 handle the Thumb-2 JUMP19 relocation.
908
0414f35b
AM
9092007-05-15 Alan Modra <amodra@bigpond.net.au>
910
911 PR 4479
912 * elf.c (elf_fake_sections): Don't allow backend to change
913 SHT_NOBITS if called for strip/objcopy --only-keep-debug.
914 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
915 fix from here.
916
74f2e02b
AM
9172007-05-14 Alan Modra <amodra@bigpond.net.au>
918
919 * elf.c (bfd_elf_string_from_elf_section): Return NULL on
920 invalid shstrndx.
921 (bfd_elf_get_str_section): Likewise.
922
f137a54e
AM
9232007-05-12 Alan Modra <amodra@bigpond.net.au>
924
925 PR 4497
926 * elf-eh-frame.c (struct cie): Add "local_personality". Make
927 "personality" a union.
928 (cie_eq): Compare local_personality too. Adjust personality
929 comparison.
930 (_bfd_elf_discard_section_eh_frame): Check binding on personality
931 reloc sym to allow for bad symtab. Use stashed local syms rather
932 than reading personality local sym. Handle discarded sections.
933
4f4416b5
AM
9342007-05-12 Alan Modra <amodra@bigpond.net.au>
935
936 * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
937
016687f8
AM
9382007-05-11 Alan Modra <amodra@bigpond.net.au>
939
940 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
941 (enum ppc_elf_plt_type): Move from..
942 * elf32-ppc.c: ..here.
943 (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
944 (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete
945 can_use_new_plt. Make is_vxworks a bitfield.
946 (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
947 (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd.
948 (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc
949 flags to better detect object files needing old bss-style plt.
950 Allow secure plt to be used without rel16 relocs being detected.
951 Warn if secure plt request cannot be allowed.
952
ece5ef60
AM
9532007-05-11 Alan Modra <amodra@bigpond.net.au>
954
955 * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
956 * elf-bfd.h (struct elf_backend_data): Change return type of
957 elf_backend_relocate_section to int.
958 * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
959 R_SPU_PPU64.
960 (spu_elf_bfd_to_reloc_type): Convert new relocs.
961 (spu_elf_count_relocs): New function.
962 (elf_backend_count_relocs): Define.
963 (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
964 R_SPU_PPU64 relocs.
965 * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
966 returns 2.
967 * bfd-in2.h: Regenerate.
968 * libbfd.h: Regenerate.
969
d3753b85
RS
9702007-05-10 Richard Sandiford <richard@codesourcery.com>
971
972 * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
973 for R_ARM_ABS12 relocs.
974 (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
975 non-shared VxWorks PLT entries.
976
ef8c95ad
AM
9772007-05-11 Alan Modra <amodra@bigpond.net.au>
978
979 PR 4454
980 * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
981 (_bfd_elf_discard_section_eh_frame): Handle local syms on
982 personality relocation.
983
8c252fd9
RS
9842007-05-10 Richard Sandiford <richard@codesourcery.com>
985
986 * elf.c (assign_file_positions_for_load_sections): Use p_memsz
987 rather than p_filesz to calculate the LMA of the end of a segment.
988
b186458a
JJ
9892007-05-10 Jakub Jelinek <jakub@redhat.com>
990
991 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
992 processing if symbol is defined in the executable.
993
88571279
AO
9942007-05-10 Alexandre Oliva <aoliva@redhat.com>
995
996 * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
997 (frvfdpic_elf_discard_info): New.
998 (elf_backend_discard_info): Define for FDPIC.
999
2e6030b9
MS
10002007-05-09 Mark Shinwell <shinwell@codesourcery.com>
1001
1002 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
1003 attempt to scan if the bfd doesn't correspond to an ELF image.
1004 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
1005
0d4cc892
AO
10062007-05-08 Alexandre Oliva <aoliva@redhat.com>
1007
1008 * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
1009 for which _bfd_elf_section_offset returns -1.
1010
d0249648
AM
10112007-05-08 Alan Modra <amodra@bigpond.net.au>
1012
1013 * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
1014 (mark_functions_via_relocs): Likewise.
1015
1182cb93
AM
10162007-05-07 Alan Modra <amodra@bigpond.net.au>
1017
1018 * elflink.c (bfd_elf_final_link): Correct reloc handling for
1019 elf_backend_count_relocs.
1020 (bfd_elf_discard_info): Print an error if we can't read syms.
1021
b16f296e
AM
10222007-05-07 Alan Modra <amodra@bigpond.net.au>
1023
1024 * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
1025 invalid reloc code.
1026 (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
1027 (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
1028 define.
1029
7c928300
AM
10302007-05-07 Alan Modra <amodra@bigpond.net.au>
1031
1032 * elf.c (assign_file_positions_for_load_sections): Don't check
1033 core segment.
1034
fc66a176
L
10352007-05-04 H.J. Lu <hongjiu.lu@intel.com>
1036
1037 * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
1038 and .rel.dyn aren't present.
1039
3410fea8
NC
10402007-05-04 Nick Clifton <nickc@redhat.com>
1041
1042 * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
1043 sections are present examine the indirect sections in an attempt
1044 to compute the correct relocation size. If there is any
1045 ambiguity, produce an error and refuse to sort.
1046
7bdca076
SL
10472007-05-03 Sandra Loosemore <sandra@codesourcery.com>
1048
1049 * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
1050
22184a77
NC
10512007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
1052 Nick Clifton <nickc@redhat.com>
1053
1054 PR gas/3041
1055 * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
1056 in the same way as relocs against external symbols.
1057
627b32bc
AM
10582007-05-02 Alan Modra <amodra@bigpond.net.au>
1059
1060 * elf.c (assign_file_positions_for_load_sections): Set sh_offset
1061 here. Set sh_type to SHT_NOBITS if we won't be allocating
1062 file space. Don't bump p_memsz for non-alloc sections. Adjust
1063 section-in-segment check.
1064 (assign_file_positions_for_non_load_sections): Don't set sh_offset
1065 here for sections that have already been handled above.
1066
49fa1e15
AM
10672007-04-30 Alan Modra <amodra@bigpond.net.au>
1068
1069 * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
1070 and emit_stack_syms bitfields.
1071 (get_sym_h): Read all symbols if stack analysis will be done.
1072 (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
1073 params, and stash in hash table.
1074 (is_hint): Split off from..
1075 (is_branch): ..here. Adjust callers.
1076 (spu_elf_size_stubs): Add stack_analysis param. Arrange to read
1077 and keep all syms.
1078 (write_one_stub): Fix mem leak.
1079 (find_function_stack_adjust): New function.
1080 (sort_syms_syms, sort_syms_psecs): New vars.
1081 (sort_syms): New function.
1082 (struct call_info, struct function_info): New.
1083 (struct spu_elf_stack_info): New.
1084 (alloc_stack_info, maybe_insert_function, func_name): New functions.
1085 (is_nop, insns_at_end, check_function_ranges): Likewise.
1086 (find_function, insert_callee, mark_functions_via_relocs): Likewise.
1087 (pasted_function, interesting_section, discover_functions): Likewise.
1088 (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
1089 (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
1090 (bfd_elf32_bfd_final_link): Define.
1091 * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
1092 (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
1093
9ddf8309
TS
10942007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru>
1095
1096 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
1097 memory which we might not own.
1098
95147441
BW
10992007-04-27 Bob Wilson <bob.wilson@acm.org>
1100
1101 * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
1102 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
1103 (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
1104
bcc2cc8e
BW
11052007-04-27 Bob Wilson <bob.wilson@acm.org>
1106
1107 * elf32-xtensa.c (xtensa_read_table_entries): Step through table
1108 contents and relocs in parallel.
4e591bc1 1109
f29f96b6
BW
11102007-04-27 Bob Wilson <bob.wilson@acm.org>
1111
1112 * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
1113
2ce18a16
AM
11142007-04-27 Alan Modra <amodra@bigpond.net.au>
1115
1116 * cpu-rs6000.c: Write Mimi's name in ASCII.
1117 * coff-rs6000.c: Likewise.
1118 * rs6000-core.c: Likewise.
1119
eddc20ad
AM
11202007-04-27 Alan Modra <amodra@bigpond.net.au>
1121
1122 * sysdep.h: Include config.h first.
1123 Many files: Include sysdep.h before bfd.h.
1124 * Makefile.am: Run "make dep-am".
1125 * Makefile.in: Regenerate.
1126
495443d4
AM
11272007-04-25 Alan Modra <amodra@bigpond.net.au>
1128
1129 * sysdep.h: Revert last change.
1130
40b1c6c5
NC
11312007-04-24 Nick Clifton <nickc@redhat.com>
1132
1133 * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
1134 * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
1135
64be1553
AM
11362007-04-24 Alan Modra <amodra@bigpond.net.au>
1137
1138 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
1139 eh_frame_hdr table won't be created.
1140
d5efd9fc
AM
11412007-04-24 Alan Modra <amodra@bigpond.net.au>
1142
1143 * acinclude.m4: Include config/stdint.m4.
1144 * configure.in: Invoke GCC_HEADER_STDINT.
1145 * sysdep.h: Don't include ansidecl.h here.
1146 * configure: Regenerate.
1147 * config.in: Regenerate.
1148 * Makefile.in: Regenerate.
1149
9a2e615a
NS
11502007-04-23 Nathan Sidwell <nathan@codesourcery.com>
1151
1152 * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
1153 bfd_mach_mcf_isa_c_emac): New.
1154 * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
1155 elf_isac_plt_entry, elf_isac_plt_info): New.
1156 (elf32_m68k_object_p): Add ISA_C.
1157 (elf32_m68k_print_private_bfd_data): Print ISA_C.
1158 (elf32_m68k_get_plt_info): Detect ISA_C.
1159 * cpu-m68k.c (arch_info): Add ISAC.
1160 (m68k_arch_features): Likewise,
1161 (bfd_m68k_compatible): ISAs B & C are not compatible.
1162
1b0b5b1b
NC
11632007-04-21 Nick Clifton <nickc@redhat.com>
1164
1165 * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
1166 (ecoff_link_add_archive_symbols): Likewise.
1167 * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
1168 relent.howto.
1169 * ieee.c (parse_int): Initialise x.
1170 (must_parse_int): Initialise result.
1171 (ieee_slurp_external_symbols): Initialise value.
1172
bd7803a9
AM
11732007-04-21 Alan Modra <amodra@bigpond.net.au>
1174
1175 * config.bfd (spu-*-elf): Delete targ_selvecs.
1176
964597d0
NC
11772007-04-19 Nick Clifton <nickc@redhat.com>
1178
1179 * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
1180
01e76792
AM
11812007-04-19 Alan Modra <amodra@bigpond.net.au>
1182
1183 * bfd.c (bfd_demangle): New function.
1184 * Makefile.am: Run "make dep-am".
1185 * Makefile.in: Regenerate.
1186 * bfd-in2.h: Regenerate.
1187
ee5c21a0
DJ
11882007-04-18 Matthias Klose <doko@ubuntu.com>
1189
1190 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
1191 (bfdver.h): Use the date in non-release builds for the soversion.
1192 * Makefile.in: Regenerate.
1193
fcb93ecf
PB
11942007-04-17 Paul Brook <paul@codesourcery.com>
1195
1196 * elf.c (_bfd_elf_is_function_type): New function.
1197 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
1198 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
1199 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
1200 * elf-bfd.h (elf_backend_data): Add is_function_type.
1201 (_bfd_elf_is_function_type): Add prototype.
1202 * elfxx-target.h (elf_backend_is_function_type): Add default
1203 definition.
1204 (elfNN_bed): Add elf_backend_is_function_type.
1205 * elf32-arm.c (elf32_arm_is_function_type): New function.
1206 (elf_backend_is_function_type): Define.
1207
5750dcec
DJ
12082007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
1209
1210 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
1211 DT_MIPS_RLD_MAP before DT_DEBUG again.
1212
cfbc9945
SE
12132007-04-14 Steve Ellcey <sje@cup.hp.com>
1214
1215 * Makefile.am: Add ACLOCAL_AMFLAGS.
1216 * configure.in: Change macro call order.
1217 * Makefile.in: Regnerate.
1218 * doc/Makefile.in: Regenerate.
1219 * configure: Regenerate.
1220
3fcd97f1
JJ
12212007-04-14 Jakub Jelinek <jakub@redhat.com>
1222
1223 * elflink.c (bfd_elf_final_link): Don't free symbuf for
1224 non-elf input bfds.
1225 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
1226 for non-elf input bfds.
1227
af5978fb
RS
12282007-04-12 Richard Sandiford <richard@codesourcery.com>
1229
1230 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
1231 DT_MIPS_RTLD_MAP for PIEs.
1232
9e3313ae
RS
12332007-04-12 Richard Sandiford <richard@codesourcery.com>
1234
1235 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
1236 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
1237 in a read-only section.
1238 (_bfd_mips_elf_check_relocs): Likewise.
1239
1d25768e
BW
12402007-04-12 Bob Wilson <bob.wilson@acm.org>
1241
1242 * elf32-xtensa.c (xtensa_is_insntable_section): New.
1243 (xtensa_is_proptable_section): New.
1244 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
1245 tables with 12-byte entries, as well as tables with 8-byte entries.
1246 Sort the relocations before examining them.
1247 (relax_property_section): Use xtensa_is_proptable_section and
1248 xtensa_is_littable_section. Rewrite code for combining table entries
1249 to be more robust in case of unexpected relocations. Do not set offset
1250 of unused relocations to less than zero.
1251 (xtensa_is_property_section): Use other functions instead of
1252 duplicating section name comparisons.
1253 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
1254 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
4e591bc1 1255
e1e5c0b5 12562007-04-12 Bob Wilson <bob.wilson@acm.org>
4e591bc1 1257
e1e5c0b5
BW
1258 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
1259 from Xtensa property sections.
4e591bc1 1260
2c67c5f3
AM
12612007-04-12 Alan Modra <amodra@bigpond.net.au>
1262
1263 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
1264 is non-NULL before dereferencing.
1265
8776bb8a
NS
12662007-04-11 Nathan Sidwell <nathan@codesourcery.com>
1267
1268 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
1269 relocs too.
1270
4a828aab
RH
12712007-04-10 Richard Henderson <rth@redhat.com>
1272
1273 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
1274 (elf64_alpha_size_got_sections): Remove unused something_changed local.
1275 (elf64_alpha_size_plt_section): Return void.
1276 (elf64_alpha_size_rela_got_section): Likewise.
4e591bc1 1277 (elf64_alpha_relax_section): Only regenerate got+plt if the
4a828aab
RH
1278 relax_trip counter has changed.
1279
91506736
DJ
12802007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
1281
1282 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
1283 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
1284 (bfdver.texi): New rule.
1285 * Makefile.in, doc/Makefile.in: Regenerated.
1286
da6bcfca
MT
12872007-04-03 Matt Thomas <matt@netbsd.org>
1288
4e591bc1 1289 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
da6bcfca
MT
1290 in a shared object if it is not in a CODE section or if it is against
1291 a section symbol. This allows DWARF2 to use pcrel format.
1292
9267588c
L
12932007-04-05 H.J. Lu <hongjiu.lu@intel.com>
1294
1295 PR ld/4304
1296 * elflink.c (bfd_elf_final_link): Call einfo callback in
1297 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
1298 warning.
1299
c1b2796f
AM
13002007-04-05 Alan Modra <amodra@bigpond.net.au>
1301
1302 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
1303 (elf_backend_link_output_symbol_hook): Define.
1304
970ccc77
NC
13052007-04-02 Nick Clifton <nickc@redhat.com>
1306
1307 PR binutils/4292
1308 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
1309 targets as 64-bit values, even if running on a 64-bit host.
1310 * coffgen.c (coff_print_symbol): Likewise.
1311
1783205a
NC
13122007-03-29 Nick Clifton <nickc@redhat.com>
1313
1314 PR binutils/4110
1315 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
1316 (setup_group): Use it. Report corrupt group section headers.
1317 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
1318 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
1319 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
1320
2ce859a1
AM
13212007-03-29 Alan Modra <amodra@bigpond.net.au>
1322
1323 PR ld/4267
947844a3
AM
1324 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
1325 for rel->r_info values.
1326 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
1327 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
1328 unused entries. Don't clear plt.plist in loop.
1329
39817122
RS
13302007-03-28 Richard Sandiford <richard@codesourcery.com>
1331
1332 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
1333 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
1334 Merge into...
1335 (sparc_elf_append_rela): ...this new function.
1336 (SPARC_ELF_APPEND_RELA): Delete.
1337 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
1338 the deleted append_rela field.
1339 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
1340 instead of SPARC_ELF_APPEND_RELA.
1341 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
1342 elf_size_info structure to find the size of a RELA entry and
1343 the associated swap-out function.
1344 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
1345 (sparc_finish_dyn): ...this new function.
1346 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
1347
4ecceb71
RS
13482007-03-28 Richard Sandiford <richard@codesourcery.com>
1349 Phil Edwards <phil@codesourcery.com>
1350
1351 * doc/bfd.texinfo: Put the contents after the title page rather
1352 than at the end of the document.
1353
d4d2b80b
AS
13542007-03-27 Andreas Schwab <schwab@suse.de>
1355
1356 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
1357
831480e9 13582007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
1359
1360 * configure: Regenerated.
1361
f4b39977
AM
13622007-03-26 Alan Modra <amodra@bigpond.net.au>
1363
1364 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
1365 (allocate_spuear_stubs): New function.
1366 (spu_elf_size_stubs): Call allocate_spuear_stubs.
1367
157090f7
AM
13682007-03-26 Alan Modra <amodra@bigpond.net.au>
1369
1370 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
1371 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
1372 (MY (bfd_reloc_name_lookup)): New function.
1373 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
1374 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
1375 (MY_bfd_reloc_name_lookup): Define.
1376 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
1377 (MY_bfd_reloc_name_lookup): Define.
1378 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
1379 (NAME (aout, reloc_name_lookup)): New function.
1380 * bout.c (b_out_bfd_reloc_name_lookup): New function.
1381 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
1382 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
1383 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
1384 (coff_bfd_reloc_name_lookup): Define.
1385 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
1386 (coff_i386_reloc_name_lookup): New function.
1387 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
1388 (coff_bfd_reloc_name_lookup): Define.
1389 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
1390 (coff_bfd_reloc_name_lookup): Define.
1391 * coff-m68k.c (m68k_reloc_name_lookup): New function.
1392 (coff_bfd_reloc_name_lookup): Define.
1393 * coff-maxq.c (maxq_reloc_name_lookup): New function.
1394 (coff_bfd_reloc_name_lookup): Define.
1395 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
1396 (coff_bfd_reloc_name_lookup): Define.
1397 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
1398 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
1399 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
1400 (coff_bfd_reloc_name_lookup): Define.
1401 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
1402 (_bfd_xcoff_reloc_name_lookup): New function.
1403 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
1404 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
1405 (sh_coff_reloc_name_lookup): New function.
1406 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
1407 (coff_bfd_reloc_name_lookup): Define.
1408 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
1409 (tic30_coff_reloc_name_lookup): New function.
1410 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
1411 (tic4x_coff_reloc_name_lookup): New function.
1412 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
1413 (tic54x_coff_reloc_name_lookup): New function.
1414 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
1415 (coff_amd64_reloc_name_lookup): New function.
1416 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
1417 (coff_bfd_reloc_name_lookup): Define.
1418 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
1419 (coff_bfd_reloc_name_lookup): Define.
1420 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
1421 (xcoff64_reloc_name_lookup): New function.
1422 (rs6000coff64_vec, aix5coff64_vec): Init new field.
1423 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
1424 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
1425 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1426 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1427 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1428 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
1429 (bfd_elf32_bfd_reloc_name_lookup): Define.
1430 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1431 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
1432 (bfd_elf32_bfd_reloc_name_lookup): Define.
1433 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
1434 (bfd_elf32_bfd_reloc_name_lookup): Define.
1435 * elf32-cris.c (cris_reloc_name_lookup): New function.
1436 (bfd_elf32_bfd_reloc_name_lookup): Define.
1437 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
1438 (bfd_elf32_bfd_reloc_name_lookup): Define.
1439 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1440 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1441 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
1442 (bfd_elf32_bfd_reloc_name_lookup): Define.
1443 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
1444 (bfd_elf32_bfd_reloc_name_lookup): Define.
1445 * elf32-frv.c (frv_reloc_name_lookup): New function.
1446 (bfd_elf32_bfd_reloc_name_lookup): Define.
1447 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1448 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
1449 (bfd_elf32_bfd_reloc_name_lookup): Define.
1450 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1451 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
1452 (bfd_elf32_bfd_reloc_name_lookup): Define.
1453 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
1454 (bfd_elf32_bfd_reloc_name_lookup): Define.
1455 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
1456 (bfd_elf32_bfd_reloc_name_lookup): Define.
1457 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
1458 (bfd_elf32_bfd_reloc_name_lookup): Define.
1459 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
1460 (bfd_elf32_bfd_reloc_name_lookup): Define.
1461 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
1462 (bfd_elf32_bfd_reloc_name_lookup): Define.
1463 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
1464 (bfd_elf32_bfd_reloc_name_lookup): Define.
1465 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1466 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1467 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1468 * elf32-m68k.c (reloc_name_lookup): New function.
1469 (bfd_elf32_bfd_reloc_name_lookup): Define.
1470 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1471 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
1472 (bfd_elf32_bfd_reloc_name_lookup): Define.
1473 * elf32-mep.c (mep_reloc_name_lookup): New function.
1474 (bfd_elf32_bfd_reloc_name_lookup): Define.
1475 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1476 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
1477 (bfd_elf32_bfd_reloc_name_lookup): Define.
1478 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1479 * elf32-mt.c (mt_reloc_name_lookup): New function.
1480 (bfd_elf32_bfd_reloc_name_lookup): Define.
1481 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
1482 (bfd_elf32_bfd_reloc_name_lookup): Define.
1483 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1484 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
1485 (bfd_elf32_bfd_reloc_name_lookup): Define.
1486 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
1487 (bfd_elf32_bfd_reloc_name_lookup): Define.
1488 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
1489 (bfd_elf32_bfd_reloc_name_lookup): Define.
1490 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
1491 (bfd_elf32_bfd_reloc_name_lookup): Define.
1492 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
1493 (bfd_elf32_bfd_reloc_name_lookup): Define.
1494 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1495 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
1496 (bfd_elf32_bfd_reloc_name_lookup): Define.
1497 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
1498 (bfd_elf32_bfd_reloc_name_lookup): Define.
1499 * elf32-vax.c (reloc_name_lookup): New function.
1500 (bfd_elf32_bfd_reloc_name_lookup): Define.
1501 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
1502 (bfd_elf32_bfd_reloc_name_lookup): Define.
1503 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
1504 (bfd_elf32_bfd_reloc_name_lookup): Define.
1505 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
1506 (bfd_elf32_bfd_reloc_name_lookup): Define.
1507 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
1508 (bfd_elf64_bfd_reloc_name_lookup): Define.
1509 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1510 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1511 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
1512 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
1513 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
1514 (bfd_elf64_bfd_reloc_name_lookup): Define.
1515 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
1516 (bfd_elf64_bfd_reloc_name_lookup): Define.
1517 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
1518 (bfd_elf64_bfd_reloc_name_lookup): Define.
1519 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1520 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
1521 (bfd_elf64_bfd_reloc_name_lookup): Define.
1522 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1523 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
1524 (bfd_elfNN_bfd_reloc_name_lookup): Define.
1525 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
1526 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
1527 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
1528 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
1529 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
1530 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
1531 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
1532 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
1533 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
1534 (MY(reloc_name_lookup)): New function.
1535 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
1536 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
1537 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
1538 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
1539 (coff_bfd_reloc_name_lookup): Define.
1540 * reloc.c (bfd_reloc_name_lookup): New function.
1541 * riscix.c (riscix_reloc_name_lookup): New function.
1542 (MY_bfd_reloc_name_lookup): Define.
1543 * som.c (som_bfd_reloc_name_lookup): New function.
1544 * targets.c (struct bfd_target): Add reloc_name_lookup.
1545 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
1546 * versados.c (versados_bfd_reloc_name_lookup): Define.
1547 * vms.c (vms_bfd_reloc_name_lookup): New function.
1548 * bfd-in2.h: Regenerate.
1549 * libbfd.h: Regenerate.
1550
2d82d84d
TS
15512007-03-26 Thiemo Seufer <ths@mips.com>
1552
a5cb1fd7 1553 PR ld/4208
2d82d84d
TS
1554 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
1555 matching relocation is found.
1556 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
1557
831480e9 15582007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
1559
1560 * configure: Regenerated.
1561
a1ac8190
JM
15622007-03-23 Joseph Myers <joseph@codesourcery.com>
1563
1564 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
1565 * configure: Regenerate.
1566
aa7a0635
AM
15672007-03-23 Alan Modra <amodra@bigpond.net.au>
1568
1569 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
1570 Remove input_sec param. Adjust all calls.
1571 (write_one_stub): Adjust stub symbol.
1572 (needs_ovl_stub): New function, extracted from..
1573 (spu_elf_size_stubs): ..here.
1574 (spu_elf_relocate_section): Use needs_ovl_stub.
1575
e49e529d
JM
15762007-03-22 Joseph Myers <joseph@codesourcery.com>
1577
1578 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
1579 if nonempty.
1580 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
1581 * Makefile.in, configure, doc/Makefile.in: Regenerate.
1582
831480e9 15832007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
1584
1585 PR ld/4210
1586 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
1587 address and virtual size of the last section for the image
1588 size.
1589
0920dee7
L
15902007-03-22 H.J. Lu <hongjiu.lu@intel.com>
1591
1592 PR ld/4007
1593 * elf.c (assign_file_positions_for_load_sections): Check if
1594 all sections are in the segment.
1595
831480e9 15962007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
1597
1598 PR ld/4208
1599 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
1600 matching LO16 relocation for HI16 relocation.
1601
27e55c4d
PB
16022007-03-20 Paul Brook <paul@codesourcery.com>
1603
1604 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
1605 * bfd-in2.h: Regenerate.
1606 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
1607 (record_arm_to_thumb_glue): Use globals->pic_veneer.
1608 (elf32_arm_create_thumb_stub): Ditto.
1609 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
1610
bf21ed78
MS
16112007-03-18 Mark Shinwell <shinwell@codesourcery.com>
1612
1613 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
1614 argument and extra last argument.
1615 * bfd-in2.h: Regenerate.
1616 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
1617 member.
1618 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
1619 extra last argument. Set no_enum_size_warning appropriately.
1620 (elf32_arm_merge_eabi_attributes): Improve enum sizes
1621 diagnostic, suppressing it when no_enum_size_warning dictates.
1622
5f6999aa
NC
16232007-03-20 Nick Clifton <nickc@redhat.com>
1624
1625 PR binutils/3535
1626 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
1627 specific conditions that need the program headers to be
1628 rewritten.
1629
831480e9 16302007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
1631
1632 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
1633 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1634 SizeOfInitializedData, SizeOfUninitializedData,
1635 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
1636 extra PE a.out header.
1637 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
1638 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
1639 defined.
1640 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
1641 defined.
1642 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
1643 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1644 SizeOfInitializedData, SizeOfUninitializedData,
1645 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
1646 extra PE a.out header.
1647
831480e9 16482007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
1649
1650 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
1651 only if BFD64 is defined.
1652
5384511f
AM
16532007-03-17 Alan Modra <amodra@bigpond.net.au>
1654
1655 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
1656 on setjmp calls.
1657
187b3d5d
L
16582007-03-15 H.J. Lu <hongjiu.lu@intel.com>
1659
1660 * doc/Makefile.in: Regenerated.
1661
c428fa83
L
16622007-03-15 H.J. Lu <hongjiu.lu@intel.com>
1663
1664 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
1665 create doc/bfdver.texi.
1666 * Makefile.in: Regenerated.
1667
1668 * configure.in (--with-bugurl): New option.
1669 * configure: Regenerated.
1670
1671 * version.h (REPORT_BUGS_TO): New.
1672
d1036acb
L
16732007-03-13 H.J. Lu <hongjiu.lu@intel.com>
1674
1675 PR binutils/3826
1676 * elf-bfd.h (elf_backend_data): Add elf_osabi.
1677 (_bfd_elf_set_osabi): New.
1678
1679 * elf.c (_bfd_elf_set_osabi): New.
1680
1681 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
1682 (elf_backend_post_process_headers): Defined with
1683 _bfd_elf_set_osabi.
1684 (ELF_OSABI): Properly defined for each target.
1685
1686 * elf32-i370.c (i370_elf_post_process_headers): Removed.
1687 (ELF_OSABI): Defined.
1688 (elf_backend_post_process_headers): Defined with
1689 _bfd_elf_set_osabi.
1690
1691 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1692 freebsd.
1693 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
1694
1695 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
1696 (ELF_OSABI): Defined.
1697 (elf_backend_post_process_headers): Defined with
1698 _bfd_elf_set_osabi.
1699
1700 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1701 freebsd.
1702 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
1703 elf_osabi.
1704
1705 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
1706 with elf_osabi.
1707 (ELF_OSABI): Properly defined for each target.
1708 (elf_backend_post_process_headers): Defined with
1709 _bfd_elf_set_osabi for Linux.
1710
1711 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
1712 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1713 (elf_backend_post_process_headers): Defined with
1714 _bfd_elf_set_osabi.
1715
1716 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
1717 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1718 (elf_backend_post_process_headers): Defined with
1719 _bfd_elf_set_osabi.
1720
1721 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
1722 with any ELF target of the compatible machine for which we do not
1723 have a specific backend.
1724
1725 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
1726 with elf_osabi.
1727
1728 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
1729 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
1730
d4c87fc1
AM
17312007-03-08 Alan Modra <amodra@bigpond.net.au>
1732
1733 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
1734 V850_OTHER_* bits.
1735
9c6fc49d
AM
17362007-03-08 Alan Modra <amodra@bigpond.net.au>
1737
1738 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
1739 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
1740 Run "make dep-am".
1741 * Makefile.in: Regenerate.
1742 * po/SRC-POTFILES.in: Regenerate.
1743
faed74d6
L
17442007-03-07 H.J. Lu <hongjiu.lu@intel.com>
1745
1746 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
1747 (x86_64-*-kfreebsd*-gnu): Likewise.
1748 (x86_64-*-netbsd*): Likewise.
1749 (x86_64-*-openbsd*): Likewise.
1750 (x86_64-*-linux-*): Likewise.
1751
1752 * configure.in: Support bfd_efi_app_x86_64_vec.
1753 * configure: Regenerated.
1754
1755 * efi-app-x86_64.c: New file.
1756
1757 * targets.c (bfd_efi_app_x86_64_vec): New.
1758 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
1759
15344ad7
L
17602007-03-07 Kai Tietz <kai.tietz@onevision.com>
1761
1762 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
1763 const for type reloc_howto_type.
1764
ab96bf03
AM
17652007-03-07 Alan Modra <amodra@bigpond.net.au>
1766
1767 PR 3958
1768 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
1769 (elf_discarded_section): Move..
1770 * bfd-in.h: ..to here.
1771 * bfd-in2.h: Regenerate.
1772 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
1773 from discarded sections before relocate_section has done its job.
1774 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
1775 relocs against symbols from discarded sections.
1776 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
1777 SECREL32.
1778 (elf_hppa_relocate_section): Handle relocatable link after setting
1779 sec, sym, h etc. for final link. Squash error messages for
1780 relocatable link. Clear section contents for relocs against
1781 symbols in discarded sections, and zero reloc. Remove existing
1782 zero r_symndx code.
1783 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1784 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1785 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1786 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1787 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1788 (bfin_relocate_section): Likewise.
1789 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1790 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1791 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1792 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1793 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1794 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1795 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1796 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1797 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1798 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1799 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1800 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1801 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1802 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1803 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1804 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1805 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1806 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1807 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1808 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1809 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1810 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1811 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1812 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1813 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
1814 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1815 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1816 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1817 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1818 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1819 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1820 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1821 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1822 (elf64_alpha_relocate_section): Likewise.
1823 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1824 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1825 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1826 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1827 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1828 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1829 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1830 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1831
1832 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
1833 symbols for relocatable link. Don't use always-zero st_value.
1834 (elf_backend_rela_normal): Don't define.
1835 * elf32-bfin.c (bfinfdpic_relocate_section): Use
1836 RELOC_FOR_GLOBAL_SYMBOL.
1837 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1838 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
1839 section symbol adjustments with same for relocatable link.
1840 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1841 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
1842 (elf32_m68hc11_check_relocs): ..to here.
1843 * elf32-score.c (score_elf_final_link_relocate): Remove zero
1844 r_symndx code.
1845 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1846
0e922b77
AM
18472007-03-07 Alan Modra <amodra@bigpond.net.au>
1848
1849 PR 4144
1850 * elf.c (assign_file_positions_for_load_sections): Don't
1851 adjust p_memsz for !SEC_LOAD section vma modulo page size.
1852 Instead, use the same lma based adjustment for SEC_LOAD
1853 sections.
1854
25c6282a
BW
18552007-03-01 Bob Wilson <bob.wilson@acm.org>
1856
1857 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
1858 (find_relaxable_sections): Do not increment src_count for unknown
1859 opcodes. Decode only once instead of calling is_l32r_relocation.
1860 (compute_text_actions): Remove unused no_insn_move flag. Assert that
1861 src_next matches src_count in relax_info.
1862
066c2a57
JM
18632007-03-01 Joseph Myers <joseph@codesourcery.com>
1864
1865 * Makefile.am (bfdver.h): Use "." not " " between version number
1866 and date.
1867 * Makefile.in: Regenerate.
1868 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
1869 * configure: Regenerate.
1870
ed6ba298
NS
18712007-02-28 Nathan Sidwell <nathan@codesourcery.com>
1872
1873 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
1874
7a8757b3
AM
18752007-02-27 Alan Modra <amodra@bigpond.net.au>
1876
1877 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
1878 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
1879
024b2372
CD
18802007-02-23 Carlos O'Donell <carlos@codesourcery.com>
1881
1882 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
1883 DWARF even with 64-bit addresses.
1884 (_bfd_dwarf2_find_nearest_line): Likewise.
1885
cb3ff1e5
NC
18862007-02-23 Nick Clifton <nickc@redhat.com>
1887
1888 PR binutils/3535
1889 * elf.c (copy_private_bfd_data): Always rewrite the program
1890 headers when a Solaris interpreter segment is involved.
1891
6a5bb875
PB
18922007-02-22 Paul Brook <paul@codesourcery.com>
1893
1894 * elflink.c (gc_mark_hook_fn): Remove.
1895 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
1896 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
1897 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
1898 (elf_backend_data): Add gc_mark_extra_sections.
1899 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
1900 definition.
1901 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
1902 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
1903 (elf_backend_gc_mark_extra_sections): Define.
1904
2889e75b
NC
19052007-02-21 Nick Clifton <nickc@redhat.com>
1906
1907 * elf.c (_bfd_elf_map_sections_to_segments): If the
1908 override_segment_assignment callback is defined then call it.
1909
78859468
AM
19102007-02-21 Alan Modra <amodra@bigpond.net.au>
1911
1912 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
1913
ae0d2616
TS
19142007-02-19 Thiemo Seufer <ths@mips.com>
1915
1916 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
1917 translation marker from untranslatable strings.
1918
6bfdb61b
AM
19192007-02-19 Alan Modra <amodra@bigpond.net.au>
1920
1921 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
1922 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
1923 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
1924 (elfNN_bed): Init new field.
1925 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
1926
92f01d61
JM
19272007-02-17 Mark Mitchell <mark@codesourcery.com>
1928 Nathan Sidwell <nathan@codesourcery.com>
1929 Vladimir Prus <vladimir@codesourcery.com
1930 Joseph Myers <joseph@codesourcery.com>
1931
1932 * configure.in (--with-pkgversion): New option.
1933 * configure: Regenerate.
1934 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
1935 * Makefile.in: Regenerate.
1936 * version.h (BFD_VERSION_STRING): Define using
1937 @bfd_version_package@.
1938
c0e3f241
CD
19392007-02-16 Carlos O'Donell <carlos@codesourcery.com>
1940
1941 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
1942 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
1943 and EF_MIPS_UCODE.
1944
72f6ea61
AM
19452007-02-15 Alan Modra <amodra@bigpond.net.au>
1946
1947 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
1948 declare.
1949 (_bfd_norelocs_canonicalize_reloc): Likewise.
1950 * libbfd.h: Regenerate.
1951 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
1952 (_bfd_norelocs_canonicalize_reloc): Likewise.
1953 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
1954 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
1955 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
1956 * ihex.c: Similarly.
1957 * mach-o-target.c: Similarly.
1958 * mach-o.c: Similarly.
1959 * mmo.c: Similarly.
1960 * pef.c: Similarly.
1961 * ppcboot.c: Similarly.
1962 * srec.c: Similarly.
1963 * xsym.c: Similarly.
1964
fab4a87f
L
19652007-02-14 H.J. Lu <hongjiu.lu@intel.com>
1966
1967 PR ld/3953
1968 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
1969 when adding default symbol.
1970
e4e0193e
AM
19712007-02-13 Alan Modra <amodra@bigpond.net.au>
1972
1973 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
1974 for branch lookup table.
1975
84f5d08e
AM
19762007-02-12 Alan Modra <amodra@bigpond.net.au>
1977
1978 * elf64-ppc.c (create_linkage_sections): Don't create
1979 .rela.rodata.brlt for --emit-relocs.
1980 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
1981 (ppc_size_one_stub): Count them. Simplify test of stub type
1982 when counting stub relocs. Set SEC_RELOC too.
1983 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
1984 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
1985
4aac632e
AM
19862007-02-12 Alan Modra <amodra@bigpond.net.au>
1987
1988 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
1989 with a zero symbol index.
1990
8da3dbc5
AM
19912007-02-12 Alan Modra <amodra@bigpond.net.au>
1992
1993 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
1994
b31847af
DB
19952007-02-05 Dave Brolley <brolley@redhat.com>
1996 Stan Cox <scox@redhat.com>
1997
1998 PR ld/3972
1999 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
2000
722b0ff7 20012007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
2002 Richard Sandiford <rsandifo@redhat.com>
2003 Stan Cox <scox@redhat.com>
2004 Nick Clifton <nickc@redhat.com>
2005 DJ Delorie <dj@redhat.com>
2006 Frank Ch. Eigler <fche@redhat.com>
2007 Ben Elliston <bje@redhat.com>
2008 Richard Henderson <rth@redhat.com>
2009
2010 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
2011 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
2012 (BFD32_BACKENDS): Add elf32-mep.lo.
2013 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
2014 (cpu-mep.lo,elf32-mep.lo): New targets.
2015 * archures.c (bfd_arch_mep): New enumerator.
2016 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
2017 (bfd_mep_arch): New external variable.
2018 (bfd_archures_list): Add bfd_mep_arch.
2019 * config.bfd: Support mep-*-elf.
2020 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
2021 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
2022 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
2023 declarations.
2024 (_bfd_target_vector): Add bfd_elf32_mep_vec and
2025 bfd_elf32_mep_little_vec.
722b0ff7
DB
2026 * mep-relocs.pl: New file.
2027 * cpu-mep.c: New file.
2028 * elf32-mep.c: New file.
2029 * bfd-in2.h: Regenerate.
e382d174 2030 * po/POTFILES.in: Regenerate.
722b0ff7
DB
2031 * libbfd.h: Regenerate.
2032 * Makefile.in: Regenerate.
2033 * configure: Regenerate.
2034
d9352518
DB
20352007-02-05 Dave Brolley <brolley@redhat.com>
2036
2037 * elflink.c (evaluate_complex_relocation_symbols): Check for
2038 STT_SRELC for global symbols.
2039 (perform_complex_relocations): Renamed to
2040 perform_complex_relocation and now examines only one relocation.
2041 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 2042 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
2043 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
2044 (OD,OS,OU): #undefs corrected to N, S and U repectively.
2045 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
2046 (complex_reloc_installation_howto): Removed.
2047 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
2048 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
2049
d9352518 20502007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
2051 Richard Sandiford <rsandifo@redhat.com>
2052 DJ Delorie <dj@redhat.com>
2053 Graydon Hoare <graydon@redhat.com>
2054 Nick Clifton <nickc@cambridge.redhat.com>
2055 Jeff Holcomb <jeffh@redhat.com>
2056 Frank Ch. Eigler <fche@redhat.com>
2057
2058 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
2059 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
2060 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
2061 * elflink.c (set_symbolValue): New static function.
d9352518
DB
2062 (resolve_symbol): Likewise.
2063 (resolve_section): Likewise.
2064 (undefined_reference): Likewise.
2065 (eval_symbol): Likewise.
2066 (evaluate_complex_relocation_symbols): Likewise.
2067 (put_value): Likewise.
2068 (get_value): Likewise.
e382d174
DB
2069 (decode_complex_addend):
2070 (bfd_elf_perform_complex_relocation): New function.
2071 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
2072 * reloc.c (BFD_RELOC_RELC): New relocation number.
2073 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 2074
f1ab2340 20752007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 2076
f1ab2340
BW
2077 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
2078 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
2079 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
2080 (elf_xtensa_allocate_got_size): Replace these with...
2081 (elf_xtensa_allocate_dynrelocs): ...this new function.
2082 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 2083
e5f131d1 20842007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 2085
e5f131d1
BW
2086 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
2087 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
2088 Set src_mask to zero.
2089 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
2090 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 2091
4608f3d9
BW
20922007-02-02 Bob Wilson <bob.wilson@acm.org>
2093
2094 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
2095 (elf_xtensa_dynamic_symbol_p): ...this.
2096
f0e6fdb2
BW
20972007-02-02 Bob Wilson <bob.wilson@acm.org>
2098
2099 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
2100 (struct elf_xtensa_link_hash_table): New.
2101 (elf_xtensa_hash_table): New.
2102 (elf_xtensa_link_hash_table_create): New.
2103 (elf_xtensa_check_relocs): Update plt_reloc_count references.
2104 Update arguments to add_extra_plt_sections.
2105 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
2106 table. Update for plt_reloc_count and add_extra_plt_sections.
2107 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
2108 argument with link info. Update calls to elf_xtensa_get_plt_section
2109 and elf_xtensa_get_gotplt_section.
2110 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
2111 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
2112 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
2113 (relax_property_section): Get sections from the hash table and update
2114 function calls.
2115 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
2116 dynobj argument with link info. Get sections for first plt chunk from
2117 the hash table.
2118 (bfd_elf32_bfd_link_hash_table_create): Define.
2119
c15f73f9
JJ
21202007-02-02 Jakub Jelinek <jakub@redhat.com>
2121
2122 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
2123 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
2124 (struct elf_symbol): Change first member into union.
2125 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
2126 internal syms. Only compare st_shndx fields.
2127 (elf_create_symbuf): New function.
2128 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
2129 for bfds, use a binary search, otherwise don't qsort symbols
2130 unnecessarily only to select which symbols are for the particular
2131 shndx.
2132
effdf42a
NC
21332007-02-01 Nick Clifton <nickc@redhat.com>
2134
2135 PR ld/3852
2136 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
2137 in the elf_link_hash_table structure.
2138
183e98be
AM
21392007-02-01 Alan Modra <amodra@bigpond.net.au>
2140
2141 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
2142 * elfxx-target.h (elf_backend_write_core_note): Define and use.
2143 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
2144 32-bit core note on 64-bit target.
2145 (elfcore_write_prstatus): Likewise.
2146 (elfcore_write_lwpstatus): Make note_name const.
2147 (elfcore_write_prfpreg): Likewise.
2148 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
2149 target.
2150 * elf32-ppc.c (ppc_elf_write_core_note): New function.
2151 (elf_backend_write_core_note): Define.
2152 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
2153 (elf_backend_write_core_note): Define.
2154
fc523535 21552007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
2156
2157 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
2158 (elf32_bed): Defined for elf32-us-cris.
2159
2160 * elf64-sh64.c (elf64_bed): Defined for Linux.
2161 (INCLUDED_TARGET_FILE): Removed.
2162
2163 * elfxx-target.h (elfNN_bed): Always define. Don't check
2164 INCLUDED_TARGET_FILE.
2165
c9b57b7e
DD
21662007-01-31 DJ Delorie <dj@redhat.com>
2167
2168 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
2169 message for dangerous relocs, special case the common user error.
2170
53020534
L
21712007-01-30 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 * elf.c (copy_elf_program_header): Start from the first section
2174 in a segment and stop when all sections in a segment are
2175 accounted for.
2176
c7b8f16e
JB
21772007-01-29 Julian Brown <julian@codesourcery.com>
2178
2179 * bfd-in2.h: Regenerate.
2180 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
2181 instruction scanning should be done.
2182 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
2183 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
2184 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
2185 prototype.
2186 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
2187 argument.
2188 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
2189 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
2190 (elf32_vfp11_erratum_type): New enum.
2191 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
2192 veneers.
2193 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
2194 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
2195 vfp11_fix and num_vfp11_fixes fields.
2196 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
2197 vfp11_erratum_glue_size, num_vfp11_fixes fields.
2198 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
2199 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
2200 glue section.
2201 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
2202 to a section's map.
2203 (record_vfp11_erratum_veneer): Create a single veneer, and its
2204 associated symbols.
2205 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
2206 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
2207 BFDs.
2208 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
2209 required.
2210 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
2211 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
2212 (bfd_arm_vfp11_write_mask): Update write mask according to coded
2213 register number.
2214 (bfd_arm_vfp11_antidependency): New function.
2215 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
2216 (elf32_arm_compare_mapping): Declare.
2217 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
2218 BFD for potential erratum-triggering insns. Record results.
2219 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
2220 and branches to veneers have been placed in virtual memory after
2221 layout.
2222 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
2223 hash table.
2224 (elf32_arm_output_symbol_hook): Remove.
2225 (elf32_arm_write_section): Output veneers, and branches to veneers.
2226 Use maps from input sections, not output sections, for code
2227 byte-swapping.
2228 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
2229 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
2230 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
2231 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
2232
22332007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
2234
2235 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 2236 (INCLUDED_TARGET_FILE): Removed.
83d1651b 2237
914dfb0f
DA
22382007-01-27 Mike Frysinger <vapier@gentoo.org>
2239
2240 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
2241 (INCLUDED_TARGET_FILE): Remove.
2242
78eba9b6
DD
22432007-01-25 DJ Delorie <dj@redhat.com>
2244
2245 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
2246 R_M32C_16 or R_M32C_24 relocs.
2247
64ee10b6
NC
22482007-01-25 Nick Clifton <nickc@redhat.com>
2249
2250 PR binutils/3874
2251 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
2252 hash table was created by elf32_avr_link_hash_table_create before
2253 using it.
2254 (elf32_avr_link_hash_newfunc): New function. Just pass the call
2255 through to _bfd_elf_link_hash_newfunc.
2256 (elf32_avr_link_hash_table_create): Use
2257 elf32_avr_link_hash_newfunc instead of
2258 _bfd_elf_link_hash_newfunc.
2259 (elf32_avr_relocate_section): Check for the hash table pointer
2260 being NULL.
2261 (elf32_avr_relax_section, avr_build_one_stub,
2262 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
2263 elf32_avr_build_stubs): Likewise.
2264
40b36307
L
22652007-01-16 H.J. Lu <hongjiu.lu@intel.com>
2266
2267 PR ld/3831
2268 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
2269 argument, Elf_Internal_Sym *.
2270
2271 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
2272 symbol dynamic if info->dynamic_data is TRUE.
2273 (bfd_elf_record_link_assignment): Updated call to
2274 bfd_elf_record_link_assignment.
2275 (_bfd_elf_merge_symbol): Likewise. Always call
2276 bfd_elf_link_mark_dynamic_symbol.
2277
fc523535 22782007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
2279
2280 * Makefile.am (BFD_LIBS): Removed.
2281 * Makefile.in: Regenerated.
2282
fc523535 22832007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
2284
2285 PR binutils/3631
2286 * Makefile.am (OFILES): Add @bfd64_libs@.
2287 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
2288 * Makefile.in: Regenerated.
2289
2290 * configure.in (bfd_libs): Replaced by ...
2291 (bfd64_libs): This.
2292 * configure: Regenerated.
2293
59e0647f
NS
22942007-01-11 Nathan Sidwell <nathan@codesourcery.com>
2295
2296 * elf.c (assign_file_positions_for_load_sections): We can
2297 require fewer phdrs than expected.
2298
3bdcfdf4
KH
22992007-01-08 Kazu Hirata <kazu@codesourcery.com>
2300
2301 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
2302 * bfd-in2.h: Regenerate.
2303 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
2304 bfd_mach_cpu32_fido.
2305 (m68k_arch_features): Use fido_a instead of cpu32.
2306 (bfd_m68k_compatible): Reject the combination of Fido and
2307 ColdFire. Accept the combination of CPU32 and Fido with a
2308 warning.
2309 * elf32-m68k.c (elf32_m68k_object_p,
2310 elf32_m68k_merge_private_bfd_data,
2311 elf32_m68k_print_private_bfd_data): Treat Fido as an
2312 architecture by itself.
2313
42037fe5
NC
23142007-01-08 Kai Tietz <kai.tietz@onevision.com>
2315
2316 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
2317
ebe8b991
JJ
23182007-01-05 Jakub Jelinek <jakub@redhat.com>
2319
2320 * texhex.c (first_phase): Don't fall through into the default
2321 case.
2322 (pass_over): Replace abort () calls with return FALSE. Fix
2323 buffer overflow.
2324
b327f31f
AM
23252007-01-04 Jie Zhang <jie.zhang@analog.com>
2326
2327 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
2328 SEC_EXCLUDE on zero size .eh_frame.
2329
10a2343e 2330For older changes see ChangeLog-2006
56882138
AM
2331\f
2332Local Variables:
2333mode: change-log
2334left-margin: 8
2335fill-column: 74
2336version-control: never
2337End:
This page took 0.587023 seconds and 4 git commands to generate.