2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
ee0bebb8
AJ
12001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2
3 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4 * Makefile.in: Regenerate.
5
2a38f751
KH
62001-01-21 Kazu Hirata <kazu@hxi.com>
7
8 * coff-a29k.c: Fix formatting.
9
c8492176
L
102001-01-19 H.J. Lu <hjl@gnu.org>
11
12 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
13 relocation section names.
14 (elf_i386_relocate_section): Report files with bad relocation
15 section names and return false.
16
a5377ec0
AJ
172001-01-17 Bo Thorsen <bo@suse.de>
18
19 * targets.c: Alphabetize list of xvecs.
20
b352eebf
AM
212001-01-14 Alan Modra <alan@linuxcare.com.au>
22
d952f17a
AM
23 * config.bfd: Add linux target variant for elfxx-hppa.
24 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
25 bfd_elf64_hppa_linux_vec.
26 * configure: Regenerate.
27 * elf64-hppa.c: Include elf64-target.h again to support linux
28 target variant.
29 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
30 * elf32-hppa.c: Include elf32-target.h again to support linux
31 target variant.
32 (elf32_hppa_post_process_headers): New function.
33 (elf_backend_post_process_headers): Define.
34 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
35 bfd_elf32_hppa_linux_vec.
36
c46b7515
AM
37 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
38 and data_segment_base fields.
39 (elf32_hppa_link_hash_table_create ): Init them.
40 (elf32_hppa_check_relocs): Update comments.
41 (hppa_record_segment_addr): New function.
42 (elf32_hppa_relocate_section): Call it.
43 (final_link_relocate): Handle R_PARISC_SEGREL32.
44 (elf32_hppa_final_link): New function.
45 (bfd_elf32_bfd_final_link): Define to call it.
46 (hppa_unwind_entry_compare): New function.
47 * cache.c (bfd_open_file): Create files in write+read mode.
48
49 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
50 SEGREL32 and numerous other relocs. Change duplicate
51 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
52
d768008d
AM
53 * opncls.c (bfd_fdopenr): Add parens like the comment says around
54 O_ACCMODE.
55
150ccafb
AM
56 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
57 .plt entries for DT_INIT and DT_FINI.
58 (elf32_hppa_finish_dynamic_sections): Remove special handling of
59 DT_INIT and DT_FINI.
60
b352eebf
AM
61 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
62 offsets for stub .plt access if wide mode. Check offset in range.
63
b3b9a062
NC
642001-01-13 Nick Clifton <nickc@redhat.com>
65
b7ed8fad
NC
66 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
67 line.
68
b3b9a062
NC
69 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
70 line.
71
6e0b89ee
AM
722001-01-12 Alan Modra <alan@linuxcare.com.au>
73
74 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
75 * configure: Regenerate.
76
0d2bcfaf
NC
772001-01-11 Peter Targett <peter.targett@arccores.com>
78
79 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
80 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
81 * cpu-arc.c (arch_info_struct): Add entries for variants.
82 (bfd_arc_arch) Set default to bfd_mach_arc_5.
83 (arc_get_mach) Don't assume machine names prefixed arc- before
84 testing.
85 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
86 selections.
87 (arc_elf_final_write_processing) Likewise.
88 (ELF_MACHINE_CODE) Use EM_ARC.
89
c31c1f70
NC
902001-01-10 Nick Clifton <nickc@redhat.com>
91
2758140b 92 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 93
5ad083e3
PB
942001-01-07 Philip Blundell <philb@gnu.org>
95
96 * README: Replace `bug-gnu-utils@gnu.org' with
97 `bug-binutils@gnu.org'.
98
7eae7d22
KH
992001-01-04 Kazu Hirata <kazu@hxi.com>
100
101 * som.c: Fix formatting.
102
509945ae
KH
1032001-01-03 Kazu Hirata <kazu@hxi.com>
104
3e932841
KH
105 * ecoffswap.h: Fix formatting.
106 * elf-bfd.h: Likewise.
107 * elfarm-nabi.c: Likewise.
108 * elfarm-oabi.c: Likewise.
109 * elfcode.h: Likewise.
110 * elfcore.h: Likewise.
111 * elflink.c: Likewise.
112 * elflink.h: Likewise.
113 * elfxx-ia64.c: Likewise.
114 * elfxx-target.h: Likewise.
115 * libbfd.c: Likewise
509945ae
KH
116 * linker.c: Likewise.
117 * lynx-core.c: Likewise.
118
892339ee
KH
1192001-01-02 Kazu Hirata <kazu@hxi.com>
120
121 * pc532-mach.c: Fix formatting.
122 * pe-arm.c: Likewise.
123 * pe-i386.c: Likewise.
124 * pe-mips.c: Likewise.
125 * pe-ppc.c: Likewise.
126 * pe-sh.c: Likewise.
127 * pei-mips.c: Likewise.
128 * pei-sh.c: Likewise.
ee91ed79 129 * peicode.h: Likewise.
892339ee
KH
130 * ppcboot.c: Likewise.
131 * ptrace-core.c: Likewise.
132
3d855632
KH
1332001-01-01 Kazu Hirata <kazu@hxi.com>
134
135 * reloc.c: Fix formatting.
136 * riscix.c: Likewise.
137 * rs6000-core.c: Likewise.
138 * xcoff-target.h: Likewise.
139
a77a9fef
HPN
1402000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
141
142 * elfcode.h (elf_object_p): Also restore the bfd mach field on
143 error, by calling bfd_default_set_arch_mach with incoming
144 values.
145
558e161f
KH
1462000-12-26 Kazu Hirata <kazu@hxi.com>
147
148 * vaxnetbsd.c: Fix formatting.
149 * versados.c: Likewise.
150 * vms-gsd.c: Likewise.
151 * vms-hdr.c: Likewise.
152 * vms-misc.c: Likewise.
153
3c579812
AO
1542000-12-25 Alexandre Oliva <aoliva@redhat.com>
155
156 * archive.c (coff_write_armap): Don't write more than symbol_count
157 `archive_member_file_ptr's.
158
672579e9
KH
1592000-12-25 Kazu Hirata <kazu@hxi.com>
160
161 * vms-tir.c: Fix formatting.
162
55f2d5ed
KH
1632000-12-23 Kazu Hirata <kazu@hxi.com>
164
165 * vms.c: Fix formatting.
166 * vms.h: Likewise.
167
23ccc829
NC
1682000-12-21 Santeri Paavolainen <santtu@ssh.com>
169
170 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
171
172 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
173
174 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
175 arithmetic.
176
177 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
178
179 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
180
8c603c85
NC
1812000-12-21 Richard Sandiford <rsandifo@redhat.com>
182
183 * libbfd.c (bfd_get_bits): Added
184 (bfd_put_bits): Likewise
185 * bfd-in.h: Declared the above.
186 * bfd-in2.h: Regenerated.
187
5bff4f56
KH
1882000-12-20 Kazu Hirata <kazu@hxi.com>
189
190 * targets.c: Fix formatting.
191 * tekhex.c: Likewise.
192 * trad-core.c: Likewise.
193
7b82c249
KH
1942000-12-19 Kazu Hirata <kazu@hxi.com>
195
196 * sco5-core.c: Fix formatting.
197 * section.c: Likewise.
198 * sparclinux.c: Likewise.
199 * sparclynx.c: Likewise.
200 * sparcnetbsd.c: Likewise.
201 * srec.c: Likewise.
202 * stabs.c: Likewise.
203 * stab-syms.c: Likewise.
204 * sunos.c: Likewise.
205 * syms.c: Likewise.
206 * sysdep.h: Likewise.
207
f78c5281
NC
2082000-12-18 Nick Clifton <nickc@redhat.com>
209
210 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
211 defined.
212 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
213 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
214
02b89dce
NC
2152000-12-18 Nick Clifton <nickc@redhat.com>
216
217 * vms-misc.c (_bfd_vms_get_record): Add default case to
218 file_format switch.
219
d20966a7
NC
2202000-12-15 Miloslav Trmac <mitr@volny.cz>
221
222 * elfcore.h (elf_core_file_p): Move to the start of the program
223 headers before attempting to read them.
224
6fa957a9
KH
2252000-12-14 Kazu Hirata <kazu@hxi.com>
226
227 * peigen.c: Fix formatting.
228 * som.c: Likewise.
229 * som.h: Likewise.
230
9602af51
KH
2312000-12-13 Kazu Hirata <kazu@hxi.com>
232
233 * peigen.c: Fix formatting.
234
514829c3
JW
2352000-12-12 Jim Wilson <wilson@redhat.com>
236
237 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
238
3a71aec8
NC
2392000-12-08 Mark Salter <msalter@redhat.com>
240
241 * binary.c (binary_set_section_contents): Ignore sections
242 with zero size.
243
1518639e
KH
2442000-12-12 Kazu Hirata <kazu@hxi.com>
245
246 * m68klinux.c: Fix formatting.
247 * m68knetbsd.c: Likewise.
248 * mipsbsd.c: Likewise.
249 * netbsd-core.c: Likewise.
250 * netbsd.h: Likewise.
251 * newsos3.c: Likewise.
252 * nlm32-alpha.c: Likewise.
253 * nlm32-i386.c: Likewise.
254 * nlm32-ppc.c: Likewise.
255 * nlm32-sparc.c: Likewise.
256 * nlmcode.h: Likewise.
257 * nlmswap.h: Likewise.
258 * nlm-target.h: Likewise.
259 * ns32knetbsd.c: Likewise.
260
b79e8c78
NC
2612000-12-10 Fred Fish <fnf@be.com>
262
d952f17a
AM
263 * elflink.h (elf_link_output_extsym): Don't complain about undefined
264 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 265
38b1a46c
NC
2662000-12-12 Nick Clifton <nickc@redhat.com>
267
268 * cpu-sh.c: Fix formattng.
269 * elf.c: Fix formattng.
270 * elf32-mips.c: Fix formattng.
271 * elf32-sh.c: Fix formattng.
272 * elf64-alpha.c: Fix formattng.
273
857ec808
NC
2742000-12-09 Nick Clifton <nickc@redhat.com>
275
276 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
277 dwarf2_find_line_info as last parameter to invocation of
278 _bfd_dwarf2_find_nearest_line.
279 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
280 dwarf2_find_line_info as last parameter to invocation of
281 _bfd_dwarf2_find_nearest_line.
282
51db3708
NC
2832000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
284
285 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
286 (BFD_LIBS): ...to here.
287 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
288 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
289 * Makefile.in: Regenerate.
290 * configure.in: Remove dwarf.lo from the elf shell variable.
291 * configure: Regenerate.
292 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
293 * libcoff.h: Regenerate.
d952f17a 294 * coffgen.c (coff_find_nearest_line): Call
857ec808 295 _bfd_dwarf2_find_nearest_line.
51db3708 296 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
297 accordingly.
298 (read_abbrevs): Likewise
299 (decode_line_info): Likewise.
300 (parse_comp_unit): Likewise.
301 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
302 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
303 * libbfd.h: Regenerate.
304 * elf.c (_bfd_elf_find_nearest_line): Update call.
305 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
306 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
307 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
308 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
309 (styp_to_sec_flags): Handle DWARF2 sections.
310 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
311 to _bfd_find_nearest_line.
312 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
313 call to _bfd_find_nearest_line.
d952f17a 314
435b1e90
KH
3152000-12-08 Kazu Hirata <kazu@hxi.com>
316
317 * coffgen.c: Fix formatting.
fe8bc63d 318 * elf-m10300.c: Likewise.
435b1e90
KH
319 * elf32-i386.c: Likewise.
320 * elf32-i960.c: Likewise.
321 * elf32-m68k.c: Likewise.
322 * elf32-mcore.c: Likewise.
323 * elf32-ppc.c: Likewise.
324 * elf32-sh.c: Likewise.
325 * elf32-sparc.c: Likewise.
326 * elf32-v850.c: Likewise.
fe8bc63d
KH
327 * elf64-alpha.c: Likewise.
328 * elf64-hppa.c: Likewise.
329 * elf64-mips.c: Likewise.
435b1e90 330 * elf64-sparc.c: Likewise.
435b1e90 331
8da6118f
KH
3322000-12-07 Kazu Hirata <kazu@hxi.com>
333
334 * elf32-ppc.c: Fix formatting.
335 * elf64-x86-64.c: Likewise.
336
a9922e52
UC
3372000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
338
339 From Ralf Baechle <ralf@gnu.org>
340
341 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
342 BFDs containing no sections or empty .text, .data or .bss sections
343 to be merged, regardless of their flags.
344
c3668558
KH
3452000-12-06 Kazu Hirata <kazu@hxi.com>
346
347 * elf32-m32r.c: Fix formatting.
348 * elf32-m68hc11.c: Likewise.
349 * elf32-m68hc12.c: Likewise.
350 * elf32-m68k.c: Likewise.
351 * elf32-mcore.c: Likewise.
352 * elf32-pj.c: Likewise.
353 * elf32-ppc.c: Likewise.
354
6609fa74
KH
3552000-12-05 Kazu Hirata <kazu@hxi.com>
356
357 * elf32-fr30.c: Fix formatting.
358 * elf32-hppa.c: Likewise.
359 * elf32-i370.c: Likewise.
360 * elf32-i386.c: Likewise.
361 * elf32-i860.c: Likewise.
362 * elf32-i960.c: Likewise.
363
a7c10850
KH
3642000-12-03 Kazu Hirata <kazu@hxi.com>
365
366 * elf32-arm.h: Fix formatting.
367 * elf32-avr.c: Likewise.
368 * elf32-cris.c: Likewise.
369 * elf32-d10v.c: Likewise.
370 * elf32-d30v.c: Likewise.
371 * elf-hppa.h: Likewise.
372 * elf-m10200.c: Likewise.
373 * elf-m10300.c: Likewise.
374
e7af610e
NC
3752000-12-01 Chris Demetriou <cgd@sibyte.com>
376
d952f17a
AM
377 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
378 bfd_mach_mips32_4k. Update FIXME comment.
379 * archures.c (bfd_mach_mips32): New constant.
380 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
381 the latter, renumber it.
382 * bfd-in2.h (bfd_mach_mips32): New constant.
383 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
384 the latter, renumber it.
385 * cpu-mips.c (I_mips32): New constant.
386 (I_mips4K, I_mips32_4k): Rename the former to the latter.
387 (arch_info_struct): Add bfd_mach_mips32 entry, replace
388 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
389 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
390 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
391 with E_MIPS_MACH_MIPS32_4K.
392 (_bfd_mips_elf_final_write_processing): Replace
393 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
394 bfd_mach_mips32 case.
395 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
396 comparison with support for MIPS32.
397 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
398 MIPS32.
399
400 * aoutx.h (NAME(aout,machine_type)): Add cases for
401 bfd_mach_mips5 and bfd_mach_mips64.
402 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
403 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
404 * cpu_mips.c (I_mips5, I_mips64): New definitions.
405 (arch_info_struct): Add entries for bfd_mach_mips5 and
406 bfd_mach_mips64.
407 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
408 _bfd_mips_elf_print_private_bfd_data): Add cases for
409 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
410 (_bfd_mips_elf_final_write_processing): Add cases for
411 bfd_mach_mips5 and bfd_mach_mips64.
412
413 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
414 bfd_mach_mips_sb1 case.
415 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
416 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
417 * bfd/cpu-mips.c (I_sb1): New constant.
418 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
419 * bfd/elf32-mips.c (elf_mips_mach): Add case for
420 E_MIPS_MACH_SB1.
421 (_bfd_mips_elf_final_write_processing): Add case for
422 bfd_mach_mips_sb1.
423
4242000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
425
426 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
427 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
428 (sparc*-*-rtems*): Switched from a.out to ELF.
429
8d88c4ca 4302000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
431
432 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
433 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
434 (elf64-x86-64.lo): Add dependencies.
435 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
436 bfd_mach_x86_64_intel_syntax.
437 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
438 * config.bfd (x86_64): Add.
439 * configure.in: Add support for bfd_elf64_x86_64_vec.
440 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
441 (bfd_i386_arch, i8086_ar): Link in.
442 * elf64-x86-64.c: New file.
443 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
444 * targets.c (bfd_elf64_x86_64_vec): Add.
445 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 446
fbc4fff4
KH
4472000-11-30 Kazu Hirata <kazu@hxi.com>
448
449 * xcofflink.c: Fix formatting.
450
e60b52c6
KH
4512000-11-28 Kazu Hirata <kazu@hxi.com>
452
453 * aoutx.h: Fix formatting.
454 * bfd-in.h: Likewise.
455 * bfd-in2.h: Likewise.
456 * cache.c: Likewise.
457 * cisco-core.c: Likewise.
458 * coff64-rs6000.c: Likewise.
459 * coffcode.h: Likewise.
460 * coffswap.h: Likewise.
461 * corefile.c: Likewise.
be3ccd9c 462 * elf32-mips.c: Likewise.
e60b52c6 463
336eced2
KH
4642000-11-27 Kazu Hirata <kazu@hxi.com>
465
466 * aout-adobe.c: Fix formatting.
244148ad
KH
467 * coff64-rs6000.c: Likewise.
468 * coffgen.c: Likewise.
469 * cofflink.c: Likewise.
336eced2 470
d71f672e
PB
4712000-11-27 Philip Blundell <pb@futuretv.com>
472
473 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
474 (obj_coff_strings_written): New accessor macro for above.
475 * libcoff.h: Regenerate.
476 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
477 strings.
478 * coffcode.h (coff_write_object_contents): No need to write out
479 the string table if it's already been done.
480
bc7a577d
PB
4812000-11-22 Philip Blundell <pb@futuretv.com>
482
d952f17a 483 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
484 weak undefined symbols.
485
077b8428
NC
4862000-11-24 Nick Clifton <nickc@redhat.com>
487
488 * archures.c (bfd_mach_arm_5TE): Define.
489 (bfd_mach_arm+XScale): Define.
490 * bfd-in2.h: Regenerate.
491
492 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
493 BFD_RELOC_ARM_PCREL_BLX.
494
495 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
496 XScale machine numbers.
497
498 * config.bfd (xscale-elf): Add target.
499 (xscale-coff): Add target.
500
501 * cpu-arm.c: Add xscale machine name.
502 Add v5t, v5te and XScale machine numbers.
503
e9e41bd9
KH
5042000-11-23 Kazu Hirata <kazu@hxi.com>
505
506 * aix386-core.c: Fix formatting.
507
64bf6ae6
JW
5082000-11-22 Jim Wilson <wilson@redhat.com>
509
510 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
511 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
512 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
513 (ins_imms_scaled): Initialize sign_bit at function entry.
514 (elf64_ia64_operands): Add missing initializers.
515 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
516 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
517 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
518 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
519 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
520 parameters.
521 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
522 and free_extsyms at function entry.
523 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
524 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
525 (get_got): Delete unused local srel.
526 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
527 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 528
1abaf976
KH
5292000-11-21 Kazu Hirata <kazu@hxi.com>
530
6e301b2b
KH
531 * coff-a29k.c: Fix formatting.
532 * coff-h8500.c: Likewise.
533 * coff-i960.c: Likewise.
534 * coff-ppc.c: Likewise.
535 * coff-rs6000.c: Likewise.
536 * coff-stgo32.c: Likewise.
537 * coff-tic54x.c: Likewise.
538 * coff-w65.c: Likewise.
539 * cpu-h8500.c: Likewise.
540 * cpu-hppa.c: Likewise.
541 * cpu-ns32k.c: Likewise.
542 * ecoff.c: Likewise.
1abaf976
KH
543 * ecofflink.c: Likewise.
544
a0fc8ba1
NC
5452000-11-21 Nick Clifton <nickc@redhat.com>
546
547 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
548 remove possibility of infinite loop.
549
beb0d161
KH
5502000-11-20 Kazu Hirata <kazu@hxi.com>
551
552 * aix386-core.c: Fix formatting.
553 * aout-adobe.c: Likewise.
554 * aout-arm.c: Likewise.
555 * aout-encap.c: Likewise.
556 * aout-ns32k.c: Likewise.
557 * aout-target.h: Likewise.
558 * aout-tic30.c: Likewise.
559 * aoutf1.h: Likewise.
560 * aoutx.h: Likewise.
561 * archive.c: Likewise.
eb6e10cb
KH
562 * bfd-in.h: Likewise.
563 * bfd-in2.h: Likewise.
564 * bfd.c: Likewise.
565 * bout.c: Likewise.
beb0d161 566
2c2475db
JW
5672000-11-17 H.J. Lu <hjl@gnu.org>
568
569 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
570 pltoff entries for DT_INIT and DT_FINI.
571 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
572 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
573 entries.
574
18b27f17
RH
5752000-11-16 Richard Henderson <rth@redhat.com>
576
577 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
578 (allocate_dynrel_entries): Likewise.
579 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
580 (set_pltoff_entry): Likewise.
581 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
582 (elfNN_ia64_reloc_type_lookup): Likewise.
583 (elfNN_ia64_install_value): Likewise.
584 (elfNN_ia64_relocate_section): Likewise.
585 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
586 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
587
98591c73
KH
5882000-11-16 Kazu Hirata <kazu@hxi.com>
589
71f6b586
KH
590 * cpu-a29k.c: Fix formatting.
591 * cpu-alpha.c: Likewise.
592 * cpu-arm.c: Likewise.
593 * cpu-avr.c: Likewise.
594 * cpu-d10v.c: Likewise.
595 * cpu-h8500.c: Likewise.
596 * cpu-hppa.c: Likewise.
597 * cpu-i370.c: Likewise.
598 * cpu-i386.c: Likewise.
599 * cpu-i960.c: Likewise.
600 * cpu-ia64-opc.c: Likewise.
601 * cpu-ia64.c: Likewise.
602 * cpu-m32r.c: Likewise.
603 * cpu-m68hc11.c: Likewise.
604 * cpu-m68hc12.c: Likewise.
605 * cpu-m68k.c: Likewise.
606 * cpu-m88k.c: Likewise.
607 * cpu-mips.c: Likewise.
608 * cpu-ns32k.c: Likewise.
609 * cpu-pj.c: Likewise.
610 * cpu-powerpc.c: Likewise.
611 * cpu-sh.c: Likewise.
612 * cpu-sparc.c: Likewise.
613 * cpu-tic54x.c: Likewise.
614 * cpu-v850.c: Likewise.
615 * cpu-vax.c: Likewise.
616 * cpu-w65.c: Likewise.
617 * cpu-we32k.c: Likewise.
618 * cpu-z8k.c: Likewise.
619 * dwarf1.c: Likewise.
98591c73
KH
620 * dwarf2.c: Likewise.
621
c5930ee6
KH
6222000-11-15 Kazu Hirata <kazu@hxi.com>
623
624 * coff-arm.c: Fix formatting.
625 * coff-ppc.c: Likewise.
626 * coff-rs6000.c: Likewise.
cbfe05c4
KH
627 * coff-sh.c: Likewise.
628 * coff-sparc.c: Likewise.
629 * coff-tic30.c: Likewise.
630 * coff-tic54x.c: Likewise.
631 * coff-tic80.c: Likewise.
632 * coff-w65.c: Likewise.
633 * coff-we32k.c: Likewise.
634 * coff-z8k.c: Likewise.
c5930ee6 635
dac544a8
RH
6362000-11-15 Richard Henderson <rth@redhat.com>
637
638 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
639 section with the same ALLOC|LOAD flags as the source section.
640
c810873d
JJ
6412000-11-14 Jakub Jelinek <jakub@redhat.com>
642
643 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
644 by STO_ALPHA constants.
645
43646c9d
KH
6462000-11-14 Kazu Hirata <kazu@hxi.com>
647
648 * coff-pmac.c: Fix formatting.
649 * coff-ppc.c: Likewise.
650
051b8577
L
6512000-11-13 H.J. Lu <hjl@gnu.org>
652
653 * elflink.h (elf_link_add_object_symbols): Also add indirect
654 symbols for common symbols with the default version.
655
90460d97
PB
6562000-11-09 Philip Blundell <pb@futuretv.com>
657
658 * section.c (STD_SECTION): Set gc_mark flag.
659
b48499ec
KH
6602000-11-11 Kazu Hirata <kazu@hxi.com>
661
662 * coff-i960.c: Likewise.
663 * coff-m68k.c: Likewise.
664 * coff-m88k.c: Likewise.
665 * coff-mcore.c: Likewise.
666 * coff-mips.c: Likewise.
667
c5aeb40f
AO
6682000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
669
670 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
671
5fcfd273
KH
6722000-11-10 Kazu Hirata <kazu@hxi.com>
673
674 * coff-h8300.c: Fix formatting.
675 * coff-h8500.c: Likewise.
676 * coff-i386.c: Likewise.
677 * coff-i860.c: Likewise.
678 * coff-i960.c: Likewise.
679 * coff-ia64.c: Likewise.
680
047066e1
KH
6812000-11-09 Kazu Hirata <kazu@hxi.com>
682
683 * archive.c: Fix formatting.
684 * archures.c: Likewise.
685
9a951beb
RH
6862000-11-07 Richard Henderson <rth@redhat.com>
687
688 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
689 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
690 * section.c (bfd_set_section_contents): Call memcpy if
691 section->contents set and location not equal to contents plus offset.
692
aebad5fe
KH
6932000-11-08 Kazu Hirata <kazu@hxi.com>
694
8546af74
KH
695 * bfd-in.h: Fix formatting.
696 * bfd-in2.h: Likewise.
697 * bfd.c: Likewise.
aebad5fe
KH
698 * binary.c: Likewise.
699 * bout.c: Likewise.
346ceb11
KH
700 * coff-a29k.c: Likewise.
701 * coff-alpha.c: Likewise.
702 * coff-apollo.c: Likewise.
703 * coff-aux.c: Likewise.
aebad5fe 704
0ef5a5bd
KH
7052000-11-07 Kazu Hirata <kazu@hxi.com>
706
707 * aix386-core.c: Fix formatting.
708 * aoutf1.h: Likewise.
709 * aoutx.h: Likewise.
710 * archures.c: Likewise.
711 * armnetbsd.c: Likewise.
712
d562d2fb
AM
7132000-11-07 Alan Modra <alan@linuxcare.com.au>
714
715 * coff-h8300.c (special): Adjust reloc address.
716
bbe66d08
JW
7172000-11-06 Steve Ellcey <sje@cup.hp.com>
718
4efc3e05 719 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
720 to differentiate elf32 and elf64 on ia64.
721 * bfd-in2.h: Regenerate.
722 * config.bfd: Add target for "ia64*-*-hpux*".
723 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
724 * configure: Regenerate.
4efc3e05 725 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
726 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
727
728 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
729 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
730 * Makefile.in: Regnerate.
4efc3e05 731 * elf64-ia64.c: Deleted.
bbe66d08
JW
732 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
733
c4dfa77f
KH
7342000-11-06 Kazu Hirata <kazu@hxi.com>
735
736 * aout-adobe.c: Fix formatting.
737 * aout-arm.c: Likewise.
738 * aout-cris.c: Likewise.
739 * aout-encap.c: Likewise.
740 * aout-ns32k.c: Likewise.
741 * aout-target.h: Likewise.
742 * aout-tic30.c: Likewise.
743
cf919dfd
PB
7442000-11-05 Philip Blundell <philb@gnu.org>
745
746 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
747 BFDs containing no sections to be merged, regardless of their flags.
748
7492000-11-04 Philip Blundell <philb@gnu.org>
750
751 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
752 if a relocation for an undefined symbol also results in an
753 overflow.
754
8d88c4ca 7552000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
756
757 * config.bfd: Add support for Sun Chorus.
758
46d59bfa
DB
7592000-11-05 David O'Brien <obrien@FreeBSD.org>
760
761 * configure.in: Recognize alpha-*-freebsd*.
762 * configure: Regenerate.
763
d952f17a 7642000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
765
766 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
767 (Chunk): New global variable set by a parameter in objcopy.c.
768 (S3Forced): New global variable set by a parameter in
769 objcopy.c.
770 (srec_set_section_contents): If S3Forced is true, always generate
771 S3 records.
772 (srec_write_section): Use 'Chunk' to limit maximum length of S
773 records.
774
59ff2774
NC
7752000-11-02 Per Lundberg <plundis@chaosdev.org>
776
777 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
778 * Makefile.in: Regenerate.
779 * bfd-in2.h: Regenerate.
780 * po/bfd.pot: Regenerate.
d952f17a 781
ee43f35e
PB
7822000-10-31 Philip Blundell <philb@gnu.org>
783
784 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
785 EF_SOFT_FLOAT if it is defined.
786
1006ba19
PB
7872000-10-27 Philip Blundell <philb@gnu.org>
788
789 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
790 attempts to mix PIC code with non-PIC, just mark the output as
791 being position dependent.
d952f17a
AM
792 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
793 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 794 all mismatches, not just the first one.
d952f17a 795
c4920b97
NC
7962000-10-25 Chris Demetriou <cgd@sibyte.com>
797
798 * ieee.c (ieee_archive_p): Plug one of many possible
799 memory leaks in error handling.
800
19f7b010
JJ
8012000-10-20 Jakub Jelinek <jakub@redhat.com>
802
803 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
804 elf32_sparc_object_p, elf32_sparc_final_write_processing):
805 Support v8plusb.
806 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
807 sparc64_elf_object_p): Support v9b.
808 * archures.c: Declare v8plusb and v9b machines.
809 * bfd-in2.h: Ditto.
810 * cpu-sparc.c: Ditto.
811
e1e0340b
GK
8122000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
813
ea5fbc67
GK
814 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
815 of a GOT reloc.
816
e1e0340b
GK
817 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
818 (SYMBOL_CALLS_LOCAL): New macro.
819 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
820 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
821 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
822 (ppc_elf_relocate_section): Use flag variable to determine
823 whether the relocation refers to a local symbol.
824 Test whether a PLTREL24 reloc will produce a reloc by looking
825 to see whether a PLT entry was made.
826
a4b120e1
GK
8272000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
828
829 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
830 entries that could serve as a definition for a weak symbol.
831
5af5b85b
UC
8322000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
833
834 From Ralf Baechle <ralf@gnu.org>
835
836 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
837 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
838 against local symbols.
839 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 840
3ef20aaa
AM
8412000-10-12 Alan Modra <alan@linuxcare.com.au>
842
24376d1b
AM
843 * section.c (struct sec): Add kept_section.
844 (struct bfd_comdat_info): Remove sec, we can use above.
845 (STD_SECTION): Add initializer.
846 (bfd_make_section_anyway): Init here too.
847
848 * bfd-in2.h: Regenerate.
849
850 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 851 zeroing of `flags'.
24376d1b
AM
852 (elf_link_input_bfd): Set all asection->symbol->value's here, and
853 fudge values for discarded link-once section symbols.
854
3ef20aaa
AM
855 * elf64-hppa.c: Include alloca-conf.h
856
c0e219cc
AM
8572000-10-11 Alan Modra <alan@linuxcare.com.au>
858
d01e2a23
AM
859 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
860
c0e219cc
AM
861 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
862
fe268b66
AM
8632000-10-10 Alan Modra <alan@linuxcare.com.au>
864
865 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
866
4d7ce4dd
AM
8672000-10-10 Tom Rix <trix@redhat.com>
868
d952f17a 869 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
870 newsect->symbol fails to alloc. Use bfd_release instead of free.
871
f3b6f7c3
RH
8722000-10-09 Richard Henderson <rth@cygnus.com
873
874 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
875 (elf64_ia64_unwind_entry_compare): New.
876 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
877
44852b19
AM
8782000-10-07 Alan Modra <alan@linuxcare.com.au>
879
fc8c40a0
AM
880 * elflink.h (size_dynamic_sections): Don't create various tags if
881 .dynstr is excluded from the link. Don't set first dynsym entry
882 if dynsymcount is zero.
883 (elf_bfd_final_link): Don't try to swap out dynamic syms if
884 .dynsym excluded from the link. Don't try to write any dynamic
885 sections excluded from the link.
886
44852b19
AM
887 * elf.c (swap_out_syms): Handle global section symbols.
888
3e4554a2
DD
8892000-10-05 DJ Delorie <dj@redhat.com>
890
891 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
892 * coffcode.h (coff_set_alignment_hook): read extended reloc count
893 (coff_write_relocs): write extended reloc count
894 (coff_write_object_contents): account for extended relocs
895
fa152c49
JW
8962000-10-05 Jim Wilson <wilson@cygnus.com>
897
898 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
899 field.
900 * elf.c (_bfd_elf_make_section_from_shdr): Call the
901 elf_backend_section_flags function.
902 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
903 code.
904 (elf64_ia64_section_flags): New function containing flag conversion
905 code.
906 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
907 * elfxx-target.h (elf_backend_section_flags): Define.
908 (elfNN_bed): Initialize elf_backend_section_flags field.
909
36605136
AM
9102000-10-02 Alan Modra <alan@linuxcare.com.au>
911
912 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
913 _bfd_elf32_gc_record_vtable. Correct a comment.
914
4b6609a0
UC
9152000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
916
917 From Ralf Baechle <ralf@gnu.org>
918
919 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
920 produces binaries with got[1] = 0x80000001 to differenciate them
921 for the dynamic linker from the broken binaries produced by old
922 versions.
36605136 923
f572a39d
AM
9242000-09-30 Petr Sorfa <petrs@sco.com>
925
926 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
927 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
928 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
929 * configure: Regenerate.
930
4da81684
HPN
9312000-09-27 Hans-Peter Nilsson <hp@axis.com>
932
933 Define two bfd_targets for absence and presence of leading
934 underscore on symbols. Make sure to only link same kind.
935 * elf32-cris.c (cris_elf_object_p,
936 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
937 cris_elf_merge_private_bfd_data): New.
938 (elf_backend_object_p, elf_backend_final_write_processing,
939 bfd_elf32_bfd_print_private_bfd_data,
940 bfd_elf32_bfd_merge_private_bfd_data): Define.
941 <Target vector definition>: Include elf32-target.h twice with
942 different macro settings:
943 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
944 bfd_elf32_us_cris_vec.
945 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
946 (elf_symbol_leading_char): First as 0, then '_'.
947 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
948 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
949 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
950 * configure: Regenerate.
951 * targets.c: Declare bfd_elf32_us_cris_vec.
952 * po/bfd.pot: Regenerate.
953
9a5aca8c
AM
9542000-09-29 Momchil Velikov <velco@fadata.bg>
955
956 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
957 R_ARM_THM_PC22 relocations.
958
512a2384
AM
9592000-09-29 NIIBE Yutaka <gniibe@chroot.org>
960
961 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
962
6c99a5c3
AM
9632000-09-29 Momchil Velikov <velco@fadata.bg>
964
965 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
966 is has the SEC_HAS_CONTENTS flag set.
967