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