Add OpenBSD/m88k support.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
... / ...
CommitLineData
12004-05-24 Mark Kettenis <kettenis@gnu.org>
2
3 From Miod Vallat <miod@online.fr>:
4 * m88kopenbsd.c: New file.
5 * targets.c (m88k_openbsd_vec): New.
6 * config.bfd: Add m88k-*-openbsd*.
7 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
8 (m88kopenbsd_vec): New.
9 * configure: Regenerate.
10 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
11 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
12 Run "make dep-am".
13 * Makefile.in: Regenerate.
14 * po/SRC-POTFILES.in: Regenerate.
15
162004-05-24 Nick Clifton <nickc@redhat.com>
17
18 * hash.c: Remove bogus node "Changing the default Hash Table Size"
19 introduced by hash table size patch.
20
212004-05-22 Ben Elliston <bje@au.ibm.com>
22
23 * configure.in (is_release): Remove.
24 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
25 (AC_OUTPUT): Don't output bfdver.h from version.h.
26 * configure: Regenerate.
27 * Makefile.am (RELEASE): New variable.
28 (bfdver.h): New target.
29 * Makefile.in: Regenerate.
30 * doc/Makefile.in: Likewise.
31
322004-05-22 Ben Elliston <bje@au.ibm.com>
33
34 * Makefile.am (config.status): Don't depend on version.h.
35 * Makefile.in: Regenerate.
36
372004-05-22 Alan Modra <amodra@bigpond.net.au>
38
39 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
40 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
41 * libbfd.h: Regenerate.
42 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
43 (_bfd_elf_rel_local_sym): Likewise.
44 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
45 (elf_link_input_bfd): Likewise.
46 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
47 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
48 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
49 (elfNN_ia64_relocate_section): Likewise.
50
512004-05-21 Andy Chittenden <achittenden@bluearc.com>
52
53 * hash.c (bfd_default_hash_table_size): New variable.
54 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
55 (bfd_hash_set_default_size): New function. Set the default size
56 to a selected prime number close to the argument. Document new
57 function.
58 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
59 * bfd-in2.h: Regenerate.
60 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
61 * Makefile.in: Regenerate.
62
632004-05-21 Mark Kettenis <kettenis@gnu.org>
64
65 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
66 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
67 arm, m68k, m88k and hppa core files.
68
692004-05-21 Nick Clifton <nickc@redhat.com>
70
71 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
72 (bfd_bwrite): Likewise.
73 (bfd_tell): Likewise.
74 (bfd_flush): Likewise.
75 (bfd_stat): Likewise.
76 (bfd_seek): Likewise.
77 (bfd_get_mtime): Likewise.
78 (bfd_get_size): Likewise.
79
802004-05-19 Ben Elliston <bje@au.ibm.com>
81
82 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
83
842004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
85
86 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
87 (bfd_generic_openr_next_archived_file): Likewise.
88
892004-05-17 Bob Wilson <bob.wilson@acm.org>
90
91 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
92 section names by inserting a new substring after .gnu.linkonce, except
93 for .gnu.linkonce.t.* where the "t." is replaced.
94
952004-05-17 Adam Nemet <anemet@lnxw.com>
96
97 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
98 (m68-*-lynxos* case): Likewise.
99 (powerpc-*-lyxnos* case): New case.
100 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
101
1022004-05-17 David Heine <dlheine@tensilica.com>
103
104 * aout-target.h (MY_bfd_copy_private_header_data): Define.
105 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
106 * bfd.c (bfd_copy_private_header_data): Define.
107 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
108 interface.
109 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
110 * coffcode.h (coff_bfd_copy_private_header_data): Define.
111 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
112 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
113 segments by calling copy_private_bfd_data.
114 (_bfd_elf_copy_private_header_data): Define.
115 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
116 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
117 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
118 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
119 * mmo.c (mmo_bfd_copy_private_header_data): Define.
120 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
121 * som.c (som_bfd_copy_private_header_data): Define.
122 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
123 * vms.c (vms_bfd_copy_private_header_data): Define.
124 * bfd-in2.h: Regenerate.
125 * libbfd.h: Regenerate.
126
1272004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
128
129 * elfxx-mips.c (MINUS_TWO): Define.
130 (mips_elf_higher, mips_elf_highest,
131 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
132 some bfd_vma values.
133 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
134
1352004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
136
137 * som.c (log2): Rename to exact_log2. Adjust all callers.
138
1392004-05-13 Paul Brook <paul@codesourcery.com>
140
141 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
142 dwarf3 format CIE entries. Remove comment about the size of the
143 ra_column field. It is now correctly deduced.
144
1452004-05-13 Joel Sherrill <joel@oarcorp.com>
146
147 * config.bfd (or32-*-rtems*): Switch to elf.
148
1492004-05-13 Nick Clifton <nickc@redhat.com>
150
151 * po/fr.po: Updated French translation.
152
1532004-05-11 Jakub Jelinek <jakub@redhat.com>
154
155 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
156 into .dynsym if elf_section_data (sec)->dynindx <= 0.
157 Adjust counting of last_local.
158 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
159 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
160 created by the linker nor !SHF_ALLOC.
161
162 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
163 DT_PLTGOT to the start of the .got.plt section instead of the
164 .got output section. Set sh_entsize for .got section in addition
165 to .got.plt.
166 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
167 is at sgot->output_section->vma.
168 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
169 DT_PLTGOT to the start of the .got.plt section instead of the
170 .got output section.
171 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
172 is at sgot->output_section->vma. Set sh_entsize for .got section
173 in addition to .got.plt.
174 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
175 (bfd_section_from_phdr): Likewise.
176 (map_sections_to_segments): Likewise.
177 (assign_file_positions_for_segments): Likewise.
178 (get_program_header_size): Likewise.
179 * elflink.c (bfd_elf_size_dynamic_sections): Set
180 elf_tdata (output_bfd)->relro from info->relro.
181 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
182
1832004-05-08 Alexandre Oliva <aoliva@redhat.com>
184
185 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
186 a zero symndx for which we hadn't accounted a dynamic relocation.
187 (_frvfdpic_add_rofixup): Likewise.
188
1892004-05-07 Brian Ford <ford@vss.fsi.com>
190 DJ Delorie <dj@redhat.com>
191
192 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
193 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
194 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
195 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
196
1972004-05-07 Alexandre Oliva <aoliva@redhat.com>
198
199 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
200 immediately if there's no link info.
201 (elf32_frvfdpic_copy_private_bfd_data): New.
202 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
203
2042004-05-06 Zack Weinberg <zack@codesourcery.com>
205
206 * dwarf2.c (add_line_info): Also set info->filename to NULL if
207 filename argument is null; do not call strlen on a null pointer.
208
2092004-05-06 Daniel Jacobowitz <drow@mvista.com>
210
211 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
212 special case.
213
2142004-05-05 Alexandre Oliva <aoliva@redhat.com>
215
216 * configure.in (bfd_elf32_frvfdpic_vec): New.
217 * configure: Rebuilt.
218 * targets.c (bfd_elf32_frvfdpic_vec): New.
219 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
220 on the latter.
221 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
222 frvfdpic instead of frv. Rearrange elf-target macros such that
223 the FDPIC-specific ones are only defined for this new target
224 vector.
225 (bfd_elf32_frvfdpic_vec): Declare.
226 (IS_FDPIC): New.
227 (elf32_frv_relocate_section): Use it to enable segment checking
228 and to control rofixup emission. Add output section vma to
229 applied relocation in non-LOAD non-ALLOC sections. Use
230 _bfd_error_handler for errors.
231 (_frv_create_got_section): Create .rel.got and .rofixup only in
232 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
233 linker script.
234 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
235 (elf32_frvfdpic_modify_segment_map): Likewise.
236 (elf32_frv_finish_dynamic_sections): New, do-nothing.
237 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
238 error message if we miscompute the rofixup size.
239 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
240 (frvfdpic_elf_encode_eh_address): Likewise.
241 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
242 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
243 relocs. Reject unknown relocation types.
244 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
245 (frv_elf_merge_private_bfd_data): Likewise.
246 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
247 0x4000 for newly-added elf32-frvfdpic.
248
2492004-05-05 Nick Clifton <nickc@redhat.com>
250
251 PR/136
252 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
253 returning NULL as most users of this function do not check its
254 return value.
255 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
256 of bfd_cache_lookup().
257 * sco5-core.c (sco5_core_file_p): Likewise.
258 * trad-core.c (trad_unix_core_file_p): Likewise.
259
2602004-05-05 Nick Clifton <nickc@redhat.com>
261
262 * cache.c (bfd_cache_lookup): Improve formatting.
263 * archive.c: Fix formatting.
264
2652004-05-05 Peter Barada <peter@the-baradas.com>
266
267 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
268 * cpu-m68k.c(bfd_m68k_arch): Likewise.
269 * bfd-in2.h(bfd_architecture): Regenerate.
270
2712004-05-03 Alan Modra <amodra@bigpond.net.au>
272
273 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
274 SEC_MERGE sections.
275 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
276 those against discarded link-once and SEC_MERGE section symbols.
277
2782004-05-02 H.J. Lu <hongjiu.lu@intel.com>
279
280 * section.c (bfd_get_section_by_name_if): New.
281 * bfd-in2.h: Regenerated.
282
2832004-05-02 Alan Modra <amodra@bigpond.net.au>
284
285 * som.c (som_bfd_is_group_section): Define.
286
2872004-05-01 Alan Modra <amodra@bigpond.net.au>
288
289 * section.c (bfd_make_section_anyway): Copy the whole
290 bfd_hash_entry, not just "next" from existing entry.
291
2922004-04-30 H.J. Lu <hongjiu.lu@intel.com>
293
294 * elf.c (bfd_section_from_shdr): Maintain the section order in
295 a section group.
296 (special_sections): Add ".note.GNU-stack".
297 (elf_fake_sections): Handle section group for relocatable
298 link..
299
3002004-04-30 H.J. Lu <hongjiu.lu@intel.com>
301
302 * section.c (bfd_sections_find_if): New.
303 * bfd-in2.h: Regenerated.
304
3052004-04-30 Alan Modra <amodra@bigpond.net.au>
306
307 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
308
309 * elf-bfd.h (bfd_elf_is_group_section): Declare.
310 * elf.c (bfd_elf_is_group_section): New function.
311 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
312 * section.c (bfd_generic_is_group_section): New function.
313 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
314 (BFD_JUMP_TABLE_LINK): Adjust.
315 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
316 * aout-target.h (MY_bfd_is_group_section): Define.
317 * aout-tic30.c (MY_bfd_is_group_section): Define.
318 * bfd.c (bfd_is_group_section): Define.
319 * binary.c (binary_bfd_is_group_section): Define.
320 * bout.c (b_out_bfd_is_group_section): Define.
321 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
322 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
323 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
324 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
325 * coffcode.h (coff_bfd_is_group_section): Define.
326 * i386msdos.c (msdos_bfd_is_group_section): Define.
327 * i386os9k.c (os9k_bfd_is_group_section): Define.
328 * ieee.c (ieee_bfd_is_group_section): Define.
329 * ihex.c (ihex_bfd_is_group_section): Define.
330 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
331 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
332 * mmo.c (mmo_bfd_is_group_section): Define.
333 * nlm-target.h (nlm_bfd_is_group_section): Define.
334 * oasys.c (oasys_bfd_is_group_section): Define.
335 * pef.c (bfd_pef_bfd_is_group_section): Define.
336 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
337 * srec.c (srec_bfd_is_group_section): Define.
338 * tekhex.c (tekhex_bfd_is_group_section): Define.
339 * versados.c (versados_bfd_is_group_section): Define.
340 * vms.c (vms_bfd_is_group_section): Define.
341 * xsym.c (bfd_sym_bfd_is_group_section): Define.
342 * bfd-in2.h: Regenerate.
343 * libbfd.h: Regenerate.
344
3452004-04-30 Alan Modra <amodra@bigpond.net.au>
346
347 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
348
3492004-04-30 Hans-Peter Nilsson <hp@axis.com>
350
351 * configure.in: Update version to 2.15.91.
352 * configure: Regenerate.
353
3542004-04-29 Brian Ford <ford@vss.fsi.com>
355
356 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
357 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
358 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
359 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
360 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
361 .gnu.linkonce.wi. sections.
362 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
363 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
364 .gnu.linkonce.wi..
365 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
366 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
367
3682004-04-28 Chris Demetriou <cgd@broadcom.com>
369
370 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
371 * bfd-in2.h: Regenerate.
372 * libbfd.h: Likewise.
373
3742004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
375
376 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
377 dup_common fields.
378 (setup_sections): Use som_subspace_dictionary_record struct instead
379 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
380 is_comdat, is_common or dup_common.
381 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
382 is_comdat, is_common and dup_common in section subspace_dict from
383 copy_data.
384 (som_begin_writing): Use som_subspace_dictionary_record struct.
385 (som_finish_writing): Likewise.
386 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
387 is_common and dup_common flags in info for symbol. Add comment
388 regarding linker support for these fields. Slightly reorganize
389 function.
390 (som_build_and_write_symbol_table): Set is_comdat, is_common and
391 dup_common fields in symbol table from symbol info.
392 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
393 arguments. Set corresponding fields in copy_data. Change all callers.
394 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
395 symbol table.
396 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
397 * som.h (som_subspace_dictionary_record): Define.
398 (som_copyable_section_data_struct): Add is_comdat, is_common and
399 dup_common fields.
400 (som_section_data_struct): Use som_subspace_dictionary_record struct
401 instead of subspace_dictionary_record.
402 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
403
4042004-04-27 Bob Wilson <bob.wilson@acm.org>
405
406 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
407 if set. Check reloc_done flag before applying relocations. Use
408 output addresses, both when applying relocations and when comparing
409 against the specified section.
410 (elf_xtensa_relocate_section): Use output address to check if dynamic
411 reloc is in a literal pool. Set section's reloc_done flag.
412
4132004-04-27 H.J. Lu <hongjiu.lu@intel.com>
414
415 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
416 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
417 section.
418 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
419 section.
420
4212004-04-27 Alan Modra <amodra@bigpond.net.au>
422
423 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
424 structure field removed in 2004-04-24 patch.
425 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
426
427 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
428 Constify hdr arg.
429 * elf32-arm.h (elf32_arm_section_flags): Likewise.
430 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
431 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
432 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
433 field before calling elf_backend_section_flags.
434
4352004-04-24 Chris Demetriou <cgd@broadcom.com>
436
437 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
438 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
439 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
440 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
441 and BFD_RELOC_32_PCREL.
442 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
443 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
444 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
445 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
446 (mips_elf_next_relocation): Move comment about matching HI/LO
447 relocations to...
448 (_bfd_mips_elf_relocate_section): Here. Remove handling for
449 R_MIPS_GNU_REL_HI16.
450
4512004-04-23 Chris Demetriou <cgd@broadcom.com>
452
453 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
454 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
455 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
456 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
457 and update comments to reflect current usage.
458 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
459 and MIPS_R_SWITCH, as well as several empty entries. Update comment
460 for MIPS_R_PCREL16.
461 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
462 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
463 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
464 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
465 type number to be MIPS_R_PCREL16.
466 (mips_relocate_section): Remove support for link-time relaxation
467 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
468 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
469 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
470 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
471 relaxation of branches used by embedded-PIC.
472 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
473 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
474 related members, update comment.
475 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
476 code related to embedded-PIC.
477 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
478 initialization of now-removed 'adjust' member of
479 'struct ecoff_debug_info'.
480
4812004-04-23 Chris Demetriou <cgd@broadcom.com>
482
483 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
484
4852004-04-21 Philip Blundell <pb@nexus.co.uk>
486
487 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
488 relocs for locally defined symbols during -shared final link.
489 (elf32_arm_final_link_relocate): Likewise.
490
4912004-04-22 Jakub Jelinek <jakub@redhat.com>
492
493 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
494 ELF_LINK_POINTER_EQUALITY_NEEDED.
495 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
496 if r_type is not R_X86_64_PC32.
497 (elf64_x86_64_finish_dynamic_symbol): If
498 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
499 SHN_UNDEF symbols.
500
5012004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
502
503 * elf32-sh.c (sh_elf_plt_sym_val): New function.
504 (elf_backend_plt_sym_val): Define.
505
5062004-04-22 Andrew Cagney <cagney@redhat.com>
507
508 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
509
5102004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
511
512 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
513 make_bfd_asection.
514 * som.c (som_set_section_contents): Constantify second argument.
515 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
516 (som_object_setup): Rework to avoid warning.
517 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
518 Likewise.
519
5202004-04-22 Andrew Cagney <cagney@redhat.com>
521
522 * cache.c (bfd_cache_close): Check for a previously closed file.
523
5242004-04-22 Jakub Jelinek <jakub@redhat.com>
525
526 * bfd.c (bfd_get_synthetic_symtab): Define.
527 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
528 NAME##_get_synthetic_symtab.
529 (struct bfd_target): Add _bfd_get_synthetic_symtab.
530 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
531 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
532 relplt_name fields.
533 (_bfd_elf_get_synthetic_symtab): New prototype.
534 * elfcode.h (elf_get_synthetic_symtab): Define.
535 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
536 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
537 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
538 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
539 * bfd-in2.h: Rebuilt.
540 * libbfd.h: Rebuilt.
541 * elf32-i386.c (elf_i386_plt_sym_val): New function.
542 (elf_backend_plt_sym_val): Define.
543 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
544 (elf_backend_plt_sym_val): Define.
545 * elf32-s390.c (elf_s390_plt_sym_val): New function.
546 (elf_backend_plt_sym_val): Define.
547 * elf64-s390.c (elf_s390_plt_sym_val): New function.
548 (elf_backend_plt_sym_val): Define.
549 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
550 (elf_backend_plt_sym_val): Define.
551 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
552 (elf_backend_plt_sym_val): Define.
553 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
554 (elf_backend_plt_sym_val): Define.
555 * aout-target.h (MY_get_synthetic_symtab): Define.
556 * aout-tic30.c (MY_get_synthetic_symtab): Define.
557 * coff-rs6000.c (rs6000coff_vec): Add
558 _bfd_nodynamic_get_synthetic_symtab.
559 (pmac_xcoff_vec): Likewise.
560 * coff64-rs6000.c (rs6000coff64_vec): Add
561 _bfd_nodynamic_get_synthetic_symtab.
562 (aix5coff64_vec): Likewise.
563 * sunos.c (MY_get_synthetic_symtab): Define.
564 * vms.c (vms_get_synthetic_symtab): Define.
565
5662004-04-22 Nick Clifton <nickc@redhat.com>
567
568 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
569
5702004-04-22 Peter Barada <peter@the-baradas.com>
571
572 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
573 * bfd2-in.h: Regenerate.
574 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
575
5762004-04-21 Chris Demetriou <cgd@broadcom.com>
577
578 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
579 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
580 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
581 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
582 * bfd-in2.h: Regenerate.
583
5842004-04-21 Bob Wilson <bob.wilson@acm.org>
585
586 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
587 require relocations against a weak symbol to reference the same
588 symbol hash entry if not a final, static link.
589 (get_cached_value, add_value_map): Add final_static_link argument.
590 (remove_literals): Pass final_static_link argument as needed.
591
5922004-04-21 Andrew Cagney <cagney@redhat.com>
593
594 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
595 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
596 (opncls_bwrite, opncls_bclose, opncls_bflush)
597 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
598 bfd iovec that uses function callbacks.
599 (bfd_close): Use the iovec's bclose.
600 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
601 (cache_bclose, cache_bflush, cache_bstat)
602 (cache_iovec): New functions and global variable, implement a
603 cache "iovec", where applicable set bfd_error.
604 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
605 * bfdio.c (struct bfd_iovec): Define.
606 (real_read): Delete function.
607 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
608 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
609 assume that bread and bwrite set bfd_error.
610 * bfd.c (struct bfd): Add "iovec", update comments.
611 * bfd-in2.h, libbfd.h: Re-generate.
612
6132004-04-21 Andrew Cagney <cagney@redhat.com>
614
615 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
616
6172004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
618
619 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
620 (bfd_elf_gc_sections): Fail if a shared object is being created.
621 Do not fail if dynamic sections have been created. Instead call
622 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
623 dynamically referenced symbols. Do not mark the whole graph
624 rooted at .eh_frame, only the section proper.
625
6262004-04-20 DJ Delorie <dj@redhat.com>
627
628 * reloc.c: Add BFD_RELOC_32_SECREL.
629 * bfd-in2.h: Regenerate.
630 * libbfd.h: Likewise.
631 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
632 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
633 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
634
6352004-04-19 Jakub Jelinek <jakub@redhat.com>
636
637 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
638 relocs against hidden/protected undefweak symbols properly.
639 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
640
6412004-04-18 Mark Kettenis <kettenis@gnu.org>
642
643 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
644 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
645 core files.
646
6472004-04-17 Brian Ford <ford@vss.fsi.com>
648
649 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
650 filepos for the SizeOfHeaders field.
651 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
652 overflow.
653 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
654
6552004-04-16 Alan Modra <amodra@bigpond.net.au>
656
657 * simple.c (bfd_simple_get_relocated_section_contents): Don't
658 change reloc_done. Set and restore _cooked_size.
659 (RETURN): Delete.
660
6612004-04-15 Mark Kettenis <kettenis@gnu.org>
662
663 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
664 core files.
665
6662004-04-15 Nick Clifton <nickc@redhat.com>
667
668 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
669
6702004-04-15 Alan Modra <amodra@bigpond.net.au>
671
672 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
673
6742004-04-15 H.J. Lu <hongjiu.lu@intel.com>
675
676 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
677 when it is a definition.
678
6792004-04-14 Alan Modra <amodra@bigpond.net.au>
680
681 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
682 when statically linking PIC code.
683 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
684
6852004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
686
687 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
688 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
689 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
690 * configure: Regenerate.
691
6922004-04-08 Richard Sandiford <rsandifo@redhat.com>
693
694 * elflink.c: Include libiberty.h.
695 * Makefile.am (elflink.lo): Depend on libiberty.h.
696 * Makefile.in: Regenerate.
697
6982004-04-06 Daniel Jacobowitz <drow@mvista.com>
699
700 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
701 ".MIPS.stubs".
702
7032004-04-05 H.J. Lu <hongjiu.lu@intel.com>
704
705 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
706 reserve the memory for dynamic linker
707
7082004-04-05 Mark Kettenis <kettenis@gnu.org>
709
710 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
711 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
712
7132004-04-02 H.J. Lu <hongjiu.lu@intel.com>
714
715 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
716 RELOC_FOR_GLOBAL_SYMBOL.
717 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
718
7192004-04-02 H.J. Lu <hongjiu.lu@intel.com>
720
721 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
722 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
723
7242004-04-01 Paul Brook <paul@codesourcery.com>
725
726 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
727 * elf32-arm.h (struct elf32_elf_section_map): New.
728 (struct _arm_elf_section_data): New.
729 (elf32_arm_section_data): Define.
730 (struct elf32_arm_link_hash_table): Add byteswap_code.
731 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
732 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
733 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
734 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
735 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
736 (bfd_elf32_new_section_hook, elf_backend_write_section,
737 elf_backend_link_output_symbol_hook): Define.
738
7392004-04-01 Andy Chittenden <achittenden@bluearc.com>
740
741 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
742 that keeps the characters in a B_INCL..B_EINCL range.
743 (_bfd_link_section_stabs): When computing the sum of the
744 characters in a B_INCL..B_EINCL range also keep a copy of those
745 characters. Use this information to distinguish between
746 include sections that have the same sum and the same length
747 but which are nevertheless unique.
748
7492004-03-31 Paul Brook <paul@codesourcery.com>
750
751 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
752 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
753
7542004-03-31 Andy Chittenden <achittenden@bluearc.com>
755
756 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
757 to 'sum_chars' and add field 'num_chars'.
758 (_bfd_link_section_stabs): When computing the sum of the
759 characters in a B_INCL..B_EINCL range also keep a count of the
760 number of characters. Use this information to help distinguish
761 between include sections when have the same sum but which
762 nevertheless are still unique.
763