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