binutils ChangeLog:
[deliverable/binutils-gdb.git] / bfd / ChangeLog
... / ...
CommitLineData
12004-05-17 David Heine <dlheine@tensilica.com>
2
3 * aout-target.h (MY_bfd_copy_private_header_data): Define.
4 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
5 * bfd.c (bfd_copy_private_header_data): Define.
6 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
7 interface.
8 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
9 * coffcode.h (coff_bfd_copy_private_header_data): Define.
10 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
11 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
12 segments by calling copy_private_bfd_data.
13 (_bfd_elf_copy_private_header_data): Define.
14 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
15 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
16 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
17 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
18 * mmo.c (mmo_bfd_copy_private_header_data): Define.
19 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
20 * som.c (som_bfd_copy_private_header_data): Define.
21 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
22 * vms.c (vms_bfd_copy_private_header_data): Define.
23 * bfd-in2.h: Regenerate.
24 * libbfd.h: Regenerate.
25
262004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
27
28 * elfxx-mips.c (MINUS_TWO): Define.
29 (mips_elf_higher, mips_elf_highest,
30 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
31 some bfd_vma values.
32 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
33
342004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35
36 * som.c (log2): Rename to exact_log2. Adjust all callers.
37
382004-05-13 Paul Brook <paul@codesourcery.com>
39
40 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
41 dwarf3 format CIE entries. Remove comment about the size of the
42 ra_column field. It is now correctly deduced.
43
442004-05-13 Joel Sherrill <joel@oarcorp.com>
45
46 * config.bfd (or32-*-rtems*): Switch to elf.
47
482004-05-13 Nick Clifton <nickc@redhat.com>
49
50 * po/fr.po: Updated French translation.
51
522004-05-11 Jakub Jelinek <jakub@redhat.com>
53
54 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
55 into .dynsym if elf_section_data (sec)->dynindx <= 0.
56 Adjust counting of last_local.
57 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
58 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
59 created by the linker nor !SHF_ALLOC.
60
61 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
62 DT_PLTGOT to the start of the .got.plt section instead of the
63 .got output section. Set sh_entsize for .got section in addition
64 to .got.plt.
65 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
66 is at sgot->output_section->vma.
67 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
68 DT_PLTGOT to the start of the .got.plt section instead of the
69 .got output section.
70 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
71 is at sgot->output_section->vma. Set sh_entsize for .got section
72 in addition to .got.plt.
73 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
74 (bfd_section_from_phdr): Likewise.
75 (map_sections_to_segments): Likewise.
76 (assign_file_positions_for_segments): Likewise.
77 (get_program_header_size): Likewise.
78 * elflink.c (bfd_elf_size_dynamic_sections): Set
79 elf_tdata (output_bfd)->relro from info->relro.
80 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
81
822004-05-08 Alexandre Oliva <aoliva@redhat.com>
83
84 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
85 a zero symndx for which we hadn't accounted a dynamic relocation.
86 (_frvfdpic_add_rofixup): Likewise.
87
882004-05-07 Brian Ford <ford@vss.fsi.com>
89 DJ Delorie <dj@redhat.com>
90
91 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
92 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
93 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
94 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
95
962004-05-07 Alexandre Oliva <aoliva@redhat.com>
97
98 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
99 immediately if there's no link info.
100 (elf32_frvfdpic_copy_private_bfd_data): New.
101 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
102
1032004-05-06 Zack Weinberg <zack@codesourcery.com>
104
105 * dwarf2.c (add_line_info): Also set info->filename to NULL if
106 filename argument is null; do not call strlen on a null pointer.
107
1082004-05-06 Daniel Jacobowitz <drow@mvista.com>
109
110 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
111 special case.
112
1132004-05-05 Alexandre Oliva <aoliva@redhat.com>
114
115 * configure.in (bfd_elf32_frvfdpic_vec): New.
116 * configure: Rebuilt.
117 * targets.c (bfd_elf32_frvfdpic_vec): New.
118 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
119 on the latter.
120 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
121 frvfdpic instead of frv. Rearrange elf-target macros such that
122 the FDPIC-specific ones are only defined for this new target
123 vector.
124 (bfd_elf32_frvfdpic_vec): Declare.
125 (IS_FDPIC): New.
126 (elf32_frv_relocate_section): Use it to enable segment checking
127 and to control rofixup emission. Add output section vma to
128 applied relocation in non-LOAD non-ALLOC sections. Use
129 _bfd_error_handler for errors.
130 (_frv_create_got_section): Create .rel.got and .rofixup only in
131 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
132 linker script.
133 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
134 (elf32_frvfdpic_modify_segment_map): Likewise.
135 (elf32_frv_finish_dynamic_sections): New, do-nothing.
136 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
137 error message if we miscompute the rofixup size.
138 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
139 (frvfdpic_elf_encode_eh_address): Likewise.
140 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
141 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
142 relocs. Reject unknown relocation types.
143 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
144 (frv_elf_merge_private_bfd_data): Likewise.
145 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
146 0x4000 for newly-added elf32-frvfdpic.
147
1482004-05-05 Nick Clifton <nickc@redhat.com>
149
150 PR/136
151 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
152 returning NULL as most users of this function do not check its
153 return value.
154 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
155 of bfd_cache_lookup().
156 * sco5-core.c (sco5_core_file_p): Likewise.
157 * trad-core.c (trad_unix_core_file_p): Likewise.
158
1592004-05-05 Nick Clifton <nickc@redhat.com>
160
161 * cache.c (bfd_cache_lookup): Improve formatting.
162 * archive.c: Fix formatting.
163
1642004-05-05 Peter Barada <peter@the-baradas.com>
165
166 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
167 * cpu-m68k.c(bfd_m68k_arch): Likewise.
168 * bfd-in2.h(bfd_architecture): Regenerate.
169
1702004-05-03 Alan Modra <amodra@bigpond.net.au>
171
172 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
173 SEC_MERGE sections.
174 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
175 those against discarded link-once and SEC_MERGE section symbols.
176
1772004-05-02 H.J. Lu <hongjiu.lu@intel.com>
178
179 * section.c (bfd_get_section_by_name_if): New.
180 * bfd-in2.h: Regenerated.
181
1822004-05-02 Alan Modra <amodra@bigpond.net.au>
183
184 * som.c (som_bfd_is_group_section): Define.
185
1862004-05-01 Alan Modra <amodra@bigpond.net.au>
187
188 * section.c (bfd_make_section_anyway): Copy the whole
189 bfd_hash_entry, not just "next" from existing entry.
190
1912004-04-30 H.J. Lu <hongjiu.lu@intel.com>
192
193 * elf.c (bfd_section_from_shdr): Maintain the section order in
194 a section group.
195 (special_sections): Add ".note.GNU-stack".
196 (elf_fake_sections): Handle section group for relocatable
197 link..
198
1992004-04-30 H.J. Lu <hongjiu.lu@intel.com>
200
201 * section.c (bfd_sections_find_if): New.
202 * bfd-in2.h: Regenerated.
203
2042004-04-30 Alan Modra <amodra@bigpond.net.au>
205
206 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
207
208 * elf-bfd.h (bfd_elf_is_group_section): Declare.
209 * elf.c (bfd_elf_is_group_section): New function.
210 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
211 * section.c (bfd_generic_is_group_section): New function.
212 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
213 (BFD_JUMP_TABLE_LINK): Adjust.
214 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
215 * aout-target.h (MY_bfd_is_group_section): Define.
216 * aout-tic30.c (MY_bfd_is_group_section): Define.
217 * bfd.c (bfd_is_group_section): Define.
218 * binary.c (binary_bfd_is_group_section): Define.
219 * bout.c (b_out_bfd_is_group_section): Define.
220 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
221 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
222 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
223 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
224 * coffcode.h (coff_bfd_is_group_section): Define.
225 * i386msdos.c (msdos_bfd_is_group_section): Define.
226 * i386os9k.c (os9k_bfd_is_group_section): Define.
227 * ieee.c (ieee_bfd_is_group_section): Define.
228 * ihex.c (ihex_bfd_is_group_section): Define.
229 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
230 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
231 * mmo.c (mmo_bfd_is_group_section): Define.
232 * nlm-target.h (nlm_bfd_is_group_section): Define.
233 * oasys.c (oasys_bfd_is_group_section): Define.
234 * pef.c (bfd_pef_bfd_is_group_section): Define.
235 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
236 * srec.c (srec_bfd_is_group_section): Define.
237 * tekhex.c (tekhex_bfd_is_group_section): Define.
238 * versados.c (versados_bfd_is_group_section): Define.
239 * vms.c (vms_bfd_is_group_section): Define.
240 * xsym.c (bfd_sym_bfd_is_group_section): Define.
241 * bfd-in2.h: Regenerate.
242 * libbfd.h: Regenerate.
243
2442004-04-30 Alan Modra <amodra@bigpond.net.au>
245
246 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
247
2482004-04-30 Hans-Peter Nilsson <hp@axis.com>
249
250 * configure.in: Update version to 2.15.91.
251 * configure: Regenerate.
252
2532004-04-29 Brian Ford <ford@vss.fsi.com>
254
255 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
256 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
257 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
258 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
259 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
260 .gnu.linkonce.wi. sections.
261 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
262 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
263 .gnu.linkonce.wi..
264 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
265 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
266
2672004-04-28 Chris Demetriou <cgd@broadcom.com>
268
269 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
270 * bfd-in2.h: Regenerate.
271 * libbfd.h: Likewise.
272
2732004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
274
275 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
276 dup_common fields.
277 (setup_sections): Use som_subspace_dictionary_record struct instead
278 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
279 is_comdat, is_common or dup_common.
280 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
281 is_comdat, is_common and dup_common in section subspace_dict from
282 copy_data.
283 (som_begin_writing): Use som_subspace_dictionary_record struct.
284 (som_finish_writing): Likewise.
285 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
286 is_common and dup_common flags in info for symbol. Add comment
287 regarding linker support for these fields. Slightly reorganize
288 function.
289 (som_build_and_write_symbol_table): Set is_comdat, is_common and
290 dup_common fields in symbol table from symbol info.
291 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
292 arguments. Set corresponding fields in copy_data. Change all callers.
293 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
294 symbol table.
295 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
296 * som.h (som_subspace_dictionary_record): Define.
297 (som_copyable_section_data_struct): Add is_comdat, is_common and
298 dup_common fields.
299 (som_section_data_struct): Use som_subspace_dictionary_record struct
300 instead of subspace_dictionary_record.
301 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
302
3032004-04-27 Bob Wilson <bob.wilson@acm.org>
304
305 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
306 if set. Check reloc_done flag before applying relocations. Use
307 output addresses, both when applying relocations and when comparing
308 against the specified section.
309 (elf_xtensa_relocate_section): Use output address to check if dynamic
310 reloc is in a literal pool. Set section's reloc_done flag.
311
3122004-04-27 H.J. Lu <hongjiu.lu@intel.com>
313
314 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
315 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
316 section.
317 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
318 section.
319
3202004-04-27 Alan Modra <amodra@bigpond.net.au>
321
322 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
323 structure field removed in 2004-04-24 patch.
324 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
325
326 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
327 Constify hdr arg.
328 * elf32-arm.h (elf32_arm_section_flags): Likewise.
329 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
330 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
331 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
332 field before calling elf_backend_section_flags.
333
3342004-04-24 Chris Demetriou <cgd@broadcom.com>
335
336 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
337 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
338 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
339 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
340 and BFD_RELOC_32_PCREL.
341 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
342 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
343 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
344 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
345 (mips_elf_next_relocation): Move comment about matching HI/LO
346 relocations to...
347 (_bfd_mips_elf_relocate_section): Here. Remove handling for
348 R_MIPS_GNU_REL_HI16.
349
3502004-04-23 Chris Demetriou <cgd@broadcom.com>
351
352 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
353 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
354 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
355 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
356 and update comments to reflect current usage.
357 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
358 and MIPS_R_SWITCH, as well as several empty entries. Update comment
359 for MIPS_R_PCREL16.
360 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
361 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
362 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
363 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
364 type number to be MIPS_R_PCREL16.
365 (mips_relocate_section): Remove support for link-time relaxation
366 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
367 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
368 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
369 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
370 relaxation of branches used by embedded-PIC.
371 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
372 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
373 related members, update comment.
374 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
375 code related to embedded-PIC.
376 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
377 initialization of now-removed 'adjust' member of
378 'struct ecoff_debug_info'.
379
3802004-04-23 Chris Demetriou <cgd@broadcom.com>
381
382 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
383
3842004-04-21 Philip Blundell <pb@nexus.co.uk>
385
386 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
387 relocs for locally defined symbols during -shared final link.
388 (elf32_arm_final_link_relocate): Likewise.
389
3902004-04-22 Jakub Jelinek <jakub@redhat.com>
391
392 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
393 ELF_LINK_POINTER_EQUALITY_NEEDED.
394 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
395 if r_type is not R_X86_64_PC32.
396 (elf64_x86_64_finish_dynamic_symbol): If
397 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
398 SHN_UNDEF symbols.
399
4002004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
401
402 * elf32-sh.c (sh_elf_plt_sym_val): New function.
403 (elf_backend_plt_sym_val): Define.
404
4052004-04-22 Andrew Cagney <cagney@redhat.com>
406
407 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
408
4092004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
410
411 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
412 make_bfd_asection.
413 * som.c (som_set_section_contents): Constantify second argument.
414 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
415 (som_object_setup): Rework to avoid warning.
416 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
417 Likewise.
418
4192004-04-22 Andrew Cagney <cagney@redhat.com>
420
421 * cache.c (bfd_cache_close): Check for a previously closed file.
422
4232004-04-22 Jakub Jelinek <jakub@redhat.com>
424
425 * bfd.c (bfd_get_synthetic_symtab): Define.
426 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
427 NAME##_get_synthetic_symtab.
428 (struct bfd_target): Add _bfd_get_synthetic_symtab.
429 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
430 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
431 relplt_name fields.
432 (_bfd_elf_get_synthetic_symtab): New prototype.
433 * elfcode.h (elf_get_synthetic_symtab): Define.
434 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
435 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
436 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
437 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
438 * bfd-in2.h: Rebuilt.
439 * libbfd.h: Rebuilt.
440 * elf32-i386.c (elf_i386_plt_sym_val): New function.
441 (elf_backend_plt_sym_val): Define.
442 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
443 (elf_backend_plt_sym_val): Define.
444 * elf32-s390.c (elf_s390_plt_sym_val): New function.
445 (elf_backend_plt_sym_val): Define.
446 * elf64-s390.c (elf_s390_plt_sym_val): New function.
447 (elf_backend_plt_sym_val): Define.
448 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
449 (elf_backend_plt_sym_val): Define.
450 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
451 (elf_backend_plt_sym_val): Define.
452 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
453 (elf_backend_plt_sym_val): Define.
454 * aout-target.h (MY_get_synthetic_symtab): Define.
455 * aout-tic30.c (MY_get_synthetic_symtab): Define.
456 * coff-rs6000.c (rs6000coff_vec): Add
457 _bfd_nodynamic_get_synthetic_symtab.
458 (pmac_xcoff_vec): Likewise.
459 * coff64-rs6000.c (rs6000coff64_vec): Add
460 _bfd_nodynamic_get_synthetic_symtab.
461 (aix5coff64_vec): Likewise.
462 * sunos.c (MY_get_synthetic_symtab): Define.
463 * vms.c (vms_get_synthetic_symtab): Define.
464
4652004-04-22 Nick Clifton <nickc@redhat.com>
466
467 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
468
4692004-04-22 Peter Barada <peter@the-baradas.com>
470
471 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
472 * bfd2-in.h: Regenerate.
473 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
474
4752004-04-21 Chris Demetriou <cgd@broadcom.com>
476
477 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
478 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
479 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
480 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
481 * bfd-in2.h: Regenerate.
482
4832004-04-21 Bob Wilson <bob.wilson@acm.org>
484
485 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
486 require relocations against a weak symbol to reference the same
487 symbol hash entry if not a final, static link.
488 (get_cached_value, add_value_map): Add final_static_link argument.
489 (remove_literals): Pass final_static_link argument as needed.
490
4912004-04-21 Andrew Cagney <cagney@redhat.com>
492
493 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
494 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
495 (opncls_bwrite, opncls_bclose, opncls_bflush)
496 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
497 bfd iovec that uses function callbacks.
498 (bfd_close): Use the iovec's bclose.
499 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
500 (cache_bclose, cache_bflush, cache_bstat)
501 (cache_iovec): New functions and global variable, implement a
502 cache "iovec", where applicable set bfd_error.
503 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
504 * bfdio.c (struct bfd_iovec): Define.
505 (real_read): Delete function.
506 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
507 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
508 assume that bread and bwrite set bfd_error.
509 * bfd.c (struct bfd): Add "iovec", update comments.
510 * bfd-in2.h, libbfd.h: Re-generate.
511
5122004-04-21 Andrew Cagney <cagney@redhat.com>
513
514 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
515
5162004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
517
518 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
519 (bfd_elf_gc_sections): Fail if a shared object is being created.
520 Do not fail if dynamic sections have been created. Instead call
521 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
522 dynamically referenced symbols. Do not mark the whole graph
523 rooted at .eh_frame, only the section proper.
524
5252004-04-20 DJ Delorie <dj@redhat.com>
526
527 * reloc.c: Add BFD_RELOC_32_SECREL.
528 * bfd-in2.h: Regenerate.
529 * libbfd.h: Likewise.
530 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
531 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
532 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
533
5342004-04-19 Jakub Jelinek <jakub@redhat.com>
535
536 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
537 relocs against hidden/protected undefweak symbols properly.
538 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
539
5402004-04-18 Mark Kettenis <kettenis@gnu.org>
541
542 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
543 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
544 core files.
545
5462004-04-17 Brian Ford <ford@vss.fsi.com>
547
548 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
549 filepos for the SizeOfHeaders field.
550 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
551 overflow.
552 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
553
5542004-04-16 Alan Modra <amodra@bigpond.net.au>
555
556 * simple.c (bfd_simple_get_relocated_section_contents): Don't
557 change reloc_done. Set and restore _cooked_size.
558 (RETURN): Delete.
559
5602004-04-15 Mark Kettenis <kettenis@gnu.org>
561
562 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
563 core files.
564
5652004-04-15 Nick Clifton <nickc@redhat.com>
566
567 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
568
5692004-04-15 Alan Modra <amodra@bigpond.net.au>
570
571 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
572
5732004-04-15 H.J. Lu <hongjiu.lu@intel.com>
574
575 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
576 when it is a definition.
577
5782004-04-14 Alan Modra <amodra@bigpond.net.au>
579
580 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
581 when statically linking PIC code.
582 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
583
5842004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
585
586 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
587 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
588 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
589 * configure: Regenerate.
590
5912004-04-08 Richard Sandiford <rsandifo@redhat.com>
592
593 * elflink.c: Include libiberty.h.
594 * Makefile.am (elflink.lo): Depend on libiberty.h.
595 * Makefile.in: Regenerate.
596
5972004-04-06 Daniel Jacobowitz <drow@mvista.com>
598
599 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
600 ".MIPS.stubs".
601
6022004-04-05 H.J. Lu <hongjiu.lu@intel.com>
603
604 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
605 reserve the memory for dynamic linker
606
6072004-04-05 Mark Kettenis <kettenis@gnu.org>
608
609 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
610 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
611
6122004-04-02 H.J. Lu <hongjiu.lu@intel.com>
613
614 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
615 RELOC_FOR_GLOBAL_SYMBOL.
616 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
617
6182004-04-02 H.J. Lu <hongjiu.lu@intel.com>
619
620 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
621 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
622
6232004-04-01 Paul Brook <paul@codesourcery.com>
624
625 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
626 * elf32-arm.h (struct elf32_elf_section_map): New.
627 (struct _arm_elf_section_data): New.
628 (elf32_arm_section_data): Define.
629 (struct elf32_arm_link_hash_table): Add byteswap_code.
630 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
631 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
632 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
633 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
634 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
635 (bfd_elf32_new_section_hook, elf_backend_write_section,
636 elf_backend_link_output_symbol_hook): Define.
637
6382004-04-01 Andy Chittenden <achittenden@bluearc.com>
639
640 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
641 that keeps the characters in a B_INCL..B_EINCL range.
642 (_bfd_link_section_stabs): When computing the sum of the
643 characters in a B_INCL..B_EINCL range also keep a copy of those
644 characters. Use this information to distinguish between
645 include sections that have the same sum and the same length
646 but which are nevertheless unique.
647
6482004-03-31 Paul Brook <paul@codesourcery.com>
649
650 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
651 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
652
6532004-03-31 Andy Chittenden <achittenden@bluearc.com>
654
655 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
656 to 'sum_chars' and add field 'num_chars'.
657 (_bfd_link_section_stabs): When computing the sum of the
658 characters in a B_INCL..B_EINCL range also keep a count of the
659 number of characters. Use this information to help distinguish
660 between include sections when have the same sum but which
661 nevertheless are still unique.
662