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