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