Updated French translations
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
9598fbe5
NC
12004-05-13 Nick Clifton <nickc@redhat.com>
2
3 * po/fr.po: Updated French translation.
4
8c37241b
JJ
52004-05-11 Jakub Jelinek <jakub@redhat.com>
6
7 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
8 into .dynsym if elf_section_data (sec)->dynindx <= 0.
9 Adjust counting of last_local.
10 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
11 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
12 created by the linker nor !SHF_ALLOC.
13
14 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
15 DT_PLTGOT to the start of the .got.plt section instead of the
16 .got output section. Set sh_entsize for .got section in addition
17 to .got.plt.
18 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
19 is at sgot->output_section->vma.
20 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
21 DT_PLTGOT to the start of the .got.plt section instead of the
22 .got output section.
23 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
24 is at sgot->output_section->vma. Set sh_entsize for .got section
25 in addition to .got.plt.
26 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
27 (bfd_section_from_phdr): Likewise.
28 (map_sections_to_segments): Likewise.
29 (assign_file_positions_for_segments): Likewise.
30 (get_program_header_size): Likewise.
31 * elflink.c (bfd_elf_size_dynamic_sections): Set
32 elf_tdata (output_bfd)->relro from info->relro.
33 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
34
3f980e41
AO
352004-05-08 Alexandre Oliva <aoliva@redhat.com>
36
37 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
38 a zero symndx for which we hadn't accounted a dynamic relocation.
39 (_frvfdpic_add_rofixup): Likewise.
40
d70270c5
BF
412004-05-07 Brian Ford <ford@vss.fsi.com>
42 DJ Delorie <dj@redhat.com>
43
44 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
45 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
46 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
47 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
48
7e9f3bd6
AO
492004-05-07 Alexandre Oliva <aoliva@redhat.com>
50
51 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
52 immediately if there's no link info.
53 (elf32_frvfdpic_copy_private_bfd_data): New.
54 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
55
eb61d2d6
ZW
562004-05-06 Zack Weinberg <zack@codesourcery.com>
57
58 * dwarf2.c (add_line_info): Also set info->filename to NULL if
59 filename argument is null; do not call strlen on a null pointer.
60
ecb2d096
DJ
612004-05-06 Daniel Jacobowitz <drow@mvista.com>
62
63 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
64 special case.
65
43850d5b
AO
662004-05-05 Alexandre Oliva <aoliva@redhat.com>
67
68 * configure.in (bfd_elf32_frvfdpic_vec): New.
69 * configure: Rebuilt.
70 * targets.c (bfd_elf32_frvfdpic_vec): New.
71 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
72 on the latter.
73 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
74 frvfdpic instead of frv. Rearrange elf-target macros such that
75 the FDPIC-specific ones are only defined for this new target
76 vector.
77 (bfd_elf32_frvfdpic_vec): Declare.
78 (IS_FDPIC): New.
79 (elf32_frv_relocate_section): Use it to enable segment checking
80 and to control rofixup emission. Add output section vma to
81 applied relocation in non-LOAD non-ALLOC sections. Use
82 _bfd_error_handler for errors.
83 (_frv_create_got_section): Create .rel.got and .rofixup only in
84 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
85 linker script.
86 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
87 (elf32_frvfdpic_modify_segment_map): Likewise.
88 (elf32_frv_finish_dynamic_sections): New, do-nothing.
89 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
90 error message if we miscompute the rofixup size.
91 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
92 (frvfdpic_elf_encode_eh_address): Likewise.
93 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
94 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
95 relocs. Reject unknown relocation types.
96 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
97 (frv_elf_merge_private_bfd_data): Likewise.
98 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
99 0x4000 for newly-added elf32-frvfdpic.
100
06fc8a8c
NC
1012004-05-05 Nick Clifton <nickc@redhat.com>
102
103 PR/136
104 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
105 returning NULL as most users of this function do not check its
106 return value.
33216455
NC
107 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
108 of bfd_cache_lookup().
109 * sco5-core.c (sco5_core_file_p): Likewise.
110 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
111
1122004-05-05 Nick Clifton <nickc@redhat.com>
113
114 * cache.c (bfd_cache_lookup): Improve formatting.
115 * archive.c: Fix formatting.
116
6b6e92f4
NC
1172004-05-05 Peter Barada <peter@the-baradas.com>
118
119 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
120 * cpu-m68k.c(bfd_m68k_arch): Likewise.
121 * bfd-in2.h(bfd_architecture): Regenerate.
122
6a8d1586
AM
1232004-05-03 Alan Modra <amodra@bigpond.net.au>
124
125 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
126 SEC_MERGE sections.
127 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
128 those against discarded link-once and SEC_MERGE section symbols.
129
fafe6678
L
1302004-05-02 H.J. Lu <hongjiu.lu@intel.com>
131
132 * section.c (bfd_get_section_by_name_if): New.
133 * bfd-in2.h: Regenerated.
134
ad7b9a36
AM
1352004-05-02 Alan Modra <amodra@bigpond.net.au>
136
137 * som.c (som_bfd_is_group_section): Define.
138
73499ab8
AM
1392004-05-01 Alan Modra <amodra@bigpond.net.au>
140
141 * section.c (bfd_make_section_anyway): Copy the whole
142 bfd_hash_entry, not just "next" from existing entry.
143
45c5e9ed
L
1442004-04-30 H.J. Lu <hongjiu.lu@intel.com>
145
146 * elf.c (bfd_section_from_shdr): Maintain the section order in
147 a section group.
148 (special_sections): Add ".note.GNU-stack".
149 (elf_fake_sections): Handle section group for relocatable
150 link..
151
bc87dd2e
L
1522004-04-30 H.J. Lu <hongjiu.lu@intel.com>
153
154 * section.c (bfd_sections_find_if): New.
155 * bfd-in2.h: Regenerated.
156
72adc230
AM
1572004-04-30 Alan Modra <amodra@bigpond.net.au>
158
159 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
160
161 * elf-bfd.h (bfd_elf_is_group_section): Declare.
162 * elf.c (bfd_elf_is_group_section): New function.
163 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
164 * section.c (bfd_generic_is_group_section): New function.
165 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
166 (BFD_JUMP_TABLE_LINK): Adjust.
167 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
168 * aout-target.h (MY_bfd_is_group_section): Define.
169 * aout-tic30.c (MY_bfd_is_group_section): Define.
170 * bfd.c (bfd_is_group_section): Define.
171 * binary.c (binary_bfd_is_group_section): Define.
172 * bout.c (b_out_bfd_is_group_section): Define.
173 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
174 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
175 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
176 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
177 * coffcode.h (coff_bfd_is_group_section): Define.
178 * i386msdos.c (msdos_bfd_is_group_section): Define.
179 * i386os9k.c (os9k_bfd_is_group_section): Define.
180 * ieee.c (ieee_bfd_is_group_section): Define.
181 * ihex.c (ihex_bfd_is_group_section): Define.
182 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
183 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
184 * mmo.c (mmo_bfd_is_group_section): Define.
185 * nlm-target.h (nlm_bfd_is_group_section): Define.
186 * oasys.c (oasys_bfd_is_group_section): Define.
187 * pef.c (bfd_pef_bfd_is_group_section): Define.
188 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
189 * srec.c (srec_bfd_is_group_section): Define.
190 * tekhex.c (tekhex_bfd_is_group_section): Define.
191 * versados.c (versados_bfd_is_group_section): Define.
192 * vms.c (vms_bfd_is_group_section): Define.
193 * xsym.c (bfd_sym_bfd_is_group_section): Define.
194 * bfd-in2.h: Regenerate.
195 * libbfd.h: Regenerate.
196
20f0a1ad
AM
1972004-04-30 Alan Modra <amodra@bigpond.net.au>
198
199 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
200
f7458fc9 2012004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
202
203 * configure.in: Update version to 2.15.91.
204 * configure: Regenerate.
205
8a7140c3
NC
2062004-04-29 Brian Ford <ford@vss.fsi.com>
207
208 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
209 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
210 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
211 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
212 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
213 .gnu.linkonce.wi. sections.
214 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
215 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
216 .gnu.linkonce.wi..
217 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
218 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
219
3e722fb5
CD
2202004-04-28 Chris Demetriou <cgd@broadcom.com>
221
222 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
223 * bfd-in2.h: Regenerate.
224 * libbfd.h: Likewise.
225
351e2b5a
DA
2262004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
227
228 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
229 dup_common fields.
230 (setup_sections): Use som_subspace_dictionary_record struct instead
231 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
232 is_comdat, is_common or dup_common.
233 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
234 is_comdat, is_common and dup_common in section subspace_dict from
235 copy_data.
236 (som_begin_writing): Use som_subspace_dictionary_record struct.
237 (som_finish_writing): Likewise.
238 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
239 is_common and dup_common flags in info for symbol. Add comment
240 regarding linker support for these fields. Slightly reorganize
241 function.
242 (som_build_and_write_symbol_table): Set is_comdat, is_common and
243 dup_common fields in symbol table from symbol info.
244 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
245 arguments. Set corresponding fields in copy_data. Change all callers.
246 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
247 symbol table.
248 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
249 * som.h (som_subspace_dictionary_record): Define.
250 (som_copyable_section_data_struct): Add is_comdat, is_common and
251 dup_common fields.
252 (som_section_data_struct): Use som_subspace_dictionary_record struct
253 instead of subspace_dictionary_record.
254 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
255
3ba3bc8c
BW
2562004-04-27 Bob Wilson <bob.wilson@acm.org>
257
258 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
259 if set. Check reloc_done flag before applying relocations. Use
260 output addresses, both when applying relocations and when comparing
261 against the specified section.
262 (elf_xtensa_relocate_section): Use output address to check if dynamic
263 reloc is in a literal pool. Set section's reloc_done flag.
264
beb8df56
L
2652004-04-27 H.J. Lu <hongjiu.lu@intel.com>
266
267 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
268 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
269 section.
270 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
271 section.
272
1829f4b2
AM
2732004-04-27 Alan Modra <amodra@bigpond.net.au>
274
275 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
276 structure field removed in 2004-04-24 patch.
277 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
278
279 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
280 Constify hdr arg.
281 * elf32-arm.h (elf32_arm_section_flags): Likewise.
282 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
283 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
284 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
285 field before calling elf_backend_section_flags.
286
4030e8f6
CD
2872004-04-24 Chris Demetriou <cgd@broadcom.com>
288
289 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
290 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
291 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
292 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
293 and BFD_RELOC_32_PCREL.
294 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
295 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
296 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
297 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
298 (mips_elf_next_relocation): Move comment about matching HI/LO
299 relocations to...
300 (_bfd_mips_elf_relocate_section): Here. Remove handling for
301 R_MIPS_GNU_REL_HI16.
302
3e27568f
CD
3032004-04-23 Chris Demetriou <cgd@broadcom.com>
304
305 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
306 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
307 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
308 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
309 and update comments to reflect current usage.
310 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
311 and MIPS_R_SWITCH, as well as several empty entries. Update comment
312 for MIPS_R_PCREL16.
313 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
314 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
315 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
316 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
317 type number to be MIPS_R_PCREL16.
318 (mips_relocate_section): Remove support for link-time relaxation
319 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
320 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
321 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
322 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
323 relaxation of branches used by embedded-PIC.
324 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
325 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
326 related members, update comment.
327 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
328 code related to embedded-PIC.
329 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
330 initialization of now-removed 'adjust' member of
331 'struct ecoff_debug_info'.
332
b32de0bc 3332004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
334
335 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
336
955af222
PB
3372004-04-21 Philip Blundell <pb@nexus.co.uk>
338
339 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
340 relocs for locally defined symbols during -shared final link.
341 (elf32_arm_final_link_relocate): Likewise.
342
47a9f7b3
JJ
3432004-04-22 Jakub Jelinek <jakub@redhat.com>
344
345 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
346 ELF_LINK_POINTER_EQUALITY_NEEDED.
347 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
348 if r_type is not R_X86_64_PC32.
349 (elf64_x86_64_finish_dynamic_symbol): If
350 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
351 SHN_UNDEF symbols.
352
1f1799d5
KK
3532004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
354
355 * elf32-sh.c (sh_elf_plt_sym_val): New function.
356 (elf_backend_plt_sym_val): Define.
357
0fdea5ce
AC
3582004-04-22 Andrew Cagney <cagney@redhat.com>
359
360 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
361
5198ba8b
DA
3622004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
363
eb61d2d6 364 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
365 make_bfd_asection.
366 * som.c (som_set_section_contents): Constantify second argument.
367 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
368 (som_object_setup): Rework to avoid warning.
369 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
370 Likewise.
371
fe2e161a
AC
3722004-04-22 Andrew Cagney <cagney@redhat.com>
373
374 * cache.c (bfd_cache_close): Check for a previously closed file.
375
4c45e5c9
JJ
3762004-04-22 Jakub Jelinek <jakub@redhat.com>
377
378 * bfd.c (bfd_get_synthetic_symtab): Define.
379 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
380 NAME##_get_synthetic_symtab.
381 (struct bfd_target): Add _bfd_get_synthetic_symtab.
382 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
383 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
384 relplt_name fields.
385 (_bfd_elf_get_synthetic_symtab): New prototype.
386 * elfcode.h (elf_get_synthetic_symtab): Define.
387 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
388 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
389 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
390 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
391 * bfd-in2.h: Rebuilt.
392 * libbfd.h: Rebuilt.
393 * elf32-i386.c (elf_i386_plt_sym_val): New function.
394 (elf_backend_plt_sym_val): Define.
395 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
396 (elf_backend_plt_sym_val): Define.
397 * elf32-s390.c (elf_s390_plt_sym_val): New function.
398 (elf_backend_plt_sym_val): Define.
399 * elf64-s390.c (elf_s390_plt_sym_val): New function.
400 (elf_backend_plt_sym_val): Define.
401 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
402 (elf_backend_plt_sym_val): Define.
403 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
404 (elf_backend_plt_sym_val): Define.
405 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
406 (elf_backend_plt_sym_val): Define.
407 * aout-target.h (MY_get_synthetic_symtab): Define.
408 * aout-tic30.c (MY_get_synthetic_symtab): Define.
409 * coff-rs6000.c (rs6000coff_vec): Add
410 _bfd_nodynamic_get_synthetic_symtab.
411 (pmac_xcoff_vec): Likewise.
412 * coff64-rs6000.c (rs6000coff64_vec): Add
413 _bfd_nodynamic_get_synthetic_symtab.
414 (aix5coff64_vec): Likewise.
415 * sunos.c (MY_get_synthetic_symtab): Define.
416 * vms.c (vms_get_synthetic_symtab): Define.
417
d2f7ecac
NC
4182004-04-22 Nick Clifton <nickc@redhat.com>
419
420 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
421
fd99574b
NC
4222004-04-22 Peter Barada <peter@the-baradas.com>
423
424 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
425 * bfd2-in.h: Regenerate.
426 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
427
23867d67
CD
4282004-04-21 Chris Demetriou <cgd@broadcom.com>
429
430 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
431 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
432 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
433 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
434 * bfd-in2.h: Regenerate.
435
2c8c90bc
BW
4362004-04-21 Bob Wilson <bob.wilson@acm.org>
437
438 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
439 require relocations against a weak symbol to reference the same
440 symbol hash entry if not a final, static link.
441 (get_cached_value, add_value_map): Add final_static_link argument.
442 (remove_literals): Pass final_static_link argument as needed.
443
40838a72
AC
4442004-04-21 Andrew Cagney <cagney@redhat.com>
445
446 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
447 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
448 (opncls_bwrite, opncls_bclose, opncls_bflush)
449 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
450 bfd iovec that uses function callbacks.
451 (bfd_close): Use the iovec's bclose.
452 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
453 (cache_bclose, cache_bflush, cache_bstat)
454 (cache_iovec): New functions and global variable, implement a
455 cache "iovec", where applicable set bfd_error.
456 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
457 * bfdio.c (struct bfd_iovec): Define.
458 (real_read): Delete function.
459 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
460 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
461 assume that bread and bwrite set bfd_error.
462 * bfd.c (struct bfd): Add "iovec", update comments.
463 * bfd-in2.h, libbfd.h: Re-generate.
464
7f919c84
AC
4652004-04-21 Andrew Cagney <cagney@redhat.com>
466
467 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
468
715df9b8
EB
4692004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
470
471 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
472 (bfd_elf_gc_sections): Fail if a shared object is being created.
473 Do not fail if dynamic sections have been created. Instead call
474 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
475 dynamically referenced symbols. Do not mark the whole graph
476 rooted at .eh_frame, only the section proper.
477
6482c264
NC
4782004-04-20 DJ Delorie <dj@redhat.com>
479
480 * reloc.c: Add BFD_RELOC_32_SECREL.
481 * bfd-in2.h: Regenerate.
482 * libbfd.h: Likewise.
483 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
484 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
485 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
486
4dc570c2
JJ
4872004-04-19 Jakub Jelinek <jakub@redhat.com>
488
489 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
490 relocs against hidden/protected undefweak symbols properly.
491 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
492
0b60d5d3
MK
4932004-04-18 Mark Kettenis <kettenis@gnu.org>
494
495 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
496 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
497 core files.
498
d48bdb99
AM
4992004-04-17 Brian Ford <ford@vss.fsi.com>
500
501 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
502 filepos for the SizeOfHeaders field.
503 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
504 overflow.
505 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
506
57a1784e
AM
5072004-04-16 Alan Modra <amodra@bigpond.net.au>
508
509 * simple.c (bfd_simple_get_relocated_section_contents): Don't
510 change reloc_done. Set and restore _cooked_size.
511 (RETURN): Delete.
512
d1ad3f6f
MK
5132004-04-15 Mark Kettenis <kettenis@gnu.org>
514
515 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
516 core files.
517
3d1bca9d
NC
5182004-04-15 Nick Clifton <nickc@redhat.com>
519
520 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
521
019b892f
AM
5222004-04-15 Alan Modra <amodra@bigpond.net.au>
523
524 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
525
15b43f48
AM
5262004-04-15 H.J. Lu <hongjiu.lu@intel.com>
527
528 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
529 when it is a definition.
530
6de00a78
AM
5312004-04-14 Alan Modra <amodra@bigpond.net.au>
532
533 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
534 when statically linking PIC code.
535 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
536
279500de
TS
5372004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
538
539 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
540 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
541 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
542 * configure: Regenerate.
543
ccf2f652
RS
5442004-04-08 Richard Sandiford <rsandifo@redhat.com>
545
546 * elflink.c: Include libiberty.h.
547 * Makefile.am (elflink.lo): Depend on libiberty.h.
548 * Makefile.in: Regenerate.
549
ca07892d
DJ
5502004-04-06 Daniel Jacobowitz <drow@mvista.com>
551
552 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
553 ".MIPS.stubs".
554
a5a58ba4
L
5552004-04-05 H.J. Lu <hongjiu.lu@intel.com>
556
557 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
558 reserve the memory for dynamic linker
559
24d18d30
MK
5602004-04-05 Mark Kettenis <kettenis@gnu.org>
561
562 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
563 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
564
a4d7b4b5
L
5652004-04-02 H.J. Lu <hongjiu.lu@intel.com>
566
567 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
568 RELOC_FOR_GLOBAL_SYMBOL.
569 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
570
1f433d93
L
5712004-04-02 H.J. Lu <hongjiu.lu@intel.com>
572
573 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
574 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
575
e489d0ae
PB
5762004-04-01 Paul Brook <paul@codesourcery.com>
577
578 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
579 * elf32-arm.h (struct elf32_elf_section_map): New.
580 (struct _arm_elf_section_data): New.
581 (elf32_arm_section_data): Define.
582 (struct elf32_arm_link_hash_table): Add byteswap_code.
583 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
584 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
585 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
586 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
587 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
588 (bfd_elf32_new_section_hook, elf_backend_write_section,
589 elf_backend_link_output_symbol_hook): Define.
590
66a695f0
NC
5912004-04-01 Andy Chittenden <achittenden@bluearc.com>
592
593 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
594 that keeps the characters in a B_INCL..B_EINCL range.
595 (_bfd_link_section_stabs): When computing the sum of the
596 characters in a B_INCL..B_EINCL range also keep a copy of those
597 characters. Use this information to distinguish between
598 include sections that have the same sum and the same length
599 but which are nevertheless unique.
600
8375c36b
PB
6012004-03-31 Paul Brook <paul@codesourcery.com>
602
603 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
604 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
605
a56b48eb
NC
6062004-03-31 Andy Chittenden <achittenden@bluearc.com>
607
608 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
609 to 'sum_chars' and add field 'num_chars'.
610 (_bfd_link_section_stabs): When computing the sum of the
611 characters in a B_INCL..B_EINCL range also keep a count of the
612 number of characters. Use this information to help distinguish
613 between include sections when have the same sum but which
614 nevertheless are still unique.
615