opcodes/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
945c025a
L
12006-12-01 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/3609
4 * elf.c (rewrite_elf_program_header): Preserve segment physical
5 address in the output segment if the first section in the
6 corresponding input segment is null.
7
55d55ac7
NC
82006-12-01 Nick Clifton <nickc@redhat.com>
9
10 PR 3609
11 * elf.c (rewrite_elf_program_header): Do not use the first_section
12 pointer if it is null.
13
0eaedd0e
PB
142006-11-29 Paul Brook <paul@codesourcery.com>
15
16 * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output
17 section is present.
18 (allocate_dynrelocs): Only add export stub for symbols defined in
19 this object.
20
212006-11-29 Paul Brook <paul@codesourcery.com>
22
23 * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output
24 section is present.
25 (allocate_dynrelocs): Only add export stub for symbols defined in
26 this object.
27
004ae526
PB
282006-11-29 Paul Brook <paul@codesourcery.com>
29 Julian Brown <julian@codesourcery.com>
30
31 * elf32-arm.c (copy_eabi_attributes): Correct starting offset.
32 (elf32_arm_merge_eabi_attributes): Mark output as initialized.
33 Only set Tag_CPU_name and Tag_ABI_PCS_R9_use if input attribute
34 is present.
35
2caa7ca0
BW
362006-11-27 Bob Wilson <bob.wilson@acm.org>
37
38 * elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info.
39
9f17e2a6
L
402006-11-24 H.J. Lu <hongjiu.lu@intel.com>
41
42 * elf.c (IS_SECTION_IN_INPUT_SEGMENT): New.
43 (INCLUDE_SECTION_IN_SEGMENT): Use IS_SECTION_IN_INPUT_SEGMENT.
44 (rewrite_elf_program_header): Don't preserve segment physical
45 address in the output segment if the first section in the
46 corresponding input segment is removed.
47
833fb04e
AM
482006-11-22 Alan Modra <amodra@bigpond.net.au>
49
50 * pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead.
51 * xsym.c (bfd_sym_make_empty_symbol): Likewise.
52 * xsym.h (bfd_sym_make_empty_symbol): Delete.
53
4fe5ca5b
GM
542006-11-21 Greg McGary <greg@mcgary.org>
55
56 * elf32-ppc.c (ppc_elf_relocate_section): Fixup D field
57 at proper offset in little-endian mode.
58 * elf64-ppc.c (ppc_elf_relocate_section): Likewise.
59
bce613b9
JJ
602006-11-21 Jakub Jelinek <jakub@redhat.com>
61
62 * elf-eh-frame.c (struct cie): New type.
63 (cie_compare): Removed.
64 (cie_eq, cie_hash, cie_compute_hash): New functions.
65 (_bfd_elf_discard_section_eh_frame): Rewrite not to rely on FDEs
66 pointing only to last CIE and allow merging of any duplicate CIEs,
67 not just duplicate consecutive CIEs.
68 (_bfd_elf_discard_section_eh_frame_hdr): Delete cies hash table.
69 * elf-bfd.h (struct cie_header, struct cie): Removed.
70 (struct eh_frame_sec_info): Remove alloced field.
71 (struct eh_frame_hdr_info): Remove last_cie, last_cie_sec
72 and last_cie_inf fields. Add cies field.
73
74633dd0
AM
742006-11-20 Alan Modra <amodra@bigpond.net.au>
75
76 * bfd-in.h (struct stat): Don't typedef.
77 * bfdio.c (bfd_get_size): Return a file_ptr.
78 * cisco-core.c (cisco_core_file_validate): Use bfd_size_type for nread.
79 * mmo.c (mmo_scan): Use file_ptr for curpos.
80 * trad-core.c (trad_unix_core): Don't cast statbuf.st_size to
81 unsigned long.
82 * bfd-in2.h: Regenerate.
83
98f0b6ab
AM
842006-11-20 Alan Modra <amodra@bigpond.net.au>
85
86 PR 3532
87 * bfd-in.h (struct bfd_hash_table): Reorganize. Add "frozen".
88 * hash.c (bfd_hash_table_init_n): Init frozen.
89 (bfd_hash_lookup): Don't grow if frozen.
90 (bfd_hash_traverse): Freeze hash table during traversal.
91 * bfd-in2.h: Regenerate.
92
c2370991
AM
932006-11-18 Alan Modra <amodra@bigpond.net.au>
94
95 * elflink.c (_bfd_elf_check_kept_section): Test for kept group
96 section. Save result of checks in kept_section.
97 (_bfd_elf_section_already_linked): Tidy. Correct comments.
98 Ignore all group member sections. Handle special matching of
99 single-member groups against linkonce sections via their group
100 section. When such a match is found, set kept_section to the
101 group member section rather than to the group.
102
b9c3a42a
NC
1032006-11-14 Phil Lello <phil.lello@homecall.co.uk>
104
105 * peXXigen.c: Updates for PE/COFF V8.0, and clarification
106 (dir_names): Added CLR Runtime Header to dir_names[].
107 (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX
108 subsystem names
109 (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out)
110 (pe_print_idata, pe_print_edata)
111 (_bfd_XX_bfd_copy_private_bfd_data_common)
112 (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into
113 DataDirectory.
114
d504ffc8
DJ
1152006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
116
117 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
118 prototype.
119 (bfd_elf32_arm_set_byteswap_code): New prototype.
120 * bfd-in2.h: Regenerate.
121 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take
122 byteswap_code as an argument. Revert 2006-11-01 change.
123 (bfd_elf32_arm_set_byteswap_code): New.
124 (elf32_arm_size_dynamic_sections): Call
125 bfd_elf32_arm_process_before_allocation.
126
73ca2500
TS
1272006-11-10 Thiemo Seufer <ths@mips.com>
128
129 * config.bfd (mips*el-sde-elf*, mips*-sde-elf*): Drop ECOFF support
130 for SDE configs.
131
0285182b
NC
1322006-11-10 Nick Clifton <nickc@redhat.com>
133
134 * config.bfd: Move previously obsoleted targets to the REMOVED
135 list.
136 Add maxq-*-coff to the obsolete list.
137
d66dff94
NC
1382006-11-10 Pedro Alves <pedro_alves@portugalmail.pt>
139
140 * pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".".
141 * pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise.
142 * coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before.
143
f2a9dd69
DJ
1442006-11-07 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * elf32-arm.c (find_thumb_glue): Add ERROR_MESSAGE argument; set it
147 on error.
148 (find_arm_glue): Likewise.
149 (elf32_thumb_to_arm_stub, elf32_arm_create_thumb_stub)
150 (elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate): Add
151 ERROR_MESSAGE argument and pass it through.
152 (elf32_arm_to_thumb_export_stub): Update.
153 (elf32_arm_relocate_section): Use ERROR_MESSAGE and reloc_dangerous.
154
7c8fe5c4
AM
1552006-11-07 Alan Modra <amodra@bigpond.net.au>
156
157 * elf64-ppc.c (enum _ppc64_sec_type): New.
158 (struct _ppc64_elf_section_data): Move "t_symndx" into opd union,
159 and rename fields. Add sec_type and has_14bit_branch.
160 (struct ppc_link_hash_table): Remove has_14bit_branch.
161 (get_opd_info, get_tls_mask, ppc64_elf_edit_opd): Adjust.
162 (ppc64_elf_relocate_section): Likewise.
163 (ppc64_elf_check_relocs): Likewise. Set per-section has_14bit_branch.
164 (ppc64_elf_size_stubs): Don't set default group size here.
165 (group_sections): Instead do so here, and group sections using
166 their individual requirements.
167
b3fac117
AM
1682006-11-07 Alan Modra <amodra@bigpond.net.au>
169
170 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Remove "has_dotsym"
171 and union.
172 (struct ppc_link_hash_entry): Add "next_dot_sym".
173 (struct ppc_link_hash_table): Add "dot_syms".
174 (link_hash_newfunc): Make list of syms starting with a dot.
175 (ppc_get_stub_entry, adjust_opd_syms): Adjust.
176 (ppc64_elf_add_symbol_hook): Don't set has_dotsym.
177 (struct add_symbol_adjust_data): Delete.
178 (add_symbol_adjust): Simplify params and return.
179 (ppc64_elf_check_directives): Just process the "dot_syms" lists,
180 not all syms.
181
b1e24c02
DJ
1822006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * libbfd-in.h (_bfd_clear_contents): New prototype.
185 * reloc.c (_bfd_clear_contents): New.
186 * libbfd.h: Regenerated.
187
188 * elf32-arm.c (elf32_arm_final_link_relocate): Use
189 _bfd_clear_contents.
190 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
191 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
192 * elf32-i386.c (elf_i386_relocate_section): Likewise.
193 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
194 * elf32-s390.c (elf_s390_relocate_section): Likewise.
195 * elf32-sh.c (sh_elf_relocate_section): Likewise.
196 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
197 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
198 * elf64-s390.c (elf_s390_relocate_section): Likewise.
199 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
200 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
201
202 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to
203 zero for discarded symbols.
204 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
205
b9d58d71
TS
2062006-11-01 Thiemo Seufer <ths@mips.com>
207 David Ung <davidu@mips.com>
208
209 * elf-bfd.h (local_call_stubs): New member.
210 * elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros.
211 (mips_elf_calculate_relocation): Handle local mips16 call stubs.
212 (mips16_stub_section_p): Rename from mips_elf_stub_section_p, use
213 the new stub macros.
214 (_bfd_mips_elf_check_relocs): Handle call stubs for code which
215 mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark
216 used stubs with SEC_KEEP. Use the new stub macros.
217
74b08499
DJ
2182006-11-01 Alan Modra <amodra@bigpond.net.au>
219
220 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Correct
221 check for PLT usage.
222
3110dbc9
DJ
2232006-11-01 Daniel Jacobowitz <dan@codesourcery.com>
224
225 * elfxx-mips.c (mips_elf_merge_gots): Always use maxcnt.
226
a39f3346
AM
2272006-10-31 Alan Modra <amodra@bigpond.net.au>
228
229 * elf.c (elfcore_write_note): Pad note descriptor to 4-byte
230 boundary. Tidy. Comment.
c0f00686
L
231
2322006-10-30 H.J. Lu <hongjiu.lu@intel.com>
233
234 PR ld/3111
235 * elf-bfd.h (elf_obj_tdata): Add symbuf.
236 (_bfd_elf_section_already_linked): Add struct bfd_link_info *.
237 (_bfd_elf_check_kept_section): Likewise.
238 (bfd_elf_match_symbols_in_sections): Likewise.
239
240 * elf.c (assign_section_numbers): Updated to add
241 struct bfd_link_info *.
242 (bfd_elf_match_symbols_in_sections): Updated. Cache symbol
243 buffer if info->reduce_memory_overheads is false.
244
245 * elflink.c (match_group_member): Updated to add
246 struct bfd_link_info *.
247 (_bfd_elf_check_kept_section): Likewise.
248 (elf_link_input_bfd): Likewise.
249 (_bfd_elf_section_already_linked): Likewise.
250 (bfd_elf_final_link): Free symbol buffer if
251 info->reduce_memory_overheads is false.
252
253 * libbfd-in.h (_bfd_nolink_section_already_linked): Add
254 struct bfd_link_info *.
255 (_bfd_generic_section_already_linked): Likewise.
256 * libbfd.h: Regenerated.
257
258 * linker.c (bfd_section_already_linked): Add
259 struct bfd_link_info *.
260 (_bfd_generic_section_already_linked): Likewise.
261 * targets.c (bfd_target): Add struct bfd_link_info * to
262 _section_already_linked.
263 * bfd-in2.h: Regenerated.
264
ffda70fc
AM
2652006-10-30 Alan Modra <amodra@bigpond.net.au>
266
267 * bfd.c (bfd_error_type): Add bfd_error_on_input.
268 (input_bfd, input_error): New static vars.
269 (bfd_set_error): Handle bfd_error_on_input.
270 (bfd_errmsg): Likewise.
271 (bfd_perror): Simplify.
272 * archive.c (_bfd_write_archive_contents): Report errors on input.
b52149c8 273 * bfd-in2.h: Regenerate.
ffda70fc 274
017657f0
AM
2752006-10-30 Alan Modra <amodra@bigpond.net.au>
276
277 * elf.c (elfcore_write_note): Pad to 4-byte boundary.
278
165b93e7
RS
2792006-10-28 Richard Sandiford <richard@codesourcery.com>
280
281 * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
282 * elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
283 (elf_mips_howto_table_rela): Likewise.
284 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
285 (mips_elf64_howto_table_rela): Likewise.
286
d270463e
L
2872006-10-26 H.J. Lu <hongjiu.lu@intel.com>
288
289 * elf.c (_bfd_elf_init_private_section_data): Assert output
290 section ELF type instead of check if it is SHT_NULL. Copy
291 OS/PROC specific flags from input section to output section.
292
a14a5de3
AM
2932006-10-27 Alan Modra <amodra@bigpond.net.au>
294
295 * section.c (SEC_KEEP): Update comment.
296 * bfd-in2.h: Regenerate.
297 * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections.
298 * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections.
299 * stabs.c (_bfd_discard_section_stabs): Likewise.
300 (_bfd_link_section_stabs): Likewise. Simplify abs_section check.
301
761c7f08
BE
3022006-10-26 Ben Elliston <bje@au.ibm.com>
303
49a184f6
BE
304 * reloc.c (_bfd_relocate_contents): Remove explicit case 0.
305
761c7f08
BE
306 * elf.c (bfd_section_from_shdr): Remove extraneous breaks.
307 * targets.c (find_target): Remove extraneous break.
308
23fe9577
BE
3092006-10-26 Ben Elliston <bje@au.ibm.com>
310
0b853537
BE
311 * coff-maxq.c (coff_maxq20_reloc): Remove unused variable `howto'.
312 (struct maxq_reloc_map): Unused; remove.
313 (maxq_reloc_map): Likewise.
314 (maxq_reloc_type_lookup): Remove loop over maxq_reloc_map.
315
a14a5de3 3162006-10-26 Ben Elliston <bje@au.ibm.com>
0b853537 317
23fe9577
BE
318 * elf.c (bfd_elf_set_dyn_lib_class): Change second argument type
319 from int to enum dynamic_lib_link_class lib_class.
320 * bfd-in.h (bfd_elf_set_dyn_lib_class): Likewise.
321 * bfd-in2.h: Regenerate.
322
e9f53129
AM
3232006-10-25 Alan Modra <amodra@bigpond.net.au>
324 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
325 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
326 Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
327 Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
328
329 * cpu-spu.c: New file.
330 * elf32-spu.c: New file.
331 * elf32-spu.h: New file.
332 * archures.c: Add SPU support.
333 * config.bfd: Likewise.
334 * configure.in: Likewise.
335 * reloc.c: Likewise.
336 * targets.c: Likewise.
337 * Makefile.am: Likewise. Run "make dep-am".
338 * libbfd.h: Regenerate.
339 * bfd-in2.h: Regenerate.
340 * Makefile.in: Regenerate.
341 * configure: Regenerate.
342 * po/SRC-POTFILES.in: Regenerate.
343
05bf9422
AM
3442006-10-23 Alan Modra <amodra@bigpond.net.au>
345
346 * elf64-ppc.c (ppc64_elf_edit_opd): Clarify comment.
347
9838404f
AM
3482006-10-23 Alan Modra <amodra@bigpond.net.au>
349
350 * elf32-score.c: Formatting.
351 (elf_backend_omit_section_dynsym): Define.
352 (score_elf_create_dynamic_relocation): Remove code copied from mips.
353 Don't use section syms in dynamic relocs. Remove unused param.
354 (score_elf_final_link_relocate): Remove unused param.
355
720194ed
AM
3562006-10-23 Alan Modra <amodra@bigpond.net.au>
357
358 * linker.c (fix_syms): Choose best of previous and next
359 section based on section flags and vma.
360
dc84ceef
KK
3612006-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
362
363 * elf32-sh64.c (sh64_elf_merge_symbol_attribute): Do merging
364 only when the non visibility part of st_other is non-zero.
365 * elf64-sh64.c (sh64_elf64_merge_symbol_attribute): Likewise.
366
f6f62d6f
RS
3672006-10-20 Richard Sandiford <richard@codesourcery.com>
368
369 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't extend
370 PT_DYNAMIC on GNU/Linux targets.
371
bcfdf036
RS
3722006-10-20 Richard Sandiford <richard@codesourcery.com>
373
374 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the
375 size of .rel.dyn reflect the value of DT_RELSZ.
376
98c904a8
RS
3772006-10-20 Richard Sandiford <richard@codesourcery.com>
378
379 * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate
380 a PT_NULL header for dynamic objects.
381 (_bfd_mips_elf_modify_segment_map): Add it.
382
b3549761
NC
3832006-10-19 Mei Ligang <ligang@sunnorth.com.cn>
384
385 * elf32-score.c (score_elf_rel_dyn_section): Replace
386 bfd_make_section with bfd_make_section_with_flags.
387 (_bfd_score_elf_create_dynamic_sections): Ditto.
388 (score_elf_create_got_section): Ditto.
389 (score_elf_final_link_relocate): Delete referrence to
390 EF_SCORE_HASENTRY.
391
6870500c
RS
3922006-10-19 Richard Sandiford <richard@codesourcery.com>
393
394 * elfxx-mips.c (sort_dynamic_relocs): Sort relocations against the
395 same symbol by increasing r_offset.
396 (sort_dynamic_relocs_64): Likewise. Fix comparisons between very
397 large and very small symbol indexes.
398
6a483765
RS
3992006-10-19 Richard Sandiford <richard@codesourcery.com>
400
401 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG
402 and DT_MIPS_RLD_MAP tags for position-independent executables.
403 Do not add DT_DEBUG to shared libraries for any MIPS target.
404
92b7c7b6
L
4052006-10-18 H.J. Lu <hongjiu.lu@intel.com>
406
407 PR ld/3290
408 * elflink.c (elf_link_add_object_symbols): Hide definitions in
409 debug sections.
410
2f475487
AM
4112006-10-19 Alan Modra <amodra@bigpond.net.au>
412
413 * elf32-arm.c (bfd_elf32_arm_allocate_interworking_sect): Check,
414 don't set, glue section size.
415 (record_arm_to_thumb_glue): Set glue section size here.
416 (record_thumb_to_arm_glue): Likewise.
417 (bfd_elf32_arm_add_glue_sections_to_bfd): Formatting.
418 (bfd_elf32_arm_process_before_allocation): Ignore exluded sections.
419
71a75f6f
MF
4202006-10-18 Roy Marples <uberlord@gentoo.org>
421
422 * elf64-sparc.c: Add FreeBSD support.
423 (elf64_sparc_fbsd_post_process_headers): New function.
424 * targets.c (_bfd_target_vector): Add bfd_elf64_sparc_freebsd_vec.
425 * config.bfd (sparc64-*-freebsd*): Set targ_defvec to bfd_elf64_sparc_freebsd_vec.
426 * configure.in: Add entry for bfd_elf64_sparc_freebsd_vec.
427 * configure: Regenerate.
428
92f5d02b
MS
4292006-10-17 Mark Shinwell <shinwell@codesourcery.com>
430
431 * elf32-arm.c (elf32_arm_final_link_relocate): Add support for
432 R_ARM_MOVW_BREL_NC, R_ARM_MOVW_BREL, R_ARM_MOVT_BREL,
433 R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVW_BREL and
434 R_ARM_THM_MOVT_BREL relocations.
435
e95de063
MS
4362006-10-17 Mark Shinwell <shinwell@codesourcery.com>
437
05bf9422
AM
438 * elf32-arm.c (elf32_arm_howto_table_1): Change offset for
439 R_THM_CALL to 25 and remove FIXME comment.
440 (using_thumb2): New function.
441 (elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding.
e95de063 442
bb224fc3
MS
4432006-10-17 Mark Shinwell <shinwell@codesourcery.com>
444
445 * elf32-arm.c (elf32_arm_final_link_relocate): Add cases
446 for R_ARM_ABS32_NOI and R_ARM_REL32_NOI.
447 (elf32_arm_gc_sweep_hook): Likewise.
448 (elf32_arm_check_relocs): Likewise.
449 (allocate_dynrelocs): Likewise.
450
74541ad4
AM
4512006-10-17 Alan Modra <amodra@bigpond.net.au>
452
453 * elf-bfd.h (struct elf_link_hash_table): Reorder. Add
454 text_index_section and data_index_section.
455 (struct elf_backend_data): Add elf_backend_init_index_section.
456 (_bfd_elf_init_1_index_section): Declare.
457 (_bfd_elf_init_2_index_sections): Declare.
458 * elfxx-target.h (elf_backend_init_index_section): Define.
459 (elfNN_bed): Init new field.
460 * elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls
461 section and text_index_section plus data_index_section.
462 (_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections.
463 (_bfd_elf_init_1_index_section): New function.
464 (_bfd_elf_init_2_index_sections): New function.
465 (bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section.
466 (elf_link_input_bfd): When emitting relocs, use text_index_section
467 and data_index_section for removed sections.
468 * elf-m10300.c (elf_backend_omit_section_dynsym): Define.
469 * elf32-i386.c: Likewise.
470 * elf32-m32r.c: Likewise.
471 * elf32-sh.c: Likewise.
472 * elf32-xstormy16.c: Likewise.
473 * elf32-xtensa.c: Likewise.
474 * elf64-alpha.c: Likewise.
475 * elf64-hppa.c: Likewise.
476 * elf64-mmix.c: Likewise.
477 * elf64-sh64.c: Likewise.
478 * elfxx-ia64.c: Likewise.
479 * elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section
480 and data_index_section sym for relocs against sections with no dynamic
481 section sym.
482 (elf_backend_init_index_section): Define.
483 * elf32-cris.c: Similarly.
484 * elf32-hppa.c: Similarly.
485 * elf32-i370.c: Similarly.
486 * elf32-m68k.c: Similarly.
487 * elf32-mips.c: Similarly.
488 * elf32-ppc.c: Similarly.
489 * elf32-s390.c: Similarly.
490 * elf32-sparc.c: Similarly.
491 * elf32-vax.c: Similarly.
492 * elf64-mips.c: Similarly.
493 * elf64-ppc.c: Similarly.
494 * elf64-s390.c: Similarly.
495 * elf64-sparc.c: Similarly.
496 * elf64-x86-64.c: Similarly.
497 * elfn32-mips.c: Similarly.
498 * elfxx-mips.c: Similarly.
499 * elfxx-sparc.c: Similarly.
500 * linker.c (fix_syms): Base symbols in removed sections on
501 previous section in preference to using absolute section.
502
c26620e3
AS
5032006-10-16 Andreas Schwab <schwab@suse.de>
504
505 * elfxx-ia64.c (addend_compare): Properly compute return value.
506
3ba71138
L
5072006-10-15 H.J. Lu <hongjiu.lu@intel.com>
508
509 PR ld/3314
510 * elf.c (assign_file_positions_for_non_load_sections): Don't
05bf9422 511 page align empty SHF_ALLOC sections.
3ba71138 512
7eeb1be6
JJ
5132006-10-13 Jakub Jelinek <jakub@redhat.com>
514
515 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
516 .plt sh_entsize to 0 if plt header size isn't multiple of
517 plt entry size or for 32-bit which adds a nop insn at the
518 end of the .plt section.
519
a77dc2cc
BW
5202006-10-12 Bob Wilson <bob.wilson@acm.org>
521
522 * elf32-xtensa.c (elf_xtensa_action_discarded): New.
523 (elf_backend_action_discarded): Define.
524
bf1747de
BW
5252006-10-11 Bob Wilson <bob.wilson@acm.org>
526
527 * elf32-xtensa.c (elf_xtensa_relocate_section): Return after
528 unresolvable relocation error.
529 (elf_xtensa_finish_dynamic_symbol): Set value of undefined, weak
530 symbols to zero.
531
ba05963f
BW
5322006-10-10 Bob Wilson <bob.wilson@acm.org>
533
534 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG
535 for PIE executables.
536
ac685e6a
JJ
5372006-10-03 Jakub Jelinek <jakub@redhat.com>
538
539 * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
540 * elf-eh-frame.c (skip_cfa_op): Fix handling of DW_CFA_advance_loc.
541 Handle DW_CFA_{remember,restore}_state, DW_CFA_GNU_window_save,
542 DW_CFA_val_{offset{,_sf},expression}.
543 (skip_non_nops): Record number of DW_CFA_set_loc ops.
544 (_bfd_elf_discard_section_eh_frame): Require skip_non_nops recognizes
545 all ops. If there are any DW_CFA_set_loc ops and they are pcrel
546 or going to be pcrel, compute set_loc array.
547 (_bfd_elf_eh_frame_section_offset): If make_relative, kill relocations
548 against DW_CFA_set_loc operands.
549 (_bfd_elf_write_section_eh_frame): Handle DW_CFA_set_loc adjusting.
550
cd7be95b
KH
5512006-10-02 Daniel Jacobowitz <dan@codesourcery.com>
552
553 * elflink.c (_bfd_elf_merge_symbol): Discard references to TLS
554 symbols from the --just-syms file.
555
23eb7e01
AM
5562006-10-01 Alan Modra <amodra@bigpond.net.au>
557
558 * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for
559 existence of PLT.
560
4dba4b24
L
5612006-09-29 H.J. Lu <hongjiu.lu@intel.com>
562
563 PR ld/3283
564 * elf64-x86-64.c (elf64_x86_64_relocate_section): Don't ignore
565 relocation overflow on branches to undefweaks.
566
3bb0c887
AM
5672006-09-29 Alan Modra <amodra@bigpond.net.au>
568
569 * po/BLD-POTFILES.in: Regenerate.
570 * po/SRC-POTFILES.in: Regenerate.
571
14952a5b
DS
5722006-09-29 Danny Smith <dannysmith@users.sourceforge.net>
573
574 PR 3276
575 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
576 alignment for .data$, .rdata$ and .text$ sections so that sse
05bf9422 577 and sse2 code will work for linkonce sections too.
14952a5b
DS
578 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
579
07adf181
AM
5802006-09-28 Alan Modra <amodra@bigpond.net.au>
581
582 * elflink.c (_bfd_elf_gc_mark_hook): New function.
583 * elf-bfd.h (_bfd_elf_gc_mark_hook): Declare.
584 * elfxx-target.h (elf_backend_gc_mark_hook): Default to above.
585 * elf-m10300.c (mn10300_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
586 * elf32-arm.c (elf32_arm_gc_mark_hook): Likewise.
587 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
588 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
589 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
590 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
591 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
592 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
593 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
594 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
595 * elf32-score.c (_bfd_score_elf_gc_mark_hook): Likewise.
596 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
597 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
598 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Likewise.
599 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
600 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
601 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
602 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
603 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Likewise.
604 * elf32-bfin.c (bfin_gc_mark_hook): Likewise.
605 (bfinfdpic_gc_sweep_hook): Delete.
606 (elf_backend_gc_sweep_hook): Don't define for elf32-bfinfdpic.
607 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
608 (elf32_d10v_gc_sweep_hook): Delete.
609 (elf_backend_gc_sweep_hook): Don't define.
610 * elf32-fr30.c (fr30_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
611 (fr30_elf_gc_sweep_hook): Delete.
612 (elf_backend_gc_sweep_hook): Don't define.
613 * elf32-frv.c (elf32_frv_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
614 (elf32_frv_gc_sweep_hook): Delete.
615 (elf_backend_gc_sweep_hook): Don't define.
616 * elf32-iq2000.c (iq2000_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
617 (iq2000_elf_gc_sweep_hook): Delete.
618 (elf_backend_gc_sweep_hook): Don't define.
619 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Use
620 _bfd_elf_gc_mark_hook.
621 (openrisc_elf_gc_sweep_hook): Delete.
622 (elf_backend_gc_sweep_hook): Don't define.
623 * elf32-v850.c (v850_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
624 (v850_elf_gc_sweep_hook): Delete.
625 (elf_backend_gc_sweep_hook): Don't define.
626 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Use
627 _bfd_elf_gc_mark_hook.
628 (xstormy16_elf_gc_sweep_hook): Delete.
629 (elf_backend_gc_sweep_hook): Don't define.
630 * elf64-sh64.c (sh_elf64_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
631 (sh_elf64_gc_sweep_hook): Delete.
632 (elf_backend_gc_sweep_hook): Don't define.
633 * elf32-avr.c (elf32_avr_gc_mark_hook): Delete.
634 (elf32_avr_gc_sweep_hook): Delete.
635 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
636 * elf32-cr16c.c (elf32_cr16c_gc_mark_hook): Delete.
637 (elf32_cr16c_gc_sweep_hook): Delete.
638 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
639 * elf32-crx.c (elf32_crx_gc_mark_hook): Delete.
640 (elf32_crx_gc_sweep_hook): Delete.
641 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
642 * elf32-h8300.c (elf32_h8_gc_mark_hook): Delete.
643 (elf32_h8_gc_sweep_hook): Delete.
644 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
645 * elf32-ip2k.c (ip2k_elf_gc_mark_hook): Delete.
646 (ip2k_elf_gc_sweep_hook): Delete.
647 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
648 * elf32-m32c.c (m32c_elf_gc_mark_hook, m32c_elf_gc_sweep_hook): Delete.
649 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
650 * elf32-m68hc11.c (elf_backend_gc_mark_hook): Don't define.
651 (elf_backend_gc_sweep_hook): Don't define.
652 * elf32-m68hc12.c (elf_backend_gc_mark_hook): Don't define.
653 (elf_backend_gc_sweep_hook): Don't define.
654 * elf32-m68hc1x.c (elf32_m68hc11_gc_mark_hook): Delete.
655 (elf32_m68hc11_gc_sweep_hook): Delete.
656 * elf32-m68hc1x.h (elf32_m68hc11_gc_mark_hook): Delete.
657 (elf32_m68hc11_gc_sweep_hook): Delete.
658 * elf32-msp430.c (elf32_msp430_gc_mark_hook): Delete.
659 (elf32_msp430_gc_sweep_hook): Delete.
660 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
661 * elf32-mt.c (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook): Delete.
662 (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
663
ea9986ff
NC
6642006-09-25 Pedro Alves <pedro_alves@portugalmail.pt>
665
666 * bfd-in.h (CONST_STRNCPY) : Delete.
667 (LITSTRCPY) : New.
668 (LITMEMCPY) : New.
669 * bfd-in2.h : Regenerate.
670 * elflink.c (bfd_elf_gc_sections) : Use LITMEMCPY. Don't manually
671 calculate string lengths.
672 * nlmcode.h (nlm_swap_auxiliary_headers_in) : Use LITMEMCPY.
673
49c13adb
L
6742006-09-26 H.J. Lu <hongjiu.lu@intel.com>
675
676 PR ld/3223
677 PR ld/3267
678 * elf.c (assign_file_positions_for_non_load_sections): Don't
679 warn zero size allocated sections.
680
f36b9bcd
AM
6812006-09-27 Alan Modra <amodra@bigpond.net.au>
682
683 * elf32-score.c (_bfd_score_elf_relocate_section): Move assignment
684 to "name" so that compiler realizes it is never uninitialized.
685 Use bfd_elf_sym_name.
686
41f8ce69
L
6872006-09-26 H.J. Lu <hongjiu.lu@intel.com>
688
689 PR binutils/3262
690 * elf.c (rewrite_elf_program_header): Use bfd_zalloc instead of
691 bfd_alloc to allocate segment map.
692 (copy_elf_program_header): Likewise.
693
2d447fca 6942006-09-26 Mark Shinwell <shinwell@codesourcery.com>
05bf9422
AM
695 Joseph Myers <joseph@codesourcery.com>
696 Ian Lance Taylor <ian@wasabisystems.com>
697 Ben Elliston <bje@wasabisystems.com>
2d447fca
JM
698
699 * archures.c: Add definition for bfd_mach_arm_iWMMXt2.
700 * cpu-arm.c (processors): Add bfd_mach_arm_iWMMXt2.
701 (arch_info_struct, bfd_arm_update_notes): Likewise.
702 (architectures): Likewise.
703 (bfd_arm_merge_machines): Check for iWMMXt2.
704 * bfd-in2.h: Rebuild.
705
65fe5dd6
L
7062006-09-24 H.J. Lu <hongjiu.lu@intel.com>
707
708 * configure: Regenerated.
709
8384fb8f
AM
7102006-09-22 Alan Modra <amodra@bigpond.net.au>
711
712 * elfcode.h (elf_swap_symbol_in): Return bfd_boolean. Don't abort
713 on error.
714 * elf-bfd.h (elf_size_info <swap_symbol_in>): Adjust decl.
715 (bfd_elf32_swap_symbol_in, bfd_elf64_swap_symbol_in): Likewise.
716 * elf.c (bfd_elf_get_elf_syms): Test return of swap_symbol_in,
717 and report error.
718 * elf32-arm.c (elf32_arm_swap_symbol_in): Return bfd_boolean.
719
36c10a8f
MS
7202006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
721
722 * elf32-s390.c (elf_s390_relocate_section): Remove check for code
723 section in LD to LE linker relaxation for R_390_TLS_LDO32.
724 * elf64-s390.c (elf_s390_relocate_section): Likewise for
725 R_390_TLS_LDO64.
726
99ad8390
NC
7272006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
728
729 * configure.in: Added new target-vectors x86_64coff_vec,
730 x86_64pe_vec, and x86_64pei_vec.
731 * configure: Regenerate.
732 * config.bfd: Adjusted x86_64 target architecture detection.
733 * bfd.c: Add for new target "coff-x86-64"
734 (bfd_get_sign_extend): Add target vector idents for pe-x86-64. and pei-x86-64.
735 * coff-x86_64.c: Add new file for x86_64 (AMD64) coff support.
736 * libpei.h: Adjustments for COFF_WITH_pex64.
737 * coffcode.h: Add for new target machine, architecture, signature, and internal
738 signature handler.
739 * Makefile.am: Add new files to target-all and define make-rule for pex64igen.c
740 * Makefile.in: Regenerate.
741 * pe-x86_64.c: Add for new target "pe-x86-64".
742 * pei-x86_64.c: Add for new target "pei-x86-64".
743 * peicode.h: Adjusts for new targets.
744 (coff_swap_filehdr_out): Set for this target to
745 _bfd_pex64_only_swap_filehdr_out.
746 (SIZEOF_IDATA4): Define it as 8 byte size for this target.
747 (SIZEOF_IDATA5): Define it as 8 byte size for this target.
748 (jump_table jtab): Add for AMD64MAGIC.
749 (pe_ILF_build_a_bfd): Adjusts for new size of SIZEOF_IDATA4 and SIZE_IDATA5.
750 (pe_ILF_object_p): Add coff image-file signature to internal
751 signature translation.
752 * peXXigen.c: Adjust proper include of target coff-header and
753 introduced target specific code
754 (COFF_WITH_pex64): New macro for this target.
755 (pe_print_idata): New dumping method for import section of PE+ files.
756 * targets.c: Add new target vectors declarations for x86_64 coff targets.
757 * coffcode.h: Support code to support the x86_64 PE magic number.
758 * coff-x86_64.c: New file.
759
60ff4dc4
HPN
7602006-09-17 Hans-Peter Nilsson <hp@axis.com>
761
762 * elf.c (special_sections_s): Revert last STRING_COMMA_LEN change
763 for .stabstr entry, explain why.
764
7421a730
AM
7652006-09-17 Anton Blanchard <anton@samba.org>
766 Alan Modra <amodra@bigpond.net.au>
767
768 * dwarf2.c (concat_filename): Apply DW_AT_comp_dir if dir table
769 entry isn't absolute.
770
1c0d3aa6
NC
7712006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
772
773 * cpu-score.c: New file.
774 * elf32-score.c: New file.
775 * config.bfd: Add Score target.
776 * Makefile.am: Add Score files.
777 * Makefile.in: Regenerate.
778 * archures.c: Add Score architecture.
779 * reloc.c: Add Score relocs.
780 * targets.c: Add Score target vectors.
781 * bfd-in2.h: Regenerate.
782 * libbfd.h: Regenerate.
783 * configure.in: Add Score target.
784 * configure: Regenerate.
785
0112cd26
NC
7862006-09-16 Nick Clifton <nickc@redhat.com>
787 Pedro Alves <pedro_alves@portugalmail.pt>
788
789 * bfd-in.h (STRING_AND_COMMA): New macro. Takes one constant
790 string as its argument and emits the string followed by a comma
791 and then the length of the string.
792 (CONST_STRNEQ): New macro. Checks to see if a variable string
793 has a constant string as its initial characters.
794 (CONST_STRNCPY): New macro. Copies a constant string to the start
795 of a variable string.
796 * bfd-in2.h: Regenerate.
797 * archive.c: Make use of the new macros.
798 * archive64.c: Likewise.
799 * bfd.c: Likewise.
800 * coff-ppc.c: Likewise.
801 * coff-stgo32.c: Likewise.
802 * coffcode.h: Likewise.
803 * cofflink.c: Likewise.
804 * cpu-i960.c: Likewise.
805 * dwarf2.c: Likewise.
806 * ecoff.c: Likewise.
807 * elf-m10300.c: Likewise.
808 * elf.c: Likewise.
809 * elf32-arm.c: Likewise.
810 * elf32-bfin.c: Likewise.
811 * elf32-cris.c: Likewise.
812 * elf32-hppa.c: Likewise.
813 * elf32-i370.c: Likewise.
814 * elf32-i386.c: Likewise.
815 * elf32-iq2000.c: Likewise.
816 * elf32-m32r.c: Likewise.
817 * elf32-m68hc11.c: Likewise.
818 * elf32-m68hc12.c: Likewise.
819 * elf32-m68k.c: Likewise.
820 * elf32-mcore.c: Likewise.
821 * elf32-ppc.c: Likewise.
822 * elf32-s390.c: Likewise.
823 * elf32-sh-symbian.c: Likewise.
824 * elf32-sh.c: Likewise.
825 * elf32-sh64.c: Likewise.
826 * elf32-v850.c: Likewise.
827 * elf32-vax.c: Likewise.
828 * elf32-xtensa.c: Likewise.
829 * elf64-alpha.c: Likewise.
830 * elf64-hppa.c: Likewise.
831 * elf64-mmix.c: Likewise.
832 * elf64-ppc.c: Likewise.
833 * elf64-s390.c: Likewise.
834 * elf64-sh64.c: Likewise.
835 * elf64-x86-64.c: Likewise.
836 * elflink.c: Likewise.
837 * elfxx-ia64.c: Likewise.
838 * elfxx-mips.c: Likewise.
839 * elfxx-sparc.c: Likewise.
840 * hpux-core.c: Likewise.
841 * i386linux.c: Likewise.
842 * ieee.c: Likewise.
843 * libpei.h: Likewise.
844 * linker.c: Likewise.
845 * m68klinux.c: Likewise.
846 * mmo.c: Likewise.
847 * nlmcode.h: Likewise.
848 * osf-core.c: Likewise.
849 * pef.c: Likewise.
850 * som.c: Likewise.
851 * sparclinux.c: Likewise.
852 * vms-hdr.c: Likewise.
853
30288845
AM
8542006-09-14 Alan Modra <amodra@bigpond.net.au>
855
4b181510 856 PR 3181
30288845
AM
857 * elf.c (_bfd_elf_copy_private_header_data): Fix group members
858 that have had their SHT_GROUP section removed.
859
41198d0c
L
8602006-09-12 H.J. Lu <hongjiu.lu@intel.com>
861
862 PR ld/3197
863 * elflink.c (elf_link_output_extsym): Compute bucket only if
864 needed.
865
168dd667
L
8662006-09-10 H.J. Lu <hongjiu.lu@intel.com>
867
868 PR binutils/3186
869 * elf.c (_bfd_elf_make_section_from_shdr): Correct length of
870 "gnu.linkonce.wi.".
871
b0fead2b
RE
8722006-09-08 Vladimir Prus <vladimir@codesourcery.com>
873
874 * elf32-arm.c (elf32_arm_swap_symbol_out): Remove
875 unconditional setting of low bit for Thumb symbol
876 mistakenly left behind after check for external
877 symbols was added. Fix comment typo.
878
55255dae
L
8792006-09-07 H.J. Lu <hongjiu.lu@intel.com>
880
881 * elf-bfd.h (elf_link_hash_entry): Add a dynamic field.
882 (bfd_elf_link_mark_dynamic_symbol): New.
883 (SYMBOLIC_BIND): New.
884
885 * elf32-i386.c (elf_i386_check_relocs): Replace info->symbolic
886 with SYMBOLIC_BIND (info, h).
887 (elf_i386_relocate_section): Likewise.
888 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
889 (elf64_x86_64_relocate_section): Likewise.
890 * elfxx-ia64.c (elfNN_ia64_check_relocs): Likewise.
891
892 * elflink.c (bfd_elf_link_mark_dynamic_symbol): New.
893 (bfd_elf_record_link_assignment): Call
894 bfd_elf_link_mark_dynamic_symbol on new entry.
895 (_bfd_elf_merge_symbol): Likewise.
896 (_bfd_elf_export_symbol): Return if the symbol isn't exported.
897 (_bfd_elf_fix_symbol_flags): Replace info->symbolic with
898 SYMBOLIC_BIND (info, h).
899 (_bfd_elf_dynamic_symbol_p): Likewise.
900 (_bfd_elf_symbol_refs_local_p): Likewise.
901 (bfd_elf_size_dynamic_sections): Updated.
902
7a2ec0a6
L
9032006-09-05 Bibo Mao <bibo.mao@intel.com>
904
905 PR binutils/3171
906 * coffcode.h (coff_write_object_contents): Set the optional
907 header magic number to PE32PMAGIC instead of ZMAGIC for ia64.
908
2cab6cc3
MS
9092006-09-04 Mark Shinwell <shinwell@codesourcery.com>
910
05bf9422
AM
911 * elf32-arm.c (elf32_arm_howto_table_1): Adjust entries for
912 R_ARM_THM_ALU_PREL_11_0 and R_ARM_THM_PC12 relocations.
913 (elf32_arm_final_link_relocate): Handle R_ARM_THM_ALU_PREL_11_0
914 and R_ARM_THM_PC12 relocations.
2cab6cc3 915
74869ac7
BW
9162006-08-24 Bob Wilson <bob.wilson@acm.org>
917
918 * elf32-xtensa.c (xtensa_get_property_section_name): Delete.
919 (xtensa_get_property_section): New.
920 (xtensa_read_table_entries): Use xtensa_get_property_section.
921 (relax_property_section, xtensa_get_property_predef_flags): Handle
922 group name suffixes in property section names.
923 (match_section_group): New.
924
174660ce
NC
9252006-08-23 Frediano Ziglio <Frediano.Ziglio@vodafone.com>
926
927 * archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt"
928 variable.
929
b34b2d70
DJ
9302006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
931
932 * elf32-arm.c (elf32_arm_copy_indirect_symbol): Only copy
933 plt_thumb_refcount from indirect symbols.
934
5c5f6e17
AM
9352006-08-22 Alan Modra <amodra@bigpond.net.au>
936
937 * elf32-ppc.c (ppc_elf_relocate_section): Correct GOT and PLT HA
938 reloc handling.
939 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
940
87bc043a
MS
9412006-08-21 Mark Shinwell <shinwell@codesourcery.com>
942
943 * elf32-arm.c (elf32_arm_link_hash_table): Correct typo in
944 comment for target1_is_rel.
945
7148cc28
NC
9462006-08-21 Pedro Alves <pedro_alves@portugalmail.pt>
947
948 * Makefile.am: Add rules to build pe-arm-wince.lo
949 and pei-arm-wince.lo objects.
950 * Makefile.in: Regenerate.
951 * pe-arm-wince.c: New file.
952 * pei-arm-wince.c: New file.
953 * pei-arm.c: Remove ARM_WINCE block.
954 * pe-arm.c: Remove ARM_WINCE block. Rename
955 bfd_arm_pe_allocate_interworking_sections,
956 bfd_arm_pe_get_bfd_for_interworking, and
05bf9422 957 bfd_arm_pe_process_before_allocation to
7148cc28
NC
958 bfd_armpe_allocate_interworking_sections,
959 bfd_armpe_get_bfd_for_interworking, and
960 bfd_armpe_process_before_allocation. Move them before
961 including bfd.h.
962 * bfd.c: ARM wince bfd format names were renamed. Adjust.
963 * coff-arm.c [ARM_WINCE]: Adjust so Windows CE doesn't end up
964 with unexpected/conflicting relocs.
965 * targets.c: The arm-wince-pe target got its own new vector.
966 Adjust.
967 * config.bfd: Likewise.
968 * configure.in: Likewise.
969 * configure: Regenerate.
970
a4fd1a8e
PB
9712006-08-18 Paul Brook <paul@codesourcery.com>
972
973 * elf32-arm.c (elf32_arm_link_hash_entry): Add export_glue.
974 (elf32_arm_link_hash_newfunc): Initialize export_glue.
975 (record_arm_to_thumb_glue): Return stub symbol.
976 (elf32_arm_create_thumb_stub): New function.
977 (elf32_arm_to_thumb_stub): Use it.
978 (elf32_arm_to_thumb_export_stub): New function.
979 (elf32_arm_begin_write_processing): New function.
980 (allocate_dynrelocs): Allocate Arm stubs.
981 (elf_backend_begin_write_processing): Define.
982 (elf32_arm_symbian_begin_write_processing): Remove ATTRIBUTE_UNUSED.
983 Call elf32_arm_begin_write_processing.
984
ee4bf8d2
AM
9852006-08-17 Alan Modra <amodra@bigpond.net.au>
986
987 * elf64-ppc.c (create_linkage_sections): Align .glink to 8 bytes.
988 (ppc64_elf_build_stubs): Use new lazy linking stub.
989
12c0f757
AM
9902006-08-17 Alan Modra <amodra@bigpond.net.au>
991
992 * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.
993
c9df6640
L
9942006-08-16 H.J. Lu <hongjiu.lu@intel.com>
995
996 PR ld/3015
997 * elf.c (get_program_header_size): Add a PT_GNU_RELRO segment
998 only if there is a PT_DYNAMIC segment.
999 (_bfd_elf_map_sections_to_segments): Likewise.
1000 (assign_file_positions_for_load_sections): Set PT_GNU_RELRO
1001 segment alignment to 1.
1002
8992f0d7 10032006-08-15 Thiemo Seufer <ths@mips.com>
05bf9422 1004 Nigel Stephens <nigel@mips.com>
8992f0d7
TS
1005
1006 * elf32-mips.c, elf64-mips.c, elfn32-mips.c
1007 (elf_backend_merge_symbol_attribute): Define.
1008 * elflink.c (elf_link_add_object_symbols): Merge only the ELF
1009 visibility flags.
1010 * elfxx-mips.c (_bfd_mips_elf_merge_symbol_attribute): New function.
1011
4be041b2 10122006-08-15 Thiemo Seufer <ths@mips.com>
05bf9422
AM
1013 Nigel Stephens <nigel@mips.com>
1014 David Ung <davidu@mips.com>
4be041b2
TS
1015
1016 * config.bfd: Add configurations for mips*el-sde-elf* and
1017 mips*-sde-elf*.
1018
eb13e63f
DD
10192006-08-14 DJ Delorie <dj@redhat.com>
1020
1021 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add value.
1022 (elf32_mn10300_count_hash_table_entries): New.
1023 (elf32_mn10300_list_hash_table_entries): New.
1024 (sort_by_value): New.
1025 (mn10300_elf_relax_section): Don't skip data sections; restrict
1026 code-specific tests to code-specific areas so that potential
1027 indirect calls can be detected. Check for multiple local symbols
1028 at the same address and merge their flags.
1029 (elf32_mn10300_link_hash_newfunc): Initialize value.
1030
b59eed79
TS
10312006-08-14 Thiemo Seufer <ths@mips.com>
1032
1033 * elfxx-mips.c (_bfd_mips_elf_symbol_processing,
1034 _bfd_mips_elf_add_symbol_hook): Don't try to place small common TLS
1035 symbols in .scommon.
1036
54938e2a
TS
10372006-08-11 Thiemo Seufer <ths@mips.com>
1038
1039 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set
1040 sh_entsize only when sgot was already initialized.
1041
f725025b
DD
10422006-08-08 DJ Delorie <dj@redhat.com>
1043
1044 * elf32-sh.c (sh_elf_relax_section): Allow for branches across
1045 non-moving .align directives. Preserve any DIR32 offset when
1046 converting bsr's to jsr's.
1047
aa8a7074
AM
10482006-08-08 Alan Modra <amodra@bigpond.net.au>
1049
1050 * elf64-ppc.c (ppc64_elf_build_stubs): Clear relbrlt reloc_count
1051 after stubs have been built.
1052
527a23b8
NC
10532006-08-07 Nick Clifton <nickc@redhat.com>
1054
1055 * elf32-sh.c (vxworks_object_p): Only check for vxworks target
1056 vectors if they are going to be created.
1057
7b12cedc
NC
10582006-08-07 Nick Clifton <nickc@redhat.com>
1059
1060 * configure.in (bfd_elf32_shnbsd_vec): Fix typo.
1061 * configure: Regenerate.
1062
0be038d6
NC
10632006-08-07 Nick Clifton <nickc@redhat.com>
1064
1065 * coff-arm.c (coff_arm_rtype_to_howto): Only check for ARM_SECREL
1066 relocation types if the target is ARM_WINCE.
1067
f0927246
NC
10682006-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1069
1070 * bfd.c (bfd_get_sign_extend_vma): Add cases for pe-arm-little
1071 and pei-arm-little.
1072 * coff-arm.c (coff_arm_rtype_to_howto) [COFF_WITH_PE]: Handle
1073 ARM_SECREL.
1074 (coff_arm_reloc_type_lookup): Map BFD_RELOC_32_SECREL to
1075 ARM_SECREL.
1076 * pe-arm.c [COFF_SECTION_ALIGNMENT_ENTRIES]: Define.
1077 * pei-arm.c [TARGET_UNDERSCORE]: Define for ARM_WINCE like in
1078 pe-arm.c.
1079 [COFF_SECTION_ALIGNMENT_ENTRIES]: Define.
1080
c17d87de
NC
10812006-08-04 Marcelo Tosatti <marcelo@kvack.org>
1082
1083 * elflink.c (elf_gc_sweep): If info.print_gc_sections is true,
1084 list removed sections to stderr.
1085
55e6e397
RS
10862006-08-04 Richard Sandiford <richard@codesourcery.com>
1087 Kazu Hirata <kazu@codesourcery.com>
1088 Phil Edwards <phil@codesourcery.com>
1089 Nathan Sidwell <nathan@codesourcery.com>
1090
1091 * config.bfd (sh-*-vxworks): Use bfd_elf32_shvxworks_vec and
1092 bfd_elf32_shlvxworks_vec.
1093 * configure.in (bfd_elf32_sh64_vec): Add elf-vxworks.lo.
1094 (bfd_elf32_sh64l_vec, bfd_elf32_sh64lin_vec): Likewise.
1095 (bfd_elf32_sh64blin_vec, bfd_elf32_sh64lnbsd_vec): Likewise.
1096 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh_vec): Likewise.
1097 (bfd_elf32_shblin_vec, bfd_elf32_shl_vec): Likewise.
1098 (bfd_elf32_shl_symbian_vec, bfd_elf32_shlin_vec): Likewise.
1099 (bfd_elf32_shlnbsd_vec, bfd_elf32_shnbsd_vec): Likewise.
1100 (bfd_elf32_shlvxworks_vec, bfd_elf32_shvxworks_vec): New stanzas.
1101 * configure: Regenerate.
1102 * Makefile.am: Regenerate dependencies.
1103 * Makefile.in: Regenerate.
1104 * elf-vxworks.c (elf_vxworks_gott_symbol_p): New function.
1105 (elf_vxworks_add_symbol_hook): Use it.
1106 (elf_vxworks_link_output_symbol_hook): Likewise. Use the hash
1107 table entry to check for weak undefined symbols and to obtain
1108 the original bfd.
1109 (elf_vxworks_emit_relocs): Use target_index instead of this_idx.
1110 * elf32-sh-relocs.h: New file, split from elf32-sh.c.
1111 (R_SH_DIR32): Use SH_PARTIAL32 for the partial_inplace field,
1112 SH_SRC_MASK32 for the src_mask field, and SH_ELF_RELOC for the
1113 special_function field.
1114 (R_SH_REL32): Use SH_PARTIAL32 and SH_SRC_MASK32 here too.
1115 (R_SH_REL32, R_SH_TLS_GD_32, R_SH_TLS_LD_32): Likewise.
1116 (R_SH_TLS_LDO_32, R_SH_TLS_IE_32, R_SH_TLS_LE_32): Likewise.
1117 (R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32, R_SH_TLS_TPOFF32): Likewise.
1118 (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT): Likewise.
1119 (R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): Likewise.
1120 (SH_PARTIAL32, SH_SRC_MASK32, SH_ELF_RELOC): Undefine at end of file.
1121 * elf32-sh.c: Include elf32-vxworks.h.
1122 (MINUS_ONE): Define.
1123 (sh_elf_howto_table): Include elf32-sh-relocs.h with SH_PARTIAL32
1124 set to TRUE, SH_SRC_MASK32 set to 0xffffffff, and SH_ELF_RELOC set
1125 to sh_elf_reloc.
1126 (sh_vxworks_howto_table): New variable. Include elf32-sh-relocs.h
1127 with SH_PARTIAL32 set to FALSE, SH_SRC_MASK32 set to 0, and
1128 SH_ELF_RELOC set to bfd_elf_generic_reloc.
1129 (vxworks_object_p, get_howto_table): New functions.
1130 (sh_elf_reloc_type_lookup): Fix typo. Use get_howto_table.
1131 (sh_elf_info_to_howto): Use get_howto_table.
1132 (sh_elf_relax_section): Honor the partial_inplace field of the
1133 R_SH_DIR32 howto.
1134 (sh_elf_relax_delete_bytes): Likewise.
1135 (elf_sh_plt_info): New structure.
1136 (PLT_ENTRY_SIZE): Replace both definitions with...
1137 (ELF_PLT_ENTRY_SIZE): ...this new macro, with separate definitions for
1138 INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
1139 (elf_sh_plt0_entry_be): Update sizes of both definitions accordingly.
1140 (elf_sh_plt0_entry_le): Likewise.
1141 (elf_sh_plt_entry_be, elf_sh_plt_entry_le): Likewise.
1142 (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): Likewise.
1143 (elf_sh_plts): New structure, with separate definitions for
1144 INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
1145 (elf_sh_plt0_entry): Delete both definitions.
1146 (elf_sh_plt_entry, elf_sh_pic_plt_entry): Likewise.
1147 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset): Likewise.
1148 (elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset): Likewise.
1149 (elf_sh_plt_reloc_offset): Likewise.
1150 (movi_shori_putval): Delete in favor of...
1151 (install_plt_field): ...this new function, with separate definitions
1152 for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
1153 (get_plt_info): New function, with separate definitions
1154 for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA.
1155 (elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset): Delete.
1156 (VXWORKS_PLT_HEADER_SIZE, VXWORKS_PLT_ENTRY_SIZE): New macros.
1157 (vxworks_sh_plt0_entry_be, vxworks_sh_plt0_entry_le): New constants.
1158 (vxworks_sh_plt_entry_be, vxworks_sh_plt_entry_le): Likewise.
1159 (vxworks_sh_pic_plt_entry_be, vxworks_sh_pic_plt_entry_le): Likewise.
1160 (get_plt_index, get_plt_offset): New functions.
1161 (elf_sh_link_hash_table): Add srelplt2, plt_info and vxworks_p fields.
1162 (sh_elf_link_hash_table_create): Initialize them.
1163 (sh_elf_create_dynamic_sections): Call
1164 elf_vxworks_create_dynamic_sections for VxWorks.
1165 (allocate_dynrelocs): Use htab->plt_info to get the size of PLT
1166 entries. Allocate relocation entries in .rela.plt.unloaded if
1167 generating a VxWorks executable.
1168 (sh_elf_always_size_sections): New function.
1169 (sh_elf_size_dynamic_sections): Extend .rela.plt handling to
1170 .rela.plt.unloaded.
1171 (sh_elf_relocate_section): Use get_howto_table. Honor
1172 partial_inplace when calculating the addend for dynamic
1173 relocations. Use get_plt_index.
1174 (sh_elf_finish_dynamic_symbol): Use get_plt_index, install_plt_field
1175 and htab->plt_info. Fill in the bra .plt offset for VxWorks
1176 executables. Populate .rela.plt.unloaded. Do not make
1177 _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
1178 (sh_elf_finish_dynamic_sections): Use install_plt_field and
1179 htab->plt_info. Handle cases where there is no special PLT header.
1180 Populate the first relocation in .rela.plt.unloaded and fix up
1181 the remaining entries.
1182 (sh_elf_plt_sym_val): Use get_plt_info.
1183 (elf_backend_always_size_sections): Define.
1184 (TARGET_BIG_SYM, TARGET_BIG_NAME): Override for VxWorks.
1185 (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
1186 (elf32_bed, elf_backend_want_plt_sym): Likewise.
1187 (elf_symbol_leading_char, elf_backend_want_got_underscore): Likewise.
1188 (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Likewise.
1189 (elf_backend_add_symbol_hook): Likewise.
1190 (elf_backend_link_output_symbol_hook): Likewise.
1191 (elf_backend_emit_relocs): Likewise.
1192 (elf_backend_final_write_processing): Likewise.
1193 (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Likewise.
1194 * targets.c (bfd_elf32_shlvxworks_vec): Declare.
1195 (bfd_elf32_shvxworks_vec): Likewise.
1196 (_bfd_target_vector): Include bfd_elf32_shlvxworks_vec and
1197 bfd_elf32_shvxworks_vec.
1198
e33533a4
MK
11992006-08-02 Mark Kettenis <kettenis@gnu.org>
1200
1201 * configure.in (arm-*-openbsd*): Set COREFILE to netbsd-core.lo.
1202 * configure: Regenerate.
1203
9d7cbccd
NC
12042006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
1205
1206 PR binutils/2983
1207 * elf64-x86-64.c: Add FreeBSD support.
1208 (elf64_x86_64_fbsd_post_process_headers): New function.
1209 * targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec.
1210 * config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec
1211 to the targ_selvecs.
1212 * configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec.
1213 * configure: Regenerate.
1214
f72c3e6b
AS
12152006-07-26 Andreas Schwab <schwab@suse.de>
1216
1217 * elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set.
1218
252e386e
AM
12192006-07-26 Alan Modra <amodra@bigpond.net.au>
1220
1221 * elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments.
1222 * elf32-xtensa.c (elf_xtensa_modify_segment_map): Delete.
1223 (define elf_backend_modify_segment_map): Don't define.
1224
2907b861
TS
12252006-07-25 Thiemo Seufer <ths@networkno.de>
1226
1227 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow
1228 linking of objects for compatible machine types.
1229
c000e262
TS
12302006-07-25 Thiemo Seufer <ths@networkno.de>
1231
1232 * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
1233 also for same symbol.
1234
37caec6b
TS
12352006-07-25 Thiemo Seufer <ths@mips.com>
1236
1237 * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
1238
ff15b240
NC
12392006-07-24 Michael Wetherell <mike.wetherell@ntlworld.com>
1240
1241 * elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific
1242 sections only if the SHF_OS_NONCONFORMING flag is present.
1243
4e22f78d
NC
12442006-07-24 Nick Clifton <nickc@redhat.com>
1245
1246 PR ld/2729
1247 * peXXigen.c (_bfd_XXi_final_link_postscript): Check for the
1248 existance of output sections before putting their entries into the
1249 DataDictionary.
1250
35d3d567
TS
12512006-07-20 Thiemo Seufer <ths@mips.com>
1252
1253 * elf32-mips.c (mips16_jump_reloc): Remove function.
1254 (elf_mips16_howto_table_rel): Use _bfd_mips_elf_generic_reloc
1255 instead of mips16_jump_reloc.
1256 * elf64_mips.c, wlfn32-mips.c (mips16_jump_reloc): Remove function.
1257 (elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Use
1258 _bfd_mips_elf_generic_reloc instead of mips16_jump_reloc.
1259
5061a885
AM
12602006-07-19 Alan Modra <amodra@bigpond.net.au>
1261
1262 * bfd-in.h (enum notice_asneeded_action): Define.
1263 * bfd-in2.h: Regenerate.
1264 * elflink.c (elf_link_add_object_symbols): Call linker "notice"
1265 function with NULL name for as-needed handling.
1266
16805f35
PB
12672006-07-18 Paul Brook <paul@codesourcery.com>
1268
1269 * bfd-in2.h: Regenerate.
1270 * libbfd.h: Regenerate.
1271 * reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM.
1272
e0764319
NC
12732006-07-18 Nick Clifton <nickc@redhat.com>
1274
1275 * elfxx-mips.c (_bfd_mips_elf_common_definition): New function.
1276 Consider SHN_MIPS_ACOMMON and SHN_MIPS_SCOMMON as being common
1277 sections.
1278 * elfxx-mips.h (_bfd_mips_elf_common_definition): Prototype.
1279
2ccdbfcc
JJ
12802006-07-14 Jakub Jelinek <jakub@redhat.com>
1281
1282 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value.
1283
0b33793d
MK
12842006-07-14 Mark Kettenis <kettenis@gnu.org>
1285
1286 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Move declarations
1287 to the start of a block.
1288
230d6d81
NC
12892006-07-13 Nick Clifton <nickc@redhat.com>
1290
1291 * coff-sh.c (_bfd_sh_align_load_span): Catch sh_insn_info()
1292 returning a NULL value.
1293
d2dee3b2
L
12942006-07-12 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 PR ld/2884
1297 * elflink.c (_bfd_elf_merge_symbol): Copy the symbol info from
1298 the old versioned dynamic definition to the new one with
1299 non-default visibility. Hide the symbol if it is hidden or
1300 internal.
1301
fb405f8a
RS
13022006-07-12 Matthew R. Dempsky <mrd@alkemio.org>
1303
1304 * cpu-m68k.c (bfd_m68k_compatible): Handle CPU32.
1305
fdc90cb4
JJ
13062006-07-10 Jakub Jelinek <jakub@redhat.com>
1307
1308 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH.
1309 (bfd_section_from_shdr, elf_fake_sections, assign_section_numbers):
1310 Handle SHT_GNU_HASH.
1311 (special_sections_g): Include .gnu.hash section.
1312 (bfd_elf_gnu_hash): New function.
1313 * elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes.
1314 (struct elf_backend_data): Add elf_hash_symbol method.
1315 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash
1316 only if info->emit_hash, create .gnu.hash section if
1317 info->emit_gnu_hash.
1318 (struct collect_gnu_hash_codes): New type.
1319 (elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms,
1320 _bfd_elf_hash_symbol): New functions.
1321 (compute_bucket_count): Don't compute HASHCODES array, instead add
1322 that and NSYMS as arguments. Use bed->s->sizeof_hash_entry
1323 instead of bed->s->arch_size / 8. Fix .hash size estimation.
1324 When not optimizing, use the number of hashed symbols rather than
1325 dynsymcount.
1326 (bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash,
1327 and ADD DT_GNU_HASH if info->emit_gnu_hash.
1328 (bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash,
1329 adjust compute_bucket_count caller. Create and populate .gnu.hash
1330 section if info->emit_gnu_hash.
1331 (elf_link_output_extsym): Only populate .hash section if
1332 finfo->hash_sec != NULL.
1333 (bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH.
1334 * elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined.
1335 (elfNN_bed): Add elf_backend_hash_symbol.
1336 * elf64-x86-64.c (elf64_x86_64_hash_symbol): New function.
1337 (elf_backend_hash_symbol): Define.
1338 * elf32-i386.c (elf_i386_hash_symbol): New function.
1339 (elf_backend_hash_symbol): Define.
1340
cfc9dfb1
NC
13412006-07-05 Nick Clifton <nickc@redhat.com>
1342
1343 PR ld/2659
1344 * cofflink.c (_bfd_coff_link_input_bfd): Fix selection of aux
1345 entry when multiple definitions of a symbol are encountered.
1346
10efb593
L
13472006-06-30 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 * elf32-i386.c (elf_i386_relocate_section): Use xchg %ax,%ax
1350 instead of 2 nops.
1351 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1352 (elf64_x86_64_plt0_entry): Use nopl 0(%rax) instead of 4 nops.
1353
ebcfb3c0
JJ
13542006-06-29 Jakub Jelinek <jakub@redhat.com>
1355
1356 PR ld/2513
1357 * elf32-i386.c (GOT_TLS_MASK, GOT_TLS_IE_IE, GOT_TLS_IE_GD,
1358 GOT_TLS_IE_MASK, elf_i386_check_relocs, allocate_dynrelocs): Revert
1359 2006-04-08 changes.
1360 (elf_i386_relocate_section): Likewise. For GD->IE transition
1361 change subl into addl whenever tls_type is GOT_TLS_IE_POS.
1362
62d7a5f6
AM
13632006-06-23 Alan Modra <amodra@bigpond.net.au>
1364
1365 PR ld/2754
1366 * elf.c (bfd_elf_mkobject): Don't alloc if already done. Set
1367 program_header_size to -1.
1368 (_bfd_elf_map_sections_to_segments): Adjust program_header_size check.
1369 (assign_file_positions_for_load_sections ): Likewise.
1370 (_bfd_elf_sizeof_headers): Use saved program_header_size if
1371 available.
1372 * elf32-arm.c (elf32_arm_mkobject): Call bfd_elf_mkobject, don't
1373 alloc if already done.
1374 * elf32-i386.c (elf_i386_mkobject): Likewise.
1375 * elf32-ppc.c (ppc_elf_mkobject): Likewise.
1376 * elf32-s390.c (elf_s390_mkobject): Likewise.
1377 * elf32-sh.c (sh_elf_mkobject): Likewise.
1378 * elf64-alpha.c (elf64_alpha_mkobject): Likewise.
1379 * elf64-ppc.c (ppc64_elf_mkobject): Likewise.
1380 * elf64-s390.c (elf_s390_mkobject): Likewise.
1381 * elf64-x86-64.c (elf64_x86_64_mkobject): Likewise.
1382 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Likewise.
1383
6a4a0940
JJ
13842006-06-20 Jakub Jelinek <jakub@redhat.com>
1385
1386 * elflink.c (elf_link_add_object_symbols): Don't create .tcommon
1387 section for relocatable link.
1388
e36284ab
AM
13892006-06-21 Alan Modra <amodra@bigpond.net.au>
1390
1391 * elf-bfd.h (struct elf_backend_data): Add
1392 elf_backend_modify_program_headers.
1393 * elfxx-target.h (elf_backend_modify_program_headers): Define.
1394 (elfNN_bed): Init new field.
1395 * elf.c (elf_modify_segment_map): Remove comment.
1396 (assign_file_positions_for_load_sections): Only call
1397 elf_modify_segment_map for objcopy/strip.
1398 (assign_file_positions_except_relocs): Call
1399 elf_backend_modify_program_headers.
1400 * elf32-frv.c (elf32_frvfdpic_always_size_sections): Don't make
1401 .stack section.
1402 (elf32_frvfdpic_modify_segment_map): Delete.
1403 (elf32_frvfdpic_modify_program_headers): New.
1404 (elf_backend_modify_segment_map): Don't define.
1405 (elf_backend_modify_program_headers): Define.
1406 * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Don't make
1407 .stack section.
1408 (elf32_bfinfdpic_modify_segment_map): Delete.
1409 (elf32_bfinfdpic_modify_program_headers): New.
1410 (elf_backend_modify_segment_map): Don't define.
1411 (elf_backend_modify_program_headers): Define.
1412 * elfxx-ia64.c (elfNN_ia64_modify_program_headers): New function.
1413 Split out from..
1414 (elfNN_ia64_modify_segment_map): ..here.
1415 (elf_backend_modify_program_headers): Define.
1416
ed66ec07
JJ
14172006-06-20 Jakub Jelinek <jakub@redhat.com>
1418
1419 * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields.
1420 * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field.
1421
8ded5a0f
AM
14222006-06-20 Alan Modra <amodra@bigpond.net.au>
1423
1424 * elf-bfd.h: Formatting.
1425 (_bfd_elf_map_sections_to_segments): Declare.
1426 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame_hdr): Don't
1427 clear program_header_size.
1428 * elf.c (get_program_header_size): Move. Don't use or set saved
1429 program_header_size here.
1430 (elf_modify_segment_map): New function. Split out from..
1431 (assign_file_positions_for_load_sections): ..here. Assert
1432 header size is correct. Remove dead code.
1433 (_bfd_elf_map_sections_to_segments): Rename from
1434 map_sections_to_segments. Make global. Use get_program_header_size
1435 when we need estimate of header size. Call elf_modify_segment_map.
1436 Set program_header_size.
1437 (print_segment_map): Delete.
1438 (_bfd_elf_sizeof_headers): If segment_map available, get the
1439 actual size.
1440 * elf32-arm.c (elf32_arm_symbian_modify_segment_map): Make safe
1441 for calling more than once.
1442 * elf32-bfin.c (elf32_bfinfdpic_modify_segment_map): Likewise.
1443 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Likewise.
1444 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise.
1445 * elf32-i370.c (elf_backend_add_symbol_hook): Delete.
1446 (elf_backend_additional_program_headers): Delete.
1447 (elf_backend_modify_segment_map): Delete.
1448 * elf64-hppa.c (elf64_hppa_modify_segment_map): Convert to ISO C.
1449 * elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise.
1450 * doc/bfdint.texi: Delete SIZEOF_HEADERS difficulties.
1451
0fa3dcad
PB
14522006-06-19 Vladimir Prus <vladimir@codesourcery.com>
1453
1454 * elf32-arm.c (elf32_arm_swap_symbol_out): Don't set low
1455 bit for undefined symbols.
1456
a6b96beb
AM
14572006-06-19 Alan Modra <amodra@bigpond.net.au>
1458
1459 * elf-bfd.h (struct elf_backend_data): Add bfd_link_info pointer
1460 parameter.
1461 (_bfd_elf_sizeof_headers): Replace bfd_boolean param with
1462 bfd_link_info pointer.
1463 * targets.c (struct bfd_target <_bfd_sizeof_headers>): Likewise.
1464 * bfd.c (bfd_sizeof_headers): Tweak param name.
1465 * aout-adobe.c (aout_adobe_sizeof_headers): Adjust.
1466 * aoutx.h (NAME (aout, sizeof_headers)): Adjust.
1467 * binary.c (binary_sizeof_headers): Adjust.
1468 * bout.c (b_out_sizeof_headers): Adjust.
1469 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust.
1470 * coff64-rs6000.c (xcoff64_sizeof_headers): Adjust.
1471 * coffgen.c (coff_sizeof_headers): Adjust.
1472 * ecoff.c (_bfd_ecoff_sizeof_headers): Adjust.
1473 (ecoff_compute_section_file_positions): Adjust.
1474 (_bfd_ecoff_write_object_contents): Adjust.
1475 * elf.c (get_program_header_size, _bfd_elf_sizeof_headers): Adjust.
1476 * elf32-arm.c (elf32_arm_additional_program_headers): Adjust.
1477 * elf32-i370.c (elf_backend_additional_program_headers): Adjust.
1478 * elf32-ppc.c (ppc_elf_additional_program_headers): Adjust.
1479 * elf64-hppa.c (elf64_hppa_additional_program_headers): Adjust.
1480 * elf64-x86-64.c (elf64_x86_64_additional_program_headers): Adjust.
1481 * elfxx-ia64.c (elfNN_ia64_additional_program_headers): Adjust.
1482 * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Adjust.
1483 * elfxx-mips.h (_bfd_mips_elf_additional_program_headers): Adjust.
1484 * i386msdos.c: Convert to ISO C.
1485 (msdos_sizeof_headers): Adjust.
1486 * i386os9k.c: Convert to ISO C.
1487 (os9k_sizeof_headers): Adjust.
1488 * ieee.c (ieee_sizeof_headers): Adjust.
1489 * ihex.c (ihex_sizeof_headers): Adjust.
1490 * libaout.h (NAME (aout, sizeof_headers)): Adjust.
1491 * libbfd-in.h (_bfd_nolink_sizeof_headers): Adjust.
1492 * libcoff-in.h (coff_sizeof_headers): Adjust.
1493 * libecoff.h (_bfd_ecoff_sizeof_headers): Adjust.
1494 * mach-o.c (bfd_mach_o_sizeof_headers): Adjust.
1495 * mmo.c (mmo_sizeof_headers): Adjust.
1496 * oasys.c (oasys_sizeof_headers): Adjust.
1497 * pdp11.c (NAME (aout, sizeof_headers)): Adjust.
1498 * pef.c (bfd_pef_sizeof_headers): Adjust.
1499 * ppcboot.c (ppcboot_sizeof_headers): Adjust.
1500 * som.c (som_sizeof_headers): Adjust.
1501 * srec.c (srec_sizeof_headers): Adjust.
1502 * tekhex.c (tekhex_sizeof_headers): Adjust.
1503 * versados.c (versados_sizeof_headers): Adjust.
1504 * vms.c (vms_sizeof_headers): Adjust.
1505 * xcoff-target.h (_bfd_xcoff_sizeof_headers): Adjust.
1506 * xsym.c (bfd_sym_sizeof_headers): Adjust.
1507 * xsym.h (bfd_sym_sizeof_headers): Adjust.
1508 * bfd-in2.h: Regenerate.
1509 * libbfd.h: Regenerate.
1510 * libcoff.h: Regenerate.
1511
4962c51a
MS
15122006-06-15 Mark Shinwell <shinwell@codesourcery.com>
1513
1514 * bfd-in2.h: Regenerate.
1515 * elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0,
1516 R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2,
1517 R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0,
1518 R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0,
1519 R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC,
1520 R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1,
1521 R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1,
1522 R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1,
1523 R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1,
1524 R_ARM_LDC_SB_G2): New relocation types.
1525 (R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and
1526 adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1
1527 and friends.
1528 (elf32_arm_howto_table_3): Delete; contents merged into
1529 elf32_arm_howto_table_2.
1530 (elf32_arm_howto_from_type): Adjust correspondingly.
1531 (elf32_arm_reloc_map): Extend with the above relocations.
1532 (calculate_group_reloc_mask): New function.
1533 (identify_add_or_sub): New function.
1534 (elf32_arm_final_link_relocate): Support for the above
1535 relocations.
1536 * reloc.c: Add enumeration entries for BFD_RELOC_ARM_...
1537 codes to correspond to the above relocations.
1538
cc3e26be
RS
15392006-06-14 Richard Sandiford <richard@codesourcery.com>
1540
1541 * elf32-m68k.c (elf_m68k_plt_info): New structure.
1542 (elf_m68k_plt0_entry): Add R_68K_PC32-style in-place addends.
1543 (elf_m68k_plt_entry): Likewise.
1544 (elf_m68k_plt_info): New table.
1545 (CFV4E_PLT_ENTRY_SIZE): Rename to...
1546 (ISAB_PLT_ENTRY_SIZE): ...this.
1547 (CFV4E_FLAG): Delete.
1548 (elf_cfv4e_plt0_entry): Rename to...
1549 (elf_isab_plt0_entry): ...this. Adjust comments. Use (-6,%pc,%d0)
1550 for the second instruction too.
1551 (elf_cfv4e_plt_entry): Rename to...
1552 (elf_isab_plt_entry): ...this. Adjust comments and use (-6,%pc,%d0).
1553 (elf_isab_plt_info): New table.
1554 (CPU32_FLAG): Delete.
1555 (PLT_CPU32_ENTRY_SIZE): Rename to...
1556 (CPU32_PLT_ENTRY_SIZE): ...this.
1557 (elf_cpu32_plt0_entry): Update bounds accordingly. Add R_68K_PC32-
1558 style in-place addends.
1559 (elf_cpu32_plt_entry): Likewise.
1560 (elf_cpu32_plt_info): New table.
1561 (elf_m68k_link_hash_table): Add a plt_info field.
1562 (elf_m68k_link_hash_table_create): Initialize it.
1563 (elf_m68k_get_plt_info): New function.
1564 (elf_m68k_always_size_sections): Likewise.
1565 (elf_m68k_adjust_dynamic_symbol): Use the plt_info hash table field.
1566 (elf_m68k_install_pc32): New function.
1567 (elf_m68k_finish_dynamic_symbol): Factor code using plt_info and
1568 elf_m68k_install_pc32.
1569 (elf_m68k_finish_dynamic_sections): Likewise.
1570 (elf_m68k_plt_sym_val): Use elf_m68k_get_plt_info.
1571 (elf_backend_always_size_sections): Define.
1572
4f87808c
AM
15732006-06-14 Alan Modra <amodra@bigpond.net.au>
1574
1575 * elflink.c (elf_link_add_object_symbols): Save and restore
1576 struct bfd_hash_table table, size and count fields for
1577 as-needed libs.
1578
7fd91fe0
TS
15792006-06-12 Thiemo Seufer <ths@mips.com>
1580
1581 * elf32-mips.c: Expand comment about ABI-mandated pagesize values.
1582 (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): define in a more obvious way.
1583 * elf64-mips.c, elfn32-mips.c (ELF_MAXPAGESIZE): Fix value for IRIX6.
1584 Delete old comments.
1585 (ELF_COMMONPAGESIZE): Define in a more obvious way.
1586
d07676f8
NC
15872006-06-12 Nick Clifton <nickc@redhat.com>
1588
1589 PR binutils/2735
1590 * elflink.c (elf_link_add_object_symbols): Fix the warning message
1591 about mismatched alignments to allow for the case where the common
1592 alignment has been deduced from the section alignment.
1593 * bfd.c (_bfd_default_error_handler): Update comment to explain
1594 why bfd and asection varargs are out of order. Explicitly catch
1595 and abort on NULL bfd and asection arguments.
1596
5108fc1b
RS
15972006-06-11 Richard Sandiford <richard@codesourcery.com>
1598 Thiemo Seufer <ths@mips.com>
1599
1600 * elfxx-mips.c (mips_elf_link_hash_table): Add function_stub_size.
1601 (STUB_ORI): New macro.
1602 (STUB_LI16U): Fix formatting.
1603 (MIPS_FUNCTION_STUB_SIZE): Delete.
1604 (MIPS_FUNCTION_STUB_MAX_SIZE): Likewise.
1605 (MIPS_FUNCTION_STUB_NORMAL_SIZE): New macro.
1606 (MIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
1607 (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->function_stub_size
1608 instead of MIPS_FUNCTION_STUB_SIZE.
1609 (count_section_dynsyms): New function, split out from
1610 _bfd_mips_elf_final_link.
1611 (_bfd_mips_elf_always_size_sections): Get a worst-case estimate
1612 of the number of dynamic symbols needed and use it to set up
1613 function_stub_size. Use function_stub_size rather than
1614 MIPS_FUNCTION_STUB_SIZE to determine the size of the stub section.
1615 Use 16-byte stubs for 0x10000 dynamic symbols.
1616 (_bfd_mips_elf_size_dynamic_sections): Use htab->function_stub_size
1617 instead of MIPS_FUNCTION_STUB_SIZE. Fix formatting.
1618 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Change the
1619 size of the stub buffer from MIPS_FUNCTION_STUB_MAX_SIZE to
1620 MIPS_FUNCTION_STUB_BIG_SIZE. Tweak the check for unhandled dynindxes.
1621 Use MIPS_FUNCTION_STUB_BIG_SIZE rather than a hard-coded 20.
1622 Use STUB_ORI rather than STUB_LI16U for big stubs.
1623 (_bfd_mips_elf_link_hash_table_create): Initialize function_stub_size.
1624 (_bfd_mips_elf_final_link): Use count_section_dynsyms.
1625
f38c2df5
TS
16262006-06-09 David Ung <davidu@mips.com>
1627
1628 * bfd/elfxx-mips.c (mips_elf_calculate_relocation): Fix mode for stub
1629 calling relocations.
1630
3d6746ca
DD
16312006-06-08 David Daney <ddaney@avtrex.com>
1632
1633 * elfxx-mips.c (STUB_LI16): Removed.
1634 (STUB_LUI): New macro.
1635 (STUB_LI16U): Ditto.
1636 (STUB_LI16S): Ditto.
1637 (MIPS_FUNCTION_STUB_SIZE): Rewrote to take info parameter.
1638 (_bfd_mips_elf_adjust_dynamic_symbol): Pass info parameter to
1639 MIPS_FUNCTION_STUB_SIZE.
1640 (_bfd_mips_elf_always_size_sections): Ditto.
1641 (_bfd_mips_elf_size_dynamic_sections): Ditto.
1642 (_bfd_mips_elf_finish_dynamic_sections): Ditto.
1643 (_bfd_mips_elf_finish_dynamic_symbol): Rewrote stub generation
1644 to allow larger symbol table indexes.
1645
6648b7cf
JM
16462006-06-07 Joseph S. Myers <joseph@codesourcery.com>
1647
1648 * po/Make-in (pdf, ps): New dummy targets.
1649
d3fd4074
AM
16502006-06-06 Alan Modra <amodra@bigpond.net.au>
1651
0bef4ce5
AM
1652 * hash.c (bfd_hash_lookup): Correct stray line.
1653
d3fd4074
AM
1654 * elf.c (_bfd_elf_init_private_section_data): Comment typo.
1655 (elfcore_grok_nto_status): Use long instead of pid_t.
1656 (elfcore_grok_nto_regs, elfcore_grok_nto_note): Likewise.
1657
4cfe2c59
DJ
16582006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1659
1660 * po/Make-in (top_builddir): Define.
1661
7ff1a5b5
AM
16622006-06-05 Alan Modra <amodra@bigpond.net.au>
1663
1664 * Makefile.am: Run "make dep-am".
1665 * Makefile.in: Regenerate.
1666 * config.in: Regenerate.
1667
f0b5bb34
AM
16682006-06-02 Alan Modra <amodra@bigpond.net.au>
1669 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 PR ld/2723
1672 * elflink.c (bfd_elf_final_link): Don't output section symbols
1673 for special ELF sections.
1674
117ed4f8
AM
16752006-06-01 Alan Modra <amodra@bigpond.net.au>
1676
1677 * stabs.c (_bfd_link_section_stabs): Use bfd_make_section*_with_flags
1678 instead of bfd_make_section*.
1679 * aix386-core.c: Likewise.
1680 * aix5ppc-core.c: Likewise.
1681 * aout-adobe.c: Likewise.
1682 * aoutf1.h: Likewise.
1683 * binary.c: Likewise.
1684 * cisco-core.c: Likewise.
1685 * coff-arm.c: Likewise.
1686 * coff-h8300.c: Likewise.
1687 * elf.c: Likewise.
1688 * elf32-bfin.c: Likewise.
1689 * elf32-m32c.c: Likewise.
1690 * hppabsd-core.c: Likewise.
1691 * hpux-core.c: Likewise.
1692 * i386linux.c: Likewise.
1693 * ieee.c: Likewise.
1694 * ihex.c: Likewise.
1695 * irix-core.c: Likewise.
1696 * lynx-core.c: Likewise.
1697 * m68klinux.c: Likewise.
1698 * mach-o.c: Likewise.
1699 * netbsd-core.c: Likewise.
1700 * nlmcode.h: Likewise.
1701 * opncls.c: Likewise.
1702 * osf-core.c: Likewise.
1703 * peXXigen.c: Likewise.
1704 * ppcboot.c: Likewise.
1705 * ptrace-core.c: Likewise.
1706 * rs6000-core.c: Likewise.
1707 * sco5-core.c: Likewise.
1708 * sparclinux.c: Likewise.
1709 * srec.c: Likewise.
1710 * sunos.c: Likewise.
1711 * trad-core.c: Likewise.
1712 * xcofflink.c: Likewise.
1713 * xsym.c: Likewise.
1714
20e95c23
DJ
17152006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1716
1717 * Makefile.am (INCLUDES): Use @INCINTL@.
1718 * acinclude.m4: Include new gettext macros.
1719 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
1720 Manually substitute POFILES and GMOFILES.
1721 * Makefile.in, aclocal.m4, configure, doc/Makefile.in: Regenerated.
1722
24718e3b
L
17232006-05-30 H.J. Lu <hongjiu.lu@intel.com>
1724
1725 * bfd.c (bfd_emul_get_maxpagesize): New.
1726 (bfd_elf_set_pagesize): Likewise.
1727 (bfd_emul_set_maxpagesize): Likewise.
1728 (bfd_emul_get_commonpagesize): Likewise.
1729 (bfd_emul_set_commonpagesize): Likewise.
1730 * bfd-in2.h: Regenerated.
1731
1732 * elf-bfd.h (elf_backend_data): Add commonpagesize.
1733 (xvec_get_elf_backend_data): New.
1734 (get_elf_backend_data): Use xvec_get_elf_backend_data.
1735
1736 * elf32-arm.c (elf32_arm_vxworks_bed): Remove const.
1737 * elfxx-target.h (elfNN_bed): Likewise.
1738
1739 * elf32-arm.c (ELF_COMMONPAGESIZE): Defined.
1740 * elf32-mips.c (ELF_COMMONPAGESIZE): Likewise.
1741 * elf32-ppc.c (ELF_COMMONPAGESIZE): Likewise.
1742 * elf32-sh.c (ELF_COMMONPAGESIZE): Likewise.
1743 * elf32-sh64.c (ELF_COMMONPAGESIZE): Likewise.
1744 * elf32-sparc.c (ELF_COMMONPAGESIZE): Likewise.
1745 * elf64-alpha.c (ELF_COMMONPAGESIZE): Likewise.
1746 * elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise.
1747 * elf64-sparc.c (ELF_COMMONPAGESIZE): Likewise.
1748 * elf64-x86-64.c (ELF_COMMONPAGESIZE): Likewise.
1749 * elfn32-mips.c (ELF_COMMONPAGESIZE): Likewise.
1750 * elfxx-ia64.c (ELF_COMMONPAGESIZE): Likewise.
1751
1752 * elfxx-target.h (ELF_COMMONPAGESIZE): Define if not defined.
1753 (elfNN_bed): Initialize commonpagesize with ELF_COMMONPAGESIZE.
1754
1755 * targets.c (bfd_find_target): Support NULL abfd.
1756
eebf07fb
NC
17572006-05-30 Nick Clifton <nickc@redhat.com>
1758
1759 * po/es.po: Updated Spanish translation.
1760
3f570048
AM
17612006-05-27 Alan Modra <amodra@bigpond.net.au>
1762 H.J. Lu <hongjiu.lu@intel.com>
1763
1764 * elf.c (assign_file_positions_for_load_sections): Retrieve
1765 maxpagesize from m->p_align if it is valid. Set p_vaddr,
1766 p_paddr and p_align earlier. Revert 2006-05-19 change to p_align.
1767 (copy_elf_program_header): Copy p_align. Set p_align_valid.
1768
2043964e
L
17692006-05-26 H.J. Lu <hongjiu.lu@intel.com>
1770
1771 * elf64-x86-64.c (ELF_MINPAGESIZE): Changed to 0x1000.
1772
17732006-05-25 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 * elf64-x86-64.c (ELF_MINPAGESIZE): Set to 0x100000.
1776
f7661549
L
17772006-05-25 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * elf64-x86-64.c (ELF_MAXPAGESIZE): Updated to 0x200000.
1780
5372391b
AM
17812006-05-26 Alan Modra <amodra@bigpond.net.au>
1782
1783 * elf.c (sym_is_global): Return a bfd_boolean.
1784 (ignore_section_sym): New function.
1785 (elf_map_symbols): Use ignore_section_sym to discard some syms.
1786 (_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to
1787 bfd before using elf_section_syms.
1788
6566b43c
L
17892006-05-25 H.J. Lu <hongjiu.lu@intel.com>
1790
1791 * config.bfd: (sh-*-linux*): Treat as 64bit target.
1792 (sh*l*-*-netbsdelf*): Likewise.
1793 (sh-*-netbsdelf*): Likewise.
1794 (shl*-*-elf*): Likewise.
1795 (sh[1234]l*-*-elf*): Likewise.
1796 (sh3el*-*-elf*): Likewise.
1797 (shl*-*-kaos*): Likewise.
1798 (sh-*-elf*): Likewise.
1799 (sh[1234]*-elf*): Likewise.
1800 (sh-*-rtems*): Likewise.
1801 (sh-*-kaos*): Likewise.
1802
314e9a4e
L
18032006-05-24 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 PR ld/1485
1806 * config.bfd: Set want64 to true if 64bit bfd is used.
1807 (sh-*-linux*): Use targ64_selvecs for 64bit targets.
1808 (sh*l*-*-netbsdelf*): Likewise.
1809 (sh-*-netbsdelf*): Likewise.
1810 (shl*-*-elf*): Likewise.
1811 (sh[1234]l*-*-elf*): Likewise.
1812 (sh3el*-*-elf*): Likewise.
1813 (shl*-*-kaos*): Likewise.
1814 (sh-*-elf*): Likewise.
1815 (sh[1234]*-elf*): Likewise.
1816 (sh-*-rtems*): Likewise.
1817 (sh-*-kaos*): Likewise.
1818
4e617b1e
PB
18192006-05-24 Paul Brook <paul@codesourcery.com>
1820
1821 * elf-bfd.h (elf_backend_data): Add elf_backend_output_arch_local_syms
1822 * elf32-arm.c (output_arch_syminfo): Define.
1823 (elf32_arm_ouput_plt_map_sym, elf32_arm_output_plt_map,
1824 elf32_arm_output_arch_local_syms): New functions.
1825 (elf_backend_output_arch_local_syms): Define.
1826 * elflink.c (bfd_elf_final_link): Call
1827 elf_backend_output_arch_local_syms.
1828 * elfxx-target.h (elf_backend_output_arch_local_syms): Provide default
1829 definition.
1830 (elfNN_bed): Add elf_backend_output_arch_local_syms.
1831
52ab56c2
PB
18322006-05-24 Paul Brook <paul@codesourcery.com>
1833
1834 * elf32-arm.c (put_arm_insn, put_thumb_insn): New functions.
1835 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
1836 elf32_arm_finish_dynamic_symbol): Use them.
1837
9b52905e
NC
18382006-05-24 Carlos O'Donell <carlos@systemhalted.org>
1839 Randolph Chung <tausq@debian.org>
05bf9422 1840
9b52905e
NC
1841 * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for
1842 TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations.
1843 Add handling for TLS relocations.
1844 (elf_hpp_reloc_final_type): Handle TLS relocs.
1845 * elf32-hppa.c: Add authors for cleanup and TLS support.
1846 (hppa_elf_local_got_tls_type, hh_name, eh_name): Define.
1847 (elf32_hppa_link_hash_entry): Add tls_type.
1848 (elf32_hppa_link_hash_table): Add tld_ldm_got.
1849 (hppa_link_has_newfunc): Set tls_type.
1850 (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount.
1851 (hppa_stub_name): Use hh_name macro.
1852 (elf32_hppa_copy_indirect_symbol): Copy TLS information.
1853 (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc.
1854 Handle TLS relocs.
05bf9422 1855 (elf32_hppa_gc_sweep_hook): Likewise.
9b52905e
NC
1856 (allocate_dynrelocs): Handle TLS relocs.
1857 (elf32_hppa_size_dynamic_sections): Count space required by TLS
1858 relocs. Use hh_name macro.
1859 (dtpoff_base): New function.
1860 (tpoff): Likewise.
1861 (elf32_hppa_optimized_tls_reloc): Likewise.
1862 (final_link_relocate): Handle TLS relocs.
1863 (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name
1864 and hh_name macros.
1865 (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use
1866 hh_name and eh_name macros.
1867 (elf32_hppa_reloc_type_clas): Handle TLS relocs.
1868
05bf9422 18692006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
28c9d252 1870
05bf9422 1871 * archures.c: Add bfd_mach_avr6.
28c9d252
NC
1872 * cpu-avr.c: Likewise.
1873 * reloc.c (BFD_RELOC_AVR_LO8_LDI_GS, BFD_RELOC_AVR_HI8_LDI_GS):
1874 New relocations.
05bf9422 1875 * libbfd.h: Regenerate.
28c9d252
NC
1876 * bfd-in2.h:Regenerate.
1877 * elf32-avr.h: New file. Protoypes for functions accessed from ld.
1878 * elf32-avr.c: Add elf32-avr.h to include list.
1879 (elf32_avr_stub_hash_entry): New function.
1880 (elf32_avr_link_hash_table): New struct.
1881 (avr_link_hash_table): Likewise.
1882 (avr_stub_hash_entry): Likewise.
1883 (avr_stub_hash_lookup): New function.
1884 (stub_hash_newfunc): New function.
1885 (elf32_avr_link_hash_table_create): New function.
1886 (elf32_avr_link_hash_table_free): New function.
1887 (avr_get_stub_addr): New function.
1888 (debug_relax, debug_stubs): Add new global variables controlling
1889 debugging printout to stdout.
1890 (avr_pc_wrap_around): Change the type to bfd_vma.
05bf9422 1891 (avr_replace_call_ret_sequences): Add a new variable controling
28c9d252
NC
1892 linkrelax optimizations.
1893 (avr_stub_is_required_for_16_bit_reloc): New function.
05bf9422 1894 (avr_final_link_relocate):
28c9d252
NC
1895 Add linker hash table to parameter list. Use stub addr. if necessary.
1896 (elf32_avr_relocate_section):
1897 Add linker hashtable to parameter list of avr_final_link_relocate.
1898 (bfd_elf_avr_final_write_processing): Add support for bfd_mach_avr6.
1899 (elf32_avr_object_p): Add support for E_AVR_MACH_AVR6.
1900 (elf32_avr_relax_delete_bytes):
1901 Iterate over all sections of a bfd when adjusting relocs addends.
1902 (elf32_avr_relax_section):
05bf9422 1903 Evaluate avr_replace_call_ret_sequences and recalculate the size of
28c9d252
NC
1904 stub section.
1905 (avr_stub_name): New function.
1906 (avr_get_stub_entry): New function.
1907 (avr_add_stub): New function.
1908 (avr_build_one_stub): New function.
1909 (avr_size_one_stub): New function.
1910 (elf32_avr_setup_params): New function.
1911 (elf32_avr_setup_section_lists): New function.
1912 (get_local_syms): New function.
1913 (elf32_avr_size_stubs): New function.
1914 (bfd_elf32_bfd_link_hash_table_create): New function.
1915 (bfd_elf32_bfd_link_hash_table_free): New function.
1916
a34a056a
L
19172006-05-23 H.J. Lu <hongjiu.lu@intel.com>
1918
1919 PR ld/2655
1920 PR ld/2657
1921 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Properly
1922 update CIE/FDE length. Don't pad to the section alignment.
1923
8aafe8b4
JZ
19242006-05-23 Jie Zhang <jie.zhang@analog.com>
1925
1926 * elf32-bfin.c (bfinfdpic_relocate_section): Clear reloc for
1927 deteted entries in .eh_frame section.
1928
5592d7ec
JZ
19292006-05-23 Jie Zhang <jie.zhang@analog.com>
1930
1931 * elf32-bfin.c (bfin_check_relocs): Use __GLOBAL_OFFSET_TABLE_
1932 instead of _GLOBAL_OFFSET_TABLE_.
1933 (bfin_relocate_section): Ditto.
1934 (_bfin_create_got_section): Ditto.
1935 (elf32_bfinfdpic_create_dynamic_sections): Use
1936 __PROCEDURE_LINKAGE_TABLE_ instead of _PROCEDURE_LINKAGE_TABLE_.
1937 (bfin_finish_dynamic_symbol): Use __DYNAMIC instead of _DYNAMIC.
1938
4d35a0aa
AM
19392006-05-23 Alan Modra <amodra@bigpond.net.au>
1940
1941 * elf64-ppc.c (compare_symbols): Prefer strong dynamic global
1942 function syms over other syms.
1943
943284cc
DJ
19442006-05-22 Daniel Jacobowitz <dan@codesourcery.com>
1945
1946 * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL
1947 check.
1948 (bfd_elf_final_link): Add a late DT_TEXTREL check.
1949 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define.
1950 (mips_elf_create_dynamic_relocation): Set DF_TEXTREL.
1951 (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION.
1952 Use MIPS_ELF_READONLY_SECTION.
1953 (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after
1954 creating DT_TEXTREL.
1955 (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers
1956 if no text relocations were generated.
1957
4d345610
L
19582006-05-19 H.J. Lu <hongjiu.lu@intel.com>
1959
1960 * elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment.
1961
1ea63fd2
AM
19622006-05-19 Alan Modra <amodra@bigpond.net.au>
1963
1964 * elf.c (elf_fake_sections): Formatting.
1965 (assign_file_positions_for_load_sections): Only add SEC_ALLOC
1966 sections to p_memsz. Remove hack for PT_NOTE sections. Allow
1967 section alignment to increase p_align for PT_LOAD.
1968 (assign_file_positions_for_non_load_sections): Remove ARM BPABI
1969 hack for PT_DYNAMIC. Instead, set p_filesz for all segments
1970 other than PT_LOAD, and PT_NOTE in core.
1971
f3520d2f
AM
19722006-05-17 Alan Modra <amodra@bigpond.net.au>
1973
1974 * elf.c (assign_file_positions_for_segments): Split into..
1975 (assign_file_positions_for_load_sections): ..this, and..
1976 (assign_file_positions_for_non_load_sections): ..this new function,..
1977 (assign_file_positions_except_relocs): ..writing program headers here.
1978
dea5f36a
AM
19792006-05-17 Alan Modra <amodra@bigpond.net.au>
1980
1981 * elflink.c (elf_gc_sweep): Don't specially keep non-alloc,
1982 non-load sections if they have relocs.
1983
b0796911
PB
19842006-05-15 Paul Brook <paul@codesourcery.com>
1985
1986 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ...
1987 (bfd_is_arm_special_symbol_name): ... to this. Add type argument.
1988 Check symbol name is of specified type.
1989 * elf32-arm.c (elf32_arm_is_target_special_symbol,
1990 arm_elf_find_function, elf32_arm_output_symbol_hook): Use
1991 bfd_is_arm_special_symbol_name.
1992 * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP,
1993 BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER,
1994 BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define.
1995 (bfd_is_arm_mapping_symbol_name): Remove prototype.
1996 (bfd_is_arm_special_symbol_name): Add prototype.
1997 * bfd-in2.h: Regenerate.
1998
64b607e6
BW
19992006-05-15 David Heine <dlheine@tensilica.com>
2000 Bob Wilson <bob.wilson@acm.org>
2001
2002 * elf32-xtensa.c (check_loop_aligned): Fix reversed check for
2003 undefined opcode. Clean up assertions.
2004 (narrow_instruction, widen_instruction): Remove "do_it" parameters.
2005 Factor most of the code into separate functions....
2006 (can_narrow_instruction, can_widen_instruction): New.
2007 (prev_instr_is_a_loop): New.
2008 (compute_ebb_proposed_actions): Combine error handling code for
2009 decode errors. Replace call to insn_decode_len with inline code.
2010 Use can_narrow_instruction and can_widen_instruction. Handle errors
2011 from call to xtensa_opcode_is_loop.
05bf9422 2012 (relax_section): Adjust calls to narrow_instruction and
64b607e6
BW
2013 widen_instruction.
2014
7de713b9
AM
20152006-05-15 Alan Modra <amodra@bigpond.net.au>
2016
2017 PR 2658
2018 * elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic
2019 -shared link.
2020
83180ade
L
20212006-05-11 Michael Matz <matz@suse.de>
2022
2023 * elflink.c (match_group_member): Correctly iterate group
2024 members.
2025
b6895b4f
PB
20262006-05-11 Paul Brook <paul@codesourcery.com>
2027
2028 * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs.
2029 (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs.
2030 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
2031 * reloc.c: Ditto.
2032 * bfd-in2.h: Regenerate.
2033 * libbfd.h: Regenerate.
2034 * libcoff.h: Regenerate.
2035
8b95791f
AM
20362006-05-11 Mike Bland <mbland@google.com>
2037
2038 * elf.c (_bfd_elf_init_private_section_data): Don't change
2039 section type if already set.
2040
5e1b4a6d
NC
20412006-05-10 Nick Clifton <nickc@redhat.com>
2042
2043 PR ld/2607
2044 * elfcode.h (valid_section_index_p): New function: Checks for a
2045 valid section index. Allows indicies in the range SHN_LOPROC to
2046 SHN_HIOS.
2047 (elf_object_p): Use valid_section_index_p.
2048
53baae48
NC
20492006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
2050
2051 * coff-arm.c (ARM_26D, ARM_32, ARM_RVA_32, ARM_SECTION,
2052 ARM_SECREL): Mark WinCE versions of these relocs as partial
2053 inplace.
2054 (coff_arm_relocate_section): Adjust addend for WinCE.
2055
69d54b1b
AM
20562006-05-10 Alan Modra <amodra@bigpond.net.au>
2057
2058 PR 2342
2059 * elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16.
2060
337ff0a5
NC
20612006-05-09 Nick Clifton <nickc@redhat.com>
2062
2063 * coffcode.h (coff_write_relocs): Produce an error message if a an
2064 out-of-range symbol index is detected in a reloc.
2065
e4d4d200
BE
20662006-05-09 Ben Elliston <bje@au.ibm.com>
2067
2068 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unused
2069 local variable `dynobj'.
05bf9422 2070
73160847
NC
20712006-05-05 Bjoern Haase <bjoern.m.haase@web.de>
2072
336e5de1 2073 * elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all
73160847
NC
2074 of the bfd's sections for the reloc-addend adjustments.
2075
77df2968
MS
20762006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2077
2078 * elf32-s390.c (invalid_tls_insn): Call bfd_set_error.
2079 (elf_s390_relocate_section): Add code to do the GD->LE and
2080 LD->LE TLS linker optimizations if a brasl instruction is used
2081 for the __tls_get_offset function call.
2082 * elf64-s390.c (invalid_tls_insn): Call bfd_set_error.
2083
30038c59
AM
20842006-05-05 Alan Modra <amodra@bigpond.net.au>
2085
2086 * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimize
2087 R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in
2088 the .toc and referenced by a TLS code sequence.
2089 (ppc64_elf_edit_toc): Cater for the unlikely situation that
2090 .toc is the first section in a file.
2091
ff8b75c7
AS
20922006-05-04 Andreas Schwab <schwab@suse.de>
2093
2094 * aoutf1.h (struct external_sparc_core): Declare c_regs as struct
2095 regs instead of an array of int.
2096 (struct external_solaris_bcp_core): Likewise.
2097 (swapcore_sun3): Use offsetof instead of computing the offset
2098 manually.
2099 (swapcore_sparc): Likewise. Simplify reference to c_regs.
2100 (swapcore_solaris_bcp): Likewise.
2101
003b8e1d
DJ
21022006-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2103
2104 * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling
2105 for missing GOTs.
2106
efacb0fb
DJ
21072006-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2108
27106ff0 2109 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
efacb0fb
DJ
2110 mapping symbols.
2111
9578239d
BE
21122006-05-04 Ben Elliston <bje@au.ibm.com>
2113
2114 * coff-or32.c (bfd_section_from_shdr): Remove unused local
2115 variable `ptr'.
2116 * cofflink.c (process_embedded_commands): Remove unused local
2117 variables `had_read' and `had_shared'.
2118 * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
2119 variable `fdr_adr'.
2120 * ihex.c (ihex_read_section): Remove unused local variable `addr'.
2121
f592407e
AM
21222006-05-03 Alan Modra <amodra@bigpond.net.au>
2123
2124 * libbfd-in.h (_bfd_generic_new_section_hook): Declare.
2125 * section.c (bfd_abs_symbol, bfd_com_symbol): Delete.
2126 (bfd_und_symbol, bfd_ind_symbol): Delete.
2127 (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to
2128 &SEC.symbol.
2129 (STD_SECTION): Adjust.
2130 (_bfd_generic_new_section_hook): New function, extracted from..
2131 (bfd_section_init): ..here.
2132 (bfd_make_section_old_way): Call new_section_hook for abs, com,
2133 und and ind sections.
2134 * elf.c (_bfd_elf_large_com_section): Adjust.
2135 * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook.
2136 * pdp11.c (new_section_hook): Likewise.
2137 * coffcode.h (coff_new_section_hook): Likewise.
2138 * ecoff.c (_bfd_ecoff_new_section_hook): Likewise.
2139 * elf.c (_bfd_elf_new_section_hook): Likewise.
2140 * vms.c (vms_new_section_hook): Likwise.
2141 * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't
2142 already set.
2143 * elf32-sh64.c (sh64_elf_new_section_hook): Likewise.
2144 * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise.
2145 * elf64-mmix.c (mmix_elf_new_section_hook): Likewise.
2146 * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise.
2147 * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise.
2148 * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise.
2149 * ieee.c (ieee_new_section_hook): Likewise. Call
2150 _bfd_generic_new_section_hook too.
2151 * mmo.c (mmo_new_section_hook): Likewise.
2152 * oasys.c (oasys_new_section_hook): Likewise.
2153 * som.c (som_new_section_hook): Likewise.
2154 * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol.
2155 * bfd-in2.h: Regenerate.
2156 * libbfd.h: Regenerate.
2157
bd75c995
AM
21582006-05-03 Alan Modra <amodra@bigpond.net.au>
2159
2160 * hash.c (DEFAULT_SIZE): Revert last change.
2161 (higher_prime_number): Correct test for no larger prime. Don't
2162 abort on error, instead return 0. Depopulate primes[].
2163 (bfd_hash_lookup): If we overflow size, refuse to grow table.
2164
a8bc6c78
PB
21652006-05-02 Paul Brook <paul@codesourcery.com>
2166
2167 * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit
2168 for R_ARM_REL32.
2169
b48c61bc
BE
21702006-05-02 Ben Elliston <bje@au.ibm.com>
2171
2172 * archive.c (bfd_generic_archive_p): Remove unused local variable
2173 `fail'.
2174 * dwarf2.c (decode_line_info): Remove unused local variable
2175 `basic_block'.
e4d4d200
BE
2176 * elfcode.h (elf_slurp_reloc_table_from_section): Remove unused
2177 local variable `s'.
b48c61bc
BE
2178 * tekhex.c (tekhex_write_object_contents): Remove unused local
2179 variable `bytes_written'.
2180 * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local
2181 variable `r_addend'.
2182 * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns.
2183 * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns.
2184 (_bfd_ns32k_relocate_contents): Remove break after return.
2185 * elf.c (bfd_section_from_shdr): Remove breaks after returns.
2186
63f2fc30
NC
21872006-05-02 Nick Clifton <nickc@redhat.com>
2188
2189 * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG
2190 in order to avoid conflicts with the global DEBUG define.
2191
e460dd0d
AM
21922006-05-02 Alan Modra <amodra@bigpond.net.au>
2193
2194 * dwarf2.c: Formatting.
2195 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify
2196 output section check.
2197 * elf32-i370.c: Warning fixes inside #ifdef DEBUG.
2198 * elf32-m32c.c: Similarly.
2199 * elf32-ppc.c: Similarly.
2200 * elf32-v850.c: Similarly.
2201 * nlm32-sparc.c: Similarly.
2202 * elfcode.h: Similarly.
2203 (elf_symbol_flags): Delete.
2204 * elflink.c (elf_link_input_bfd): Comment typo.
2205
aa149cf7
DD
22062006-05-01 DJ Delorie <dj@redhat.com>
2207
2208 * bfd-in.h (bfd_hash_table): Add count field.
2209 * bfd-in2.h: Regenerate.
2210 * hash.c (higher_prime_number): New.
2211 (bfd_hash_table_inint_n): Init count field.
2212 (bfd_hash_lookup): Grow table as needed.
2213
75b8939e
KK
22142006-04-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2215
2216 PR binutils/2584
2217 * tekhex.c (getvalue): Change return type to bfd_boolean and
2218 add the new parameter. Return false if the unexpected character
2219 is found.
2220 (getsym): Likewise.
2221 (first_phase): Change return type to bfd_boolean and return
2222 false if the unexpected character is found. Replace abort
2223 with returning false.
2224 (pass_over): Change return type to bfd_boolean and the type of
2225 the second argument to bfd_boolean (*) (bfd *, int, char *).
2226 Return false if FUNC returns false.
2227 (tekhex_object_p): Return NULL if pass_over fails.
2228
f05742e6
AM
22292006-04-27 Alan Modra <amodra@bigpond.net.au>
2230
2231 * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.
2232
e843e0f8
L
22332006-04-26 H.J. Lu <hongjiu.lu@intel.com>
2234
2235 PR binutils/2593
2236 * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type
2237 and flags if its BFD flags have been set.
2238 (_bfd_elf_init_private_section_data): Don't copy the output ELF
2239 section type from input if it has been set to something
2240 different.
2241
b25e3d87
L
22422006-04-25 H.J. Lu <hongjiu.lu@intel.com>
2243
2244 PR binutils/2467
2245 * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd)
2246 is NULL first.
2247
2248 * elf32-arm.c (elf32_arm_close_and_cleanup): Check if
2249 abfd->sections is NULL.
2250 (elf32_arm_bfd_free_cached_info): New.
2251 (bfd_elf32_bfd_free_cached_info): Defined.
2252
2253 * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it
2254 to _bfd_free_cached_info.
2255
2256 * libbfd-in.h (_bfd_free_cached_info): New.
2257 * libbfd: Regenerated.
2258
2259 * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL.
2260 (_bfd_free_cached_info): New.
2261
5c182d5f
AM
22622006-04-21 Alan Modra <amodra@bigpond.net.au>
2263
2264 * elf.c (assign_file_positions_except_relocs): Move code setting
2265 file position of non-loaded sections..
2266 (assign_file_positions_for_segments): ..to here.
2267
3eb70a79
L
22682006-04-20 H.J. Lu <hongjiu.lu@intel.com>
2269
2270 PR ld/2537
2271 * elf.c (bfd_section_from_shdr): Allow sections reserved for
2272 applications. Issue an error on sections we don't know how
2273 to handle.
2274
ec3fcc56
AM
22752006-04-19 Alan Modra <amodra@bigpond.net.au>
2276
2277 * Makefile.am: Run "make dep-am".
2278 * Makefile.in: Regenerate.
2279
241a6c40
AM
22802006-04-19 Alan Modra <amodra@bigpond.net.au>
2281
2282 * warning.m4 (--enable-werror): Format help message.
2283 (--enable-build-warnings): Likewise.
2284 * configure: Regenerate.
2285
0b49d371
NC
22862006-04-18 Nick Clifton <nickc@redhat.com>
2287
2288 PR 2257
2289 * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx
2290 fields to still be handled as ELF files.
2291
e7403566
DJ
22922006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
2293
2294 * po/SRC-POTFILES.in: Regenerated.
2295
ffdc4eed
DJ
22962006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
2297
2298 * configure.in: Update version to 2.17.50.
2299 * configure: Regenerated.
2300
cb337148
BW
23012006-04-14 David Heine <dlheine@tensilica.com>
2302
2303 * elf32-xtensa.c (build_reloc_opcodes): New.
2304 (compute_text_actions): Use it to decode opcodes outside inner loop.
2305 (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if
2306 it is set, use it to get the opcodes for relocations.
2307 (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit.
2308
cb878726
L
23092006-04-08 H.J. Lu <hongjiu.lu@intel.com>
2310
2311 PR ld/2513
2312 * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type.
2313 (GOT_TLS_IE_IE): Likewise.
2314 (GOT_TLS_IE_GD): Likewise.
2315 (GOT_TLS_IE_MASK): Likewise.
2316 (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD
2317 and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE
2318 respectively.
2319 (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD
2320 are set, treat tls_type as GOT_TLS_IE_BOTH.
2321 (elf_i386_relocate_section): Likewise.
2322
235ecfbc
NC
23232006-04-07 Randolph Chung <tausq@debian.org>
2324
2325 * elf64-hppa.c (elf64_hppa_grok_prstatus): New function.
2326 (elf64_hppa_grok_psinfo): Likewise.
2327 (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define.
2328
35520cb7
DD
23292006-04-06 DJ Delorie <dj@redhat.com>
2330
2331 * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for
2332 each plt entry we create.
2333
108a6f8e
CD
23342006-04-06 Carlos O'Donell <carlos@codesourcery.com>
2335
2336 * po/Make-in: Add install-html target.
2337 * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
2338 htmldir. Add install-html and install-html-recursive targets.
2339 * Makefile.in: Regenerate.
2340 * configure.in: AC_SUBST for datarootdir, docdir and htmldir.
2341 * configure: Regenerate.
2342
fbbc3759
L
23432006-04-06 H.J. Lu <hongjiu.lu@intel.com>
2344
2345 * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes
2346 with the skip_relax_pass_0 and skip_relax_pass_1 bits in the
2347 section structure.
2348
17e226a8
BS
23492006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2350
2351 * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
2352 eliminate warnings.
2353
396a682d
L
23542006-04-05 H.J. Lu <hongjiu.lu@intel.com>
2355 James E Wilson <wilson@specifixinc.com>
2356
2357 PR ld/2442
2358 * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next.
2359 (elfNN_ia64_local_hash_entry): Add count, sorted_count and
2360 size.
2361 (elfNN_ia64_link_hash_entry): Likewise.
2362 (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count
2363 and size.
2364 (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info
2365 processing.
2366 (elfNN_ia64_hash_hide_symbol): Likewise.
2367 (elfNN_ia64_global_dyn_sym_thunk): Likewise.
2368 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
2369 (elfNN_ia64_global_dyn_info_free): New function.
2370 (elfNN_ia64_local_dyn_info_free): Likewise.
2371 (elfNN_ia64_hash_table_free): Free local and global
2372 elfNN_ia64_dyn_sym_info.
2373 (addend_compare): New function.
2374 (sort_dyn_sym_info): Likewise.
2375 (get_dyn_sym_info): Updated to use binary search for addend.
2376 (elfNN_ia64_check_relocs): Scan relocations to create dynamic
2377 relocation arrays first.
2378
0781db9f
BS
23792006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2380
2381 * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
2382 symbol.
2383
c0d5a53d
L
23842006-04-05 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 PR ld/2411
2387 * elflink.c (check_dynsym): New.
2388 (elf_link_output_extsym): Use it.
2389 (bfd_elf_final_link): Likewise.
2390
580a2b6e
L
23912006-04-05 H.J. Lu <hongjiu.lu@intel.com>
2392
2393 PR ld/2404
2394 * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect
2395 symbol from the dynamic definition with the default version if
2396 its type and the type of existing regular definition mismatch.
2397
910600e9
RS
23982006-04-05 Richard Sandiford <richard@codesourcery.com>
2399 Daniel Jacobowitz <dan@codesourcery.com>
2400
2401 * config.bfd (sparc-*-vxworks*): New stanza.
2402 * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
2403 (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
2404 * configure: Regenerate.
2405 * elf32-sparc.c: Include elf-vxworks.h.
2406 (elf32_sparc_vxworks_link_hash_table_create: New.
2407 (elf32_sparc_vxworks_final_write_processing): New.
2408 (TARGET_BIG_SYM): Override for VxWorks.
2409 (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
2410 (bfd_elf32_bfd_link_hash_table_create): Likewise.
2411 (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
2412 (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
2413 (elf_backend_link_output_symbol_hook): Likewise.
2414 (elf_backend_emit_relocs): Likewise.
2415 (elf_backend_final_write_processing, elf32_bed): Likewise.
2416 * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
2417 (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
2418 (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
2419 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
2420 build_plt_entry here.
2421 (create_got_section): Initialize sgotplt for VxWorks.
2422 (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
2423 plt_header_size and plt_entry_size, with new VxWorks-specific settings.
2424 Call elf_vxworks_create_dynamic_sections for VxWorks.
2425 (allocate_dynrelocs): Use plt_header_size and plt_entry_size.
2426 Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
2427 (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
2428 for VxWorks. Check for the .got.plt section.
2429 (sparc_vxworks_build_plt_entry): New function.
2430 (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
2431 Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
2432 absolute on VxWorks.
2433 (sparc32_finish_dyn): Add special handling for DT_RELASZ
2434 and DT_PLTGOT on VxWorks.
2435 (sparc_vxworks_finish_exec_plt): New.
2436 (sparc_vxworks_finish_shared_plt): New.
2437 (_bfd_sparc_elf_finish_dynamic_sections): Call them.
2438 Use plt_header_size and plt_entry_size.
2439 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
2440 srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
2441 * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
2442 (elf32-sparc.lo): Likewise.
2443 * Makefile.in: Regenerate.
2444 * targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
2445 (_bfd_target_vector): Add a pointer to it.
2446
b761a207
BE
24472006-03-30 Ben Elliston <bje@au.ibm.com>
2448
2449 PR ld/2267
2450 * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
2451 special section number that exceeds the number of ELF sections
2452 (eg. SHN_MIPS_SCOMMON).
2453
ead49a57
RS
24542006-03-27 Richard Sandiford <richard@codesourcery.com>
2455
2456 * elfxx-mips.c (mips_got_entry): Add more commentary.
2457 (mips_elf_local_got_index): Use the hash table entry to record
2458 the GOT index of forced-local symbols.
2459 (mips_elf_initialize_tls_index): Rearrange code. Store the index
2460 in either the hash table entry or the mips_got_entry, not both.
2461 Add more commentary.
2462 (mips_elf_multi_got): Make sure the g->next is nonnull when calling
2463 mips_elf_initialize_tls_index.
2464
3b55e94a
BS
24652006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
2466
2467 * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
2468 RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
2469 reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
2470 bfin_areloc_howto_table): Delete. All
2471 uses deleted as well.
2472 (bfin_reloc_map): Delete all stack relocs.
2473 (bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
2474 bfin_reloc_type_lookup): Don't support them.
2475 (bfin_relocate_section): Don't try to handle them.
2476
48d502e1
BS
2477 * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
2478 * configure.in: Likewise.
2479 * configure: Regenerate.
2480 * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
2481 (BFIN_RELOC_MAX): Now 0x21.
2482 (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
2483 (bfd_elf32_bfinfdpic_vec): Declare.
2484 (IS_FDPIC): New macro.
2485 (struct bfinfdpic_elf_link_hash_table): New struct.
2486 (bfinfdpic_hash_table, bfinfdpic_got_section,
2487 bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
2488 bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
2489 bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
2490 bfinfdpic_plt_initial_offset): Accessor macros for it.
2491 (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
2492 (struct bfinfdpic_relocs_info): New struct.
2493 (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
2494 BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
2495 DEFAULT_STACK_SIZE): New macros.
2496 (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
2497 bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
2498 bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
2499 bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
2500 _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
2501 _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
2502 bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
2503 _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
2504 elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
2505 _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
2506 _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
2507 _bfinfdpic_resolve_final_relocs_info,
2508 elf32_bfinfdpic_size_dynamic_sections,
2509 elf32_bfinfdpic_always_size_sections,
2510 elf32_bfinfdpic_modify_segment_map,
2511 _bfinfdpic_count_got_plt_entries,
2512 elf32_bfinfdpic_finish_dynamic_sections,
2513 elf32_bfinfdpic_adjust_dynamic_symbol,
2514 elf32_bfinfdpic_finish_dynamic_symbol,
2515 elf32_bfinfdpic_elf_use_relative_eh_frame,
2516 elf32_bfinfdpic_elf_encode_eh_address,
2517 elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
2518 elf32_bfinfdpic_copy_private_bfd_data,
2519 (struct _bfinfdpic_dynamic_got_info,
2520 struct _bfinfdpic_dynamic_got_plt_info): New structs.
2521 (elf32_bfin_print_private_bfd_data): Print PIC flags.
2522 (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
2523 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
2524 elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
2525 elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
2526 bfd_elf32_bfd_copy_private_bfd_data,
2527 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
2528 elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
2529 elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
2530 elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
2531 elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
2532 elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
2533 elf_backend_omit_section_dynsym): Redefine these macros and include
2534 "elf32-target.h" again to create the elf32-bfinfdpic target.
2535 * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
2536 BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
2537 BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
2538 BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
2539 BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
2540 BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
2541 BFD_RELOC_BFIN_GOTOFFLO): New.
2542 * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
2543 (_bfd_target_vector): Add it.
2544 * bfd-in2.h: Regenerate.
2545 * libbfd.h: Regenerate.
2546
a9d34880
RS
25472006-03-25 Richard Sandiford <richard@codesourcery.com>
2548
2549 * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
2550 incompatible. Likewise MAC and EMAC code.
2551 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
2552 bfd_get_compatible to set the new bfd architecture. Rely on it
2553 to detect incompatibilities.
2554
9ca26584
AJ
25552006-03-23 Michael Matz <matz@suse.de>
2556
2557 * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
2558 BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
2559 BFD_RELOC_X86_64_PLTOFF64.
2560 * bfd-in2.h: Regenerated.
2561 * libbfd.h: Regenerated.
2562 * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
2563 Add howtos for above relocs.
2564 (x86_64_reloc_map): Add mappings for new relocs.
2565 (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
2566 R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT
2567 entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64
2568 needs a PLT entry.
2569 (elf64_x86_64_gc_sweep_hook): Reflect changes from
2570 elf64_x86_64_check_relocs for the new relocs.
2571 (elf64_x86_64_relocate_section): Handle new relocs.
2572
2a23c2c5
BW
25732006-03-22 Bob Wilson <bob.wilson@acm.org>
2574
2575 * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
2576 rel->r_addend is zero.
2577
6d79d2ed
RS
25782006-03-22 Richard Sandiford <richard@codesourcery.com>
2579
2580 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
2581 of "loc".
2582
0a44bf69
RS
25832006-03-22 Richard Sandiford <richard@codesourcery.com>
2584 Daniel Jacobowitz <dan@codesourcery.com>
2585 Phil Edwards <phil@codesourcery.com>
2586 Zack Weinberg <zack@codesourcery.com>
2587 Mark Mitchell <mark@codesourcery.com>
2588 Nathan Sidwell <nathan@codesourcery.com>
2589
2590 * bfd-in2.h: Regenerate.
2591 * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
2592 * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
2593 (bfd_elf32_littlemips_vxworks_vec): Likewise.
2594 (bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
2595 (bfd_elf32_littlemips_vec): Likewise.
2596 (bfd_elf32_nbigmips_vec): Likewise.
2597 (bfd_elf32_nlittlemips_vec): Likewise.
2598 (bfd_elf32_ntradbigmips_vec): Likewise.
2599 (bfd_elf32_ntradlittlemips_vec): Likewise.
2600 (bfd_elf32_tradbigmips_vec): Likewise.
2601 (bfd_elf32_tradlittlemips_vec): Likewise.
2602 (bfd_elf64_bigmips_vec): Likewise.
2603 (bfd_elf64_littlemips_vec): Likewise.
2604 (bfd_elf64_tradbigmips_vec): Likewise.
2605 (bfd_elf64_tradlittlemips_vec): Likewise.
2606 * elf32-mips.c: Include elf-vxworks.h.
2607 (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
2608 instead of calling mips_elf32_rtype_to_howto directly.
2609 (mips_vxworks_copy_howto_rela): New reloc howto.
2610 (mips_vxworks_jump_slot_howto_rela): Likewise.
2611 (mips_vxworks_bfd_reloc_type_lookup): New function.
2612 (mips_vxworks_rtype_to_howto): Likewise.
2613 (mips_vxworks_final_write_processing): Likewise.
2614 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
2615 (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
2616 (elf_backend_want_got_plt): Likewise.
2617 (elf_backend_want_plt_sym): Likewise.
2618 (elf_backend_got_symbol_offset): Likewise.
2619 (elf_backend_want_dynbss): Likewise.
2620 (elf_backend_may_use_rel_p): Likewise.
2621 (elf_backend_may_use_rela_p): Likewise.
2622 (elf_backend_default_use_rela_p): Likewise.
2623 (elf_backend_got_header_size: Likewise.
2624 (elf_backend_plt_readonly): Likewise.
2625 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
2626 (elf_backend_mips_rtype_to_howto): Likewise.
2627 (elf_backend_adjust_dynamic_symbol): Likewise.
2628 (elf_backend_finish_dynamic_symbol): Likewise.
2629 (bfd_elf32_bfd_link_hash_table_create): Likewise.
2630 (elf_backend_add_symbol_hook): Likewise.
2631 (elf_backend_link_output_symbol_hook): Likewise.
2632 (elf_backend_emit_relocs): Likewise.
2633 (elf_backend_final_write_processing: Likewise.
2634 (elf_backend_additional_program_headers): Likewise.
2635 (elf_backend_modify_segment_map): Likewise.
2636 (elf_backend_symbol_processing): Likewise.
2637 * elfxx-mips.c: Include elf-vxworks.h.
2638 (mips_elf_link_hash_entry): Add is_relocation_target and
2639 is_branch_target fields.
2640 (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
2641 srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
2642 (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
2643 (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
2644 Return 3 for VxWorks.
2645 (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
2646 mips_elf_link_hash_table. Return 0 for VxWorks.
2647 (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
2648 mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET.
2649 (mips_vxworks_exec_plt0_entry): New variable.
2650 (mips_vxworks_exec_plt_entry): Likewise.
2651 (mips_vxworks_shared_plt0_entry): Likewise.
2652 (mips_vxworks_shared_plt_entry): Likewise.
2653 (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
2654 (mips_elf_rel_dyn_section): Change the bfd argument to a
2655 mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get
2656 the name of the section.
2657 (mips_elf_initialize_tls_slots): Update the call to
2658 mips_elf_rel_dyn_section.
2659 (mips_elf_gotplt_index): New function.
2660 (mips_elf_local_got_index): Add an input_section argument.
2661 Update the call to mips_elf_create_local_got_entry.
2662 (mips_elf_got_page): Likewise.
2663 (mips_elf_got16_entry): Likewise.
2664 (mips_elf_create_local_got_entry): Add bfd_link_info and input_section
2665 arguments. Create dynamic relocations for each entry on VxWorks.
2666 (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
2667 (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
2668 and MIPS_RESERVED_GOTNO.
2669 (mips_elf_create_got_section): Update the uses of
2670 MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks.
2671 (is_gott_symbol): New function.
2672 (mips_elf_calculate_relocation): Use a dynobj local variable.
2673 Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
2674 mips_elf_got_page_entry. Set G to the .got.plt entry when calculating
2675 VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT
2676 relocations on VxWorks. Add dynamic relocations for references
2677 to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't
2678 create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
2679 in VxWorks executables.
2680 (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
2681 Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
2682 Don't allocate a null entry on VxWorks.
2683 (mips_elf_create_dynamic_relocation): Update the call to
2684 mips_elf_rel_dyn_section. Use absolute rather than relative
2685 relocations for VxWorks, and make them RELA rather than REL.
2686 (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
2687 read-only on VxWorks. Update the call to mips_elf_rel_dyn_section.
2688 Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
2689 VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
2690 Call elf_vxworks_create_dynamic_sections for VxWorks and
2691 initialize the plt_header_size and plt_entry_size fields.
2692 (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
2693 used in VxWorks executables. Don't allocate dynamic relocations
2694 for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
2695 Set is_relocation_target for each symbol referenced by a relocation.
2696 Allocate .rela.dyn entries for relocations against the special
2697 VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT
2698 entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate
2699 a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
2700 R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls
2701 to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
2702 Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
2703 relocations. Don't set no_fn_stub on VxWorks.
2704 (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
2705 mips_elf_allocate_dynamic_relocations.
2706 (_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
2707 (_bfd_mips_elf_always_size_sections): Do not allocate GOT page
2708 entries for VxWorks, and do not create multiple GOTs.
2709 (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
2710 Handle .got specially for VxWorks. Update the uses of
2711 MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
2712 Check for sgotplt and splt. Allocate the .rel(a).dyn contents last,
2713 once its final size is known. Set DF_TEXTREL for VxWorks. Add
2714 DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
2715 tags on VxWorks. Do not add the MIPS-specific tags for VxWorks.
2716 (_bfd_mips_vxworks_finish_dynamic_symbol): New function.
2717 (mips_vxworks_finish_exec_plt): Likewise.
2718 (mips_vxworks_finish_shared_plt): Likewise.
2719 (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
2720 to mips_elf_rel_dyn_section. Use a VxWorks-specific value of
2721 DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
2722 DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO
2723 and mips_elf_rel_dyn_section. Use a different GOT header for
2724 VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks.
2725 (_bfd_mips_elf_link_hash_table_create): Initialize the new
2726 mips_elf_link_hash_table fields.
2727 (_bfd_mips_vxworks_link_hash_table_create): New function.
2728 (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
2729 on VxWorks. Update the call to ELF_MIPS_GP_OFFSET.
2730 * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
2731 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
2732 (_bfd_mips_vxworks_link_hash_table_create): Likewise.
2733 * libbfd.h: Regenerate.
2734 * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
2735 (elf32-mips.lo): Likewise.
2736 * Makefile.in: Regenerate.
2737 * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
2738 * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
2739 (bfd_elf32_littlemips_vxworks_vec): Likewise.
2740 (_bfd_target_vector): Add entries for them.
2741
a2199086
DA
27422006-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2743
2744 * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
2745 section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
2746 (elf_backend_special_sections): Remove #undef.
2747
af7cfa33
DA
27482006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2749
2750 * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
2751 for undefined weak symbols.
2752
a4676736
L
27532006-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2754
2755 PR ld/2462
2756 * elflink.c (bfd_elf_final_link): Remove
2757 bed->elf_backend_emit_relocs from emit_relocs.
2758
e1710606
AO
27592006-03-17 Alexandre Oliva <aoliva@redhat.com>
2760
2761 * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
2762 first relocation to the second when relaxing TLS GD to LE;
2763 zero it out when relaxing to IE.
2764
2de92251
AM
27652006-03-17 Alan Modra <amodra@bigpond.net.au>
2766
2767 PR 2434
2768 * elflink.c (elf_link_add_object_symbols): Save and restore
2769 warning sym's linked sym.
2770
66eb6687
AM
27712006-03-16 Alan Modra <amodra@bigpond.net.au>
2772
2773 PR 2434
2774 * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
2775 (elf_link_add_object_symbols): Delete unnecessary locals. Rename
2776 hash_table -> htab. Formatting. Save entire symbol table
2777 before loading as-needed syms, and restore afterwards if lib not
2778 needed. Use bfd_hash_allocate rather than bfd_alloc for sym
2779 name. Free some buffers earlier.
2780 * bfd-in.h (struct bfd_hash_table): Add entsize.
2781 (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
2782 * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
2783 * hash.c (bfd_hash_table_init_n): Add entsize param, save to
2784 hash table.
2785 (bfd_hash_table_init): Add param, adjust calls.
2786 * aoutx.h: Adjust all hash_table_init functions and calls.
2787 * bfd.c: Likewise.
2788 * coff-arm.c: Likewise.
2789 * coff-h8300.c: Likewise.
2790 * coff-ppc.c: Likewise.
2791 * cofflink.c: Likewise.
2792 * ecoff.c: Likewise.
2793 * ecofflink.c: Likewise.
2794 * elf-m10300.c: Likewise.
2795 * elf-strtab.c: Likewise.
2796 * elf.c: Likewise.
2797 * elf32-arm.c: Likewise.
2798 * elf32-bfin.c: Likewise.
2799 * elf32-cris.c: Likewise.
2800 * elf32-frv.c: Likewise.
2801 * elf32-hppa.c: Likewise.
2802 * elf32-i386.c: Likewise.
2803 * elf32-m32r.c: Likewise.
2804 * elf32-m68hc1x.c: Likewise.
2805 * elf32-m68k.c: Likewise.
2806 * elf32-ppc.c: Likewise.
2807 * elf32-s390.c: Likewise.
2808 * elf32-sh.c: Likewise.
2809 * elf32-vax.c: Likewise.
2810 * elf64-alpha.c: Likewise.
2811 * elf64-hppa.c: Likewise.
2812 * elf64-ppc.c: Likewise.
2813 * elf64-s390.c: Likewise.
2814 * elf64-sh64.c: Likewise.
2815 * elf64-x86-64.c: Likewise.
2816 * elfxx-ia64.c: Likewise.
2817 * elfxx-mips.c: Likewise.
2818 * elfxx-sparc.c: Likewise.
2819 * i386linux.c: Likewise.
2820 * libaout.h: Likewise.
2821 * libbfd-in.h: Likewise.
2822 * libcoff-in.h: Likewise.
2823 * linker.c: Likewise.
2824 * m68klinux.c: Likewise.
2825 * merge.c: Likewise.
2826 * opncls.c: Likewise.
2827 * pdp11.c: Likewise.
2828 * sparclinux.c: Likewise.
2829 * stabs.c: Likewise.
2830 * sunos.c: Likewise.
2831 * vms.c: Likewise.
2832 * xcofflink.c: Likewise.
2833 * section.c (struct section_hash_entry): Move to..
2834 * libbfd-in.h: ..here.
2835 * Makefile.am: Run "make dep-am"
2836 * Makefile.in: Regenerate.
2837 * bfd-in2.h: Regenerate.
2838 * libbfd.h: Regenerate.
2839 * libcoff.h: Regenerate.
2840
7123df0e
AM
28412006-03-16 Alan Modra <amodra@bigpond.net.au>
2842
2843 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
2844 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
2845 last change to REL32 relocs so that they are counted as
2846 possibly dynamic as per REL24 and REL14.
2847
fd38b44c
AM
28482006-03-16 Alan Modra <amodra@bigpond.net.au>
2849
2850 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
2851 checks from REL32.
2852
eb111b1f
BE
28532006-03-15 Ben Elliston <bje@au.ibm.com>
2854
2855 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
2856 in_list elements, not just the first.
05bf9422 2857
81d43bff
RS
28582006-03-14 Richard Sandiford <richard@codesourcery.com>
2859
2860 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
2861 out from...
2862 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
2863 for final links too.
2864
d329bcd1
RS
28652006-03-13 Richard Sandiford <richard@codesourcery.com>
2866
2867 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
2868
75a657ba
L
28692006-03-11 H.J. Lu <hongjiu.lu@intel.com>
2870
2871 PR ld/2443
241a6c40 2872 * dwarf2.c (concat_filename): Don't issue an error if file is 0.
75a657ba 2873
3a4a14e9
PB
28742006-03-10 Paul Brook <paul@codesourcery.com>
2875
2876 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
2877 (elf32_arm_print_private_bfd_data): Ditto.
2878
38406048
PB
28792006-03-09 Paul Brook <paul@codesourcery.com>
2880
2881 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
2882 mapping symbols.
2883
eed62c48
NC
28842006-03-09 Khem Raj <khem@mvista.com>
2885
2886 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
2887 char type.
2888
6d2cf7d8
L
28892006-03-08 H.J. Lu <hongjiu.lu@intel.com>
2890
2891 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
2892
00a97672
RS
28932006-03-07 Richard Sandiford <richard@codesourcery.com>
2894 Daniel Jacobowitz <dan@codesourcery.com>
2895 Zack Weinberg <zack@codesourcery.com>
2896 Nathan Sidwell <nathan@codesourcery.com>
2897 Paul Brook <paul@codesourcery.com>
2898 Ricardo Anguiano <anguiano@codesourcery.com>
2899 Phil Edwards <phil@codesourcery.com>
2900
2901 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
2902 (bfd_elf32_bigarm_symbian_vec): Likewise.
2903 (bfd_elf32_bigarm_vxworks_vec): Likewise.
2904 (bfd_elf32_littlearm_vec): Likewise.
2905 (bfd_elf32_littlearm_symbian_vec): Likewise.
2906 (bfd_elf32_littlearm_vxworks_vec): Likewise.
2907 * configure: Regenerate.
2908 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
2909 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
2910 (elf32_arm_vxworks_bed): Add forward declaration.
2911 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
2912 (elf32_arm_vxworks_exec_plt0_entry): New table.
2913 (elf32_arm_vxworks_exec_plt_entry): Likewise.
2914 (elf32_arm_vxworks_shared_plt_entry): Likewise.
2915 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
2916 (reloc_section_p): New function.
2917 (create_got_section): Use RELOC_SECTION.
2918 (elf32_arm_create_dynamic_sections): Likewise. Call
2919 elf_vxworks_create_dynamic_sections for VxWorks targets.
2920 Choose between the two possible values of plt_header_size
2921 and plt_entry_size.
2922 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
2923 (elf32_arm_abs12_reloc): New function.
2924 (elf32_arm_final_link_relocate): Call it. Allow the creation of
2925 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
2926 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
2927 r_addend fields of relocs. On rela targets, skip any code that
2928 adjusts in-place addends. When using _bfd_link_final_relocate
2929 to perform a final relocation, pass rel->r_addend as the addend
2930 argument.
2931 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
2932 object, ignore flags that are not standard on VxWorks.
2933 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
2934 relocs on VxWorks. Use reloc_section_p.
2935 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
2936 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
2937 .rela.plt.unloaded relocs on VxWorks targets.
2938 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
2939 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
2940 instead of DT_REL* tags on RELA targets.
2941 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
2942 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
2943 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
2944 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
2945 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
2946 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
2947 Correct the .rela.plt.unreloaded symbol indexes.
2948 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
2949 hook on VxWorks targets.
2950 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
2951 Minor formatting tweak.
2952 (elf32_arm_vxworks_final_write_processing): New function.
2953 (elf_backend_add_symbol_hook): Override for VxWorks and reset
2954 for Symbian.
2955 (elf_backend_final_write_processing): Likewise.
2956 (elf_backend_emit_relocs): Likewise.
2957 (elf_backend_want_plt_sym): Likewise.
2958 (ELF_MAXPAGESIZE): Likewise.
2959 (elf_backend_may_use_rel_p): Minor formatting tweak.
2960 (elf_backend_may_use_rela_p): Likewise.
2961 (elf_backend_default_use_rela_p): Likewise.
2962 (elf_backend_rela_normal): Likewise.
2963 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
2964
0b2e31dc
NS
29652006-03-06 Nathan Sidwell <nathan@codesourcery.com>
2966
2967 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
2968 New. Adjust other variants.
2969 (bfd_default_scan): Update.
2970 * bfd-in2.h: Rebuilt.
2971 * cpu-m68k.c: Adjust.
2972 (bfd_m68k_compatible): New. Use it for architectures.
2973 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
2974 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
2975 mismatch.
2976 (elf32_m68k_print_private_bfd_data): Adjust.
2977 * ieee.c (ieee_write_processor): Adjust.
05bf9422 2978
d8d1c398
AM
29792006-03-06 Alan Modra <amodra@bigpond.net.au>
2980
2981 * dwarf2.c: Formatting.
2982 (add_line_info): Remove outer loop.
2983
d4c32a81
L
29842006-03-05 H.J. Lu <hongjiu.lu@intel.com>
2985 Alan Modra <amodra@bigpond.net.au>
2986
2987 PR binutils/2338
2988 * dwarf2.c (loadable_section): New struct.
2989 (dwarf2_debug): Add loadable_section_count and
2990 loadable_sections.
2991 (new_line_sorts_after): New.
2992 (add_line_info): Use new_line_sorts_after to compare line
2993 addresses.
2994 (check_function_name): Removed.
2995 (unset_sections): New.
2996 (place_sections): New.
2997 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
2998 and unset_sections on relocatable files.
2999 (_bfd_dwarf2_find_line): Likewise.
3000
4cdc7696
NC
30012006-03-03 Nick Clifton <nickc@redhat.com>
3002
3003 * cpu-avr.c: Update to ISO-C90 formatting.
3004 * elf32-avr.c: Likewise.
3005
df406460
NC
30062006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
3007
3008 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
05bf9422 3009 and R_AVR_MS8_LDI
df406460
NC
3010 (bfd_elf_avr_final_write_processing): Set
3011 EF_AVR_LINKRELAX_PREPARED in e_flags field.
3012 (elf32_avr_relax_section): New function.
3013 (elf32_avr_relax_delete_bytes): New function.
3014 (elf32_avr_get_relocated_section_contents): New function.
3015 (avr_pc_wrap_around): New function.
3016 (avr_relative_distance_considering_wrap_around): New function.
3017 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
3018 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
3019 * libbfd.h: Regenerate.
3020 * bfd-in2.h: Regenerate.
3021
a1013894
DD
30222006-03-02 DJ Delorie <dj@redhat.com>
3023
3024 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
3025 calculations.
3026
7c492719
RS
30272006-03-02 Richard Sandiford <richard@codesourcery.com>
3028
3029 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
3030 bfd_elf32_powerpc_vxworks_vec.
3031
e970df31
NC
30322006-03-02 Nick Clifton <nickc@redhat.com>
3033
3034 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
3035
711de32c
RS
30362006-03-02 Richard Sandiford <richard@codesourcery.com>
3037
3038 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
3039 elf_vxworks_create_dynamic_sections.
3040 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
3041 symbol handling.
3042 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
3043 elf_vxworks_create_dynamic_sections.
3044 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
3045 symbol handling.
3046 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
3047 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
3048
9c72ff84
RS
30492006-03-02 Richard Sandiford <richard@codesourcery.com>
3050
3051 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
3052 (elf_backend_link_output_symbol_hook): Use
3053 elf_vxworks_link_output_symbol_hook instead.
3054 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
3055 (elf_backend_link_output_symbol_hook): Use
3056 elf_vxworks_link_output_symbol_hook instead.
3057 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
3058 same interface as elf_backend_link_output_symbol_hook.
3059 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
3060 prototype accordingly.
3061
4a3dc543
RS
30622006-03-02 Richard Sandiford <richard@codesourcery.com>
3063
3064 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
3065 (ppc_elf_link_hash_table): Replace old_got and new_got with
3066 plt_type and can_use_new_plt.
3067 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
3068 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
3069 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
3070 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
3071 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
3072 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
3073 this function should not be called for VxWorks targets.
3074 (ppc_elf_tls_setup): Use plt_type instead of old_got.
3075 (allocate_got): Likewise. Rearrange so that max_before_header
3076 is only used for PLT_OLD and PLT_NEW.
3077 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
3078 (ppc_elf_size_dynamic_sections): Likewise.
3079 (ppc_elf_relax_section): Likewise.
3080 (ppc_elf_relocate_section): Likewise.
3081 (ppc_elf_finish_dynamic_symbol): Likewise.
3082 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
3083
5ae0bfb6
RS
30842006-02-28 Richard Sandiford <richard@codesourcery.com>
3085
3086 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
3087 (elf_i386_link_hash_table_create): Initialize it.
3088 (elf_i386_compute_jump_table_size): Use it instead of
3089 srelplt->reloc_count.
3090 (allocate_dynrelocs): Likewise.
3091 (elf_i386_size_dynamic_sections): Likewise.
3092 (elf_i386_relocate_section): Likewise.
05bf9422 3093
63752a75
JJ
30942006-02-27 Jakub Jelinek <jakub@redhat.com>
3095
3096 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
3097 (_bfd_elf_write_section_eh_frame): Likewise.
3098
f7d9e5c3
CD
30992006-02-27 Carlos O'Donell <carlos@codesourcery.com>
3100
3101 * po/Make-in: Add html target.
3102
22edb2f1
RS
31032006-02-27 Richard Sandiford <richard@codesourcery.com>
3104
3105 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
3106 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
3107 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
3108 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
3109 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
3110 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
3111 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
3112 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
3113 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
3114 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
3115 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
3116 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
3117 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
3118 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
3119 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
3120 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
3121 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
3122 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
3123 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
3124 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
3125 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
3126
7325306f
RS
31272006-02-25 Richard Sandiford <richard@codesourcery.com>
3128
3129 * elf-bfd.h (elf_link_hash_table): Add hplt field.
3130 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
3131 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
3132 * elf32-frv.c (_frv_create_got_section): Likewise.
3133 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
3134 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
3135 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
3136 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
3137 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
3138 (elf_i386_link_hash_table_create): Don't initialize them.
3139 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
3140 hgot fields.
3141 (elf_i386_finish_dynamic_symbol): Likewise.
3142 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
3143 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
3144 (ppc_elf_finish_dynamic_symbol): Likewise.
05bf9422 3145
6772dd07
DD
31462006-02-24 DJ Delorie <dj@redhat.com>
3147
3148 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
3149 (m32c_elf_relocate_section): Don't relocate them.
3150 (compare_reloc): New.
3151 (relax_reloc): Remove.
3152 (m32c_offset_for_reloc): New.
3153 (m16c_addr_encodings): New.
3154 (m16c_jmpaddr_encodings): New.
3155 (m32c_addr_encodings): New.
3156 (m32c_elf_relax_section): Relax jumps and address displacements.
3157 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
3158 short jumps.
3159
3160 * reloc.c: Add m32c relax relocs.
3161 * libbfd.h: Regenerate.
3162 * bfd-in2.h: Regenerate.
05bf9422 3163
508c3946
L
31642006-02-24 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 PR ld/2218
3167 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
3168 (_bfd_elf_link_hash_fixup_symbol): New.
3169
3170 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
3171 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
3172 it isn't NULL.
3173
3174 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
3175
3176 * elfxx-target.h (elf_backend_fixup_symbol): New.
3177 (elfNN_bed): Initialize elf_backend_fixup_symbol.
3178
59cf82fe
L
31792006-02-23 H.J. Lu <hongjiu.lu@intel.com>
3180
3181 * cpu-ia64-opc.c (ins_immu5b): New.
3182 (ext_immu5b): Likewise.
3183 (elf64_ia64_operands): Add IMMU5b.
3184
22d606e9
AM
31852006-02-21 Alan Modra <amodra@bigpond.net.au>
3186
3187 PR ld/2218
3188 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
3189 is dynamic.
3190 * elf32-hppa.c (allocate_dynrelocs): Likewise.
3191 * elf32-i386.c (allocate_dynrelocs): Likewise.
3192 * elf32-s390.c (allocate_dynrelocs): Likewise.
3193 * elf32-sh.c (allocate_dynrelocs): Likewise.
3194 * elf64-s390.c (allocate_dynrelocs): Likewise.
3195 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
3196 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
3197 on undef weak with non-default visibility too.
3198 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
3199
3168356f
AM
32002006-02-21 Alan Modra <amodra@bigpond.net.au>
3201
3202 * bfd.c: (_bfd_default_error_handler): Don't call abort on
3203 error, instead call _exit.
3204 (_bfd_abort): Call _exit not xexit.
3205
888b45b8
KB
32062006-02-17 Kevin Buettner <kevinb@redhat.com>
3207
3208 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
3209 New functions.
3210 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
3211
d70c5fc7 32122006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
05bf9422
AM
3213 Anil Paranjape <anilp1@kpitcummins.com>
3214 Shilin Shakti <shilins@kpitcummins.com>
d70c5fc7 3215
05bf9422
AM
3216 * Makefile.am: Add xc16x related entry
3217 * Makefile.in: Regenerate
3218 * archures.c: Add bfd_xc16x_arch
d70c5fc7
NC
3219 * bfd-in2.h: Regenerate
3220 * config.bfd: Add xc16x-*-elf
3221 * configure.in: Add bfd_elf32_xc16x_vec
3222 * configure: Regenerate.
3223 * targets.c: Added xc16x related information
3224 * cpu-xc16x.c: New file
3225 * reloc.c: Add new relocations specific to xc16x:
3226 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
05bf9422 3227 BFD_RELOC_XC16X_SOF
d70c5fc7
NC
3228 * elf32-xc16x.c: New file.
3229
cab87ef9
AM
32302006-02-17 Alan Modra <amodra@bigpond.net.au>
3231
3232 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
3233 * elf64-ppc.c (allocate_dynrelocs): Likewise.
3234
dfbb6ac9
AM
32352006-02-17 Alan Modra <amodra@bigpond.net.au>
3236
3237 PR ld/2218
3238 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
3239 dynamic.
3240 (ppc64_elf_relocate_section): Check output reloc section size.
3241 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
3242
cedc298e
L
32432006-02-16 H.J. Lu <hongjiu.lu@intel.com>
3244
3245 PR ld/2322
3246 * elf.c (get_segment_type): New function.
3247 (_bfd_elf_print_private_bfd_data): Use it.
3248 (print_segment_map): New function.
3249 (assign_file_positions_for_segments): Call print_segment_map
3250 when there are not enough room for program headers.
3251
aaa2ab3d
NH
32522006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3253
3254 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
3255 traditional MIPS ELF targets.
3256
35ccda9e
L
32572006-02-15 H.J. Lu <hongjiu.lu@intel.com>
3258
3259 PR binutils/2338
3260 * dwarf2.c (check_function_name): New function.
3261 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
3262 check if function is correct.
3263
e0ae6d6f
AM
32642006-02-16 Alan Modra <amodra@bigpond.net.au>
3265
3266 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
3267 debug sections.
3268 (elf_link_input_bfd): Adjust comments.
3269
d55ce4e2
L
32702006-02-10 H.J. Lu <hongjiu.lu@intel.com>
3271
3272 * elf.c (copy_private_bfd_data): Minor update.
3273
84d1d650
L
32742006-02-10 H.J. Lu <hongjiu.lu@intel.com>
3275
3276 PR binutils/2258
3277 * elf.c (copy_private_bfd_data): Renamed to ...
3278 (rewrite_elf_program_header): This.
3279 (copy_elf_program_header): New function.
3280 (copy_private_bfd_data): Likewise.
3281
32822006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
3283
3284 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
3285 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
3286 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
3287 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
3288 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
3289 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
3290 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
3291 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
3292 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
3293 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
3294 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
3295 bfd_mach_mcf_isa_b_usp_float_emac): New.
3296 (bfd_default_scan): Update coldfire mapping.
3297 * bfd-in.h (bfd_m68k_mach_to_features,
3298 bfd_m68k_features_to_mach): Declare.
3299 * bfd-in2.h: Rebuilt.
3300 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
3301 adjust legacy names.
3302 (m68k_arch_features): New.
3303 (bfd_m68k_mach_to_features,
3304 bfd_m68k_features_to_mach): Define.
3305 * elf32-m68k.c (elf32_m68k_object_p): New.
3306 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
3307 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
3308 (elf_backend_object_p): Define.
3309 * ieee.c (ieee_write_processor): Update coldfire machines.
3310 * libbfd.h: Rebuilt.
3311
75eb734c
SE
33122006-02-06 Steve Ellcey <sje@cup.hp.com>
3313
3314 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
3315 if SHF_TLS is set.
3316
134dcee5
AM
33172006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
3318
05bf9422 3319 * coff-z80.c (r_imm24): New howto.
134dcee5
AM
3320 (rtype2howto): New case R_IMM24.
3321 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
3322 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
3323
4005427f
RS
33242006-02-04 Richard Sandiford <richard@codesourcery.com>
3325
3326 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
3327 has already been assigned a GOT index, copy that index to the
3328 current hash table entry.
3329
bb29dfea
EB
33302006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3331
3332 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
3333 for call-to-undefweak reloc overflow.
3334
dc669dc8
EB
33352006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3336
3337 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
3338 for 32-bit relocs overflow.
3339
1a0eb693
PB
33402006-01-27 Paul Brook <paul@codesourcery.com>
3341
3342 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
3343 objects.
3344
67a4f2b7
AO
33452006-01-18 Alexandre Oliva <aoliva@redhat.com>
3346
3347 Introduce TLS descriptors for i386 and x86_64.
3348 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
3349 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
3350 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
3351 * libbfd.h, bfd-in2.h: Rebuilt.
3352 * elf32-i386.c (elf_howto_table): New relocations.
3353 (R_386_tls): Adjust.
3354 (elf_i386_reloc_type_lookup): Map new relocations.
3355 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
3356 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
3357 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
3358 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
3359 (elf_i386_local_tlsdesc_gotent): New macro.
3360 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
3361 (elf_i386_compute_jump_table_size): New macro.
3362 (link_hash_newfunc): Initialize tlsdesc_got.
3363 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
3364 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
3365 R_386_TLS_DESC_CALL.
3366 (elf_i386_check_relocs): Likewise. Allocate space for
3367 local_tlsdesc_gotent.
3368 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
3369 R_386_TLS_DESC_CALL.
3370 (allocate_dynrelocs): Count function PLT relocations. Reserve
3371 space for TLS descriptors and relocations.
3372 (elf_i386_size_dynamic_sections): Reserve space for TLS
3373 descriptors and relocations. Set up sgotplt_jump_table_size.
3374 Don't zero reloc_count in srelplt.
3375 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
3376 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
3377 R_386_TLS_DESC_CALL.
3378 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
3379 (elf_backend_always_size_sections): Define.
3380 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
3381 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
3382 (R_X86_64_standard): Adjust.
3383 (x86_64_reloc_map): Map new relocs.
3384 (elf64_x86_64_rtype_to_howto): New, split out of...
3385 (elf64_x86_64_info_to_howto): ... this function, and...
3386 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
3387 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
3388 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
3389 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
3390 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
3391 (elf64_x86_64_local_tlsdesc_gotent): New macro.
3392 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
3393 tlsdesc_got and sgotplt_jump_table_size fields.
3394 (elf64_x86_64_compute_jump_table_size): New macro.
3395 (link_hash_newfunc): Initialize tlsdesc_got.
3396 (elf64_x86_64_link_hash_table_create): Initialize new fields.
3397 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
3398 R_X86_64_TLSDESC_CALL.
3399 (elf64_x86_64_check_relocs): Likewise. Allocate space for
3400 local_tlsdesc_gotent.
3401 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
3402 R_X86_64_TLSDESC_CALL.
3403 (allocate_dynrelocs): Count function PLT relocations. Reserve
3404 space for TLS descriptors and relocations.
3405 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
3406 descriptors and relocations. Set up sgotplt_jump_table_size,
3407 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
3408 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
3409 and DT_TLSDESC_GOT.
3410 (elf64_x86_64_always_size_sections): New. Set up
3411 _TLS_MODULE_BASE_.
3412 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
3413 R_386_TLS_DESC_CALL.
3414 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
3415 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
3416 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
3417 (elf_backend_always_size_sections): Define.
3418
6dd55cb7
L
34192006-01-17 H.J. Lu <hongjiu.lu@intel.com>
3420
3421 PR binutils/2096
3422 * dwarf2.c (comp_unit_contains_address): Update comment.
3423 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
3424 lma. Return TRUE only if both comp_unit_contains_address and
3425 comp_unit_find_nearest_line return TRUE.
3426 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
3427
64d03ab5
AM
34282006-01-18 Alan Modra <amodra@bigpond.net.au>
3429
3430 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
3431 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
3432 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
3433 elf_gc_mark_dynamic_ref_symbol. Make global.
3434 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
3435 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
3436 (elfNN_bed): Init new field.
3437 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
3438 (ppc64_elf_gc_mark_dynamic_ref): New function.
3439
b56cbdb9
AM
34402006-01-17 Alan Modra <amodra@bigpond.net.au>
3441
3442 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
3443
6c10990d
NC
34442006-01-17 Nick Clifton <nickc@redhat.com>
3445
3446 PR binutils/2159
3447 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
3448 parameters.
3449
d7f735da
NC
34502006-01-11 Nick Clifton <nickc@redhat.com>
3451
3452 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
3453 into the newly (re)allocated map array.
3454
2bfd55ca
NC
34552006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
3456
3457 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
3458
bce50a28
JJ
34592006-01-01 Jakub Jelinek <jakub@redhat.com>
3460
3461 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
3462 for .toc1 section.
3463
e88d958a 3464For older changes see ChangeLog-2005
56882138
AM
3465\f
3466Local Variables:
3467mode: change-log
3468left-margin: 8
3469fill-column: 74
3470version-control: never
3471End:
This page took 0.505213 seconds and 4 git commands to generate.