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