* arm-dis.c (arm_opcodes): Remove superflous escapes of percent operators.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b7fcf6f6
AM
12007-11-06 Alan Modra <amodra@bigpond.net.au>
2
102890f0
AM
3 * elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
4 (ppc64_elf_gc_sweep_hook): ..or here..
5 (ppc64_elf_tls_optimize): ..or here. Make two passes through the
6 relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
7 (allocate_dynrelocs): Refcount tlsld_got here.
8 (ppc64_elf_size_dynamic_sections): Allocate local got and call
9 allocate_dynrelocs before allocating tlsld_got.
10 (ppc64_elf_relocate_section): Remove check that a tls_get_addr
11 call follows gd and ld relocs.
12
b7fcf6f6
AM
13 * elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here..
14 (ppc_elf_gc_sweep_hook): ..or here..
15 (ppc_elf_tls_optimize): ..or here. Make two passes through the
16 relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
17 (allocate_dynrelocs): Refcount tlsld_got here.
18 (ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before
19 allocating tlsld_got.
20 (ppc_elf_relocate_section): Remove check that a tls_get_addr
21 call follows gd and ld relocs.
22
9ca98086
AM
232007-11-05 Alan Modra <amodra@bigpond.net.au>
24
25 * merge.c (sec_merge_hash_lookup): Revert last change.
26 (record_section): Likewise.
27 (_bfd_merge_sections): Likewise.
28 (_bfd_merged_section_offset): Properly handle NULL secinfo.
29 (_bfd_add_merge_section): Allocate extra space for a zero
30 terminator on SEC_STRINGS sections.
31
11ec4ba9
DS
322007-11-05 Danny Smith <dannysmith@users.sourceforge.net>
33
34 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
35 and .bss section use the default.
36 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
37
e6c6c8f3
JM
382007-11-01 Joseph Myers <joseph@codesourcery.com>
39
40 * merge.c (sec_merge_hash_lookup): Add parameter sec_end. Check
41 for unterminated strings. All callers changed.
42 (record_section): Add parameter abfd. Give error message for
43 unterminated strings.
44 (_bfd_merge_sections): Update call to record_section.
45 (_bfd_write_merged_section, _bfd_merged_section_offset): Handle
46 NULL secinfo from merge failures.
47
cf4a529b
NC
482007-10-31 Nick Clifton <nickc@redhat.com>
49
50 * elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for
51 align relocs when there are no relocs attached to the section.
52
8f317e31
AM
532007-10-31 Alan Modra <amodra@bigpond.net.au>
54
55 * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
56 * elflink.c (bfd_elf_match_symbols_in_sections): Make static.
57 Remove section name comparisons.
58
569006e5
NC
592007-10-30 Nick Clifton <nickc@redhat.com>
60
61 * reloc.c (BFD_RELOC_MN10300_ALIGN): Add.
62 * bfd-in2.h: Regenerate.
63 * libbfd.h: Regnerate.
64 * elf-m10300.h: Handle R_MN10300_ALIGN relocs.
65 (mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs.
66 Re-fix off by one error in comparisons.
67
db86b2dc
PA
682007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
69
70 * bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case.
71 * bfd-in2.h: Regenerate.
72
c6e65352
DJ
732007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
74
75 * elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support for
76 Tag_GNU_Power_ABI_Vector.
77
7c8b76cc
JM
782007-10-25 Joseph Myers <joseph@codesourcery.com>
79
80 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Do not add
81 PT_NULL header when not linking.
82
97753bd5
AM
832007-10-25 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
84
85 * elf.c (elfcore_grok_ppc_vmx): New function.
86 (elfcore_grok_note): Handle NT_PPC_VMX.
87 (elfcore_write_ppc_vmx): New function.
88 * elf-bfd.h (elfcore_write_ppc_vmx): Declare.
89
dd323078
AM
902007-10-24 Alan Modra <amodra@bigpond.net.au>
91
92 * Makefile.am: Run "make dep-am".
93 * Makefile.in: Regenerate.
94 * po/SRC-POTFILES.in: Regenerate.
95
f94498ff
AM
962007-10-23 Alan Modra <amodra@bigpond.net.au>
97
98 * elf64-ppc.c (ppc_build_one_stub): Don't duplicate relocs
99 emitted for ".brlt" entries.
100 (toc_adjusting_stub_needed): Don't treat ".fixup" specially here..
101 (ppc64_elf_next_input_section): ..instead do so here.
102
bfff1642
NC
1032007-10-19 Nick Clifton <nickc@redhat.com>
104
105 * config.bfd: Recognise am34-linux-gnu target.
106 * reloc.c: Add BFD_RELOC_MN10300_SYM_DIFF relocation.
107 * bfd-in2.h: Regenerate.
108 * libbfd.h: Regenerate.
109 * elf-m10300.c (elf_mn10300_howto): Add R_MN10300_SYM_DIFF.
110 (mn10300_reloc_map): Likewise.
111 (mn10300_elf_check_relocs): Do not create dynamic relocs for
112 symbol differences or relocations against absolute symbols.
113 (mn10300_elf_final_link_relocate): Likewise.
114 Handle R_MN10300_SYM_DIFF relocs.
115 (mn10300_elf_relocate_section): Fix for creating local copys of
116 dynamic relocs.
117 (mn10300_elf_relax_delete_bytes): Adjust symbols at the end of the
118 region. Adjust the size of function symbols.
119 (mn10300_elf_relax_section): Ignore symbols that are in discarded
120 sections.
121
603b7257
NC
1222007-10-19 Nick Clifton <nickc@redhat.com>
123
124 * elf-m10300.c: Convert to ISO C.
125
13285a1b
AM
1262007-10-18 H.J. Lu <hongjiu.lu@intel.com>
127 Alan Modra <amodra@bigpond.net.au>
128
129 PR ld/4424
130 * config.bfd (targ_selvecs): Add bfd_elf64_alpha_vec for
131 alpha/FreeBSD. Add bfd_elf64_sparc_vec for sparc64/FreeBSD.
132 Add bfd_elf32_i386_vec and bfd_efi_app_ia32_vec for i386/FreeBSD.
133 (targ64_selvecs): Set for i386/FreeBSD.
134 * elf-bfd.h (elf_backend_data): Add relocs_compatible.
135 (_bfd_elf_default_relocs_compatible): Declare.
136 (_bfd_elf_relocs_compatible): Declare.
137 * elfxx-target.h (elf_backend_relocs_compatible): Define.
138 (elfNN_bed): Init new relocs_compatible field.
139 * elflink.c (_bfd_elf_default_relocs_compatible): New function.
140 (_bfd_elf_relocs_compatible): New function.
141 (elf_link_add_object_symbols): Call bed->relocs_compatible.
142 * elf32-i386.c (elf_backend_relocs_compatible): Define.
143 * elf64-alpha.c: Likewise.
144 * elf64-sparc.c: Likewise.
145 * elf64-x86-64.c: Likewise.
146
ae326da8
BW
1472007-10-16 Bob Wilson <bob.wilson@acm.org>
148
149 * elf32-xtensa.c (relax_section): Check for a reference to a discarded
150 DWARF section and anticipate its replacement with the kept section.
151
a3ef2d63
BW
1522007-10-16 Bob Wilson <bob.wilson@acm.org>
153
154 * elf32-xtensa.c (elf_xtensa_discard_info_for_section): Remove
155 unnecessary size variables. Set sec->rawsize.
156 (relax_section, relax_property_section): Likewise.
157
73c5c7a8
BW
1582007-10-16 Bob Wilson <bob.wilson@acm.org>
159
160 * section.c (struct bfd_section): Clarify comment for rawsize field.
161 * bfd-in2.h: Regenerate.
162
1dd2625f
BW
1632007-10-16 Bob Wilson <bob.wilson@acm.org>
164
165 * elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
166 values if they are set.
167
8bc9c892
NC
1682007-10-16 Nick Clifton <nickc@redhat.com>
169
170 PR 5146
171 * configure.in (AC_CHECK_HEADERS): Add alloca.h
172 * configure: Regenerate.
173 * config.in: Regenerate.
174 * som.c: Replace alloca-conf.h inclusion with code recommended in
175 autoconf documentation.
176 * elf64-hppa.c: Likewise.
177
504b7d20
NC
1782007-10-16 Nick Clifton <nickc@redhat.com>
179
180 * configure.in (--enable-elf-stt-common): New configure
181 option. If enabled then the tools can generate symbols with
182 the ELF STT_COMMON type.
183 * config.in: Regenerate.
184 * configure: Regenerate.
185 * elf.c (swap_out_syms): If USE_STT_COMMON is defined then set
186 the type of emitted common symbols to STT_COMMON.
187 * elfcode.h (elf_slurp_symbol_table): Accept STT_COMMON symbol
188 types.
189
b1657152
AM
1902007-10-15 Alan Modra <amodra@bigpond.net.au>
191
192 * coff-arm.c (arm_emit_base_file_entry): Check fwrite return value.
193 Return status. Adjust callers.
194 * coff-mcore.c (mcore_emit_base_file_entry): Likewise.
195 * coff-ppc.c (write_base_file_entry): New function.
196 (coff_ppc_relocate_section): Use it.
197 * elf32-arm.c (find_thumb_glue): Check asprintf return status.
198 (find_arm_glue): Likewise.
199 * vms-misc.c (_bfd_vms_output_flush): Check fwrite return value.
200
4b93929b
NC
2012007-10-12 Nick Clifton <nickc@redhat.com>
202
203 PR 5160
204 * elflink.c (eval_symbol): Remove bufsz variable and use
205 sizeof(symbuf) where necessary.
206
e9deb29d
NC
2072007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
208
209 * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
210
720199d6
DJ
2112007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
212
213 * elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced
214 local symbols specially.
215 (mips_elf_set_global_got_offset): Skip forced local symbols.
216
971d4640
AM
2172007-10-12 Alan Modra <amodra@bigpond.net.au>
218
219 * elf.c (elfcore_grok_prxfpreg): Fix comment typo.
220
f210dcff
L
2212007-10-10 H.J. Lu <hongjiu.lu@intel.com>
222
223 * elf.c (get_program_header_size): Always add a PT_GNU_RELRO
224 segment for -z relro.
225 (_bfd_elf_map_sections_to_segments): Make a PT_GNU_RELRO
226 segment only when needed.
227
9b7f5d20
BW
2282007-10-05 Bob Wilson <bob.wilson@acm.org>
229
230 * elf32-xtensa.c (relax_section): Call pin_internal_relocs when
231 changing a relocation's offset. Adjust call to translate_reloc. Do
232 not add a fix record for a DIFF reloc. For other relocs, only add a
233 fix record if the translated target is in a different object file;
234 otherwise, just update the relocation. Call pin_internal_relocs when
235 updating a reloc but not when adding a fix record.
236 (translate_reloc): Get the target section from a new argument, not
237 from the relocation. Change check for relaxable sections to an
238 assertion. Compute separate offset adjustments for the base symbol
239 and the addend, and set the new relocation's addend correctly. Return
240 the new target section.
241
768a5a74
BW
2422007-10-05 Bob Wilson <bob.wilson@acm.org>
243
244 * elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
245 r_type and howto after calling do_fix_for_relocateable_link and
246 do_fix_for_final_link.
247
03669f1c
BW
2482007-10-05 Bob Wilson <bob.wilson@acm.org>
249
250 * elf32-xtensa.c (removed_by_actions): New.
251 (offset_with_removed_text): Reimplement using removed_by_actions.
252 (offset_with_removed_text_before_fill): Delete.
253 (relax_property_section): Use removed_by_actions. Rearrange logic.
254 (relax_section_symbols): Likewise.
255
0f5f1638
BW
2562007-10-04 Bob Wilson <bob.wilson@acm.org>
257
258 * elf32-xtensa.c (reloc_bfd_fix_struct): Delete target_abfd field.
259 (reloc_bfd_fix_init): Remove target_abfd argument.
260 (relax_section, move_literal): Adjust calls to reloc_bfd_fix_init.
261
1f7a4e42
NC
2622007-10-04 Nick Clifton <nickc@redhat.com>
263
264 PR linker/5099
265 * elf64-x86-64.c (elf64_x86_64_check_relocs): Add missing
266 apostrophe to error message.
267
7fac7ff4
NC
2682007-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
269
270 * elf32-cr16.c: Fixed DISP8, DISP20 and IMM20 relocations at
271 final relocation phase.
272 Added the below relaxations: IMM32 -> IMM20/IM16 -> IMM4.
273 * reloc.c: Added 3 new relocations: R_CR16_SWITCH8,
274 R_CR16_SWITCH16, R_CR16_SWITCH32.
275 * libbfd.h: Regenerate.
276 * bfd-in2.h: Regenerate.
277
a0c8462f
AM
2782007-09-30 Alan Modra <amodra@bigpond.net.au>
279
280 * elflink.c: Formatting.
281
0f02bbd9
AM
2822007-09-29 Alan Modra <amodra@bigpond.net.au>
283
284 * elflink.c (resolve_symbol): Handle symbols in SEC_MERGE
285 sections. Don't test symbol st_shndx. Don't bother with
286 bfd_link_hash_common symbols. Print longs rather than ints
287 in debug messages.
288 (eval_symbol): Replace "sym" and "advanced" params with "symp".
289 Replace "addr" and "section_offset" params with "dot". Don't
290 cast bfd_vma values to signed, cast them to bfd_signed_vma.
291 (bfd_elf_perform_complex_relocation): Delete "output_bfd", "info",
292 "local_syms" and "local_sections" params. Add "relocation".
293 Delete code calculating relocation value.
294 (evaluate_complex_relocation_symbols): Delete function. Fold into..
295 (elf_link_input_bfd): ..existing code examining relocs.
296 * elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
297 * elf32-mep.c (mep_elf_check_relocs): Delete function.
298 (mep_elf_gc_sweep_hook, mep_elf_gc_mark_hook): Likewise.
299 (mep_elf_object_p): Don't set elf_bad_symtab.
300 (elf_backend_check_relocs): Don't define.
301 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): Likewise.
302 (elf_backend_can_gc_sections, USE_RELA): Likwise.
303 (mep_elf_relocate_section): Move bfd_elf_perform_complex_relocation
304 call after we have calculated reloc value. Delete local sym
305 debug code. Use RELOC_FOR_GLOBAL_SYMBOL. Delete addend
306 adjusting code..
307 (elf_backend_rela_normal): ..instead define this.
308
5582a088
AM
3092007-09-28 Alan Modra <amodra@bigpond.net.au>
310
311 * elf-m10300.c (mn10300_elf_check_relocs): Delete dead code.
312 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
313 * elf32-avr.c (elf32_avr_check_relocs): Likewise.
314 * elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
315 * elf32-cris.c (cris_elf_check_relocs): Likewise.
316 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
317 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
318 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
319 * elf32-frv.c (_frvfdpic_check_discarded_relocs): Likewise.
320 (elf32_frv_check_relocs): Likewise.
321 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
322 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
323 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
324 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
325 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
326 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
327 * elf32-mt.c (mt_elf_check_relocs): Likewise.
328 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
329 * elf32-sh.c (sh_elf_check_relocs): Likewise.
330 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
331 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
332 * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
333 (score_elf_local_relocation_p): Likewise.
334 (_bfd_score_elf_relocate_section): Likewise.
335 (score_elf_final_link_relocate): Likewise.
336
d17e0c6e
JB
3372007-09-26 Jan Beulich <jbeulich@novell.com>
338
339 * elf32-i386.c (elf_i386_check_relocs): Revert NULL pointer
340 check for R_386_GNU_VTINHERIT.
341 * elf-m10300.c (mn10300_elf_check_relocs): Check for NULL
342 pointer for R_xxx_GNU_VTENTRY.
343 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
344 * elf32-bfin.c (bfin_check_relocs): Likewise.
345 (bfinfdpic_check_relocs): Likewise.
346 * elf32-cris.c (cris_elf_check_relocs): Likewise.
347 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
348 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
349 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
350 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
351 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
352 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
353 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
354 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
355 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
356 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
357 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
358 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
359 * elf32-s390.c (elf_s390_check_relocs): Likewise.
360 * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
361 * elf32-sh.c (sh_elf_check_relocs): Likewise.
362 * elf32-v850.c (v850_elf_check_relocs): Likewise.
363 * elf32-vax.c (elf_vax_check_relocs): Likewise.
364 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
365 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
366 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
367 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
368 * elf64-s390.c (elf_s390_check_relocs): Likewise.
369 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
370 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
371 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
372 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
373
8977835c
AM
3742007-09-26 Alan Modra <amodra@bigpond.net.au>
375
376 * elflink.c (set_symbol_value): Add isymbuf and locsymcount
377 params. Change symidx to a size_t. Don't access past end
378 of symbol buffer.
379 (resolve_symbol): Add isymbuf param and use instead of
380 finfo->internal_syms.
381 (eval_symbol, evaluate_complex_relocation_symbols): Likewise.
382 (elf_link_input_bfd): Don't read symbols specially for
383 evaluate_complex_relocation_symbols.
384
06dcabb0
NC
3852007-09-26 Tristan Gingold <gingold@adacore.com>
386
387 * som.c (som_get_reloc_upper_bound): If there are no relocs return
388 enough space to hold a NULL pointer.
389
2e5b2d74
AM
3902007-09-26 Alan Modra <amodra@bigpond.net.au>
391
392 * elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
393
98e89a7d
AM
3942007-09-25 Alan Modra <amodra@bigpond.net.au>
395
2cb5950e
AM
396 * elf32-spu.c (struct spu_link_hash_table): Add ovly_load_r_symndx.
397 (spu_elf_size_stubs): Count stub relocs.
398 (write_one_stub): Emit relocs on overlay call stubs.
399
98e89a7d
AM
400 * elf32-spu.c (struct spu_link_hash_table): Add "stubs".
401 (spu_elf_link_hash_table_create): Init new field.
402 (spu_elf_size_stubs): Store sorted stub syms in new htab field
403 rather than local var.
404 (spu_elf_build_stubs): Iterate over htab stubs rather than
405 hash traversal.
406 (struct stubarr): Delete.
407 (allocate_spuear_stubs, populate_stubs, write_one_stub): Adjust.
408
e970b90a
DJ
4092007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
410
411 * elf.c (assign_file_positions_for_load_sections): Trust
412 p_align_valid.
413 (copy_elf_program_header): Copy PT_NULL segments.
414
fad9eaf0
AM
4152007-09-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
416
417 * elf32-spu.c (is_indirect_branch): New function.
418 (find_function_stack_adjust): End scan on hitting indirect branch.
419 (sum_stack): Cast %v arg to correct type.
420
10569aeb
L
4212007-09-21 H.J. Lu <hongjiu.lu@intel.com>
422
423 * Makefile.am: Run "make dep-am".
424 * Makefile.in: Regenerated.
425
4ab20029
NC
4262007-09-21 Doug Kwan <dougkwan@google.com>
427
428 * Makefile.am (BFD32_LIBS): Add arange-set.lo.
429 (BFD32_LIBS_CFILES): Add arange-set.c.
430 (SOURCE_HFILES): Add arange-set.h
431 (dwarf2.lo): Add dependency upon arange-set.h.
432 (arange-set.lo): New target.
433 * Makefile.in: Regenerate.
434 * arange-set.c: New file.
435 * arange-set.h: New file.
436 * dwarf2.c: Include arange-set.h.
437 (struct dwarf2_debug) Add new fields comp_unit_count and
438 comp_unit_arange_set.
439 (struct comp_unit) Replace field arange with a new field arange_set.
440 (dwarf2_arange_set_allocate, dwarf2_arange_set_deallocate,
441 dwarf2_combine_arange_value, dwarf2_arange_set_new,
442 dwarf2_arange_set_with_value_new, dwarf2_comp_unit_arange_add): New
443 functions to utilize arange set in dwarf2.c.
444 (arange_add): Formatting change for a line longer than 80 characters.
445 (decode_line_info): Replace call target arange_add with
446 dwarf2_comp_unit_arange_add.
447 (read_rangelist_insert_arange_list,
448 read_rangelist_comp_unit_arange_add): New functions used as callbacks
449 for read_rangelist.
450 (read_rangelist): Change interface to accept a callback and data to
451 allow caller to select the action peformed on a new range list read.
452 (scan_unit_for_symbols): Use new interface of read_rangelist.
453 (parse_comp_unit): Create an arange set for each new comp unit. Use new
454 interface of read_rangelist. Replace call to arange_add with that to
455 dwarf2_comp_unit_arange_add.
456 (comp_unit_contains_address): Replace sequential search with a call to
457 arange_set_lookup_address, which can handles large set efficiently.
458 (stash_copy_local_aranges, stash_maybe_enable_arange_set,
459 stash_find_nearest_line_fast): New functions maintaining and using a
460 valued global arange set for all compilation units to speed up
461 bfd_dwarf2_find_nearest_line.
462 (find_line): Use global arange set. Replace sequential search over all
463 compilation units with a call to stash_find_nearest_line_fast. Add
464 book keeping to count number of compilation units. Replace empty
465 arange list test with a call to arange_set_empty_p.
466
6119d252
NC
4672007-09-21 Olivier Hainque <hainque@adacore.com>
468 Tristan Gingold <gingold@adacore.com>
469
470 * syms.c (_bfd_stab_section_find_nearest_line): Look at the
471 specific SOM sections for stabs if the regular ones are not found.
472 * som.h (struct somdata): Add a line_info field, to be used by
473 som_find_nearest_line.
474 * som.c (som_find_nearest_line): Implement using the bfd stabs
475 function above.
476
b55fd4d4
DJ
4772007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
478
479 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make sure .got
480 will be output.
481
a69898aa
AM
4822007-09-19 Alan Modra <amodra@bigpond.net.au>
483 Doug Kwan <dougkwan@google.com>
484
485 * bfd-in.h (bfd_hash_insert): Declare.
486 * bfd-in2.h: Regenerate.
487 * hash.c (bfd_hash_insert): New function. Split out from..
488 (bfd_hash_lookup): ..here.
489 * merge.c (sec_merge_hash_lookup): Use bfd_hash_insert.
490
14b1c01e
AM
4912007-09-18 Alan Modra <amodra@bigpond.net.au>
492
493 * elf.c (bfd_section_from_shdr): Check bfd_alloc return.
494 (elfcore_write_note): Check realloc return.
495 * elflink.c (_bfd_elf_link_find_version_dependencies): Check
496 bfd_zalloc return.
497 (_bfd_elf_link_assign_sym_version): Check bfd_malloc return.
498 (elf_link_add_object_symbols): Likewise.
499 (struct hash_codes_info): New.
500 (elf_collect_hash_codes): Return bfd_malloc error.
501 (struct collect_gnu_hash_codes): Add "error".
502 (elf_collect_gnu_hash_codes): Return bfd_malloc error.
503 (bfd_elf_size_dynamic_sections): Check return status of
504 _bfd_elf_link_find_version_dependencies.
505 (bfd_elf_size_dynsym_hash_dynstr): Adjust for elf_collect_hash_codes
506 and elf_collect_gnu_hash_codes changes.
507 (elf_sym_name_compare): Formatting.
508 (elf_fixup_link_order): Use bfd_malloc, not xmalloc.
509
b10a8ae0
L
5102007-09-17 H.J. Lu <hongjiu.lu@intel.com>
511
512 PR binutils/3281
513 PR binutils/5037
514 * elf-bfd.h (elf_obj_tdata): Remove relro.
515
516 * elf.c (get_program_header_size): Check info->relro instead
517 of elf_tdata (abfd)->relro.
518 (_bfd_elf_map_sections_to_segments): Likewise.
519 (assign_file_positions_for_load_sections): Don't set
520 PT_GNU_RELRO segment alignment here.
521 (assign_file_positions_for_non_load_sections): Properly set up
522 PT_GNU_RELRO segment for copying executable/shared library.
523 (rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
524 (copy_elf_program_header): Set p_size and p_size_valid fields for
525 PT_GNU_RELRO segment.
526
041a1845
NC
5272007-09-17 Nick Clifton <nickc@redhat.com>
528
529 * po/fi.po: New Finnish translation.
530 * po/es.po: Updated Spanish translation.
531 * configure.in (ALL_LINGUAS): Add fi.
532 * configure: Regenerate.
533 * po/bfd.pot: Regenerate.
534
0bc43230
AM
5352007-09-15 Nick Clifton <nickc@redhat.com>
536
537 * bfd.c (_bfd_default_error_handler): fflush stdout.
538
3ea6b9a5
AM
5392007-09-14 Alan Modra <amodra@bigpond.net.au>
540
541 * opncls.c (find_separate_debug_file): Ensure bfd_set_error has
542 been called on all error return paths.
543 (bfd_fill_in_gnu_debuglink_section): Use bfd_malloc, not malloc.
544 Clear padding after filename
545
5a1dcb7e
AM
5462007-09-14 Alan Modra <amodra@bigpond.net.au>
547
548 * format.c (bfd_check_format_matches): Record matching targets even
549 when "matching" is NULL to allow bfd_associated_vector matches.
550 Consolidate error return code. Consolidate ok return code. Always
551 restore original target and format on error.
552
bce5e5c9
AM
5532007-09-14 Alan Modra <amodra@bigpond.net.au>
554
555 * configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for
556 long long. Partly revert 2007-07-12 change, so that
557 BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set
558 independent of "void *" size.
559 * configure: Regenerate.
560 * config.in: Regenerate.
561 * Makefile.in: Regenerate.
562
01a3c213
AM
5632007-09-12 Alan Modra <amodra@bigpond.net.au>
564
565 * elf-bfd.h (struct elf_backend_data): Delete elf_backend_sprintf_vma
566 and elf_backend_fprintf_vma.
567 (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
568 * elf.c (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
569 * elfxx-target.h (elf_backend_sprintf_vma): Don't define.
570 (elf_backend_fprintf_vma): Likewise.
571 (elfNN_bed): Don't init removed fields.
572 * bfd.c (is32bit): New function.
573 (bfd_sprintf_vma, bfd_fprintf_vma): Use the above.
574
8d100c32
KH
5752007-09-11 Nathan Sidwell <nathan@codesourcery.com>
576
577 * archures.c: Add bfd_mach_mcf_isa_c_nodiv,
578 bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac.
579 * ieee.c (ieee_write_processor): Update coldfire architecture
580 list.
581 * bfd-in2.h: Rebuilt.
582 * cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures.
583 (m68k_arch_features): Likewise.
584 * elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV.
585 (elf32_m68k_print_private_bfd_data): Likewise.
586
2f629d23
JB
5872007-09-11 Jan Beulich <jbeulich@novell.com>
588
589 * elf64-i386.c (elf64_i386_tls_transition): Remove redundant 'const'.
590 * elf64-x86_64.c (elf64_x86_64_tls_transition): Likewise.
591
2b953679
AM
5922007-09-08 Alan Modra <amodra@bigpond.net.au>
593
594 * elf64-ppc.c (func_desc_adjust): When resolving undefined
595 references to dot-symbols, transfer def_regular and
596 def_dynamic from the descriptor symbol.
597
78b8434d
AM
5982007-09-08 Alan Modra <amodra@bigpond.net.au>
599
600 * config.bfd: Set want64 for spu-*-elf.
601
98ece1b3
AM
6022007-09-08 Alan Modra <amodra@bigpond.net.au>
603
604 PR ld/2864, ld/5006
605 * elf.c (special_sections): Comment typo.
606 (elf_fake_sections): Force SHT_PROGBITS for sections that are
607 SHT_NOBITS if BFD section flags say they have contents.
608
5dff4664
MS
6092007-09-04 Michael Snyder <msnyder@access-company.com>
610
611 * elf32-bfin.c (howto_table): Cut and paste error?
612 Name field of reloc is wrong.
613
b427ea91
AM
6142007-09-04 Alan Modra <amodra@bigpond.net.au>
615
616 * elf32-spu.c (elf_howto_table): Formatting.
617
aff90a5f
L
6182007-09-02 H.J. Lu <hongjiu.lu@intel.com>
619
620 PR ld/4986
621 * dwarf2.c (new_line_sorts_after): Undo the last change.
622 (add_line_info): Only keep the last entry with the same address
623 and end sequence.
624
39934745
L
6252007-08-31 H.J. Lu <hongjiu.lu@intel.com>
626
627 PR ld/4986
628 * dwarf2.c (new_line_sorts_after): Also compare line number.
629
3a4743fe
NC
6302007-08-31 Jesse Michael <jmichael@suse.de>
631
632 * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non
633 zerofill sections.
634
5c5d6806
BW
6352007-08-28 David Heine <dlheine@tensilica.com>
636
637 * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
638 narrowing instructions.
639
7f6a71ff 6402007-08-28 Mark Shinwell <shinwell@codesourcery.com>
39934745 641 Joseph Myers <joseph@codesourcery.com>
7f6a71ff
JM
642
643 * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma,
644 then on type.
645
0b3e17e9
NC
6462007-08-28 Robert Sebastian Gerus <arachnist@gmail.com>
647
648 * config.bfd: Add support for i[3-7]86-*-dragonfly*.
649 * configure.in: Likewise.
650 * configure: Regenerate.
651
b15fa79e
AM
6522007-08-25 Ulrich Weigand <uweigand@de.ibm.com>
653 Alan Modra <amodra@bigpond.net.au>
654
655 * elf.c (elfcore_grok_spu_note): New function.
656 (elf_parse_notes): Call it.
657
534a31f6
L
6582007-08-24 H.J. Lu <hongjiu.lu@intel.com>
659
660 * elf64-x86-64.c (elf64_x86_64_relocate_section): Adjust
661 indentation.
662
4a6636fb
PA
6632007-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
664
665 * elf.c (elfcore_grok_win32pstatus): Remove HAVE_WIN32_PSTATUS_T
666 guard. Make it host independent.
667 (elfcore_grok_note): Remove HAVE_WIN32_PSTATUS_T guard around
668 NT_WIN32PSTATUS.
669
718175fa
JK
6702007-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
671
82fc7765
JK
672 * elf-bfd.h (struct elf_obj_tdata): New BUILD_ID_SIZE, BUILD_ID.
673 * elf.c (elfcore_read_notes): Split to ...
718175fa
JK
674 (elf_read_notes) ... here ...
675 (elf_parse_notes): ... and here. Check `bfd_get_format (abfd)' with
676 the former subfunctions called only for BFD_CORE.
677 Call ELFOBJ_GROK_GNU_NOTE for BFD_OBJECT files with the owner "GNU".
678 (_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for SHT_NOTEs.
679 (bfd_section_from_phdr): Update the call for renamed ELFCORE_READ_NOTES.
680 (elfobj_grok_gnu_build_id, elfobj_grok_gnu_note): New functions.
681 Code advisory: Roland McGrath
682
f1187097
DJ
6832007-08-24 Daniel Jacobowitz <dan@codesourcery.com>
684
685 * elf64-mips.c (elf_backend_sign_extend_vma): Define.
686
a30e5f5f
AM
6872007-08-24 Alan Modra <amodra@bigpond.net.au>
688
689 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Warning fix.
690
a351bca6
L
6912007-08-23 H.J. Lu <hongjiu.lu@intel.com>
692
693 * Makefile.am: Run "make dep-am".
694 * Makefile.in: Regenerated.
695
142411ca
L
6962007-08-23 H.J. Lu <hongjiu.lu@intel.com>
697
698 * elf32-i386.c: Include "bfd_stdint.h".
699 (elf_i386_rtype_to_howto): New function.
700 (elf_i386_info_to_howto_rel): Use it.
701 (x86_64_opcode16): New union type.
702 (elf_i386_check_tls_transition): New function.
703 (elf_i386_tls_transition): Updated to check transition and
704 issue an error if a transition isn't supported.
705 (elf_i386_check_relocs): Return FALSE if
706 elf_i386_tls_transition returns FALSE.
707 (elf_i386_gc_sweep_hook): Likewise.
708 (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT
709 on TLS transitions.
710
711 * elf64-x86-64.c: Include "bfd_stdint.h".
712 (x86_64_opcode16): New union type.
713 (x86_64_opcode32): Likewise.
714 (elf64_x86_64_check_tls_transition): New function.
715 (elf64_x86_64_tls_transition): Updated to check transition and
716 issue an error if a transition isn't supported.
717 (elf64_x86_64_check_relocs): Return FALSE if
718 elf64_x86_64_tls_transition returns FALSE.
719 (elf64_x86_64_gc_sweep_hook): Likewise.
720 (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT
721 on TLS transitions.
722
eae50df2
L
7232007-08-22 H.J. Lu <hongjiu.lu@intel.com>
724
725 * elfxx-ia64.c: Convert to ISO C90 prototypes.
726 (elfNN_hpux_backend_section_from_bfd_section): Make it static.
727
9a2e389a
L
7282007-08-22 H.J. Lu <hongjiu.lu@intel.com>
729
730 * elf64-x86-64.c: Remove trailing whitespace.
731 * elfxx-ia64.c: Likewise.
732
2f3bf80a
L
7332007-08-21 H.J. Lu <hongjiu.lu@intel.com>
734
735 * elf32-i386.c (elf_i386_tls_transition): Accept a pointer
736 to ELF hash entry instead of an integer for local test.
737 (elf_i386_check_relocs): Updated.
738 (elf_i386_gc_sweep_hook): Likewise.
739 (elf_i386_relocate_section): Likewise.
740
741 * elf64-x86-64.c (elf64_x86_64_tls_transition): Accept a
742 pointer to ELF hash entry instead of an integer for local
743 test.
744 (elf64_x86_64_check_relocs): Updated.
745 (elf64_x86_64_gc_sweep_hook): Likewise.
746 (elf64_x86_64_relocate_section): Likewise.
747
3bfa9139
L
7482007-08-20 H.J. Lu <hongjiu.lu@intel.com>
749
750 * elf32-i386.c (elf_i386_tls_transition): Break long line.
751 * elf64-x86-64.c (elf64_x86_64_tls_transition): Likewise.
752
19ec0de7
JK
7532007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE]
756 (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size.
757 (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size.
758
75ea2736
NC
7592007-08-20 Nick Clifton <nickc@redhat.com>
760
761 * elflink.c (elf_fixup_link_order): Rewrite conversion of
762 s->alignment_power into an offset mask in order to avoid a gcc
763 error message.
764
7e976ae4
JJ
7652007-08-17 Jakub Jelinek <jakub@redhat.com>
766
767 * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*.
768 Change sparc64-*-linux-* to sparc64*-*-linux-*.
769
e9f27433
AM
7702007-08-17 Alan Modra <amodra@bigpond.net.au>
771
772 * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
773
2b05f1b7
L
7742007-08-16 H.J. Lu <hongjiu.lu@intel.com>
775
776 * elf.c: Revert last change.
777
94b11780
L
7782007-08-16 H.J. Lu <hongjiu.lu@intel.com>
779
780 * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
781 (bfd_section_from_phdr): Likewise.
782 (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
783 if there is an attribute section.
784 (_bfd_elf_map_sections_to_segments): Likewise.
785 (IS_SECTION_IN_INPUT_SEGMENT): Likewise.
786
a3fadc9a
L
7872007-08-14 H.J. Lu <hongjiu.lu@intel.com>
788
789 PR ld/4918
790 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32
791 on ___tls_get_addr for GD->LE/LD->LE transitions when not
792 building shared library.
793
794 * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow
795 R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions
796 when not building shared library.
797
3fec76aa
JK
7982007-08-14 Jan Kratochvil <jan.kratochvil@redhat.com>
799
800 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now
801 initialized only on the first PT_LOAD. New variable LOADBASE_SET.
802 Removed PF_R checking for IA-64 vDSOs as redundant now.
803 Code advisory: Roland McGrath
804
8275b357
RS
8052007-08-13 Richard Sandiford <richard@codesourcery.com>
806
807 * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
808 (mips_elf_record_global_got_symbol): Increment local_gotno for
809 each forced-local symbol.
810 (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
811 mips_elf_record_global_got_symbol for VxWorks too.
812 (_bfd_mips_elf_always_size_sections): Set computed_got_sizes
813 to true after computing the GOT size.
814 (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
815 got.offset == 1. Only adjust global_gotno if computed_got_sizes.
816 For VxWorks, add a local entry when hiding a symbol that needs a
817 plt but has not been marked as needing a global got entry.
818 (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
819 false.
820
649aeae3
DJ
8212007-08-12 Daniel Jacobowitz <dan@codesourcery.com>
822
823 * coffgen.c (coff_get_normalized_symtab): Correct cast.
824
3dea8fca
AM
8252007-08-13 Alan Modra <amodra@bigpond.net.au>
826
827 * elf.c (elf_modify_segment_map): Add remove_empty_load param.
828 Don't remove empty PT_LOAD header if false.
829 (_bfd_elf_map_sections_to_segments): If user phdrs, pass false
830 to elf_modify_segment_map.
831 (assign_file_positions_for_load_sections): Pass false to
832 elf_modify_segment_map.
833
ac2df442
AM
8342007-08-13 Alan Modra <amodra@bigpond.net.au>
835
836 * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define.
837 Update stub comments.
838 (build_plt_stub): Build two variants, one without "addis".
839 (ppc_build_one_stub): Build stubs without "addis" if possible.
840 (ppc_size_one_stub): Size new stubs.
841
2f964f43
RS
8422007-08-11 Richard Sandiford <richard@codesourcery.com>
843
844 * config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
845
6b8f0fd5
MS
8462007-08-09 Michael Snyder <msnyder@access-company.com>
847
848 * aoutx.h (aout_get_external_symbols): Return if count is zero.
849
6d33f217
L
8502007-08-09 H.J. Lu <hongjiu.lu@intel.com>
851
852 PR ld/4909
853 * elf.c (print_segment_map): New function.
854 (assign_file_positions_for_load_sections): Call print_segment_map
855 when a section can't be allocated in segment.
856
c309eac2
JK
8572007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
860
e6902efc
NC
8612007-08-07 Nick Clifton <nickc@redhat.com>
862
863 * po/bfd.pot: Updated template.
864 * po/BLD-POTFILES.in: Regenerate.
865
d5191d0c
AM
8662007-08-07 Alan Modra <amodra@bigpond.net.au>
867
868 * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle
869 bss segments.
870
5eda1c47
DJ
8712007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
872
873 * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h.
874 * Makefile.in: Regenerated.
875
be118e79
DJ
8762007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
877
878 * configure.in: Update version to 2.18.50.
879 * configure: Regenerated.
880
bd97cb95
DJ
8812007-08-06 Paul Brook <paul@codesourcery.com>
882
883 * elf32-arm.c (elf32_arm_link_hash_entry): Add
884 plt_maybe_thumb_refcount.
885 (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
886 (elf32_arm_copy_indirect_symbol): Ditto.
887 (elf32_arm_adjust_dynamic_symbol): Ditto.
888 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
889 (arm_add_to_rel): Ditto.
890 (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
891 R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub.
892 (elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts
893 for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
894 (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
895 and R_ARM_THM_JUMP19.
896 (allocate_dynrelocs): Use plt_maybe_thumb_refcount.
897 (elf32_arm_finish_dynamic_symbol): Ditto.
898 (elf32_arm_output_plt_map): Ditto.
899
c981028a
DJ
9002007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
901
902 * elf.c (rewrite_elf_program_header): Handle sections not sorted
903 by address.
904 (copy_elf_program_header): Likewise.
905
f7231afc
L
9062007-08-04 H.J. Lu <hongjiu.lu@intel.com>
907
908 * elf-bfd.h (xvec_get_elf_backend_data): Add const.
909
910 * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
911 * elfcore.h (elf_core_file_p): Likewise.
912
bd33be6e
L
9132007-08-02 H.J. Lu <hongjiu.lu@intel.com>
914
915 * coffcode.h (ALIGN_SET): Removed.
916 (ELIFALIGN_SET): Likewise.
917 (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
918 IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
919 IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
920 IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
921
dcf6c779
MS
9222007-08-01 Michael Snyder <msnyder@access-company.com>
923
9b0ec667
MS
924 * vms-tir.c (new_section): Fix cut and paste error.
925
20c6e70e
MS
926 * aoutx.h (aout_link_add_symbols): Return if count is zero.
927
dcf6c779
MS
928 * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
929 pointer must be non-null.
930
e708816d
NC
9312007-08-01 Tristan Gingold <gingold@adacore.com>
932
933 * coffcode.h (coff_sort_func_alent): New function.
934 (coff_slurp_line_table): Sort line table if not already sorted.
935
55b581a6
JJ
9362007-08-01 Jakub Jelinek <jakub@redhat.com>
937
938 * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
939 GCC 3.4.x warning.
940
ad756e3f
AM
9412007-08-01 Alan Modra <amodra@bigpond.net.au>
942
943 * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
944 r_type.
945 (swap_std_reloc_in): Likewise.
946 (aout_link_input_section_std): Likewise. Return with an error
947 on unexpected relocation type.
948 (aout_link_input_section_ext): Likewise.
949
f6e688f7
AM
9502007-08-01 Alan Modra <amodra@bigpond.net.au>
951
952 PR4694
953 * aoutx.h (final_link): Write a zero in first word of
954 stringtab if no symbols rather than corrupting last byte
955 of text/data.
956
1c5265b5
JJ
9572007-07-31 Jakub Jelinek <jakub@redhat.com>
958
959 * elf.c (get_program_header_size): Adjacent loadable .note*
960 sections need just one PT_NOTE segment.
961 (_bfd_elf_map_sections_to_segments): Likewise.
962
9ee2139f
MS
9632007-07-30 Michael Snyder <msnyder@access-company.com>
964
965 * coffgen.c (_bfd_coff_read_internal_relocs): Revert change of
966 2007-07-26. Buffer still in use, can't be freed.
967
c6aa130f
MS
9682007-07-27 Michael Snyder <msnyder@access-company.com>
969
d63388ff
MS
970 * cofflink.c (coff_link_add_symbols): Return if count is zero.
971
50a39e97
MS
972 * coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
973
87b32780
MS
974 * aoutx.h (slurp_symbol_table): Return if count == 0.
975
9d7038d3
MS
976 * coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
977
c6aa130f
MS
978 * elf32-i386.c (elf_i386_check_relocs): Check for null pointer.
979
170bfeb9
L
9802007-07-27 H.J. Lu <hongjiu.lu@intel.com>
981
982 * config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec.
983
507f5898
MS
9842007-07-26 Michael Snyder <msnyder@access-company.com>
985
986 * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
a6626e8c
MS
987
988 * linker.c (bfd_section_already_linked_table_insert): Change
989 return type from void to boolean. Return FALSE on failure.
990 (_bfd_generic_section_already_linked): Test return value of
991 bfd_section_already_linked_table_insert, call fatal on error.
992
993 * elflink.c (_bfd_elf_section_already_linked): Test return value
994 of bfd_section_already_linked_table_insert, call fatal on error.
995
996 * libbfd-in.h (bfd_section_already_linked_table_insert): Update
997 return type to bfd_boolean.
998
999 * libbfd.h: Regenerate.
1000
36e44abd
AN
10012007-07-26 Adam Nemet <anemet@caviumnetworks.com>
1002
1003 * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap,
1004 bfd_slurp_armap): Improve function comment.
1005
b7fd5ce1
MS
10062007-07-26 Michael Snyder <msnyder@access-company.com>
1007
2d4f3e92
MS
1008 * linker.c (already_linked_newfunc): Check for NULL return from
1009 bfd_hash_allocate.
1010
ac38308c
MS
1011 * coffgen.c (fixup_symbol_value): Guard against null;
1012 bfd_is_com_section will dereference the section pointer.
1013
c82a7c57
MS
1014 * syms.c (bfd_decode_symclass): Guard against NULL, since
1015 bfd_is_com_section dereferences the pointer.
1016
3d7b34d8
MS
1017 * srec.c (srec_scan): Check for EOF (critical because return value
1018 will be used as array index).
1019
44c62d9e
MS
1020 * coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
1021 are not to be cached, free the temporary buffer.
1022
078c4bfc
MS
1023 * aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero
1024 or count == zero.
1025
814b5378
MS
1026 * tekhex.c (first_phase): Check return value for null.
1027
b7fd5ce1
MS
1028 * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
1029 pointer increment.
1030
b9da616a
AM
10312007-07-26 Alan Modra <amodra@bigpond.net.au>
1032
33774f08
AM
1033 * elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
1034 check on dynobj. Remove bed shadow.
1035
e62071b6
AM
1036 * srec.c (srec_get_section_contents): Return immediately on
1037 count zero. Check that offset and count are within section.
1038 * libbfd.c (_bfd_generic_get_section_contents): Check that
1039 offset + count does not overflow.
1040
b9da616a
AM
1041 * srec.c (srec_canonicalize_symtab): Don't alloc when symcount
1042 is zero. Correct return value on error.
1043 * mmo.c (mmo_canonicalize_symtab): Likewise.
1044 * binary.c (binary_canonicalize_symtab) Correct return on error.
1045
c2c96631
TS
10462007-07-26 Thiemo Seufer <ths@mips.com>
1047
1048 * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL.
1049
d4947150
AM
10502007-07-26 Alan Modra <amodra@bigpond.net.au>
1051
1052 * reloc.c (bfd_generic_get_relocated_section_contents): Avoid
1053 bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
1054 says there are no relocs.
1055
bd210d54 10562007-07-26 Doug Kwan <dougkwan@google.com>
d4947150 1057
bd210d54
NC
1058 Speed up bfd_dwarf2_find_line.
1059 * dwarf2.c (struct dwarf2_debug): Add new fields to support function
1060 and variable info hash tables. Add last_comp_unit, info_hash_count,
1061 funcinfo_hash_table, varinfo_hash_table, hash_units_head.
1062 (struct comp_unit): Add prev_unit, cached.
1063 (struct info_list_node, struct info_hash_entry,
1064 struct info_hash_table): New.
1065 (info_hash_table_newfunc, create_info_hash_table,
1066 insert_info_hash_table, lookup_info_hash_table): New functions
1067 implementing function and variable info hash tables.
1068 (scan_unit_for_symbols): Add checks to make sure hash tables are
1069 consistent with compilation units.
1070 (comp_unit_maybe_decode_line_info): New function.
1071 (comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
1072 (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info,
1073 info_hash_lookup_funcinfo, info_hash_lookup_varinfo,
1074 stash_maybe_update_info_hash_table, stash_verify_info_hash_table,
1075 stash_maybe_enable_info_hash_tables, stash_find_line_fast): New
1076 functions. Make use of info hash tables to speed up
1077 bfd_dwarf2_find_line.
1078 (find_line): Use hash table for faster lookup if it is turned on.
1079 Also add code to maintain bi-directional link in comp units.
1080
353c5574
MS
10812007-07-25 Michael Snyder <msnyder@access-company.com>
1082
1083 * coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
1084 if size == 0; return and avoid possible null pointer issues.
1085
f08c429c
AM
10862007-07-25 Alan Modra <amodra@bigpond.net.au>
1087
1088 * linker.c (generic_link_add_symbol_list): Warning fix.
1089
d0f16d5e
MS
10902007-07-24 Michael Snyder <msnyder@access-company.com>
1091
f6eea5ae
MS
1092 * opncls.c (bfd_make_writable): Check return from bfd_malloc.
1093
d0f16d5e
MS
1094 * elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
1095 on bfd_malloc error rather than goto error_return.
1096
4d269e42
AM
10972007-07-24 Alan Modra <amodra@bigpond.net.au>
1098
1099 * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
1100 _bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc,
1101 _bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol,
1102 _bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create,
1103 bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class,
1104 bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list,
1105 bfd_elf_get_runpath_list, bfd_elf_get_dt_soname,
1106 bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol,
1107 struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol,
1108 elf_sym_name_compare, elf_create_symbuf,
1109 bfd_elf_match_symbols_in_sections,
1110 _bfd_elf_match_sections_by_type): Move to here..
1111 * elf.c: ..from here.
1112
a26587ba
RS
11132007-07-23 Richard Sandiford <richard@codesourcery.com>
1114
1115 * elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
1116 of weakdef->root.type if weakdef has no regular definition.
1117
0e53d9da
AN
11182007-07-22 Adam Nemet <anemet@caviumnetworks.com>
1119
1120 * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
1121 small_data_overflow_reported.
1122 (_bfd_mips_elf_link_hash_table_create): Initialize it.
1123 (_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
1124 small-data section overflow.
1125
6b33789f
NC
11262007-07-19 Doug Kwan <dougkwan@google.com>
1127
4d269e42
AM
1128 PR binutils/4797
1129 * dwarf2.c: (find_line) Do not dereference functionname_ptr if
1130 do_line is true.
6b33789f 1131
13161072 11322007-07-18 Bob Wilson <bob.wilson@acm.org>
4d269e42 1133
13161072
BW
1134 * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
1135 non-ELF sections.
4d269e42 1136
e29297b7 11372007-07-18 Bob Wilson <bob.wilson@acm.org>
4d269e42 1138
e29297b7
BW
1139 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
1140 vma and size for dynamic tags from the output sections.
4d269e42 1141
a5d1b3b5
AM
11422007-07-18 Alan Modra <amodra@bigpond.net.au>
1143
1144 * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
1145 * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
1146 symbol. Instead cache ELF section index. Remove redundant
1147 checks of st_shndx.
1148
d955dada
MF
11492007-07-15 Mike Frysinger <vapier@gentoo.org>
1150
1151 * trad-core.c (NBPG): If not defined, set to getpagesize().
1152
979dc3bc
RM
11532007-07-13 Roland McGrath <roland@redhat.com>
1154
1155 * elf-bfd.h (struct elf_obj_tdata): Revert last change.
1156 Add after_write_object_contents, after_write_object_contents_info.
1157 * elf.c (_bfd_elf_write_object_contents): Revert last change.
1158 Instead, call after_write_object_contents if set.
1159
d2df793a
NC
11602007-07-12 Kai Tietz <kai.tietz@onevision.com>
1161
1162 * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
1163 (BFD_HOSTPTR_T): Host pointer type for casting a
1164 pointer to an integer type.
1165 (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
1166 (sprintf_vma, fprintf_vma): Add support for long long prints.
1167 * bfd-in2.h: Regenerate.
1168 * configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
1169 (BFD_HOSTPTR_T): Host pointer type for casting a
1170 pointer to an integer type. Default is "unsigned long".
1171 (AC_CHECK_SIZEOF(void *)): New.
1172 (host64): Set it if the pointer size is 8.
1173 * configure: Regenerate.
1174 * config.in: Add macro SIZEOF_VOID_P.
1175 * coffcode.h: Replace host ptr type assuming "long" with
1176 bfd_hostptr_t type.
1177 * coffgen.c: Likewise.
1178 * elf-eh-frame.c: Likewise.
1179 * peicode.h: Likewise.
1180
a3a4ddad
L
11812007-07-10 H.J. Lu <hongjiu.lu@intel.com>
1182
1183 * Makefile.in: Regenerated.
1184
329b43c4
L
11852007-07-10 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 PR binutils/4756
1188 * simple.c (bfd_simple_get_relocated_section_content): Don't
1189 apply relocation on executable and shared library.
1190
cfd2c773
NS
11912007-07-10 Nathan Sidwell <nathan@codesourcery.com>
1192
1193 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
1194 copy relocs on vxworks.
1195
1489a3a0
AM
11962007-07-10 Alan Modra <amodra@bigpond.net.au>
1197
1198 * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
1199 * elf64-alpha.c (alpha_elf_size_info): Likewise.
1200 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
1201 * elf64-mips.c (mips_elf64_size_info): Likewise.
1202 * elf64-s390.c (s390_elf64_size_info): Likewise.
1203 * elf64-sparc.c (elf64_sparc_size_info): Likewise.
1204
00cbee0a
L
12052007-07-09 H.J. Lu <hongjiu.lu@intel.com>
1206
1207 * elflink.c (bfd_elf_record_link_assignment): Handle indirect
1208 symbol.
1209 (_bfd_elf_merge_symbol): Properly update normal symbol when
1210 overriding the versioned symbol from a dynamic library.
1211
fd2f25da
RM
12122007-07-09 Roland McGrath <roland@redhat.com>
1213
1214 * elf-bfd.h (struct elf_obj_tdata): Add members
1215 emit_note_gnu_build_id and note_gnu_build_id_sec.
1216 * elf.c (_bfd_id_note_section_size): New global function.
1217 (read_hex, _bfd_elf_write_build_id_section): New static functions.
1218 (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
1219 if emit_note_gnu_build_id is set.
1220 * Makefile.am (elf.lo): Update dependencies.
1221
1222 * elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
1223 (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
1224 * elfcode.h (elf_checksum_contents): New macro and function.
1225 (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
1226
9af2a943
AM
12272007-07-06 Michael Snyder <msnyder@access-company.com>
1228
1229 * elflink.c (elf_link_add_object_symbols): Return via
1230 error_free_vers on "notice" failure.
1231
a93221e5
L
12322007-07-04 H.J. Lu <hongjiu.lu@intel.com>
1233
1234 * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
1235 if arch is unknown.
1236
b4928193
NC
12372007-07-04 Nick Clifton <nickc@redhat.com>
1238
1239 Import this patch from an internal tree:
9af2a943 1240
b4928193
NC
1241 2001-07-17 Richard Henderson <rth@redhat.com>
1242
1243 * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly
1244 compensate for high bit set in R_MEP_LOW16.
1245
3cfad14c
JM
12462007-07-03 Joseph Myers <joseph@codesourcery.com>
1247
1248 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
1249 input attributes if value has been copied.
1250
cd123cb7
NC
12512007-07-03 Nick Clifton <nickc@redhat.com>
1252
1253 * COPYING: Replace with GPLv3 text.
1254 * aix386-core.c: Update copyright notice to refer to GPLv3.
1255 * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c,
1256 aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c,
1257 aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c,
1258 archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c,
1259 binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c,
1260 cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c,
1261 coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c,
1262 coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c,
1263 coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
1264 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
1265 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
1266 coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c,
1267 coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c,
1268 coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c,
1269 cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c,
1270 cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
1271 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
1272 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
1273 cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c,
1274 cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c,
1275 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
1276 cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c,
1277 cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c,
1278 cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c,
1279 cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c,
1280 cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c,
1281 cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c,
1282 demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c,
1283 ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c,
1284 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
1285 elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c,
1286 elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c,
1287 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
1288 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
1289 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
1290 elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c,
1291 elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c,
1292 elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c,
1293 elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c,
1294 elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c,
1295 elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c,
1296 elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h,
1297 elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c,
1298 elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c,
1299 elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c,
1300 elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
1301 elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h,
1302 elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c,
1303 elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c,
1304 elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
1305 elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c,
1306 epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h,
1307 hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c,
1308 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
1309 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
1310 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
1311 libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h,
1312 libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h,
1313 linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c,
1314 m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c,
1315 mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h,
1316 newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c,
1317 nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h,
1318 ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c,
1319 pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h,
1320 pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h,
1321 pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c,
1322 pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c,
1323 pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c,
1324 reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c,
1325 simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c,
1326 srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c,
1327 sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h,
1328 trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c,
1329 vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c,
1330 xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c,
1331 xtensa-modules.c: Likewise.
1332 * elf32-sh-relocs.h: Add copyright notice.
1333 * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h,
1334 hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h,
1335 hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h,
1336 hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h,
1337 hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h,
1338 hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h,
1339 hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h,
1340 hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise.
1341 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
1342
741d6ea8
JM
13432007-07-02 Joseph Myers <joseph@codesourcery.com>
1344
1345 * elfxx-mips.c (mips_elf_calculate_relocation): Handle
1346 R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
1347 * elf64-mips.c (mips_elf64_howto_table_rela): Support
1348 R_MIPS_TLS_DTPREL64.
1349
ae351704
AM
13502007-07-02 Alan Modra <amodra@bigpond.net.au>
1351
1352 * Makefile.am: Run "make dep-am".
1353 * Makefile.in: Regenerate.
1354 * aclocal.m4: Regenerate.
1355 * config.in: Regenerate.
1356 * po/SRC-POTFILES.in: Regenerate.
1357 * po/bfd.pot: Regenerate.
1358
3e5484db
AM
13592007-07-02 Alan Modra <amodra@bigpond.net.au>
1360
1361 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
1362 symsec != NULL tests.
1363
08a40648
AM
13642007-07-02 Alan Modra <amodra@bigpond.net.au>
1365
1366 PR 4712
1367 * elf.c (assign_file_positions_for_load_sections): Adjust lma
1368 by p_vaddr_offset.
1369
86b57e31
L
13702007-06-30 H.J. Lu <hongjiu.lu@intel.com>
1371
1372 * aclocal.m4: Regenerated.
1373 * Makefile.in: Likewise.
1374
34c8bcba
JM
13752007-06-29 Joseph Myers <joseph@codesourcery.com>
1376
1377 * elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
1378 (ppc_elf_merge_private_bfd_data): Call it.
1379
2cf19d5c
JM
13802007-06-29 Joseph Myers <joseph@codesourcery.com>
1381
1382 * elfxx-mips.c (mips_elf_merge_obj_attributes): New.
1383 (_bfd_mips_elf_merge_private_bfd_data): Call it.
1384
104d59d1
JM
13852007-06-29 Joseph Myers <joseph@codesourcery.com>
1386
1387 * elf-attrs.c: New.
1388 * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
1389 (BFD32_BACKENDS_CFILES): Add elf-attrs.c.
1390 (elf-attrs.lo): Generate dependencies.
1391 * Makefile.in: Regenerate.
1392 * configure.in (elf): Add elf-attrs.lo.
1393 * configure: Regenerate.
1394 * elf-bfd.h (struct elf_backend_data): Add entries for object
1395 attributes.
1396 (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
1397 OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
1398 Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
1399 New.
1400 (struct elf_obj_tdata): Add entries for object attributes.
1401 (elf_known_obj_attributes, elf_other_obj_attributes,
1402 elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
1403 New.
1404 (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
1405 bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
1406 bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
1407 bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
1408 bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
1409 _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
1410 _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
1411 * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
1412 (bfd_section_from_shdr): Handle attributes sections.
1413 * elflink.c (bfd_elf_final_link): Handle attributes sections.
1414 * elfxx-target.h (elf_backend_obj_attrs_vendor,
1415 elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
1416 elf_backend_obj_attrs_section_type): New.
1417 (elfNN_bed): Update.
1418 * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
1419 aeabi_attribute_list): Remove.
1420 (struct elf32_arm_obj_tdata): Remove object attributes fields.
1421 (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
1422 elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
1423 Update for new object attributes interfaces.
1424 (uleb128_size, is_default_attr, eabi_attr_size,
1425 elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
1426 elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
1427 elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
1428 elf32_arm_add_eabi_attr_int, attr_strdup,
1429 elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
1430 copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
1431 to generic code in elf-attrs.c.
1432 (elf32_arm_obj_attrs_arg_type): New.
1433 (elf32_arm_fake_sections): Do not handle .ARM.attributes.
1434 (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
1435 (bfd_elf32_bfd_final_link): Remove.
1436 (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
1437 elf_backend_obj_attrs_arg_type,
1438 elf_backend_obj_attrs_section_type): New.
1439 * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
1440 attributes.
1441 * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
1442 * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
1443 * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
1444 * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
1445 * elf32-sh.c (sh_elf_copy_private_data): Likewise.
1446 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
1447
5ab79981
PB
14482007-06-29 Paul Brook <paul@codesourcery.com>
1449
1450 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
1451 call veneers for call relocations against undefined symbols.
1452 (elf32_arm_final_link_relocate): Turn call to undefined symbol
1453 into a jump to the next instruction.
1454
c6aa130f 14552007-06-29 Michael Snyder <msnyder@access-company.com>
32e8a950
NC
1456
1457 * bfd.c (bfd_demangle): Plug memory leak (Coverity).
1458
3d3d428f
NC
14592007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1460
1461 * Makefile.am: Add cr16 related entry
1462 * Makefile.in: Regenerate
1463 * archures.c: Add bfd_cr16_arch
1464 * bfd-in2.h: Regenerate
1465 * config.bfd: Add cr16-elf
1466 * configure.in: Add bfd_elf32_cr16_vec
1467 * configure: Regenerate.
1468 * targets.c: Added cr16 related information
1469 * cpu-cr16.c: New file.
1470 * elf32-cr16.c: New file.
1471 * reloc.c: Added cr16 relocs.
1472
c55fe096
AM
14732007-06-29 Alan Modra <amodra@bigpond.net.au>
1474
1475 * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
1476 message for undefined version nodes.
1477 (elf_gc_sweep): Don't warn when zero size sections are
1478 removed.
1479
375de94a
AM
14802007-06-29 Nathan Froyd <froydnj@codesourcery.com>
1481
1482 * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
1483 types.
1484
7d3287cb
AM
14852007-06-29 Alan Modra <amodra@bigpond.net.au>
1486
1487 * elf32-spu.c (spu_elf_fake_sections): New function.
1488 (elf_backend_fake_sections): Define.
1489
6a3cd2b4
AM
14902007-06-29 Alan Modra <amodra@bigpond.net.au>
1491
1492 * elf.c (assign_file_positions_for_load_sections): Use elf
1493 section header sh_size rather than bfd section size, simplifying
1494 .tbss handling.
1495
bf988460
AM
14962007-06-29 Alan Modra <amodra@bigpond.net.au>
1497
36fc76ae 1498 PR ld/4701
bf988460
AM
1499 * elf.c (assign_file_positions_for_load_sections): Ensure bss
1500 segments meet gABI alignment requirements. Don't allocate
1501 file space for bss sections in a segment also containing file
1502 or program headers.
1503
60b31e8d
AM
15042007-06-27 Alan Modra <amodra@bigpond.net.au>
1505
cc481421
AM
1506 * bfd.c (struct bfd): Rename "next" to "archive_next".
1507 * archive.c: Rename uses throughout file.
1508 * archive64.c: Likewise.
1509 * coff-rs6000.c: Likewise.
1510 * ecoff.c: Likewise.
1511 * som.c: Likewise.
1512 * bfd-in2.h: Regenerate.
1513
60b31e8d
AM
1514 * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
1515 input bfds.
58eb693e 1516 * elf32-spu.c (spu_elf_create_sections): Likewise.
60b31e8d 1517
bec42b15
NC
15182007-06-26 H.J. Lu <hongjiu.lu@intel.com>
1519
1520 * dwarf2.c (find_line): New. Contains the duplicated code from:
1521 (_bfd_dwarf2_find_nearest_line): Use it.
1522 (_bfd_dwarf2_find_line): Use it.
1523
3d3e6f9a
JM
15242007-06-26 Joseph Myers <joseph@codesourcery.com>
1525
1526 * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
1527
b314ec0e
RS
15282007-06-25 Richard Sandiford <richard@codesourcery.com>
1529
1530 * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
1531 to be used for calls from MIPS16 code.
1532
0d4a1476
AS
15332007-06-23 Andreas Schwab <schwab@suse.de>
1534
1535 * configure.in (--with-separate-debug-dir): New option.
1536 * configure: Regenerate.
1537 * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
1538 * Makefile.in: Regenerate.
1539 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
1540 bfd_follow_gnu_debuglink.
1541 (_bfd_dwarf2_find_line): Likewise.
1542
0d161102
NC
15432007-06-22 Nick Clifton <nickc@redhat.com>
1544
1545 * dwarf2.c: Add support for reading in debug information via a
1546 .gnu_debuglink section:
1547 (struct dwarf2_debug): Add bfd field to record the bfd containing
1548 the debug info.
1549 (parse_comp_unit): Remove ABFD parameter. Instead use the bfd
1550 field in the dwarf2_debug structure.
1551 (_bfd_dwarf2_find_nearest_line): If a debug info section could not
1552 be found in the current bfd call bfd_follow_gnu_debuglink to see
1553 if another file contains the debug information. If it does, open
1554 it and continue.
1555 (_bfd_dwarf2_find_line): Likewise.
1556
293a0124
L
15572007-06-19 H.J. Lu <hongjiu.lu@intel.com>
1558
1559 PR ld/4590
1560 * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
1561 when removing duplicated entries.
1562 (get_dyn_sym_info): Initialize the got_offset field to -1.
1563 Update call to sort_dyn_sym_info.
1564 (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
1565 array of addend and remove duplicates.
1566
dc1f3d8a
L
15672007-06-18 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 * libpei.h (_bfd_XXi_final_link_postscript): Remove
1570 duplication.
1571 (bfd_target_pei_p): New.
1572 (bfd_target_pei_arch): New
1573 (bfd_target_efi_p): Likewise.
1574 (bfd_target_efi_arch): New
1575 (bfd_pe_executable_p): Use bfd_target_pei_p and
1576 bfd_target_efi_p.
1577
1578 * peicode.h (arch_type): New enum.
1579 (pe_arch): New function.
1580 (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
1581 if there is an EFI/PE target.
1582
79887925
L
15832007-06-14 H.J. Lu <hongjiu.lu@intel.com>
1584
1585 * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
1586
1587 * acinclude.m4: Don't include m4 files. Remove libtool
1588 kludge.
1589
1590 * Makefile.in: Regenerated.
79887925
L
1591 * aclocal.m4: Likewise.
1592 * configure: Likewise.
1593
99ded152
BW
15942007-06-11 Sterling Augustine <sterling@tensilica.com>
1595 Bob Wilson <bob.wilson@acm.org>
bf988460 1596
99ded152
BW
1597 * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
1598 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
1599 (extend_ebb_bounds_backward, compute_text_actions): Likewise.
1600 (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
1601 (xtensa_get_property_predef_flags): Likewise.
1602 (compute_removed_literals): Pass new arguments to is_removable_literal.
1603 (is_removable_literal): Add sec, prop_table and ptblsize arguments.
1604 Do not remove literal if the NO_TRANSFORM property flag is set.
bf988460 1605
cbf2cba4
RS
16062007-05-31 Richard Sandiford <rsandifo@nildram.co.uk>
1607
1608 * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
1609 type (3) single-GOT entry, read tls_type from the hash table entry
1610 rather than the GOT entry.
1611
a9a4c53e
AM
16122007-06-01 Alan Modra <amodra@bigpond.net.au>
1613
1614 * simple.c (bfd_simple_get_relocated_section_contents): Init
1615 input_bfds_tail.
1616
02bf8d82
AM
16172007-05-30 Alan Modra <amodra@bigpond.net.au>
1618
42bb2e33
AM
1619 * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
1620 created by objcopy --only-keep-debug.
1621 (_bfd_elf_init_private_section_data): Only change elf_section_type
1622 if it is SHT_NULL.
1623
02bf8d82
AM
1624 * elf.c (assign_file_positions_for_load_sections): Correct sh_type
1625 to SHT_NOBITS earlier. Base actions in rest of function on sh_type
1626 and sh_flags instead of bfd section flags. Delete voff and code
1627 keeping nobits segments aligned.
1628
4e591bc1
EC
16292007-05-25 Eric Christopher <echristo@apple.com>
1630
1631 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
1632 Check that sym_sec isn't NULL before accessing.
1633
37ad9514
SE
16342007-05-24 Steve Ellcey <sje@cup.hp.com>
1635
1636 * Makefile.in: Regnerate.
1637 * configure: Regenerate.
1638 * aclocal.m4: Regenerate.
1639 * doc/Makefile.in: Regenerate.
1640
91a5743d
PB
16412007-05-22 Paul Brook <paul@codesourcery.com>
1642
1643 * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
1644 with sec and sec_shndx.
1645 (elf32_arm_ouput_plt_map_sym): Use them.
1646 (elf32_arm_output_arch_local_syms): Output mapping symbols for
1647 interworking glue.
1648
26079076
PB
16492007-05-18 Paul Brook <paul@codesourcery.com>
1650
1651 * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
1652 (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
1653 (record_arm_to_thumb_glue): Add v5t non-pic glue.
1654 (elf32_arm_create_thumb_stub): Ditto.
1655
91ac5911
L
16562007-05-16 H.J. Lu <hongjiu.lu@intel.com>
1657 Alan Modra <amodra@bigpond.net.au>
1658
1659 * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
1660 section to the minimum alignment.
1661
027297b7
L
16622007-05-15 H.J. Lu <hongjiu.lu@intel.com>
1663 Alan Modra <amodra@bigpond.net.au>
1664
1665 PR ld/4504
1666 * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
1667 * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
1668
1669 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
1670 _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
1671 bss section.
1672 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
1673 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
1674 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1675 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
1676 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
1677 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
1678 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1679 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1680 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1681 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
1682 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
1683 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1684 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1685 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
1686 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1687 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
1688 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1689
5c18022e
RS
16902007-05-15 Richard Sandiford <richard@codesourcery.com>
1691
1692 * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
1693 input_section argument. Create .rela.dyn relocations against
1694 symbol 0 rather than the section symbol.
1695 (mips_elf_local_got_index): Remove input_section argument.
1696 Update call to mips_elf_create_local_got_entry.
1697 (mips_elf_got_page, mips_elf_got16_entry): Likewise.
1698 (mips_elf_calculate_relocation): Update calls to
1699 mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
1700
a00a1f35
MS
17012007-05-15 Mark Shinwell <shinwell@codesourcery.com>
1702
1703 * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
1704 handle the Thumb-2 JUMP19 relocation.
1705
0414f35b
AM
17062007-05-15 Alan Modra <amodra@bigpond.net.au>
1707
1708 PR 4479
1709 * elf.c (elf_fake_sections): Don't allow backend to change
1710 SHT_NOBITS if called for strip/objcopy --only-keep-debug.
1711 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
1712 fix from here.
1713
74f2e02b
AM
17142007-05-14 Alan Modra <amodra@bigpond.net.au>
1715
1716 * elf.c (bfd_elf_string_from_elf_section): Return NULL on
1717 invalid shstrndx.
1718 (bfd_elf_get_str_section): Likewise.
1719
f137a54e
AM
17202007-05-12 Alan Modra <amodra@bigpond.net.au>
1721
1722 PR 4497
1723 * elf-eh-frame.c (struct cie): Add "local_personality". Make
1724 "personality" a union.
1725 (cie_eq): Compare local_personality too. Adjust personality
1726 comparison.
1727 (_bfd_elf_discard_section_eh_frame): Check binding on personality
1728 reloc sym to allow for bad symtab. Use stashed local syms rather
1729 than reading personality local sym. Handle discarded sections.
1730
4f4416b5
AM
17312007-05-12 Alan Modra <amodra@bigpond.net.au>
1732
1733 * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
1734
016687f8
AM
17352007-05-11 Alan Modra <amodra@bigpond.net.au>
1736
1737 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
1738 (enum ppc_elf_plt_type): Move from..
1739 * elf32-ppc.c: ..here.
1740 (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
1741 (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete
1742 can_use_new_plt. Make is_vxworks a bitfield.
1743 (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
1744 (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd.
1745 (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc
1746 flags to better detect object files needing old bss-style plt.
1747 Allow secure plt to be used without rel16 relocs being detected.
1748 Warn if secure plt request cannot be allowed.
1749
ece5ef60
AM
17502007-05-11 Alan Modra <amodra@bigpond.net.au>
1751
1752 * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
1753 * elf-bfd.h (struct elf_backend_data): Change return type of
1754 elf_backend_relocate_section to int.
1755 * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
1756 R_SPU_PPU64.
1757 (spu_elf_bfd_to_reloc_type): Convert new relocs.
1758 (spu_elf_count_relocs): New function.
1759 (elf_backend_count_relocs): Define.
1760 (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
1761 R_SPU_PPU64 relocs.
1762 * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
1763 returns 2.
1764 * bfd-in2.h: Regenerate.
1765 * libbfd.h: Regenerate.
1766
d3753b85
RS
17672007-05-10 Richard Sandiford <richard@codesourcery.com>
1768
1769 * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
1770 for R_ARM_ABS12 relocs.
1771 (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
1772 non-shared VxWorks PLT entries.
1773
ef8c95ad
AM
17742007-05-11 Alan Modra <amodra@bigpond.net.au>
1775
1776 PR 4454
1777 * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
1778 (_bfd_elf_discard_section_eh_frame): Handle local syms on
1779 personality relocation.
1780
8c252fd9
RS
17812007-05-10 Richard Sandiford <richard@codesourcery.com>
1782
1783 * elf.c (assign_file_positions_for_load_sections): Use p_memsz
1784 rather than p_filesz to calculate the LMA of the end of a segment.
1785
b186458a
JJ
17862007-05-10 Jakub Jelinek <jakub@redhat.com>
1787
1788 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
1789 processing if symbol is defined in the executable.
1790
88571279
AO
17912007-05-10 Alexandre Oliva <aoliva@redhat.com>
1792
1793 * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
1794 (frvfdpic_elf_discard_info): New.
1795 (elf_backend_discard_info): Define for FDPIC.
1796
2e6030b9
MS
17972007-05-09 Mark Shinwell <shinwell@codesourcery.com>
1798
1799 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
1800 attempt to scan if the bfd doesn't correspond to an ELF image.
1801 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
1802
0d4cc892
AO
18032007-05-08 Alexandre Oliva <aoliva@redhat.com>
1804
1805 * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
1806 for which _bfd_elf_section_offset returns -1.
1807
d0249648
AM
18082007-05-08 Alan Modra <amodra@bigpond.net.au>
1809
1810 * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
1811 (mark_functions_via_relocs): Likewise.
1812
1182cb93
AM
18132007-05-07 Alan Modra <amodra@bigpond.net.au>
1814
1815 * elflink.c (bfd_elf_final_link): Correct reloc handling for
1816 elf_backend_count_relocs.
1817 (bfd_elf_discard_info): Print an error if we can't read syms.
1818
b16f296e
AM
18192007-05-07 Alan Modra <amodra@bigpond.net.au>
1820
1821 * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
1822 invalid reloc code.
1823 (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
1824 (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
1825 define.
1826
7c928300
AM
18272007-05-07 Alan Modra <amodra@bigpond.net.au>
1828
1829 * elf.c (assign_file_positions_for_load_sections): Don't check
1830 core segment.
1831
fc66a176
L
18322007-05-04 H.J. Lu <hongjiu.lu@intel.com>
1833
1834 * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
1835 and .rel.dyn aren't present.
1836
3410fea8
NC
18372007-05-04 Nick Clifton <nickc@redhat.com>
1838
1839 * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
1840 sections are present examine the indirect sections in an attempt
1841 to compute the correct relocation size. If there is any
1842 ambiguity, produce an error and refuse to sort.
1843
7bdca076
SL
18442007-05-03 Sandra Loosemore <sandra@codesourcery.com>
1845
1846 * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
1847
22184a77
NC
18482007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
1849 Nick Clifton <nickc@redhat.com>
1850
1851 PR gas/3041
1852 * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
1853 in the same way as relocs against external symbols.
1854
627b32bc
AM
18552007-05-02 Alan Modra <amodra@bigpond.net.au>
1856
1857 * elf.c (assign_file_positions_for_load_sections): Set sh_offset
1858 here. Set sh_type to SHT_NOBITS if we won't be allocating
1859 file space. Don't bump p_memsz for non-alloc sections. Adjust
1860 section-in-segment check.
1861 (assign_file_positions_for_non_load_sections): Don't set sh_offset
1862 here for sections that have already been handled above.
1863
49fa1e15
AM
18642007-04-30 Alan Modra <amodra@bigpond.net.au>
1865
1866 * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
1867 and emit_stack_syms bitfields.
1868 (get_sym_h): Read all symbols if stack analysis will be done.
1869 (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
1870 params, and stash in hash table.
1871 (is_hint): Split off from..
1872 (is_branch): ..here. Adjust callers.
1873 (spu_elf_size_stubs): Add stack_analysis param. Arrange to read
1874 and keep all syms.
1875 (write_one_stub): Fix mem leak.
1876 (find_function_stack_adjust): New function.
1877 (sort_syms_syms, sort_syms_psecs): New vars.
1878 (sort_syms): New function.
1879 (struct call_info, struct function_info): New.
1880 (struct spu_elf_stack_info): New.
1881 (alloc_stack_info, maybe_insert_function, func_name): New functions.
1882 (is_nop, insns_at_end, check_function_ranges): Likewise.
1883 (find_function, insert_callee, mark_functions_via_relocs): Likewise.
1884 (pasted_function, interesting_section, discover_functions): Likewise.
1885 (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
1886 (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
1887 (bfd_elf32_bfd_final_link): Define.
1888 * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
1889 (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
1890
9ddf8309
TS
18912007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru>
1892
1893 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
1894 memory which we might not own.
1895
95147441
BW
18962007-04-27 Bob Wilson <bob.wilson@acm.org>
1897
1898 * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
1899 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
1900 (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
1901
bcc2cc8e
BW
19022007-04-27 Bob Wilson <bob.wilson@acm.org>
1903
1904 * elf32-xtensa.c (xtensa_read_table_entries): Step through table
1905 contents and relocs in parallel.
4e591bc1 1906
f29f96b6
BW
19072007-04-27 Bob Wilson <bob.wilson@acm.org>
1908
1909 * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
1910
2ce18a16
AM
19112007-04-27 Alan Modra <amodra@bigpond.net.au>
1912
1913 * cpu-rs6000.c: Write Mimi's name in ASCII.
1914 * coff-rs6000.c: Likewise.
1915 * rs6000-core.c: Likewise.
1916
eddc20ad
AM
19172007-04-27 Alan Modra <amodra@bigpond.net.au>
1918
1919 * sysdep.h: Include config.h first.
1920 Many files: Include sysdep.h before bfd.h.
1921 * Makefile.am: Run "make dep-am".
1922 * Makefile.in: Regenerate.
1923
495443d4
AM
19242007-04-25 Alan Modra <amodra@bigpond.net.au>
1925
1926 * sysdep.h: Revert last change.
1927
40b1c6c5
NC
19282007-04-24 Nick Clifton <nickc@redhat.com>
1929
1930 * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
1931 * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
1932
64be1553
AM
19332007-04-24 Alan Modra <amodra@bigpond.net.au>
1934
1935 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
1936 eh_frame_hdr table won't be created.
1937
d5efd9fc
AM
19382007-04-24 Alan Modra <amodra@bigpond.net.au>
1939
1940 * acinclude.m4: Include config/stdint.m4.
1941 * configure.in: Invoke GCC_HEADER_STDINT.
1942 * sysdep.h: Don't include ansidecl.h here.
1943 * configure: Regenerate.
1944 * config.in: Regenerate.
1945 * Makefile.in: Regenerate.
1946
9a2e615a
NS
19472007-04-23 Nathan Sidwell <nathan@codesourcery.com>
1948
1949 * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
1950 bfd_mach_mcf_isa_c_emac): New.
1951 * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
1952 elf_isac_plt_entry, elf_isac_plt_info): New.
1953 (elf32_m68k_object_p): Add ISA_C.
1954 (elf32_m68k_print_private_bfd_data): Print ISA_C.
1955 (elf32_m68k_get_plt_info): Detect ISA_C.
1956 * cpu-m68k.c (arch_info): Add ISAC.
1957 (m68k_arch_features): Likewise,
1958 (bfd_m68k_compatible): ISAs B & C are not compatible.
1959
1b0b5b1b
NC
19602007-04-21 Nick Clifton <nickc@redhat.com>
1961
1962 * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
1963 (ecoff_link_add_archive_symbols): Likewise.
1964 * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
1965 relent.howto.
1966 * ieee.c (parse_int): Initialise x.
1967 (must_parse_int): Initialise result.
1968 (ieee_slurp_external_symbols): Initialise value.
1969
bd7803a9
AM
19702007-04-21 Alan Modra <amodra@bigpond.net.au>
1971
1972 * config.bfd (spu-*-elf): Delete targ_selvecs.
1973
964597d0
NC
19742007-04-19 Nick Clifton <nickc@redhat.com>
1975
1976 * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
1977
01e76792
AM
19782007-04-19 Alan Modra <amodra@bigpond.net.au>
1979
1980 * bfd.c (bfd_demangle): New function.
1981 * Makefile.am: Run "make dep-am".
1982 * Makefile.in: Regenerate.
1983 * bfd-in2.h: Regenerate.
1984
ee5c21a0
DJ
19852007-04-18 Matthias Klose <doko@ubuntu.com>
1986
1987 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
1988 (bfdver.h): Use the date in non-release builds for the soversion.
1989 * Makefile.in: Regenerate.
1990
fcb93ecf
PB
19912007-04-17 Paul Brook <paul@codesourcery.com>
1992
1993 * elf.c (_bfd_elf_is_function_type): New function.
1994 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
1995 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
1996 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
1997 * elf-bfd.h (elf_backend_data): Add is_function_type.
1998 (_bfd_elf_is_function_type): Add prototype.
1999 * elfxx-target.h (elf_backend_is_function_type): Add default
2000 definition.
2001 (elfNN_bed): Add elf_backend_is_function_type.
2002 * elf32-arm.c (elf32_arm_is_function_type): New function.
2003 (elf_backend_is_function_type): Define.
2004
5750dcec
DJ
20052007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
2006
2007 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
2008 DT_MIPS_RLD_MAP before DT_DEBUG again.
2009
cfbc9945
SE
20102007-04-14 Steve Ellcey <sje@cup.hp.com>
2011
2012 * Makefile.am: Add ACLOCAL_AMFLAGS.
2013 * configure.in: Change macro call order.
2014 * Makefile.in: Regnerate.
2015 * doc/Makefile.in: Regenerate.
2016 * configure: Regenerate.
2017
3fcd97f1
JJ
20182007-04-14 Jakub Jelinek <jakub@redhat.com>
2019
2020 * elflink.c (bfd_elf_final_link): Don't free symbuf for
2021 non-elf input bfds.
2022 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
2023 for non-elf input bfds.
2024
af5978fb
RS
20252007-04-12 Richard Sandiford <richard@codesourcery.com>
2026
2027 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
2028 DT_MIPS_RTLD_MAP for PIEs.
2029
9e3313ae
RS
20302007-04-12 Richard Sandiford <richard@codesourcery.com>
2031
2032 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
2033 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
2034 in a read-only section.
2035 (_bfd_mips_elf_check_relocs): Likewise.
2036
1d25768e
BW
20372007-04-12 Bob Wilson <bob.wilson@acm.org>
2038
2039 * elf32-xtensa.c (xtensa_is_insntable_section): New.
2040 (xtensa_is_proptable_section): New.
2041 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
2042 tables with 12-byte entries, as well as tables with 8-byte entries.
2043 Sort the relocations before examining them.
2044 (relax_property_section): Use xtensa_is_proptable_section and
2045 xtensa_is_littable_section. Rewrite code for combining table entries
2046 to be more robust in case of unexpected relocations. Do not set offset
2047 of unused relocations to less than zero.
2048 (xtensa_is_property_section): Use other functions instead of
2049 duplicating section name comparisons.
2050 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
2051 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
4e591bc1 2052
e1e5c0b5 20532007-04-12 Bob Wilson <bob.wilson@acm.org>
4e591bc1 2054
e1e5c0b5
BW
2055 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
2056 from Xtensa property sections.
4e591bc1 2057
2c67c5f3
AM
20582007-04-12 Alan Modra <amodra@bigpond.net.au>
2059
2060 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
2061 is non-NULL before dereferencing.
2062
8776bb8a
NS
20632007-04-11 Nathan Sidwell <nathan@codesourcery.com>
2064
2065 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
2066 relocs too.
2067
4a828aab
RH
20682007-04-10 Richard Henderson <rth@redhat.com>
2069
2070 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
2071 (elf64_alpha_size_got_sections): Remove unused something_changed local.
2072 (elf64_alpha_size_plt_section): Return void.
2073 (elf64_alpha_size_rela_got_section): Likewise.
4e591bc1 2074 (elf64_alpha_relax_section): Only regenerate got+plt if the
4a828aab
RH
2075 relax_trip counter has changed.
2076
91506736
DJ
20772007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
2078
2079 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
2080 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
2081 (bfdver.texi): New rule.
2082 * Makefile.in, doc/Makefile.in: Regenerated.
2083
da6bcfca
MT
20842007-04-03 Matt Thomas <matt@netbsd.org>
2085
4e591bc1 2086 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
da6bcfca
MT
2087 in a shared object if it is not in a CODE section or if it is against
2088 a section symbol. This allows DWARF2 to use pcrel format.
2089
9267588c
L
20902007-04-05 H.J. Lu <hongjiu.lu@intel.com>
2091
2092 PR ld/4304
2093 * elflink.c (bfd_elf_final_link): Call einfo callback in
2094 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
2095 warning.
2096
c1b2796f
AM
20972007-04-05 Alan Modra <amodra@bigpond.net.au>
2098
2099 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
2100 (elf_backend_link_output_symbol_hook): Define.
2101
970ccc77
NC
21022007-04-02 Nick Clifton <nickc@redhat.com>
2103
2104 PR binutils/4292
2105 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
2106 targets as 64-bit values, even if running on a 64-bit host.
2107 * coffgen.c (coff_print_symbol): Likewise.
2108
1783205a
NC
21092007-03-29 Nick Clifton <nickc@redhat.com>
2110
2111 PR binutils/4110
2112 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
2113 (setup_group): Use it. Report corrupt group section headers.
2114 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
2115 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
2116 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
2117
2ce859a1
AM
21182007-03-29 Alan Modra <amodra@bigpond.net.au>
2119
2120 PR ld/4267
947844a3
AM
2121 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
2122 for rel->r_info values.
2123 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
2124 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
2125 unused entries. Don't clear plt.plist in loop.
2126
39817122
RS
21272007-03-28 Richard Sandiford <richard@codesourcery.com>
2128
2129 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
2130 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
2131 Merge into...
2132 (sparc_elf_append_rela): ...this new function.
2133 (SPARC_ELF_APPEND_RELA): Delete.
2134 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
2135 the deleted append_rela field.
2136 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
2137 instead of SPARC_ELF_APPEND_RELA.
2138 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
2139 elf_size_info structure to find the size of a RELA entry and
2140 the associated swap-out function.
2141 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
2142 (sparc_finish_dyn): ...this new function.
2143 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
2144
4ecceb71
RS
21452007-03-28 Richard Sandiford <richard@codesourcery.com>
2146 Phil Edwards <phil@codesourcery.com>
2147
2148 * doc/bfd.texinfo: Put the contents after the title page rather
2149 than at the end of the document.
2150
d4d2b80b
AS
21512007-03-27 Andreas Schwab <schwab@suse.de>
2152
2153 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
2154
831480e9 21552007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
2156
2157 * configure: Regenerated.
2158
f4b39977
AM
21592007-03-26 Alan Modra <amodra@bigpond.net.au>
2160
2161 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
2162 (allocate_spuear_stubs): New function.
2163 (spu_elf_size_stubs): Call allocate_spuear_stubs.
2164
157090f7
AM
21652007-03-26 Alan Modra <amodra@bigpond.net.au>
2166
2167 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
2168 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
2169 (MY (bfd_reloc_name_lookup)): New function.
2170 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
2171 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
2172 (MY_bfd_reloc_name_lookup): Define.
2173 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
2174 (MY_bfd_reloc_name_lookup): Define.
2175 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
2176 (NAME (aout, reloc_name_lookup)): New function.
2177 * bout.c (b_out_bfd_reloc_name_lookup): New function.
2178 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
2179 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
2180 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
2181 (coff_bfd_reloc_name_lookup): Define.
2182 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
2183 (coff_i386_reloc_name_lookup): New function.
2184 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
2185 (coff_bfd_reloc_name_lookup): Define.
2186 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
2187 (coff_bfd_reloc_name_lookup): Define.
2188 * coff-m68k.c (m68k_reloc_name_lookup): New function.
2189 (coff_bfd_reloc_name_lookup): Define.
2190 * coff-maxq.c (maxq_reloc_name_lookup): New function.
2191 (coff_bfd_reloc_name_lookup): Define.
2192 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
2193 (coff_bfd_reloc_name_lookup): Define.
2194 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
2195 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
2196 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
2197 (coff_bfd_reloc_name_lookup): Define.
2198 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
2199 (_bfd_xcoff_reloc_name_lookup): New function.
2200 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
2201 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
2202 (sh_coff_reloc_name_lookup): New function.
2203 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
2204 (coff_bfd_reloc_name_lookup): Define.
2205 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
2206 (tic30_coff_reloc_name_lookup): New function.
2207 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
2208 (tic4x_coff_reloc_name_lookup): New function.
2209 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
2210 (tic54x_coff_reloc_name_lookup): New function.
2211 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
2212 (coff_amd64_reloc_name_lookup): New function.
2213 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
2214 (coff_bfd_reloc_name_lookup): Define.
2215 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
2216 (coff_bfd_reloc_name_lookup): Define.
2217 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
2218 (xcoff64_reloc_name_lookup): New function.
2219 (rs6000coff64_vec, aix5coff64_vec): Init new field.
2220 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
2221 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
2222 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2223 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2224 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2225 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
2226 (bfd_elf32_bfd_reloc_name_lookup): Define.
2227 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2228 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
2229 (bfd_elf32_bfd_reloc_name_lookup): Define.
2230 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
2231 (bfd_elf32_bfd_reloc_name_lookup): Define.
2232 * elf32-cris.c (cris_reloc_name_lookup): New function.
2233 (bfd_elf32_bfd_reloc_name_lookup): Define.
2234 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
2235 (bfd_elf32_bfd_reloc_name_lookup): Define.
2236 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2237 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2238 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
2239 (bfd_elf32_bfd_reloc_name_lookup): Define.
2240 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
2241 (bfd_elf32_bfd_reloc_name_lookup): Define.
2242 * elf32-frv.c (frv_reloc_name_lookup): New function.
2243 (bfd_elf32_bfd_reloc_name_lookup): Define.
2244 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
2245 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
2246 (bfd_elf32_bfd_reloc_name_lookup): Define.
2247 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
2248 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
2249 (bfd_elf32_bfd_reloc_name_lookup): Define.
2250 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
2251 (bfd_elf32_bfd_reloc_name_lookup): Define.
2252 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
2253 (bfd_elf32_bfd_reloc_name_lookup): Define.
2254 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
2255 (bfd_elf32_bfd_reloc_name_lookup): Define.
2256 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
2257 (bfd_elf32_bfd_reloc_name_lookup): Define.
2258 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
2259 (bfd_elf32_bfd_reloc_name_lookup): Define.
2260 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
2261 (bfd_elf32_bfd_reloc_name_lookup): Define.
2262 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2263 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2264 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2265 * elf32-m68k.c (reloc_name_lookup): New function.
2266 (bfd_elf32_bfd_reloc_name_lookup): Define.
2267 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
2268 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
2269 (bfd_elf32_bfd_reloc_name_lookup): Define.
2270 * elf32-mep.c (mep_reloc_name_lookup): New function.
2271 (bfd_elf32_bfd_reloc_name_lookup): Define.
2272 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2273 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
2274 (bfd_elf32_bfd_reloc_name_lookup): Define.
2275 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2276 * elf32-mt.c (mt_reloc_name_lookup): New function.
2277 (bfd_elf32_bfd_reloc_name_lookup): Define.
2278 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
2279 (bfd_elf32_bfd_reloc_name_lookup): Define.
2280 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2281 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
2282 (bfd_elf32_bfd_reloc_name_lookup): Define.
2283 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
2284 (bfd_elf32_bfd_reloc_name_lookup): Define.
2285 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
2286 (bfd_elf32_bfd_reloc_name_lookup): Define.
2287 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
2288 (bfd_elf32_bfd_reloc_name_lookup): Define.
2289 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
2290 (bfd_elf32_bfd_reloc_name_lookup): Define.
2291 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
2292 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
2293 (bfd_elf32_bfd_reloc_name_lookup): Define.
2294 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
2295 (bfd_elf32_bfd_reloc_name_lookup): Define.
2296 * elf32-vax.c (reloc_name_lookup): New function.
2297 (bfd_elf32_bfd_reloc_name_lookup): Define.
2298 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
2299 (bfd_elf32_bfd_reloc_name_lookup): Define.
2300 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
2301 (bfd_elf32_bfd_reloc_name_lookup): Define.
2302 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
2303 (bfd_elf32_bfd_reloc_name_lookup): Define.
2304 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
2305 (bfd_elf64_bfd_reloc_name_lookup): Define.
2306 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
2307 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
2308 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
2309 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
2310 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
2311 (bfd_elf64_bfd_reloc_name_lookup): Define.
2312 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
2313 (bfd_elf64_bfd_reloc_name_lookup): Define.
2314 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
2315 (bfd_elf64_bfd_reloc_name_lookup): Define.
2316 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
2317 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
2318 (bfd_elf64_bfd_reloc_name_lookup): Define.
2319 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
2320 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
2321 (bfd_elfNN_bfd_reloc_name_lookup): Define.
2322 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
2323 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
2324 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
2325 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
2326 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
2327 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
2328 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
2329 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
2330 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
2331 (MY(reloc_name_lookup)): New function.
2332 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
2333 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
2334 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
2335 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
2336 (coff_bfd_reloc_name_lookup): Define.
2337 * reloc.c (bfd_reloc_name_lookup): New function.
2338 * riscix.c (riscix_reloc_name_lookup): New function.
2339 (MY_bfd_reloc_name_lookup): Define.
2340 * som.c (som_bfd_reloc_name_lookup): New function.
2341 * targets.c (struct bfd_target): Add reloc_name_lookup.
2342 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
2343 * versados.c (versados_bfd_reloc_name_lookup): Define.
2344 * vms.c (vms_bfd_reloc_name_lookup): New function.
2345 * bfd-in2.h: Regenerate.
2346 * libbfd.h: Regenerate.
2347
2d82d84d
TS
23482007-03-26 Thiemo Seufer <ths@mips.com>
2349
a5cb1fd7 2350 PR ld/4208
2d82d84d
TS
2351 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
2352 matching relocation is found.
2353 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
2354
831480e9 23552007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
2356
2357 * configure: Regenerated.
2358
a1ac8190
JM
23592007-03-23 Joseph Myers <joseph@codesourcery.com>
2360
2361 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
2362 * configure: Regenerate.
2363
aa7a0635
AM
23642007-03-23 Alan Modra <amodra@bigpond.net.au>
2365
2366 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
2367 Remove input_sec param. Adjust all calls.
2368 (write_one_stub): Adjust stub symbol.
2369 (needs_ovl_stub): New function, extracted from..
2370 (spu_elf_size_stubs): ..here.
2371 (spu_elf_relocate_section): Use needs_ovl_stub.
2372
e49e529d
JM
23732007-03-22 Joseph Myers <joseph@codesourcery.com>
2374
2375 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
2376 if nonempty.
2377 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
2378 * Makefile.in, configure, doc/Makefile.in: Regenerate.
2379
831480e9 23802007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
2381
2382 PR ld/4210
2383 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
2384 address and virtual size of the last section for the image
2385 size.
2386
0920dee7
L
23872007-03-22 H.J. Lu <hongjiu.lu@intel.com>
2388
2389 PR ld/4007
2390 * elf.c (assign_file_positions_for_load_sections): Check if
2391 all sections are in the segment.
2392
831480e9 23932007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
2394
2395 PR ld/4208
2396 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
2397 matching LO16 relocation for HI16 relocation.
2398
27e55c4d
PB
23992007-03-20 Paul Brook <paul@codesourcery.com>
2400
2401 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
2402 * bfd-in2.h: Regenerate.
2403 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
2404 (record_arm_to_thumb_glue): Use globals->pic_veneer.
2405 (elf32_arm_create_thumb_stub): Ditto.
2406 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
2407
bf21ed78
MS
24082007-03-18 Mark Shinwell <shinwell@codesourcery.com>
2409
2410 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
2411 argument and extra last argument.
2412 * bfd-in2.h: Regenerate.
2413 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
2414 member.
2415 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
2416 extra last argument. Set no_enum_size_warning appropriately.
2417 (elf32_arm_merge_eabi_attributes): Improve enum sizes
2418 diagnostic, suppressing it when no_enum_size_warning dictates.
2419
5f6999aa
NC
24202007-03-20 Nick Clifton <nickc@redhat.com>
2421
2422 PR binutils/3535
2423 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
2424 specific conditions that need the program headers to be
2425 rewritten.
2426
831480e9 24272007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
2428
2429 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
2430 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
2431 SizeOfInitializedData, SizeOfUninitializedData,
2432 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
2433 extra PE a.out header.
2434 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
2435 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
2436 defined.
2437 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
2438 defined.
2439 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
2440 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
2441 SizeOfInitializedData, SizeOfUninitializedData,
2442 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
2443 extra PE a.out header.
2444
831480e9 24452007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
2446
2447 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
2448 only if BFD64 is defined.
2449
5384511f
AM
24502007-03-17 Alan Modra <amodra@bigpond.net.au>
2451
2452 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
2453 on setjmp calls.
2454
187b3d5d
L
24552007-03-15 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 * doc/Makefile.in: Regenerated.
2458
c428fa83
L
24592007-03-15 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
2462 create doc/bfdver.texi.
2463 * Makefile.in: Regenerated.
2464
2465 * configure.in (--with-bugurl): New option.
2466 * configure: Regenerated.
2467
2468 * version.h (REPORT_BUGS_TO): New.
2469
d1036acb
L
24702007-03-13 H.J. Lu <hongjiu.lu@intel.com>
2471
2472 PR binutils/3826
2473 * elf-bfd.h (elf_backend_data): Add elf_osabi.
2474 (_bfd_elf_set_osabi): New.
2475
2476 * elf.c (_bfd_elf_set_osabi): New.
2477
2478 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
2479 (elf_backend_post_process_headers): Defined with
2480 _bfd_elf_set_osabi.
2481 (ELF_OSABI): Properly defined for each target.
2482
2483 * elf32-i370.c (i370_elf_post_process_headers): Removed.
2484 (ELF_OSABI): Defined.
2485 (elf_backend_post_process_headers): Defined with
2486 _bfd_elf_set_osabi.
2487
2488 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
2489 freebsd.
2490 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
2491
2492 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
2493 (ELF_OSABI): Defined.
2494 (elf_backend_post_process_headers): Defined with
2495 _bfd_elf_set_osabi.
2496
2497 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
2498 freebsd.
2499 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
2500 elf_osabi.
2501
2502 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
2503 with elf_osabi.
2504 (ELF_OSABI): Properly defined for each target.
2505 (elf_backend_post_process_headers): Defined with
2506 _bfd_elf_set_osabi for Linux.
2507
2508 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
2509 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
2510 (elf_backend_post_process_headers): Defined with
2511 _bfd_elf_set_osabi.
2512
2513 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
2514 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
2515 (elf_backend_post_process_headers): Defined with
2516 _bfd_elf_set_osabi.
2517
2518 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
2519 with any ELF target of the compatible machine for which we do not
2520 have a specific backend.
2521
2522 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
2523 with elf_osabi.
2524
2525 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
2526 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
2527
d4c87fc1
AM
25282007-03-08 Alan Modra <amodra@bigpond.net.au>
2529
2530 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
2531 V850_OTHER_* bits.
2532
9c6fc49d
AM
25332007-03-08 Alan Modra <amodra@bigpond.net.au>
2534
2535 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
2536 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
2537 Run "make dep-am".
2538 * Makefile.in: Regenerate.
2539 * po/SRC-POTFILES.in: Regenerate.
2540
faed74d6
L
25412007-03-07 H.J. Lu <hongjiu.lu@intel.com>
2542
2543 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
2544 (x86_64-*-kfreebsd*-gnu): Likewise.
2545 (x86_64-*-netbsd*): Likewise.
2546 (x86_64-*-openbsd*): Likewise.
2547 (x86_64-*-linux-*): Likewise.
2548
2549 * configure.in: Support bfd_efi_app_x86_64_vec.
2550 * configure: Regenerated.
2551
2552 * efi-app-x86_64.c: New file.
2553
2554 * targets.c (bfd_efi_app_x86_64_vec): New.
2555 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
2556
15344ad7
L
25572007-03-07 Kai Tietz <kai.tietz@onevision.com>
2558
2559 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
2560 const for type reloc_howto_type.
2561
ab96bf03
AM
25622007-03-07 Alan Modra <amodra@bigpond.net.au>
2563
2564 PR 3958
2565 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
2566 (elf_discarded_section): Move..
2567 * bfd-in.h: ..to here.
2568 * bfd-in2.h: Regenerate.
2569 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
2570 from discarded sections before relocate_section has done its job.
2571 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
2572 relocs against symbols from discarded sections.
2573 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
2574 SECREL32.
2575 (elf_hppa_relocate_section): Handle relocatable link after setting
2576 sec, sym, h etc. for final link. Squash error messages for
2577 relocatable link. Clear section contents for relocs against
2578 symbols in discarded sections, and zero reloc. Remove existing
2579 zero r_symndx code.
2580 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
2581 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
2582 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
2583 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
2584 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
2585 (bfin_relocate_section): Likewise.
2586 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
2587 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2588 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
2589 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2590 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2591 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2592 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
2593 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2594 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2595 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2596 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2597 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
2598 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
2599 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
2600 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2601 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
2602 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2603 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2604 * elf32-mep.c (mep_elf_relocate_section): Likewise.
2605 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
2606 * elf32-mt.c (mt_elf_relocate_section): Likewise.
2607 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2608 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2609 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2610 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
2611 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2612 * elf32-spu.c (spu_elf_relocate_section): Likewise.
2613 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2614 * elf32-vax.c (elf_vax_relocate_section): Likewise.
2615 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
2616 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2617 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
2618 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
2619 (elf64_alpha_relocate_section): Likewise.
2620 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
2621 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2622 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2623 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2624 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2625 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
2626 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
2627 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
2628
2629 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
2630 symbols for relocatable link. Don't use always-zero st_value.
2631 (elf_backend_rela_normal): Don't define.
2632 * elf32-bfin.c (bfinfdpic_relocate_section): Use
2633 RELOC_FOR_GLOBAL_SYMBOL.
2634 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2635 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
2636 section symbol adjustments with same for relocatable link.
2637 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2638 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
2639 (elf32_m68hc11_check_relocs): ..to here.
2640 * elf32-score.c (score_elf_final_link_relocate): Remove zero
2641 r_symndx code.
2642 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2643
0e922b77
AM
26442007-03-07 Alan Modra <amodra@bigpond.net.au>
2645
2646 PR 4144
2647 * elf.c (assign_file_positions_for_load_sections): Don't
2648 adjust p_memsz for !SEC_LOAD section vma modulo page size.
2649 Instead, use the same lma based adjustment for SEC_LOAD
2650 sections.
2651
25c6282a
BW
26522007-03-01 Bob Wilson <bob.wilson@acm.org>
2653
2654 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
2655 (find_relaxable_sections): Do not increment src_count for unknown
2656 opcodes. Decode only once instead of calling is_l32r_relocation.
2657 (compute_text_actions): Remove unused no_insn_move flag. Assert that
2658 src_next matches src_count in relax_info.
2659
066c2a57
JM
26602007-03-01 Joseph Myers <joseph@codesourcery.com>
2661
2662 * Makefile.am (bfdver.h): Use "." not " " between version number
2663 and date.
2664 * Makefile.in: Regenerate.
2665 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
2666 * configure: Regenerate.
2667
ed6ba298
NS
26682007-02-28 Nathan Sidwell <nathan@codesourcery.com>
2669
2670 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
2671
7a8757b3
AM
26722007-02-27 Alan Modra <amodra@bigpond.net.au>
2673
2674 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
2675 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
2676
024b2372
CD
26772007-02-23 Carlos O'Donell <carlos@codesourcery.com>
2678
2679 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
2680 DWARF even with 64-bit addresses.
2681 (_bfd_dwarf2_find_nearest_line): Likewise.
2682
cb3ff1e5
NC
26832007-02-23 Nick Clifton <nickc@redhat.com>
2684
2685 PR binutils/3535
2686 * elf.c (copy_private_bfd_data): Always rewrite the program
2687 headers when a Solaris interpreter segment is involved.
2688
6a5bb875
PB
26892007-02-22 Paul Brook <paul@codesourcery.com>
2690
2691 * elflink.c (gc_mark_hook_fn): Remove.
2692 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
2693 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
2694 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
2695 (elf_backend_data): Add gc_mark_extra_sections.
2696 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
2697 definition.
2698 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
2699 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
2700 (elf_backend_gc_mark_extra_sections): Define.
2701
2889e75b
NC
27022007-02-21 Nick Clifton <nickc@redhat.com>
2703
2704 * elf.c (_bfd_elf_map_sections_to_segments): If the
2705 override_segment_assignment callback is defined then call it.
2706
78859468
AM
27072007-02-21 Alan Modra <amodra@bigpond.net.au>
2708
2709 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
2710
ae0d2616
TS
27112007-02-19 Thiemo Seufer <ths@mips.com>
2712
2713 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
2714 translation marker from untranslatable strings.
2715
6bfdb61b
AM
27162007-02-19 Alan Modra <amodra@bigpond.net.au>
2717
2718 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
2719 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
2720 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
2721 (elfNN_bed): Init new field.
2722 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
2723
92f01d61
JM
27242007-02-17 Mark Mitchell <mark@codesourcery.com>
2725 Nathan Sidwell <nathan@codesourcery.com>
2726 Vladimir Prus <vladimir@codesourcery.com
2727 Joseph Myers <joseph@codesourcery.com>
2728
2729 * configure.in (--with-pkgversion): New option.
2730 * configure: Regenerate.
2731 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
2732 * Makefile.in: Regenerate.
2733 * version.h (BFD_VERSION_STRING): Define using
2734 @bfd_version_package@.
2735
c0e3f241
CD
27362007-02-16 Carlos O'Donell <carlos@codesourcery.com>
2737
2738 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
2739 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
2740 and EF_MIPS_UCODE.
2741
72f6ea61
AM
27422007-02-15 Alan Modra <amodra@bigpond.net.au>
2743
2744 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
2745 declare.
2746 (_bfd_norelocs_canonicalize_reloc): Likewise.
2747 * libbfd.h: Regenerate.
2748 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
2749 (_bfd_norelocs_canonicalize_reloc): Likewise.
2750 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
2751 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
2752 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
2753 * ihex.c: Similarly.
2754 * mach-o-target.c: Similarly.
2755 * mach-o.c: Similarly.
2756 * mmo.c: Similarly.
2757 * pef.c: Similarly.
2758 * ppcboot.c: Similarly.
2759 * srec.c: Similarly.
2760 * xsym.c: Similarly.
2761
fab4a87f
L
27622007-02-14 H.J. Lu <hongjiu.lu@intel.com>
2763
2764 PR ld/3953
2765 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
2766 when adding default symbol.
2767
e4e0193e
AM
27682007-02-13 Alan Modra <amodra@bigpond.net.au>
2769
2770 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
2771 for branch lookup table.
2772
84f5d08e
AM
27732007-02-12 Alan Modra <amodra@bigpond.net.au>
2774
2775 * elf64-ppc.c (create_linkage_sections): Don't create
2776 .rela.rodata.brlt for --emit-relocs.
2777 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
2778 (ppc_size_one_stub): Count them. Simplify test of stub type
2779 when counting stub relocs. Set SEC_RELOC too.
2780 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
2781 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
2782
4aac632e
AM
27832007-02-12 Alan Modra <amodra@bigpond.net.au>
2784
2785 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
2786 with a zero symbol index.
2787
8da3dbc5
AM
27882007-02-12 Alan Modra <amodra@bigpond.net.au>
2789
2790 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
2791
b31847af
DB
27922007-02-05 Dave Brolley <brolley@redhat.com>
2793 Stan Cox <scox@redhat.com>
2794
2795 PR ld/3972
2796 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
2797
722b0ff7 27982007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
2799 Richard Sandiford <rsandifo@redhat.com>
2800 Stan Cox <scox@redhat.com>
2801 Nick Clifton <nickc@redhat.com>
2802 DJ Delorie <dj@redhat.com>
2803 Frank Ch. Eigler <fche@redhat.com>
2804 Ben Elliston <bje@redhat.com>
2805 Richard Henderson <rth@redhat.com>
2806
2807 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
2808 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
2809 (BFD32_BACKENDS): Add elf32-mep.lo.
2810 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
2811 (cpu-mep.lo,elf32-mep.lo): New targets.
2812 * archures.c (bfd_arch_mep): New enumerator.
2813 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
2814 (bfd_mep_arch): New external variable.
2815 (bfd_archures_list): Add bfd_mep_arch.
2816 * config.bfd: Support mep-*-elf.
2817 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
2818 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
2819 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
2820 declarations.
2821 (_bfd_target_vector): Add bfd_elf32_mep_vec and
2822 bfd_elf32_mep_little_vec.
722b0ff7
DB
2823 * mep-relocs.pl: New file.
2824 * cpu-mep.c: New file.
2825 * elf32-mep.c: New file.
2826 * bfd-in2.h: Regenerate.
e382d174 2827 * po/POTFILES.in: Regenerate.
722b0ff7
DB
2828 * libbfd.h: Regenerate.
2829 * Makefile.in: Regenerate.
2830 * configure: Regenerate.
2831
d9352518
DB
28322007-02-05 Dave Brolley <brolley@redhat.com>
2833
2834 * elflink.c (evaluate_complex_relocation_symbols): Check for
2835 STT_SRELC for global symbols.
2836 (perform_complex_relocations): Renamed to
2837 perform_complex_relocation and now examines only one relocation.
2838 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 2839 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
2840 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
2841 (OD,OS,OU): #undefs corrected to N, S and U repectively.
2842 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
2843 (complex_reloc_installation_howto): Removed.
2844 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
2845 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
2846
d9352518 28472007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
2848 Richard Sandiford <rsandifo@redhat.com>
2849 DJ Delorie <dj@redhat.com>
2850 Graydon Hoare <graydon@redhat.com>
2851 Nick Clifton <nickc@cambridge.redhat.com>
2852 Jeff Holcomb <jeffh@redhat.com>
2853 Frank Ch. Eigler <fche@redhat.com>
2854
2855 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
2856 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
2857 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
2858 * elflink.c (set_symbolValue): New static function.
d9352518
DB
2859 (resolve_symbol): Likewise.
2860 (resolve_section): Likewise.
2861 (undefined_reference): Likewise.
2862 (eval_symbol): Likewise.
2863 (evaluate_complex_relocation_symbols): Likewise.
2864 (put_value): Likewise.
2865 (get_value): Likewise.
e382d174
DB
2866 (decode_complex_addend):
2867 (bfd_elf_perform_complex_relocation): New function.
2868 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
2869 * reloc.c (BFD_RELOC_RELC): New relocation number.
2870 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 2871
f1ab2340 28722007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 2873
f1ab2340
BW
2874 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
2875 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
2876 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
2877 (elf_xtensa_allocate_got_size): Replace these with...
2878 (elf_xtensa_allocate_dynrelocs): ...this new function.
2879 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 2880
e5f131d1 28812007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 2882
e5f131d1
BW
2883 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
2884 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
2885 Set src_mask to zero.
2886 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
2887 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 2888
4608f3d9
BW
28892007-02-02 Bob Wilson <bob.wilson@acm.org>
2890
2891 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
2892 (elf_xtensa_dynamic_symbol_p): ...this.
2893
f0e6fdb2
BW
28942007-02-02 Bob Wilson <bob.wilson@acm.org>
2895
2896 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
2897 (struct elf_xtensa_link_hash_table): New.
2898 (elf_xtensa_hash_table): New.
2899 (elf_xtensa_link_hash_table_create): New.
2900 (elf_xtensa_check_relocs): Update plt_reloc_count references.
2901 Update arguments to add_extra_plt_sections.
2902 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
2903 table. Update for plt_reloc_count and add_extra_plt_sections.
2904 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
2905 argument with link info. Update calls to elf_xtensa_get_plt_section
2906 and elf_xtensa_get_gotplt_section.
2907 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
2908 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
2909 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
2910 (relax_property_section): Get sections from the hash table and update
2911 function calls.
2912 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
2913 dynobj argument with link info. Get sections for first plt chunk from
2914 the hash table.
2915 (bfd_elf32_bfd_link_hash_table_create): Define.
2916
c15f73f9
JJ
29172007-02-02 Jakub Jelinek <jakub@redhat.com>
2918
2919 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
2920 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
2921 (struct elf_symbol): Change first member into union.
2922 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
2923 internal syms. Only compare st_shndx fields.
2924 (elf_create_symbuf): New function.
2925 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
2926 for bfds, use a binary search, otherwise don't qsort symbols
2927 unnecessarily only to select which symbols are for the particular
2928 shndx.
2929
effdf42a
NC
29302007-02-01 Nick Clifton <nickc@redhat.com>
2931
2932 PR ld/3852
2933 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
2934 in the elf_link_hash_table structure.
2935
183e98be
AM
29362007-02-01 Alan Modra <amodra@bigpond.net.au>
2937
2938 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
2939 * elfxx-target.h (elf_backend_write_core_note): Define and use.
2940 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
2941 32-bit core note on 64-bit target.
2942 (elfcore_write_prstatus): Likewise.
2943 (elfcore_write_lwpstatus): Make note_name const.
2944 (elfcore_write_prfpreg): Likewise.
2945 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
2946 target.
2947 * elf32-ppc.c (ppc_elf_write_core_note): New function.
2948 (elf_backend_write_core_note): Define.
2949 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
2950 (elf_backend_write_core_note): Define.
2951
fc523535 29522007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
2953
2954 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
2955 (elf32_bed): Defined for elf32-us-cris.
2956
2957 * elf64-sh64.c (elf64_bed): Defined for Linux.
2958 (INCLUDED_TARGET_FILE): Removed.
2959
2960 * elfxx-target.h (elfNN_bed): Always define. Don't check
2961 INCLUDED_TARGET_FILE.
2962
c9b57b7e
DD
29632007-01-31 DJ Delorie <dj@redhat.com>
2964
2965 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
2966 message for dangerous relocs, special case the common user error.
2967
53020534
L
29682007-01-30 H.J. Lu <hongjiu.lu@intel.com>
2969
2970 * elf.c (copy_elf_program_header): Start from the first section
2971 in a segment and stop when all sections in a segment are
2972 accounted for.
2973
c7b8f16e
JB
29742007-01-29 Julian Brown <julian@codesourcery.com>
2975
2976 * bfd-in2.h: Regenerate.
2977 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
2978 instruction scanning should be done.
2979 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
2980 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
2981 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
2982 prototype.
2983 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
2984 argument.
2985 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
2986 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
2987 (elf32_vfp11_erratum_type): New enum.
2988 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
2989 veneers.
2990 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
2991 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
2992 vfp11_fix and num_vfp11_fixes fields.
2993 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
2994 vfp11_erratum_glue_size, num_vfp11_fixes fields.
2995 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
2996 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
2997 glue section.
2998 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
2999 to a section's map.
3000 (record_vfp11_erratum_veneer): Create a single veneer, and its
3001 associated symbols.
3002 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
3003 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
3004 BFDs.
3005 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
3006 required.
3007 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
3008 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
3009 (bfd_arm_vfp11_write_mask): Update write mask according to coded
3010 register number.
3011 (bfd_arm_vfp11_antidependency): New function.
3012 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
3013 (elf32_arm_compare_mapping): Declare.
3014 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
3015 BFD for potential erratum-triggering insns. Record results.
3016 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
3017 and branches to veneers have been placed in virtual memory after
3018 layout.
3019 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
3020 hash table.
3021 (elf32_arm_output_symbol_hook): Remove.
3022 (elf32_arm_write_section): Output veneers, and branches to veneers.
3023 Use maps from input sections, not output sections, for code
3024 byte-swapping.
3025 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
3026 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
3027 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
3028 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
3029
30302007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
3031
3032 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 3033 (INCLUDED_TARGET_FILE): Removed.
83d1651b 3034
914dfb0f
DA
30352007-01-27 Mike Frysinger <vapier@gentoo.org>
3036
3037 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
3038 (INCLUDED_TARGET_FILE): Remove.
3039
78eba9b6
DD
30402007-01-25 DJ Delorie <dj@redhat.com>
3041
3042 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
3043 R_M32C_16 or R_M32C_24 relocs.
3044
64ee10b6
NC
30452007-01-25 Nick Clifton <nickc@redhat.com>
3046
3047 PR binutils/3874
3048 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
3049 hash table was created by elf32_avr_link_hash_table_create before
3050 using it.
3051 (elf32_avr_link_hash_newfunc): New function. Just pass the call
3052 through to _bfd_elf_link_hash_newfunc.
3053 (elf32_avr_link_hash_table_create): Use
3054 elf32_avr_link_hash_newfunc instead of
3055 _bfd_elf_link_hash_newfunc.
3056 (elf32_avr_relocate_section): Check for the hash table pointer
3057 being NULL.
3058 (elf32_avr_relax_section, avr_build_one_stub,
3059 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
3060 elf32_avr_build_stubs): Likewise.
3061
40b36307
L
30622007-01-16 H.J. Lu <hongjiu.lu@intel.com>
3063
3064 PR ld/3831
3065 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
3066 argument, Elf_Internal_Sym *.
3067
3068 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
3069 symbol dynamic if info->dynamic_data is TRUE.
3070 (bfd_elf_record_link_assignment): Updated call to
3071 bfd_elf_record_link_assignment.
3072 (_bfd_elf_merge_symbol): Likewise. Always call
3073 bfd_elf_link_mark_dynamic_symbol.
3074
fc523535 30752007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
3076
3077 * Makefile.am (BFD_LIBS): Removed.
3078 * Makefile.in: Regenerated.
3079
fc523535 30802007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
3081
3082 PR binutils/3631
3083 * Makefile.am (OFILES): Add @bfd64_libs@.
3084 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
3085 * Makefile.in: Regenerated.
3086
3087 * configure.in (bfd_libs): Replaced by ...
3088 (bfd64_libs): This.
3089 * configure: Regenerated.
3090
59e0647f
NS
30912007-01-11 Nathan Sidwell <nathan@codesourcery.com>
3092
3093 * elf.c (assign_file_positions_for_load_sections): We can
3094 require fewer phdrs than expected.
3095
3bdcfdf4
KH
30962007-01-08 Kazu Hirata <kazu@codesourcery.com>
3097
3098 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
3099 * bfd-in2.h: Regenerate.
3100 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
3101 bfd_mach_cpu32_fido.
3102 (m68k_arch_features): Use fido_a instead of cpu32.
3103 (bfd_m68k_compatible): Reject the combination of Fido and
3104 ColdFire. Accept the combination of CPU32 and Fido with a
3105 warning.
3106 * elf32-m68k.c (elf32_m68k_object_p,
3107 elf32_m68k_merge_private_bfd_data,
3108 elf32_m68k_print_private_bfd_data): Treat Fido as an
3109 architecture by itself.
3110
42037fe5
NC
31112007-01-08 Kai Tietz <kai.tietz@onevision.com>
3112
3113 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
3114
ebe8b991
JJ
31152007-01-05 Jakub Jelinek <jakub@redhat.com>
3116
3117 * texhex.c (first_phase): Don't fall through into the default
3118 case.
3119 (pass_over): Replace abort () calls with return FALSE. Fix
3120 buffer overflow.
3121
b327f31f
AM
31222007-01-04 Jie Zhang <jie.zhang@analog.com>
3123
3124 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
3125 SEC_EXCLUDE on zero size .eh_frame.
3126
10a2343e 3127For older changes see ChangeLog-2006
56882138
AM
3128\f
3129Local Variables:
3130mode: change-log
3131left-margin: 8
3132fill-column: 74
3133version-control: never
3134End:
This page took 0.528476 seconds and 4 git commands to generate.