* configure.in: Fix sed invocation for GFORTRAN_FOR_TARGET.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1055df0f
AO
12004-05-27 Alexandre Oliva <aoliva@redhat.com>
2
3 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
4 custom calling conventions for dynamic symbols.
5 (mn10300_elf_relax_section): Avoid relaxing a function as a local
6 symbol if it's an alias to a global one.
7
b3096250
L
82004-05-26 H.J. Lu <hongjiu.lu@intel.com>
9
10 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
11 change.
12
9bb351fd
AO
132004-05-27 Alexandre Oliva <aoliva@redhat.com>
14
15 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
16 loop over hashes.
17
e49f5022
AM
182004-05-26 Alan Modra <amodra@bigpond.net.au>
19
20 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
21 for SHT_GROUP sections.
22
57ceae94
AM
232004-05-25 Alan Modra <amodra@bigpond.net.au>
24
25 * elflink.c (elf_link_add_object_symbols): Don't set up merge
26 section data here..
27 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
28 * merge.c: Formatting. Remove unnecessary casts. Expand
29 bfd_get_section_alignment macro.
30 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
31 use throughout file.
32 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
33 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
34 section name to determine sinfo group, instead test output section
35 and alignment.
36 (_bfd_merge_sections): Add struct bfd_link_info param. Call
37 _bfd_strip_section_from_output rather than just twiddling flags.
38 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
39 (_bfd_merge_sections): Update prototype.
40 * libbfd.h: Regenerate.
41
c6f8758f 422004-05-24 Mark Kettenis <kettenis@gnu.org>
d34436e8
MK
43
44 * netbsd-core.c: Correctly indent section that sets architecture
45 from machine ID.
46
c6f8758f
NC
47 From Miod Vallat <miod@online.fr>:
48 * m88kopenbsd.c: New file.
49 * targets.c (m88k_openbsd_vec): New.
50 * config.bfd: Add m88k-*-openbsd*.
51 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
52 (m88kopenbsd_vec): New.
53 * configure: Regenerate.
54 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
55 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
56 Run "make dep-am".
57 * Makefile.in: Regenerate.
58 * po/SRC-POTFILES.in: Regenerate.
59
7d7e6bc4
NC
602004-05-24 Nick Clifton <nickc@redhat.com>
61
62 * hash.c: Remove bogus node "Changing the default Hash Table Size"
63 introduced by hash table size patch.
64
bc286f95
BE
652004-05-22 Ben Elliston <bje@au.ibm.com>
66
67 * configure.in (is_release): Remove.
68 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
69 (AC_OUTPUT): Don't output bfdver.h from version.h.
70 * configure: Regenerate.
71 * Makefile.am (RELEASE): New variable.
72 (bfdver.h): New target.
73 * Makefile.in: Regenerate.
74 * doc/Makefile.in: Likewise.
75
8b89a4eb
BE
762004-05-22 Ben Elliston <bje@au.ibm.com>
77
78 * Makefile.am (config.status): Don't depend on version.h.
79 * Makefile.in: Regenerate.
80
753731ee
AM
812004-05-22 Alan Modra <amodra@bigpond.net.au>
82
83 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
84 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
85 * libbfd.h: Regenerate.
86 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
87 (_bfd_elf_rel_local_sym): Likewise.
88 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
89 (elf_link_input_bfd): Likewise.
90 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
91 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
92 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
93 (elfNN_ia64_relocate_section): Likewise.
94
2d643429
NC
952004-05-21 Andy Chittenden <achittenden@bluearc.com>
96
97 * hash.c (bfd_default_hash_table_size): New variable.
98 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
99 (bfd_hash_set_default_size): New function. Set the default size
100 to a selected prime number close to the argument. Document new
101 function.
102 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
103 * bfd-in2.h: Regenerate.
104 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
105 * Makefile.in: Regenerate.
106
8377c19c
MK
1072004-05-21 Mark Kettenis <kettenis@gnu.org>
108
109 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
110 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
111 arm, m68k, m88k and hppa core files.
112
69fd4758
NC
1132004-05-21 Nick Clifton <nickc@redhat.com>
114
115 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
116 (bfd_bwrite): Likewise.
117 (bfd_tell): Likewise.
118 (bfd_flush): Likewise.
119 (bfd_stat): Likewise.
120 (bfd_seek): Likewise.
121 (bfd_get_mtime): Likewise.
122 (bfd_get_size): Likewise.
123
cd917290
BE
1242004-05-19 Ben Elliston <bje@au.ibm.com>
125
126 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
127
1b09e940
NC
1282004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
129
130 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
131 (bfd_generic_openr_next_archived_file): Likewise.
132
096c35a7
BW
1332004-05-17 Bob Wilson <bob.wilson@acm.org>
134
135 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
136 section names by inserting a new substring after .gnu.linkonce, except
137 for .gnu.linkonce.t.* where the "t." is replaced.
138
b2d65c0b
NC
1392004-05-17 Adam Nemet <anemet@lnxw.com>
140
141 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
142 (m68-*-lynxos* case): Likewise.
143 (powerpc-*-lyxnos* case): New case.
144 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
145
80fccad2
BW
1462004-05-17 David Heine <dlheine@tensilica.com>
147
148 * aout-target.h (MY_bfd_copy_private_header_data): Define.
149 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
150 * bfd.c (bfd_copy_private_header_data): Define.
151 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
152 interface.
153 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
154 * coffcode.h (coff_bfd_copy_private_header_data): Define.
155 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
156 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
157 segments by calling copy_private_bfd_data.
158 (_bfd_elf_copy_private_header_data): Define.
159 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
160 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
161 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
162 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
163 * mmo.c (mmo_bfd_copy_private_header_data): Define.
164 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
165 * som.c (som_bfd_copy_private_header_data): Define.
166 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
167 * vms.c (vms_bfd_copy_private_header_data): Define.
168 * bfd-in2.h: Regenerate.
169 * libbfd.h: Regenerate.
170
c5ae1840
TS
1712004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
172
173 * elfxx-mips.c (MINUS_TWO): Define.
174 (mips_elf_higher, mips_elf_highest,
175 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
176 some bfd_vma values.
177 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
178
a99cf92b
DA
1792004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
180
181 * som.c (log2): Rename to exact_log2. Adjust all callers.
182
0da76f83
NC
1832004-05-13 Paul Brook <paul@codesourcery.com>
184
c273895f 185 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
186 dwarf3 format CIE entries. Remove comment about the size of the
187 ra_column field. It is now correctly deduced.
0da76f83 188
4b363073
NC
1892004-05-13 Joel Sherrill <joel@oarcorp.com>
190
191 * config.bfd (or32-*-rtems*): Switch to elf.
192
9598fbe5
NC
1932004-05-13 Nick Clifton <nickc@redhat.com>
194
195 * po/fr.po: Updated French translation.
196
8c37241b
JJ
1972004-05-11 Jakub Jelinek <jakub@redhat.com>
198
199 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
200 into .dynsym if elf_section_data (sec)->dynindx <= 0.
201 Adjust counting of last_local.
202 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
203 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
204 created by the linker nor !SHF_ALLOC.
205
206 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
207 DT_PLTGOT to the start of the .got.plt section instead of the
208 .got output section. Set sh_entsize for .got section in addition
209 to .got.plt.
210 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
211 is at sgot->output_section->vma.
212 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
213 DT_PLTGOT to the start of the .got.plt section instead of the
214 .got output section.
215 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
216 is at sgot->output_section->vma. Set sh_entsize for .got section
217 in addition to .got.plt.
218 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
219 (bfd_section_from_phdr): Likewise.
220 (map_sections_to_segments): Likewise.
221 (assign_file_positions_for_segments): Likewise.
222 (get_program_header_size): Likewise.
223 * elflink.c (bfd_elf_size_dynamic_sections): Set
224 elf_tdata (output_bfd)->relro from info->relro.
225 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
226
3f980e41
AO
2272004-05-08 Alexandre Oliva <aoliva@redhat.com>
228
229 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
230 a zero symndx for which we hadn't accounted a dynamic relocation.
231 (_frvfdpic_add_rofixup): Likewise.
232
d70270c5
BF
2332004-05-07 Brian Ford <ford@vss.fsi.com>
234 DJ Delorie <dj@redhat.com>
235
236 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
237 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
238 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
239 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
240
7e9f3bd6
AO
2412004-05-07 Alexandre Oliva <aoliva@redhat.com>
242
243 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
244 immediately if there's no link info.
245 (elf32_frvfdpic_copy_private_bfd_data): New.
246 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
247
eb61d2d6
ZW
2482004-05-06 Zack Weinberg <zack@codesourcery.com>
249
250 * dwarf2.c (add_line_info): Also set info->filename to NULL if
251 filename argument is null; do not call strlen on a null pointer.
252
ecb2d096
DJ
2532004-05-06 Daniel Jacobowitz <drow@mvista.com>
254
255 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
256 special case.
257
43850d5b
AO
2582004-05-05 Alexandre Oliva <aoliva@redhat.com>
259
260 * configure.in (bfd_elf32_frvfdpic_vec): New.
261 * configure: Rebuilt.
262 * targets.c (bfd_elf32_frvfdpic_vec): New.
263 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
264 on the latter.
265 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
266 frvfdpic instead of frv. Rearrange elf-target macros such that
267 the FDPIC-specific ones are only defined for this new target
268 vector.
269 (bfd_elf32_frvfdpic_vec): Declare.
270 (IS_FDPIC): New.
271 (elf32_frv_relocate_section): Use it to enable segment checking
272 and to control rofixup emission. Add output section vma to
273 applied relocation in non-LOAD non-ALLOC sections. Use
274 _bfd_error_handler for errors.
275 (_frv_create_got_section): Create .rel.got and .rofixup only in
276 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
277 linker script.
278 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
279 (elf32_frvfdpic_modify_segment_map): Likewise.
280 (elf32_frv_finish_dynamic_sections): New, do-nothing.
281 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
282 error message if we miscompute the rofixup size.
283 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
284 (frvfdpic_elf_encode_eh_address): Likewise.
285 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
286 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
287 relocs. Reject unknown relocation types.
288 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
289 (frv_elf_merge_private_bfd_data): Likewise.
290 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
291 0x4000 for newly-added elf32-frvfdpic.
292
06fc8a8c
NC
2932004-05-05 Nick Clifton <nickc@redhat.com>
294
295 PR/136
296 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
297 returning NULL as most users of this function do not check its
298 return value.
33216455
NC
299 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
300 of bfd_cache_lookup().
301 * sco5-core.c (sco5_core_file_p): Likewise.
302 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
303
3042004-05-05 Nick Clifton <nickc@redhat.com>
305
306 * cache.c (bfd_cache_lookup): Improve formatting.
307 * archive.c: Fix formatting.
308
6b6e92f4
NC
3092004-05-05 Peter Barada <peter@the-baradas.com>
310
311 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
312 * cpu-m68k.c(bfd_m68k_arch): Likewise.
313 * bfd-in2.h(bfd_architecture): Regenerate.
314
6a8d1586
AM
3152004-05-03 Alan Modra <amodra@bigpond.net.au>
316
317 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
318 SEC_MERGE sections.
319 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
320 those against discarded link-once and SEC_MERGE section symbols.
321
fafe6678
L
3222004-05-02 H.J. Lu <hongjiu.lu@intel.com>
323
324 * section.c (bfd_get_section_by_name_if): New.
325 * bfd-in2.h: Regenerated.
326
ad7b9a36
AM
3272004-05-02 Alan Modra <amodra@bigpond.net.au>
328
329 * som.c (som_bfd_is_group_section): Define.
330
73499ab8
AM
3312004-05-01 Alan Modra <amodra@bigpond.net.au>
332
333 * section.c (bfd_make_section_anyway): Copy the whole
334 bfd_hash_entry, not just "next" from existing entry.
335
45c5e9ed
L
3362004-04-30 H.J. Lu <hongjiu.lu@intel.com>
337
338 * elf.c (bfd_section_from_shdr): Maintain the section order in
339 a section group.
340 (special_sections): Add ".note.GNU-stack".
341 (elf_fake_sections): Handle section group for relocatable
342 link..
343
bc87dd2e
L
3442004-04-30 H.J. Lu <hongjiu.lu@intel.com>
345
346 * section.c (bfd_sections_find_if): New.
347 * bfd-in2.h: Regenerated.
348
72adc230
AM
3492004-04-30 Alan Modra <amodra@bigpond.net.au>
350
351 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
352
353 * elf-bfd.h (bfd_elf_is_group_section): Declare.
354 * elf.c (bfd_elf_is_group_section): New function.
355 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
356 * section.c (bfd_generic_is_group_section): New function.
357 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
358 (BFD_JUMP_TABLE_LINK): Adjust.
359 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
360 * aout-target.h (MY_bfd_is_group_section): Define.
361 * aout-tic30.c (MY_bfd_is_group_section): Define.
362 * bfd.c (bfd_is_group_section): Define.
363 * binary.c (binary_bfd_is_group_section): Define.
364 * bout.c (b_out_bfd_is_group_section): Define.
365 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
366 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
367 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
368 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
369 * coffcode.h (coff_bfd_is_group_section): Define.
370 * i386msdos.c (msdos_bfd_is_group_section): Define.
371 * i386os9k.c (os9k_bfd_is_group_section): Define.
372 * ieee.c (ieee_bfd_is_group_section): Define.
373 * ihex.c (ihex_bfd_is_group_section): Define.
374 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
375 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
376 * mmo.c (mmo_bfd_is_group_section): Define.
377 * nlm-target.h (nlm_bfd_is_group_section): Define.
378 * oasys.c (oasys_bfd_is_group_section): Define.
379 * pef.c (bfd_pef_bfd_is_group_section): Define.
380 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
381 * srec.c (srec_bfd_is_group_section): Define.
382 * tekhex.c (tekhex_bfd_is_group_section): Define.
383 * versados.c (versados_bfd_is_group_section): Define.
384 * vms.c (vms_bfd_is_group_section): Define.
385 * xsym.c (bfd_sym_bfd_is_group_section): Define.
386 * bfd-in2.h: Regenerate.
387 * libbfd.h: Regenerate.
388
20f0a1ad
AM
3892004-04-30 Alan Modra <amodra@bigpond.net.au>
390
391 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
392
f7458fc9 3932004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
394
395 * configure.in: Update version to 2.15.91.
396 * configure: Regenerate.
397
8a7140c3
NC
3982004-04-29 Brian Ford <ford@vss.fsi.com>
399
400 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
401 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
402 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
403 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
404 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
405 .gnu.linkonce.wi. sections.
406 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
407 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
408 .gnu.linkonce.wi..
409 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
410 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
411
3e722fb5
CD
4122004-04-28 Chris Demetriou <cgd@broadcom.com>
413
414 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
415 * bfd-in2.h: Regenerate.
416 * libbfd.h: Likewise.
417
351e2b5a
DA
4182004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
419
420 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
421 dup_common fields.
422 (setup_sections): Use som_subspace_dictionary_record struct instead
423 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
424 is_comdat, is_common or dup_common.
425 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
426 is_comdat, is_common and dup_common in section subspace_dict from
427 copy_data.
428 (som_begin_writing): Use som_subspace_dictionary_record struct.
429 (som_finish_writing): Likewise.
430 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
431 is_common and dup_common flags in info for symbol. Add comment
432 regarding linker support for these fields. Slightly reorganize
433 function.
434 (som_build_and_write_symbol_table): Set is_comdat, is_common and
435 dup_common fields in symbol table from symbol info.
436 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
437 arguments. Set corresponding fields in copy_data. Change all callers.
438 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
439 symbol table.
440 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
441 * som.h (som_subspace_dictionary_record): Define.
442 (som_copyable_section_data_struct): Add is_comdat, is_common and
443 dup_common fields.
444 (som_section_data_struct): Use som_subspace_dictionary_record struct
445 instead of subspace_dictionary_record.
446 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
447
3ba3bc8c
BW
4482004-04-27 Bob Wilson <bob.wilson@acm.org>
449
450 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
451 if set. Check reloc_done flag before applying relocations. Use
452 output addresses, both when applying relocations and when comparing
453 against the specified section.
454 (elf_xtensa_relocate_section): Use output address to check if dynamic
455 reloc is in a literal pool. Set section's reloc_done flag.
456
beb8df56
L
4572004-04-27 H.J. Lu <hongjiu.lu@intel.com>
458
459 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
460 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
461 section.
462 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
463 section.
464
1829f4b2
AM
4652004-04-27 Alan Modra <amodra@bigpond.net.au>
466
467 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
468 structure field removed in 2004-04-24 patch.
469 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
470
471 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
472 Constify hdr arg.
473 * elf32-arm.h (elf32_arm_section_flags): Likewise.
474 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
475 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
476 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
477 field before calling elf_backend_section_flags.
478
4030e8f6
CD
4792004-04-24 Chris Demetriou <cgd@broadcom.com>
480
481 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
482 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
483 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
484 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
485 and BFD_RELOC_32_PCREL.
486 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
487 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
488 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
489 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
490 (mips_elf_next_relocation): Move comment about matching HI/LO
491 relocations to...
492 (_bfd_mips_elf_relocate_section): Here. Remove handling for
493 R_MIPS_GNU_REL_HI16.
494
3e27568f
CD
4952004-04-23 Chris Demetriou <cgd@broadcom.com>
496
497 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
498 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
499 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
500 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
501 and update comments to reflect current usage.
502 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
503 and MIPS_R_SWITCH, as well as several empty entries. Update comment
504 for MIPS_R_PCREL16.
505 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
506 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
507 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
508 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
509 type number to be MIPS_R_PCREL16.
510 (mips_relocate_section): Remove support for link-time relaxation
511 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
512 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
513 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
514 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
515 relaxation of branches used by embedded-PIC.
516 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
517 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
518 related members, update comment.
519 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
520 code related to embedded-PIC.
521 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
522 initialization of now-removed 'adjust' member of
523 'struct ecoff_debug_info'.
524
b32de0bc 5252004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
526
527 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
528
955af222
PB
5292004-04-21 Philip Blundell <pb@nexus.co.uk>
530
531 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
532 relocs for locally defined symbols during -shared final link.
533 (elf32_arm_final_link_relocate): Likewise.
534
47a9f7b3
JJ
5352004-04-22 Jakub Jelinek <jakub@redhat.com>
536
537 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
538 ELF_LINK_POINTER_EQUALITY_NEEDED.
539 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
540 if r_type is not R_X86_64_PC32.
541 (elf64_x86_64_finish_dynamic_symbol): If
542 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
543 SHN_UNDEF symbols.
544
1f1799d5
KK
5452004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
546
547 * elf32-sh.c (sh_elf_plt_sym_val): New function.
548 (elf_backend_plt_sym_val): Define.
549
0fdea5ce
AC
5502004-04-22 Andrew Cagney <cagney@redhat.com>
551
552 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
553
5198ba8b
DA
5542004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
555
eb61d2d6 556 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
557 make_bfd_asection.
558 * som.c (som_set_section_contents): Constantify second argument.
559 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
560 (som_object_setup): Rework to avoid warning.
561 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
562 Likewise.
563
fe2e161a
AC
5642004-04-22 Andrew Cagney <cagney@redhat.com>
565
566 * cache.c (bfd_cache_close): Check for a previously closed file.
567
4c45e5c9
JJ
5682004-04-22 Jakub Jelinek <jakub@redhat.com>
569
570 * bfd.c (bfd_get_synthetic_symtab): Define.
571 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
572 NAME##_get_synthetic_symtab.
573 (struct bfd_target): Add _bfd_get_synthetic_symtab.
574 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
575 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
576 relplt_name fields.
577 (_bfd_elf_get_synthetic_symtab): New prototype.
578 * elfcode.h (elf_get_synthetic_symtab): Define.
579 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
580 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
581 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
582 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
583 * bfd-in2.h: Rebuilt.
584 * libbfd.h: Rebuilt.
585 * elf32-i386.c (elf_i386_plt_sym_val): New function.
586 (elf_backend_plt_sym_val): Define.
587 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
588 (elf_backend_plt_sym_val): Define.
589 * elf32-s390.c (elf_s390_plt_sym_val): New function.
590 (elf_backend_plt_sym_val): Define.
591 * elf64-s390.c (elf_s390_plt_sym_val): New function.
592 (elf_backend_plt_sym_val): Define.
593 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
594 (elf_backend_plt_sym_val): Define.
595 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
596 (elf_backend_plt_sym_val): Define.
597 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
598 (elf_backend_plt_sym_val): Define.
599 * aout-target.h (MY_get_synthetic_symtab): Define.
600 * aout-tic30.c (MY_get_synthetic_symtab): Define.
601 * coff-rs6000.c (rs6000coff_vec): Add
602 _bfd_nodynamic_get_synthetic_symtab.
603 (pmac_xcoff_vec): Likewise.
604 * coff64-rs6000.c (rs6000coff64_vec): Add
605 _bfd_nodynamic_get_synthetic_symtab.
606 (aix5coff64_vec): Likewise.
607 * sunos.c (MY_get_synthetic_symtab): Define.
608 * vms.c (vms_get_synthetic_symtab): Define.
609
d2f7ecac
NC
6102004-04-22 Nick Clifton <nickc@redhat.com>
611
612 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
613
fd99574b
NC
6142004-04-22 Peter Barada <peter@the-baradas.com>
615
616 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
617 * bfd2-in.h: Regenerate.
618 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
619
23867d67
CD
6202004-04-21 Chris Demetriou <cgd@broadcom.com>
621
622 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
623 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
624 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
625 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
626 * bfd-in2.h: Regenerate.
627
2c8c90bc
BW
6282004-04-21 Bob Wilson <bob.wilson@acm.org>
629
630 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
631 require relocations against a weak symbol to reference the same
632 symbol hash entry if not a final, static link.
633 (get_cached_value, add_value_map): Add final_static_link argument.
634 (remove_literals): Pass final_static_link argument as needed.
635
40838a72
AC
6362004-04-21 Andrew Cagney <cagney@redhat.com>
637
638 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
639 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
640 (opncls_bwrite, opncls_bclose, opncls_bflush)
641 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
642 bfd iovec that uses function callbacks.
643 (bfd_close): Use the iovec's bclose.
644 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
645 (cache_bclose, cache_bflush, cache_bstat)
646 (cache_iovec): New functions and global variable, implement a
647 cache "iovec", where applicable set bfd_error.
648 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
649 * bfdio.c (struct bfd_iovec): Define.
650 (real_read): Delete function.
651 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
652 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
653 assume that bread and bwrite set bfd_error.
654 * bfd.c (struct bfd): Add "iovec", update comments.
655 * bfd-in2.h, libbfd.h: Re-generate.
656
7f919c84
AC
6572004-04-21 Andrew Cagney <cagney@redhat.com>
658
659 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
660
715df9b8
EB
6612004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
662
663 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
664 (bfd_elf_gc_sections): Fail if a shared object is being created.
665 Do not fail if dynamic sections have been created. Instead call
666 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
667 dynamically referenced symbols. Do not mark the whole graph
668 rooted at .eh_frame, only the section proper.
669
6482c264
NC
6702004-04-20 DJ Delorie <dj@redhat.com>
671
672 * reloc.c: Add BFD_RELOC_32_SECREL.
673 * bfd-in2.h: Regenerate.
674 * libbfd.h: Likewise.
675 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
676 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
677 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
678
4dc570c2
JJ
6792004-04-19 Jakub Jelinek <jakub@redhat.com>
680
681 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
682 relocs against hidden/protected undefweak symbols properly.
683 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
684
0b60d5d3
MK
6852004-04-18 Mark Kettenis <kettenis@gnu.org>
686
687 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
688 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
689 core files.
690
d48bdb99
AM
6912004-04-17 Brian Ford <ford@vss.fsi.com>
692
693 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
694 filepos for the SizeOfHeaders field.
695 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
696 overflow.
697 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
698
57a1784e
AM
6992004-04-16 Alan Modra <amodra@bigpond.net.au>
700
701 * simple.c (bfd_simple_get_relocated_section_contents): Don't
702 change reloc_done. Set and restore _cooked_size.
703 (RETURN): Delete.
704
d1ad3f6f
MK
7052004-04-15 Mark Kettenis <kettenis@gnu.org>
706
707 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
708 core files.
709
3d1bca9d
NC
7102004-04-15 Nick Clifton <nickc@redhat.com>
711
712 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
713
019b892f
AM
7142004-04-15 Alan Modra <amodra@bigpond.net.au>
715
716 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
717
15b43f48
AM
7182004-04-15 H.J. Lu <hongjiu.lu@intel.com>
719
720 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
721 when it is a definition.
722
6de00a78
AM
7232004-04-14 Alan Modra <amodra@bigpond.net.au>
724
725 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
726 when statically linking PIC code.
727 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
728
279500de
TS
7292004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
730
731 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
732 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
733 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
734 * configure: Regenerate.
735
ccf2f652
RS
7362004-04-08 Richard Sandiford <rsandifo@redhat.com>
737
738 * elflink.c: Include libiberty.h.
739 * Makefile.am (elflink.lo): Depend on libiberty.h.
740 * Makefile.in: Regenerate.
741
ca07892d
DJ
7422004-04-06 Daniel Jacobowitz <drow@mvista.com>
743
744 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
745 ".MIPS.stubs".
746
a5a58ba4
L
7472004-04-05 H.J. Lu <hongjiu.lu@intel.com>
748
749 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
750 reserve the memory for dynamic linker
751
24d18d30
MK
7522004-04-05 Mark Kettenis <kettenis@gnu.org>
753
754 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
755 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
756
a4d7b4b5
L
7572004-04-02 H.J. Lu <hongjiu.lu@intel.com>
758
759 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
760 RELOC_FOR_GLOBAL_SYMBOL.
761 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
762
1f433d93
L
7632004-04-02 H.J. Lu <hongjiu.lu@intel.com>
764
765 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
766 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
767
e489d0ae
PB
7682004-04-01 Paul Brook <paul@codesourcery.com>
769
770 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
771 * elf32-arm.h (struct elf32_elf_section_map): New.
772 (struct _arm_elf_section_data): New.
773 (elf32_arm_section_data): Define.
774 (struct elf32_arm_link_hash_table): Add byteswap_code.
775 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
776 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
777 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
778 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
779 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
780 (bfd_elf32_new_section_hook, elf_backend_write_section,
781 elf_backend_link_output_symbol_hook): Define.
782
66a695f0
NC
7832004-04-01 Andy Chittenden <achittenden@bluearc.com>
784
785 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
786 that keeps the characters in a B_INCL..B_EINCL range.
787 (_bfd_link_section_stabs): When computing the sum of the
788 characters in a B_INCL..B_EINCL range also keep a copy of those
789 characters. Use this information to distinguish between
790 include sections that have the same sum and the same length
791 but which are nevertheless unique.
792
8375c36b
PB
7932004-03-31 Paul Brook <paul@codesourcery.com>
794
795 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
796 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
797
a56b48eb
NC
7982004-03-31 Andy Chittenden <achittenden@bluearc.com>
799
800 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
801 to 'sum_chars' and add field 'num_chars'.
802 (_bfd_link_section_stabs): When computing the sum of the
803 characters in a B_INCL..B_EINCL range also keep a count of the
804 number of characters. Use this information to help distinguish
805 between include sections when have the same sum but which
806 nevertheless are still unique.
807