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