* libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
8377c19c
MK
12004-05-21 Mark Kettenis <kettenis@gnu.org>
2
3 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
4 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
5 arm, m68k, m88k and hppa core files.
6
69fd4758
NC
72004-05-21 Nick Clifton <nickc@redhat.com>
8
9 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
10 (bfd_bwrite): Likewise.
11 (bfd_tell): Likewise.
12 (bfd_flush): Likewise.
13 (bfd_stat): Likewise.
14 (bfd_seek): Likewise.
15 (bfd_get_mtime): Likewise.
16 (bfd_get_size): Likewise.
17
cd917290
BE
182004-05-19 Ben Elliston <bje@au.ibm.com>
19
20 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
21
1b09e940
NC
222004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
23
24 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
25 (bfd_generic_openr_next_archived_file): Likewise.
26
096c35a7
BW
272004-05-17 Bob Wilson <bob.wilson@acm.org>
28
29 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
30 section names by inserting a new substring after .gnu.linkonce, except
31 for .gnu.linkonce.t.* where the "t." is replaced.
32
b2d65c0b
NC
332004-05-17 Adam Nemet <anemet@lnxw.com>
34
35 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
36 (m68-*-lynxos* case): Likewise.
37 (powerpc-*-lyxnos* case): New case.
38 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
39
80fccad2
BW
402004-05-17 David Heine <dlheine@tensilica.com>
41
42 * aout-target.h (MY_bfd_copy_private_header_data): Define.
43 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
44 * bfd.c (bfd_copy_private_header_data): Define.
45 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
46 interface.
47 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
48 * coffcode.h (coff_bfd_copy_private_header_data): Define.
49 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
50 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
51 segments by calling copy_private_bfd_data.
52 (_bfd_elf_copy_private_header_data): Define.
53 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
54 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
55 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
56 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
57 * mmo.c (mmo_bfd_copy_private_header_data): Define.
58 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
59 * som.c (som_bfd_copy_private_header_data): Define.
60 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
61 * vms.c (vms_bfd_copy_private_header_data): Define.
62 * bfd-in2.h: Regenerate.
63 * libbfd.h: Regenerate.
64
c5ae1840
TS
652004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
66
67 * elfxx-mips.c (MINUS_TWO): Define.
68 (mips_elf_higher, mips_elf_highest,
69 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
70 some bfd_vma values.
71 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
72
a99cf92b
DA
732004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
74
75 * som.c (log2): Rename to exact_log2. Adjust all callers.
76
0da76f83
NC
772004-05-13 Paul Brook <paul@codesourcery.com>
78
c273895f 79 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
80 dwarf3 format CIE entries. Remove comment about the size of the
81 ra_column field. It is now correctly deduced.
0da76f83 82
4b363073
NC
832004-05-13 Joel Sherrill <joel@oarcorp.com>
84
85 * config.bfd (or32-*-rtems*): Switch to elf.
86
9598fbe5
NC
872004-05-13 Nick Clifton <nickc@redhat.com>
88
89 * po/fr.po: Updated French translation.
90
8c37241b
JJ
912004-05-11 Jakub Jelinek <jakub@redhat.com>
92
93 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
94 into .dynsym if elf_section_data (sec)->dynindx <= 0.
95 Adjust counting of last_local.
96 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
97 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
98 created by the linker nor !SHF_ALLOC.
99
100 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
101 DT_PLTGOT to the start of the .got.plt section instead of the
102 .got output section. Set sh_entsize for .got section in addition
103 to .got.plt.
104 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
105 is at sgot->output_section->vma.
106 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
107 DT_PLTGOT to the start of the .got.plt section instead of the
108 .got output section.
109 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
110 is at sgot->output_section->vma. Set sh_entsize for .got section
111 in addition to .got.plt.
112 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
113 (bfd_section_from_phdr): Likewise.
114 (map_sections_to_segments): Likewise.
115 (assign_file_positions_for_segments): Likewise.
116 (get_program_header_size): Likewise.
117 * elflink.c (bfd_elf_size_dynamic_sections): Set
118 elf_tdata (output_bfd)->relro from info->relro.
119 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
120
3f980e41
AO
1212004-05-08 Alexandre Oliva <aoliva@redhat.com>
122
123 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
124 a zero symndx for which we hadn't accounted a dynamic relocation.
125 (_frvfdpic_add_rofixup): Likewise.
126
d70270c5
BF
1272004-05-07 Brian Ford <ford@vss.fsi.com>
128 DJ Delorie <dj@redhat.com>
129
130 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
131 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
132 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
133 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
134
7e9f3bd6
AO
1352004-05-07 Alexandre Oliva <aoliva@redhat.com>
136
137 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
138 immediately if there's no link info.
139 (elf32_frvfdpic_copy_private_bfd_data): New.
140 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
141
eb61d2d6
ZW
1422004-05-06 Zack Weinberg <zack@codesourcery.com>
143
144 * dwarf2.c (add_line_info): Also set info->filename to NULL if
145 filename argument is null; do not call strlen on a null pointer.
146
ecb2d096
DJ
1472004-05-06 Daniel Jacobowitz <drow@mvista.com>
148
149 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
150 special case.
151
43850d5b
AO
1522004-05-05 Alexandre Oliva <aoliva@redhat.com>
153
154 * configure.in (bfd_elf32_frvfdpic_vec): New.
155 * configure: Rebuilt.
156 * targets.c (bfd_elf32_frvfdpic_vec): New.
157 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
158 on the latter.
159 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
160 frvfdpic instead of frv. Rearrange elf-target macros such that
161 the FDPIC-specific ones are only defined for this new target
162 vector.
163 (bfd_elf32_frvfdpic_vec): Declare.
164 (IS_FDPIC): New.
165 (elf32_frv_relocate_section): Use it to enable segment checking
166 and to control rofixup emission. Add output section vma to
167 applied relocation in non-LOAD non-ALLOC sections. Use
168 _bfd_error_handler for errors.
169 (_frv_create_got_section): Create .rel.got and .rofixup only in
170 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
171 linker script.
172 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
173 (elf32_frvfdpic_modify_segment_map): Likewise.
174 (elf32_frv_finish_dynamic_sections): New, do-nothing.
175 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
176 error message if we miscompute the rofixup size.
177 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
178 (frvfdpic_elf_encode_eh_address): Likewise.
179 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
180 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
181 relocs. Reject unknown relocation types.
182 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
183 (frv_elf_merge_private_bfd_data): Likewise.
184 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
185 0x4000 for newly-added elf32-frvfdpic.
186
06fc8a8c
NC
1872004-05-05 Nick Clifton <nickc@redhat.com>
188
189 PR/136
190 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
191 returning NULL as most users of this function do not check its
192 return value.
33216455
NC
193 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
194 of bfd_cache_lookup().
195 * sco5-core.c (sco5_core_file_p): Likewise.
196 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
197
1982004-05-05 Nick Clifton <nickc@redhat.com>
199
200 * cache.c (bfd_cache_lookup): Improve formatting.
201 * archive.c: Fix formatting.
202
6b6e92f4
NC
2032004-05-05 Peter Barada <peter@the-baradas.com>
204
205 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
206 * cpu-m68k.c(bfd_m68k_arch): Likewise.
207 * bfd-in2.h(bfd_architecture): Regenerate.
208
6a8d1586
AM
2092004-05-03 Alan Modra <amodra@bigpond.net.au>
210
211 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
212 SEC_MERGE sections.
213 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
214 those against discarded link-once and SEC_MERGE section symbols.
215
fafe6678
L
2162004-05-02 H.J. Lu <hongjiu.lu@intel.com>
217
218 * section.c (bfd_get_section_by_name_if): New.
219 * bfd-in2.h: Regenerated.
220
ad7b9a36
AM
2212004-05-02 Alan Modra <amodra@bigpond.net.au>
222
223 * som.c (som_bfd_is_group_section): Define.
224
73499ab8
AM
2252004-05-01 Alan Modra <amodra@bigpond.net.au>
226
227 * section.c (bfd_make_section_anyway): Copy the whole
228 bfd_hash_entry, not just "next" from existing entry.
229
45c5e9ed
L
2302004-04-30 H.J. Lu <hongjiu.lu@intel.com>
231
232 * elf.c (bfd_section_from_shdr): Maintain the section order in
233 a section group.
234 (special_sections): Add ".note.GNU-stack".
235 (elf_fake_sections): Handle section group for relocatable
236 link..
237
bc87dd2e
L
2382004-04-30 H.J. Lu <hongjiu.lu@intel.com>
239
240 * section.c (bfd_sections_find_if): New.
241 * bfd-in2.h: Regenerated.
242
72adc230
AM
2432004-04-30 Alan Modra <amodra@bigpond.net.au>
244
245 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
246
247 * elf-bfd.h (bfd_elf_is_group_section): Declare.
248 * elf.c (bfd_elf_is_group_section): New function.
249 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
250 * section.c (bfd_generic_is_group_section): New function.
251 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
252 (BFD_JUMP_TABLE_LINK): Adjust.
253 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
254 * aout-target.h (MY_bfd_is_group_section): Define.
255 * aout-tic30.c (MY_bfd_is_group_section): Define.
256 * bfd.c (bfd_is_group_section): Define.
257 * binary.c (binary_bfd_is_group_section): Define.
258 * bout.c (b_out_bfd_is_group_section): Define.
259 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
260 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
261 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
262 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
263 * coffcode.h (coff_bfd_is_group_section): Define.
264 * i386msdos.c (msdos_bfd_is_group_section): Define.
265 * i386os9k.c (os9k_bfd_is_group_section): Define.
266 * ieee.c (ieee_bfd_is_group_section): Define.
267 * ihex.c (ihex_bfd_is_group_section): Define.
268 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
269 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
270 * mmo.c (mmo_bfd_is_group_section): Define.
271 * nlm-target.h (nlm_bfd_is_group_section): Define.
272 * oasys.c (oasys_bfd_is_group_section): Define.
273 * pef.c (bfd_pef_bfd_is_group_section): Define.
274 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
275 * srec.c (srec_bfd_is_group_section): Define.
276 * tekhex.c (tekhex_bfd_is_group_section): Define.
277 * versados.c (versados_bfd_is_group_section): Define.
278 * vms.c (vms_bfd_is_group_section): Define.
279 * xsym.c (bfd_sym_bfd_is_group_section): Define.
280 * bfd-in2.h: Regenerate.
281 * libbfd.h: Regenerate.
282
20f0a1ad
AM
2832004-04-30 Alan Modra <amodra@bigpond.net.au>
284
285 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
286
f7458fc9 2872004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
288
289 * configure.in: Update version to 2.15.91.
290 * configure: Regenerate.
291
8a7140c3
NC
2922004-04-29 Brian Ford <ford@vss.fsi.com>
293
294 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
295 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
296 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
297 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
298 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
299 .gnu.linkonce.wi. sections.
300 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
301 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
302 .gnu.linkonce.wi..
303 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
304 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
305
3e722fb5
CD
3062004-04-28 Chris Demetriou <cgd@broadcom.com>
307
308 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
309 * bfd-in2.h: Regenerate.
310 * libbfd.h: Likewise.
311
351e2b5a
DA
3122004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
313
314 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
315 dup_common fields.
316 (setup_sections): Use som_subspace_dictionary_record struct instead
317 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
318 is_comdat, is_common or dup_common.
319 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
320 is_comdat, is_common and dup_common in section subspace_dict from
321 copy_data.
322 (som_begin_writing): Use som_subspace_dictionary_record struct.
323 (som_finish_writing): Likewise.
324 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
325 is_common and dup_common flags in info for symbol. Add comment
326 regarding linker support for these fields. Slightly reorganize
327 function.
328 (som_build_and_write_symbol_table): Set is_comdat, is_common and
329 dup_common fields in symbol table from symbol info.
330 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
331 arguments. Set corresponding fields in copy_data. Change all callers.
332 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
333 symbol table.
334 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
335 * som.h (som_subspace_dictionary_record): Define.
336 (som_copyable_section_data_struct): Add is_comdat, is_common and
337 dup_common fields.
338 (som_section_data_struct): Use som_subspace_dictionary_record struct
339 instead of subspace_dictionary_record.
340 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
341
3ba3bc8c
BW
3422004-04-27 Bob Wilson <bob.wilson@acm.org>
343
344 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
345 if set. Check reloc_done flag before applying relocations. Use
346 output addresses, both when applying relocations and when comparing
347 against the specified section.
348 (elf_xtensa_relocate_section): Use output address to check if dynamic
349 reloc is in a literal pool. Set section's reloc_done flag.
350
beb8df56
L
3512004-04-27 H.J. Lu <hongjiu.lu@intel.com>
352
353 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
354 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
355 section.
356 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
357 section.
358
1829f4b2
AM
3592004-04-27 Alan Modra <amodra@bigpond.net.au>
360
361 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
362 structure field removed in 2004-04-24 patch.
363 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
364
365 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
366 Constify hdr arg.
367 * elf32-arm.h (elf32_arm_section_flags): Likewise.
368 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
369 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
370 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
371 field before calling elf_backend_section_flags.
372
4030e8f6
CD
3732004-04-24 Chris Demetriou <cgd@broadcom.com>
374
375 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
376 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
377 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
378 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
379 and BFD_RELOC_32_PCREL.
380 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
381 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
382 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
383 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
384 (mips_elf_next_relocation): Move comment about matching HI/LO
385 relocations to...
386 (_bfd_mips_elf_relocate_section): Here. Remove handling for
387 R_MIPS_GNU_REL_HI16.
388
3e27568f
CD
3892004-04-23 Chris Demetriou <cgd@broadcom.com>
390
391 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
392 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
393 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
394 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
395 and update comments to reflect current usage.
396 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
397 and MIPS_R_SWITCH, as well as several empty entries. Update comment
398 for MIPS_R_PCREL16.
399 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
400 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
401 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
402 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
403 type number to be MIPS_R_PCREL16.
404 (mips_relocate_section): Remove support for link-time relaxation
405 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
406 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
407 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
408 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
409 relaxation of branches used by embedded-PIC.
410 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
411 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
412 related members, update comment.
413 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
414 code related to embedded-PIC.
415 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
416 initialization of now-removed 'adjust' member of
417 'struct ecoff_debug_info'.
418
b32de0bc 4192004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
420
421 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
422
955af222
PB
4232004-04-21 Philip Blundell <pb@nexus.co.uk>
424
425 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
426 relocs for locally defined symbols during -shared final link.
427 (elf32_arm_final_link_relocate): Likewise.
428
47a9f7b3
JJ
4292004-04-22 Jakub Jelinek <jakub@redhat.com>
430
431 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
432 ELF_LINK_POINTER_EQUALITY_NEEDED.
433 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
434 if r_type is not R_X86_64_PC32.
435 (elf64_x86_64_finish_dynamic_symbol): If
436 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
437 SHN_UNDEF symbols.
438
1f1799d5
KK
4392004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
440
441 * elf32-sh.c (sh_elf_plt_sym_val): New function.
442 (elf_backend_plt_sym_val): Define.
443
0fdea5ce
AC
4442004-04-22 Andrew Cagney <cagney@redhat.com>
445
446 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
447
5198ba8b
DA
4482004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
449
eb61d2d6 450 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
451 make_bfd_asection.
452 * som.c (som_set_section_contents): Constantify second argument.
453 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
454 (som_object_setup): Rework to avoid warning.
455 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
456 Likewise.
457
fe2e161a
AC
4582004-04-22 Andrew Cagney <cagney@redhat.com>
459
460 * cache.c (bfd_cache_close): Check for a previously closed file.
461
4c45e5c9
JJ
4622004-04-22 Jakub Jelinek <jakub@redhat.com>
463
464 * bfd.c (bfd_get_synthetic_symtab): Define.
465 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
466 NAME##_get_synthetic_symtab.
467 (struct bfd_target): Add _bfd_get_synthetic_symtab.
468 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
469 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
470 relplt_name fields.
471 (_bfd_elf_get_synthetic_symtab): New prototype.
472 * elfcode.h (elf_get_synthetic_symtab): Define.
473 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
474 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
475 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
476 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
477 * bfd-in2.h: Rebuilt.
478 * libbfd.h: Rebuilt.
479 * elf32-i386.c (elf_i386_plt_sym_val): New function.
480 (elf_backend_plt_sym_val): Define.
481 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
482 (elf_backend_plt_sym_val): Define.
483 * elf32-s390.c (elf_s390_plt_sym_val): New function.
484 (elf_backend_plt_sym_val): Define.
485 * elf64-s390.c (elf_s390_plt_sym_val): New function.
486 (elf_backend_plt_sym_val): Define.
487 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
488 (elf_backend_plt_sym_val): Define.
489 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
490 (elf_backend_plt_sym_val): Define.
491 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
492 (elf_backend_plt_sym_val): Define.
493 * aout-target.h (MY_get_synthetic_symtab): Define.
494 * aout-tic30.c (MY_get_synthetic_symtab): Define.
495 * coff-rs6000.c (rs6000coff_vec): Add
496 _bfd_nodynamic_get_synthetic_symtab.
497 (pmac_xcoff_vec): Likewise.
498 * coff64-rs6000.c (rs6000coff64_vec): Add
499 _bfd_nodynamic_get_synthetic_symtab.
500 (aix5coff64_vec): Likewise.
501 * sunos.c (MY_get_synthetic_symtab): Define.
502 * vms.c (vms_get_synthetic_symtab): Define.
503
d2f7ecac
NC
5042004-04-22 Nick Clifton <nickc@redhat.com>
505
506 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
507
fd99574b
NC
5082004-04-22 Peter Barada <peter@the-baradas.com>
509
510 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
511 * bfd2-in.h: Regenerate.
512 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
513
23867d67
CD
5142004-04-21 Chris Demetriou <cgd@broadcom.com>
515
516 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
517 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
518 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
519 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
520 * bfd-in2.h: Regenerate.
521
2c8c90bc
BW
5222004-04-21 Bob Wilson <bob.wilson@acm.org>
523
524 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
525 require relocations against a weak symbol to reference the same
526 symbol hash entry if not a final, static link.
527 (get_cached_value, add_value_map): Add final_static_link argument.
528 (remove_literals): Pass final_static_link argument as needed.
529
40838a72
AC
5302004-04-21 Andrew Cagney <cagney@redhat.com>
531
532 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
533 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
534 (opncls_bwrite, opncls_bclose, opncls_bflush)
535 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
536 bfd iovec that uses function callbacks.
537 (bfd_close): Use the iovec's bclose.
538 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
539 (cache_bclose, cache_bflush, cache_bstat)
540 (cache_iovec): New functions and global variable, implement a
541 cache "iovec", where applicable set bfd_error.
542 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
543 * bfdio.c (struct bfd_iovec): Define.
544 (real_read): Delete function.
545 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
546 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
547 assume that bread and bwrite set bfd_error.
548 * bfd.c (struct bfd): Add "iovec", update comments.
549 * bfd-in2.h, libbfd.h: Re-generate.
550
7f919c84
AC
5512004-04-21 Andrew Cagney <cagney@redhat.com>
552
553 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
554
715df9b8
EB
5552004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
556
557 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
558 (bfd_elf_gc_sections): Fail if a shared object is being created.
559 Do not fail if dynamic sections have been created. Instead call
560 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
561 dynamically referenced symbols. Do not mark the whole graph
562 rooted at .eh_frame, only the section proper.
563
6482c264
NC
5642004-04-20 DJ Delorie <dj@redhat.com>
565
566 * reloc.c: Add BFD_RELOC_32_SECREL.
567 * bfd-in2.h: Regenerate.
568 * libbfd.h: Likewise.
569 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
570 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
571 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
572
4dc570c2
JJ
5732004-04-19 Jakub Jelinek <jakub@redhat.com>
574
575 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
576 relocs against hidden/protected undefweak symbols properly.
577 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
578
0b60d5d3
MK
5792004-04-18 Mark Kettenis <kettenis@gnu.org>
580
581 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
582 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
583 core files.
584
d48bdb99
AM
5852004-04-17 Brian Ford <ford@vss.fsi.com>
586
587 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
588 filepos for the SizeOfHeaders field.
589 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
590 overflow.
591 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
592
57a1784e
AM
5932004-04-16 Alan Modra <amodra@bigpond.net.au>
594
595 * simple.c (bfd_simple_get_relocated_section_contents): Don't
596 change reloc_done. Set and restore _cooked_size.
597 (RETURN): Delete.
598
d1ad3f6f
MK
5992004-04-15 Mark Kettenis <kettenis@gnu.org>
600
601 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
602 core files.
603
3d1bca9d
NC
6042004-04-15 Nick Clifton <nickc@redhat.com>
605
606 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
607
019b892f
AM
6082004-04-15 Alan Modra <amodra@bigpond.net.au>
609
610 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
611
15b43f48
AM
6122004-04-15 H.J. Lu <hongjiu.lu@intel.com>
613
614 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
615 when it is a definition.
616
6de00a78
AM
6172004-04-14 Alan Modra <amodra@bigpond.net.au>
618
619 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
620 when statically linking PIC code.
621 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
622
279500de
TS
6232004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
624
625 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
626 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
627 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
628 * configure: Regenerate.
629
ccf2f652
RS
6302004-04-08 Richard Sandiford <rsandifo@redhat.com>
631
632 * elflink.c: Include libiberty.h.
633 * Makefile.am (elflink.lo): Depend on libiberty.h.
634 * Makefile.in: Regenerate.
635
ca07892d
DJ
6362004-04-06 Daniel Jacobowitz <drow@mvista.com>
637
638 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
639 ".MIPS.stubs".
640
a5a58ba4
L
6412004-04-05 H.J. Lu <hongjiu.lu@intel.com>
642
643 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
644 reserve the memory for dynamic linker
645
24d18d30
MK
6462004-04-05 Mark Kettenis <kettenis@gnu.org>
647
648 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
649 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
650
a4d7b4b5
L
6512004-04-02 H.J. Lu <hongjiu.lu@intel.com>
652
653 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
654 RELOC_FOR_GLOBAL_SYMBOL.
655 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
656
1f433d93
L
6572004-04-02 H.J. Lu <hongjiu.lu@intel.com>
658
659 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
660 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
661
e489d0ae
PB
6622004-04-01 Paul Brook <paul@codesourcery.com>
663
664 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
665 * elf32-arm.h (struct elf32_elf_section_map): New.
666 (struct _arm_elf_section_data): New.
667 (elf32_arm_section_data): Define.
668 (struct elf32_arm_link_hash_table): Add byteswap_code.
669 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
670 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
671 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
672 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
673 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
674 (bfd_elf32_new_section_hook, elf_backend_write_section,
675 elf_backend_link_output_symbol_hook): Define.
676
66a695f0
NC
6772004-04-01 Andy Chittenden <achittenden@bluearc.com>
678
679 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
680 that keeps the characters in a B_INCL..B_EINCL range.
681 (_bfd_link_section_stabs): When computing the sum of the
682 characters in a B_INCL..B_EINCL range also keep a copy of those
683 characters. Use this information to distinguish between
684 include sections that have the same sum and the same length
685 but which are nevertheless unique.
686
8375c36b
PB
6872004-03-31 Paul Brook <paul@codesourcery.com>
688
689 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
690 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
691
a56b48eb
NC
6922004-03-31 Andy Chittenden <achittenden@bluearc.com>
693
694 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
695 to 'sum_chars' and add field 'num_chars'.
696 (_bfd_link_section_stabs): When computing the sum of the
697 characters in a B_INCL..B_EINCL range also keep a count of the
698 number of characters. Use this information to help distinguish
699 between include sections when have the same sum but which
700 nevertheless are still unique.
701