0fc9371665ba1425a17b009a7854ce2a0748f139
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-01-25 Kazu Hirata <kazu@hxi.com>
2
3 * bfd-in2.h: Rebuild.
4 * libbfd.h: Likewise.
5
6 2001-01-23 H.J. Lu <hjl@gnu.org>
7
8 * bfd-in2.h: Rebuild.
9
10 2001-01-23 H.J. Lu <hjl@gnu.org>
11
12 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
13 is NULL or PRIV(vms_rec) is outside of the buffer.
14
15 2001-01-23 Kazu Hirata <kazu@hxi.com>
16
17 * coff64-rs6000.c: Fix formatting.
18 * coff-arm.c: Likewise.
19 * coffgen.c: Likewise.
20 * cofflink.c: Likewise.
21 * coff-mcore.c: Likewise.
22 * coff-mips.c: Likewise.
23 * coff-pmac.c: Likewise.
24 * coff-ppc.c: Likewise.
25 * coff-rs6000.c: Likewise.
26 * elf32.c: Likewise.
27 * elf32-fr30.c: Likewise.
28 * elf32-i370.c: Likewise.
29 * elf32-i860.c: Likewise.
30 * elf32-m32r.c: Likewise.
31 * elf32-m68k.c: Likewise.
32 * elf32-mcore.c: Likewise.
33 * elf32-ppc.c: Likewise.
34 * elf32-sh.c: Likewise.
35 * elf32-v850.c: Likewise.
36 * elf64-alpha.c: Likewise.
37 * elf64-sparc.c: Likewise.
38 * elflink.c: Likewise.
39 * elflink.h: Likewise.
40 * elf-m10200.c: Likewise.
41 * elf-m10300.c: Likewise.
42 * elfxx-ia64.c: Likewise.
43
44 * aoutx.h: Fix formatting.
45 * bfd.c: Likewise.
46 * bfd-in2.h: Likewise.
47 * bfd-in.h: Likewise.
48 * cpu-i386.c: Likewise.
49 * cpu-m68hc11.c: Likewise.
50 * dwarf2.c: Likewise.
51 * elf64-x86-64.c: Likewise.
52 * format.c: Likewise.
53 * freebsd.h: Likewise.
54 * hash.c: Likewise.
55 * hp300hpux.c: Likewise.
56 * hppabsd-core.c: Likewise.
57 * hpux-core.c: Likewise.
58
59 2001-01-22 Bo Thorsen <bo@suse.de>
60
61 * elf64-x86-64.c: Added PIC support for X86-64.
62 (elf64_x86_64_link_hash_newfunc): Function added.
63 (elf64_x86_64_link_hash_table_create): Likewise.
64 (elf64_x86_64_check_relocs): Likewise.
65 (elf64_x86_64_gc_mark_hook): Likewise.
66 (elf64_x86_64_gc_sweep_hook): Likewise.
67 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
68 (elf64_x86_64_size_dynamic_sections): Likewise.
69 (elf64_x86_64_discard_copies): Likewise.
70 (elf64_x86_64_finish_dynamic_symbol): Likewise.
71 (elf64_x86_64_finish_dynamic_sections): Likewise.
72 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
73
74 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
75
76 * Makefile.am (install-data-local): Make use of $(DESTDIR).
77 * Makefile.in: Regenerate.
78
79 2001-01-21 Kazu Hirata <kazu@hxi.com>
80
81 * coff-a29k.c: Fix formatting.
82
83 2001-01-19 H.J. Lu <hjl@gnu.org>
84
85 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
86 relocation section names.
87 (elf_i386_relocate_section): Report files with bad relocation
88 section names and return false.
89
90 2001-01-17 Bo Thorsen <bo@suse.de>
91
92 * targets.c: Alphabetize list of xvecs.
93
94 2001-01-14 Alan Modra <alan@linuxcare.com.au>
95
96 * config.bfd: Add linux target variant for elfxx-hppa.
97 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
98 bfd_elf64_hppa_linux_vec.
99 * configure: Regenerate.
100 * elf64-hppa.c: Include elf64-target.h again to support linux
101 target variant.
102 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
103 * elf32-hppa.c: Include elf32-target.h again to support linux
104 target variant.
105 (elf32_hppa_post_process_headers): New function.
106 (elf_backend_post_process_headers): Define.
107 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
108 bfd_elf32_hppa_linux_vec.
109
110 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
111 and data_segment_base fields.
112 (elf32_hppa_link_hash_table_create ): Init them.
113 (elf32_hppa_check_relocs): Update comments.
114 (hppa_record_segment_addr): New function.
115 (elf32_hppa_relocate_section): Call it.
116 (final_link_relocate): Handle R_PARISC_SEGREL32.
117 (elf32_hppa_final_link): New function.
118 (bfd_elf32_bfd_final_link): Define to call it.
119 (hppa_unwind_entry_compare): New function.
120 * cache.c (bfd_open_file): Create files in write+read mode.
121
122 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
123 SEGREL32 and numerous other relocs. Change duplicate
124 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
125
126 * opncls.c (bfd_fdopenr): Add parens like the comment says around
127 O_ACCMODE.
128
129 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
130 .plt entries for DT_INIT and DT_FINI.
131 (elf32_hppa_finish_dynamic_sections): Remove special handling of
132 DT_INIT and DT_FINI.
133
134 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
135 offsets for stub .plt access if wide mode. Check offset in range.
136
137 2001-01-13 Nick Clifton <nickc@redhat.com>
138
139 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
140 line.
141
142 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
143 line.
144
145 2001-01-12 Alan Modra <alan@linuxcare.com.au>
146
147 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
148 * configure: Regenerate.
149
150 2001-01-11 Peter Targett <peter.targett@arccores.com>
151
152 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
153 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
154 * cpu-arc.c (arch_info_struct): Add entries for variants.
155 (bfd_arc_arch) Set default to bfd_mach_arc_5.
156 (arc_get_mach) Don't assume machine names prefixed arc- before
157 testing.
158 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
159 selections.
160 (arc_elf_final_write_processing) Likewise.
161 (ELF_MACHINE_CODE) Use EM_ARC.
162
163 2001-01-10 Nick Clifton <nickc@redhat.com>
164
165 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
166
167 2001-01-07 Philip Blundell <philb@gnu.org>
168
169 * README: Replace `bug-gnu-utils@gnu.org' with
170 `bug-binutils@gnu.org'.
171
172 2001-01-04 Kazu Hirata <kazu@hxi.com>
173
174 * som.c: Fix formatting.
175
176 2001-01-03 Kazu Hirata <kazu@hxi.com>
177
178 * ecoffswap.h: Fix formatting.
179 * elf-bfd.h: Likewise.
180 * elfarm-nabi.c: Likewise.
181 * elfarm-oabi.c: Likewise.
182 * elfcode.h: Likewise.
183 * elfcore.h: Likewise.
184 * elflink.c: Likewise.
185 * elflink.h: Likewise.
186 * elfxx-ia64.c: Likewise.
187 * elfxx-target.h: Likewise.
188 * libbfd.c: Likewise
189 * linker.c: Likewise.
190 * lynx-core.c: Likewise.
191
192 2001-01-02 Kazu Hirata <kazu@hxi.com>
193
194 * pc532-mach.c: Fix formatting.
195 * pe-arm.c: Likewise.
196 * pe-i386.c: Likewise.
197 * pe-mips.c: Likewise.
198 * pe-ppc.c: Likewise.
199 * pe-sh.c: Likewise.
200 * pei-mips.c: Likewise.
201 * pei-sh.c: Likewise.
202 * peicode.h: Likewise.
203 * ppcboot.c: Likewise.
204 * ptrace-core.c: Likewise.
205
206 2001-01-01 Kazu Hirata <kazu@hxi.com>
207
208 * reloc.c: Fix formatting.
209 * riscix.c: Likewise.
210 * rs6000-core.c: Likewise.
211 * xcoff-target.h: Likewise.
212
213 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
214
215 * elfcode.h (elf_object_p): Also restore the bfd mach field on
216 error, by calling bfd_default_set_arch_mach with incoming
217 values.
218
219 2000-12-26 Kazu Hirata <kazu@hxi.com>
220
221 * vaxnetbsd.c: Fix formatting.
222 * versados.c: Likewise.
223 * vms-gsd.c: Likewise.
224 * vms-hdr.c: Likewise.
225 * vms-misc.c: Likewise.
226
227 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
228
229 * archive.c (coff_write_armap): Don't write more than symbol_count
230 `archive_member_file_ptr's.
231
232 2000-12-25 Kazu Hirata <kazu@hxi.com>
233
234 * vms-tir.c: Fix formatting.
235
236 2000-12-23 Kazu Hirata <kazu@hxi.com>
237
238 * vms.c: Fix formatting.
239 * vms.h: Likewise.
240
241 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
242
243 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
244
245 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
246
247 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
248 arithmetic.
249
250 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
251
252 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
253
254 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
255
256 * libbfd.c (bfd_get_bits): Added
257 (bfd_put_bits): Likewise
258 * bfd-in.h: Declared the above.
259 * bfd-in2.h: Regenerated.
260
261 2000-12-20 Kazu Hirata <kazu@hxi.com>
262
263 * targets.c: Fix formatting.
264 * tekhex.c: Likewise.
265 * trad-core.c: Likewise.
266
267 2000-12-19 Kazu Hirata <kazu@hxi.com>
268
269 * sco5-core.c: Fix formatting.
270 * section.c: Likewise.
271 * sparclinux.c: Likewise.
272 * sparclynx.c: Likewise.
273 * sparcnetbsd.c: Likewise.
274 * srec.c: Likewise.
275 * stabs.c: Likewise.
276 * stab-syms.c: Likewise.
277 * sunos.c: Likewise.
278 * syms.c: Likewise.
279 * sysdep.h: Likewise.
280
281 2000-12-18 Nick Clifton <nickc@redhat.com>
282
283 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
284 defined.
285 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
286 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
287
288 2000-12-18 Nick Clifton <nickc@redhat.com>
289
290 * vms-misc.c (_bfd_vms_get_record): Add default case to
291 file_format switch.
292
293 2000-12-15 Miloslav Trmac <mitr@volny.cz>
294
295 * elfcore.h (elf_core_file_p): Move to the start of the program
296 headers before attempting to read them.
297
298 2000-12-14 Kazu Hirata <kazu@hxi.com>
299
300 * peigen.c: Fix formatting.
301 * som.c: Likewise.
302 * som.h: Likewise.
303
304 2000-12-13 Kazu Hirata <kazu@hxi.com>
305
306 * peigen.c: Fix formatting.
307
308 2000-12-12 Jim Wilson <wilson@redhat.com>
309
310 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
311
312 2000-12-08 Mark Salter <msalter@redhat.com>
313
314 * binary.c (binary_set_section_contents): Ignore sections
315 with zero size.
316
317 2000-12-12 Kazu Hirata <kazu@hxi.com>
318
319 * m68klinux.c: Fix formatting.
320 * m68knetbsd.c: Likewise.
321 * mipsbsd.c: Likewise.
322 * netbsd-core.c: Likewise.
323 * netbsd.h: Likewise.
324 * newsos3.c: Likewise.
325 * nlm32-alpha.c: Likewise.
326 * nlm32-i386.c: Likewise.
327 * nlm32-ppc.c: Likewise.
328 * nlm32-sparc.c: Likewise.
329 * nlmcode.h: Likewise.
330 * nlmswap.h: Likewise.
331 * nlm-target.h: Likewise.
332 * ns32knetbsd.c: Likewise.
333
334 2000-12-10 Fred Fish <fnf@be.com>
335
336 * elflink.h (elf_link_output_extsym): Don't complain about undefined
337 symbols in shared objects if allow_shlib_undefined is true.
338
339 2000-12-12 Nick Clifton <nickc@redhat.com>
340
341 * cpu-sh.c: Fix formattng.
342 * elf.c: Fix formattng.
343 * elf32-mips.c: Fix formattng.
344 * elf32-sh.c: Fix formattng.
345 * elf64-alpha.c: Fix formattng.
346
347 2000-12-09 Nick Clifton <nickc@redhat.com>
348
349 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
350 dwarf2_find_line_info as last parameter to invocation of
351 _bfd_dwarf2_find_nearest_line.
352 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
353 dwarf2_find_line_info as last parameter to invocation of
354 _bfd_dwarf2_find_nearest_line.
355
356 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
357
358 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
359 (BFD_LIBS): ...to here.
360 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
361 (BFD_LIBS_CFILES): ...to here.
362 * Makefile.in: Regenerate.
363 * configure.in: Remove dwarf.lo from the elf shell variable.
364 * configure: Regenerate.
365 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
366 * libcoff.h: Regenerate.
367 * coffgen.c (coff_find_nearest_line): Call
368 _bfd_dwarf2_find_nearest_line.
369 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
370 accordingly.
371 (read_abbrevs): Likewise
372 (decode_line_info): Likewise.
373 (parse_comp_unit): Likewise.
374 (comp_unit_find_nearest_line): Likewise.
375 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
376 * libbfd.h: Regenerate.
377 * elf.c (_bfd_elf_find_nearest_line): Update call.
378 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
379 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
380 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
381 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
382 (styp_to_sec_flags): Handle DWARF2 sections.
383 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
384 to _bfd_find_nearest_line.
385 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
386 call to _bfd_find_nearest_line.
387
388 2000-12-08 Kazu Hirata <kazu@hxi.com>
389
390 * coffgen.c: Fix formatting.
391 * elf-m10300.c: Likewise.
392 * elf32-i386.c: Likewise.
393 * elf32-i960.c: Likewise.
394 * elf32-m68k.c: Likewise.
395 * elf32-mcore.c: Likewise.
396 * elf32-ppc.c: Likewise.
397 * elf32-sh.c: Likewise.
398 * elf32-sparc.c: Likewise.
399 * elf32-v850.c: Likewise.
400 * elf64-alpha.c: Likewise.
401 * elf64-hppa.c: Likewise.
402 * elf64-mips.c: Likewise.
403 * elf64-sparc.c: Likewise.
404
405 2000-12-07 Kazu Hirata <kazu@hxi.com>
406
407 * elf32-ppc.c: Fix formatting.
408 * elf64-x86-64.c: Likewise.
409
410 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
411
412 From Ralf Baechle <ralf@gnu.org>
413
414 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
415 BFDs containing no sections or empty .text, .data or .bss sections
416 to be merged, regardless of their flags.
417
418 2000-12-06 Kazu Hirata <kazu@hxi.com>
419
420 * elf32-m32r.c: Fix formatting.
421 * elf32-m68hc11.c: Likewise.
422 * elf32-m68hc12.c: Likewise.
423 * elf32-m68k.c: Likewise.
424 * elf32-mcore.c: Likewise.
425 * elf32-pj.c: Likewise.
426 * elf32-ppc.c: Likewise.
427
428 2000-12-05 Kazu Hirata <kazu@hxi.com>
429
430 * elf32-fr30.c: Fix formatting.
431 * elf32-hppa.c: Likewise.
432 * elf32-i370.c: Likewise.
433 * elf32-i386.c: Likewise.
434 * elf32-i860.c: Likewise.
435 * elf32-i960.c: Likewise.
436
437 2000-12-03 Kazu Hirata <kazu@hxi.com>
438
439 * elf32-arm.h: Fix formatting.
440 * elf32-avr.c: Likewise.
441 * elf32-cris.c: Likewise.
442 * elf32-d10v.c: Likewise.
443 * elf32-d30v.c: Likewise.
444 * elf-hppa.h: Likewise.
445 * elf-m10200.c: Likewise.
446 * elf-m10300.c: Likewise.
447
448 2000-12-01 Chris Demetriou <cgd@sibyte.com>
449
450 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
451 bfd_mach_mips32_4k. Update FIXME comment.
452 * archures.c (bfd_mach_mips32): New constant.
453 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
454 the latter, renumber it.
455 * bfd-in2.h (bfd_mach_mips32): New constant.
456 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
457 the latter, renumber it.
458 * cpu-mips.c (I_mips32): New constant.
459 (I_mips4K, I_mips32_4k): Rename the former to the latter.
460 (arch_info_struct): Add bfd_mach_mips32 entry, replace
461 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
462 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
463 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
464 with E_MIPS_MACH_MIPS32_4K.
465 (_bfd_mips_elf_final_write_processing): Replace
466 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
467 bfd_mach_mips32 case.
468 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
469 comparison with support for MIPS32.
470 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
471 MIPS32.
472
473 * aoutx.h (NAME(aout,machine_type)): Add cases for
474 bfd_mach_mips5 and bfd_mach_mips64.
475 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
476 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
477 * cpu_mips.c (I_mips5, I_mips64): New definitions.
478 (arch_info_struct): Add entries for bfd_mach_mips5 and
479 bfd_mach_mips64.
480 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
481 _bfd_mips_elf_print_private_bfd_data): Add cases for
482 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
483 (_bfd_mips_elf_final_write_processing): Add cases for
484 bfd_mach_mips5 and bfd_mach_mips64.
485
486 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
487 bfd_mach_mips_sb1 case.
488 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
489 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
490 * bfd/cpu-mips.c (I_sb1): New constant.
491 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
492 * bfd/elf32-mips.c (elf_mips_mach): Add case for
493 E_MIPS_MACH_SB1.
494 (_bfd_mips_elf_final_write_processing): Add case for
495 bfd_mach_mips_sb1.
496
497 2000-12-01 Joel Sherrill <joel@OARcorp.com>
498
499 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
500 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
501 (sparc*-*-rtems*): Switched from a.out to ELF.
502
503 2000-11-30 Jan Hubicka <jh@suse.cz>
504
505 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
506 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
507 (elf64-x86-64.lo): Add dependencies.
508 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
509 bfd_mach_x86_64_intel_syntax.
510 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
511 * config.bfd (x86_64): Add.
512 * configure.in: Add support for bfd_elf64_x86_64_vec.
513 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
514 (bfd_i386_arch, i8086_ar): Link in.
515 * elf64-x86-64.c: New file.
516 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
517 * targets.c (bfd_elf64_x86_64_vec): Add.
518 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
519
520 2000-11-30 Kazu Hirata <kazu@hxi.com>
521
522 * xcofflink.c: Fix formatting.
523
524 2000-11-28 Kazu Hirata <kazu@hxi.com>
525
526 * aoutx.h: Fix formatting.
527 * bfd-in.h: Likewise.
528 * bfd-in2.h: Likewise.
529 * cache.c: Likewise.
530 * cisco-core.c: Likewise.
531 * coff64-rs6000.c: Likewise.
532 * coffcode.h: Likewise.
533 * coffswap.h: Likewise.
534 * corefile.c: Likewise.
535 * elf32-mips.c: Likewise.
536
537 2000-11-27 Kazu Hirata <kazu@hxi.com>
538
539 * aout-adobe.c: Fix formatting.
540 * coff64-rs6000.c: Likewise.
541 * coffgen.c: Likewise.
542 * cofflink.c: Likewise.
543
544 2000-11-27 Philip Blundell <pb@futuretv.com>
545
546 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
547 (obj_coff_strings_written): New accessor macro for above.
548 * libcoff.h: Regenerate.
549 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
550 strings.
551 * coffcode.h (coff_write_object_contents): No need to write out
552 the string table if it's already been done.
553
554 2000-11-22 Philip Blundell <pb@futuretv.com>
555
556 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
557 weak undefined symbols.
558
559 2000-11-24 Nick Clifton <nickc@redhat.com>
560
561 * archures.c (bfd_mach_arm_5TE): Define.
562 (bfd_mach_arm+XScale): Define.
563 * bfd-in2.h: Regenerate.
564
565 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
566 BFD_RELOC_ARM_PCREL_BLX.
567
568 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
569 XScale machine numbers.
570
571 * config.bfd (xscale-elf): Add target.
572 (xscale-coff): Add target.
573
574 * cpu-arm.c: Add xscale machine name.
575 Add v5t, v5te and XScale machine numbers.
576
577 2000-11-23 Kazu Hirata <kazu@hxi.com>
578
579 * aix386-core.c: Fix formatting.
580
581 2000-11-22 Jim Wilson <wilson@redhat.com>
582
583 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
584 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
585 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
586 (ins_imms_scaled): Initialize sign_bit at function entry.
587 (elf64_ia64_operands): Add missing initializers.
588 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
589 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
590 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
591 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
592 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
593 parameters.
594 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
595 and free_extsyms at function entry.
596 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
597 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
598 (get_got): Delete unused local srel.
599 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
600 (elfNN_ia64_relocate_section): Delete unused local dynindx.
601
602 2000-11-21 Kazu Hirata <kazu@hxi.com>
603
604 * coff-a29k.c: Fix formatting.
605 * coff-h8500.c: Likewise.
606 * coff-i960.c: Likewise.
607 * coff-ppc.c: Likewise.
608 * coff-rs6000.c: Likewise.
609 * coff-stgo32.c: Likewise.
610 * coff-tic54x.c: Likewise.
611 * coff-w65.c: Likewise.
612 * cpu-h8500.c: Likewise.
613 * cpu-hppa.c: Likewise.
614 * cpu-ns32k.c: Likewise.
615 * ecoff.c: Likewise.
616 * ecofflink.c: Likewise.
617
618 2000-11-21 Nick Clifton <nickc@redhat.com>
619
620 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
621 remove possibility of infinite loop.
622
623 2000-11-20 Kazu Hirata <kazu@hxi.com>
624
625 * aix386-core.c: Fix formatting.
626 * aout-adobe.c: Likewise.
627 * aout-arm.c: Likewise.
628 * aout-encap.c: Likewise.
629 * aout-ns32k.c: Likewise.
630 * aout-target.h: Likewise.
631 * aout-tic30.c: Likewise.
632 * aoutf1.h: Likewise.
633 * aoutx.h: Likewise.
634 * archive.c: Likewise.
635 * bfd-in.h: Likewise.
636 * bfd-in2.h: Likewise.
637 * bfd.c: Likewise.
638 * bout.c: Likewise.
639
640 2000-11-17 H.J. Lu <hjl@gnu.org>
641
642 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
643 pltoff entries for DT_INIT and DT_FINI.
644 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
645 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
646 entries.
647
648 2000-11-16 Richard Henderson <rth@redhat.com>
649
650 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
651 (allocate_dynrel_entries): Likewise.
652 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
653 (set_pltoff_entry): Likewise.
654 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
655 (elfNN_ia64_reloc_type_lookup): Likewise.
656 (elfNN_ia64_install_value): Likewise.
657 (elfNN_ia64_relocate_section): Likewise.
658 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
659 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
660
661 2000-11-16 Kazu Hirata <kazu@hxi.com>
662
663 * cpu-a29k.c: Fix formatting.
664 * cpu-alpha.c: Likewise.
665 * cpu-arm.c: Likewise.
666 * cpu-avr.c: Likewise.
667 * cpu-d10v.c: Likewise.
668 * cpu-h8500.c: Likewise.
669 * cpu-hppa.c: Likewise.
670 * cpu-i370.c: Likewise.
671 * cpu-i386.c: Likewise.
672 * cpu-i960.c: Likewise.
673 * cpu-ia64-opc.c: Likewise.
674 * cpu-ia64.c: Likewise.
675 * cpu-m32r.c: Likewise.
676 * cpu-m68hc11.c: Likewise.
677 * cpu-m68hc12.c: Likewise.
678 * cpu-m68k.c: Likewise.
679 * cpu-m88k.c: Likewise.
680 * cpu-mips.c: Likewise.
681 * cpu-ns32k.c: Likewise.
682 * cpu-pj.c: Likewise.
683 * cpu-powerpc.c: Likewise.
684 * cpu-sh.c: Likewise.
685 * cpu-sparc.c: Likewise.
686 * cpu-tic54x.c: Likewise.
687 * cpu-v850.c: Likewise.
688 * cpu-vax.c: Likewise.
689 * cpu-w65.c: Likewise.
690 * cpu-we32k.c: Likewise.
691 * cpu-z8k.c: Likewise.
692 * dwarf1.c: Likewise.
693 * dwarf2.c: Likewise.
694
695 2000-11-15 Kazu Hirata <kazu@hxi.com>
696
697 * coff-arm.c: Fix formatting.
698 * coff-ppc.c: Likewise.
699 * coff-rs6000.c: Likewise.
700 * coff-sh.c: Likewise.
701 * coff-sparc.c: Likewise.
702 * coff-tic30.c: Likewise.
703 * coff-tic54x.c: Likewise.
704 * coff-tic80.c: Likewise.
705 * coff-w65.c: Likewise.
706 * coff-we32k.c: Likewise.
707 * coff-z8k.c: Likewise.
708
709 2000-11-15 Richard Henderson <rth@redhat.com>
710
711 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
712 section with the same ALLOC|LOAD flags as the source section.
713
714 2000-11-14 Jakub Jelinek <jakub@redhat.com>
715
716 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
717 by STO_ALPHA constants.
718
719 2000-11-14 Kazu Hirata <kazu@hxi.com>
720
721 * coff-pmac.c: Fix formatting.
722 * coff-ppc.c: Likewise.
723
724 2000-11-13 H.J. Lu <hjl@gnu.org>
725
726 * elflink.h (elf_link_add_object_symbols): Also add indirect
727 symbols for common symbols with the default version.
728
729 2000-11-09 Philip Blundell <pb@futuretv.com>
730
731 * section.c (STD_SECTION): Set gc_mark flag.
732
733 2000-11-11 Kazu Hirata <kazu@hxi.com>
734
735 * coff-i960.c: Likewise.
736 * coff-m68k.c: Likewise.
737 * coff-m88k.c: Likewise.
738 * coff-mcore.c: Likewise.
739 * coff-mips.c: Likewise.
740
741 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
742
743 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
744
745 2000-11-10 Kazu Hirata <kazu@hxi.com>
746
747 * coff-h8300.c: Fix formatting.
748 * coff-h8500.c: Likewise.
749 * coff-i386.c: Likewise.
750 * coff-i860.c: Likewise.
751 * coff-i960.c: Likewise.
752 * coff-ia64.c: Likewise.
753
754 2000-11-09 Kazu Hirata <kazu@hxi.com>
755
756 * archive.c: Fix formatting.
757 * archures.c: Likewise.
758
759 2000-11-07 Richard Henderson <rth@redhat.com>
760
761 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
762 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
763 * section.c (bfd_set_section_contents): Call memcpy if
764 section->contents set and location not equal to contents plus offset.
765
766 2000-11-08 Kazu Hirata <kazu@hxi.com>
767
768 * bfd-in.h: Fix formatting.
769 * bfd-in2.h: Likewise.
770 * bfd.c: Likewise.
771 * binary.c: Likewise.
772 * bout.c: Likewise.
773 * coff-a29k.c: Likewise.
774 * coff-alpha.c: Likewise.
775 * coff-apollo.c: Likewise.
776 * coff-aux.c: Likewise.
777
778 2000-11-07 Kazu Hirata <kazu@hxi.com>
779
780 * aix386-core.c: Fix formatting.
781 * aoutf1.h: Likewise.
782 * aoutx.h: Likewise.
783 * archures.c: Likewise.
784 * armnetbsd.c: Likewise.
785
786 2000-11-07 Alan Modra <alan@linuxcare.com.au>
787
788 * coff-h8300.c (special): Adjust reloc address.
789
790 2000-11-06 Steve Ellcey <sje@cup.hp.com>
791
792 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
793 to differentiate elf32 and elf64 on ia64.
794 * bfd-in2.h: Regenerate.
795 * config.bfd: Add target for "ia64*-*-hpux*".
796 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
797 * configure: Regenerate.
798 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
799 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
800
801 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
802 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
803 * Makefile.in: Regnerate.
804 * elf64-ia64.c: Deleted.
805 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
806
807 2000-11-06 Kazu Hirata <kazu@hxi.com>
808
809 * aout-adobe.c: Fix formatting.
810 * aout-arm.c: Likewise.
811 * aout-cris.c: Likewise.
812 * aout-encap.c: Likewise.
813 * aout-ns32k.c: Likewise.
814 * aout-target.h: Likewise.
815 * aout-tic30.c: Likewise.
816
817 2000-11-05 Philip Blundell <philb@gnu.org>
818
819 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
820 BFDs containing no sections to be merged, regardless of their flags.
821
822 2000-11-04 Philip Blundell <philb@gnu.org>
823
824 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
825 if a relocation for an undefined symbol also results in an
826 overflow.
827
828 2000-11-06 Christopher Faylor <cgf@cygnus.com>
829
830 * config.bfd: Add support for Sun Chorus.
831
832 2000-11-05 David O'Brien <obrien@FreeBSD.org>
833
834 * configure.in: Recognize alpha-*-freebsd*.
835 * configure: Regenerate.
836
837 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
838
839 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
840 (Chunk): New global variable set by a parameter in objcopy.c.
841 (S3Forced): New global variable set by a parameter in
842 objcopy.c.
843 (srec_set_section_contents): If S3Forced is true, always generate
844 S3 records.
845 (srec_write_section): Use 'Chunk' to limit maximum length of S
846 records.
847
848 2000-11-02 Per Lundberg <plundis@chaosdev.org>
849
850 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
851 * Makefile.in: Regenerate.
852 * bfd-in2.h: Regenerate.
853 * po/bfd.pot: Regenerate.
854
855 2000-10-31 Philip Blundell <philb@gnu.org>
856
857 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
858 EF_SOFT_FLOAT if it is defined.
859
860 2000-10-27 Philip Blundell <philb@gnu.org>
861
862 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
863 attempts to mix PIC code with non-PIC, just mark the output as
864 being position dependent.
865 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
866 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
867 all mismatches, not just the first one.
868
869 2000-10-25 Chris Demetriou <cgd@sibyte.com>
870
871 * ieee.c (ieee_archive_p): Plug one of many possible
872 memory leaks in error handling.
873
874 2000-10-20 Jakub Jelinek <jakub@redhat.com>
875
876 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
877 elf32_sparc_object_p, elf32_sparc_final_write_processing):
878 Support v8plusb.
879 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
880 sparc64_elf_object_p): Support v9b.
881 * archures.c: Declare v8plusb and v9b machines.
882 * bfd-in2.h: Ditto.
883 * cpu-sparc.c: Ditto.
884
885 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
886
887 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
888 of a GOT reloc.
889
890 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
891 (SYMBOL_CALLS_LOCAL): New macro.
892 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
893 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
894 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
895 (ppc_elf_relocate_section): Use flag variable to determine
896 whether the relocation refers to a local symbol.
897 Test whether a PLTREL24 reloc will produce a reloc by looking
898 to see whether a PLT entry was made.
899
900 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
901
902 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
903 entries that could serve as a definition for a weak symbol.
904
905 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
906
907 From Ralf Baechle <ralf@gnu.org>
908
909 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
910 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
911 against local symbols.
912 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
913
914 2000-10-12 Alan Modra <alan@linuxcare.com.au>
915
916 * section.c (struct sec): Add kept_section.
917 (struct bfd_comdat_info): Remove sec, we can use above.
918 (STD_SECTION): Add initializer.
919 (bfd_make_section_anyway): Init here too.
920
921 * bfd-in2.h: Regenerate.
922
923 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
924 zeroing of `flags'.
925 (elf_link_input_bfd): Set all asection->symbol->value's here, and
926 fudge values for discarded link-once section symbols.
927
928 * elf64-hppa.c: Include alloca-conf.h
929
930 2000-10-11 Alan Modra <alan@linuxcare.com.au>
931
932 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
933
934 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
935
936 2000-10-10 Alan Modra <alan@linuxcare.com.au>
937
938 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
939
940 2000-10-10 Tom Rix <trix@redhat.com>
941
942 * section.c (bfd_make_section_anyway): Release newsect ptr when
943 newsect->symbol fails to alloc. Use bfd_release instead of free.
944
945 2000-10-09 Richard Henderson <rth@cygnus.com
946
947 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
948 (elf64_ia64_unwind_entry_compare): New.
949 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
950
951 2000-10-07 Alan Modra <alan@linuxcare.com.au>
952
953 * elflink.h (size_dynamic_sections): Don't create various tags if
954 .dynstr is excluded from the link. Don't set first dynsym entry
955 if dynsymcount is zero.
956 (elf_bfd_final_link): Don't try to swap out dynamic syms if
957 .dynsym excluded from the link. Don't try to write any dynamic
958 sections excluded from the link.
959
960 * elf.c (swap_out_syms): Handle global section symbols.
961
962 2000-10-05 DJ Delorie <dj@redhat.com>
963
964 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
965 * coffcode.h (coff_set_alignment_hook): read extended reloc count
966 (coff_write_relocs): write extended reloc count
967 (coff_write_object_contents): account for extended relocs
968
969 2000-10-05 Jim Wilson <wilson@cygnus.com>
970
971 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
972 field.
973 * elf.c (_bfd_elf_make_section_from_shdr): Call the
974 elf_backend_section_flags function.
975 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
976 code.
977 (elf64_ia64_section_flags): New function containing flag conversion
978 code.
979 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
980 * elfxx-target.h (elf_backend_section_flags): Define.
981 (elfNN_bed): Initialize elf_backend_section_flags field.
982
983 2000-10-02 Alan Modra <alan@linuxcare.com.au>
984
985 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
986 _bfd_elf32_gc_record_vtable. Correct a comment.
987
988 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
989
990 From Ralf Baechle <ralf@gnu.org>
991
992 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
993 produces binaries with got[1] = 0x80000001 to differenciate them
994 for the dynamic linker from the broken binaries produced by old
995 versions.
996
997 2000-09-30 Petr Sorfa <petrs@sco.com>
998
999 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1000 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1001 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1002 * configure: Regenerate.
1003
1004 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1005
1006 Define two bfd_targets for absence and presence of leading
1007 underscore on symbols. Make sure to only link same kind.
1008 * elf32-cris.c (cris_elf_object_p,
1009 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1010 cris_elf_merge_private_bfd_data): New.
1011 (elf_backend_object_p, elf_backend_final_write_processing,
1012 bfd_elf32_bfd_print_private_bfd_data,
1013 bfd_elf32_bfd_merge_private_bfd_data): Define.
1014 <Target vector definition>: Include elf32-target.h twice with
1015 different macro settings:
1016 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1017 bfd_elf32_us_cris_vec.
1018 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1019 (elf_symbol_leading_char): First as 0, then '_'.
1020 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1021 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1022 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1023 * configure: Regenerate.
1024 * targets.c: Declare bfd_elf32_us_cris_vec.
1025 * po/bfd.pot: Regenerate.
1026
1027 2000-09-29 Momchil Velikov <velco@fadata.bg>
1028
1029 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1030 R_ARM_THM_PC22 relocations.
1031
1032 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1033
1034 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1035
1036 2000-09-29 Momchil Velikov <velco@fadata.bg>
1037
1038 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1039 is has the SEC_HAS_CONTENTS flag set.
1040
1041 2000-09-28 Örjan Friberg <orjanf@axis.com>
1042 Hans-Peter Nilsson <hp@axis.com>
1043
1044 * aout-cris.c (N_TXTADDR): Define.
1045
1046 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1047
1048 * som.c: Include alloca-conf.h.
1049 * Makefile.am: "make dep-am"
1050 * Makefile.in: Regenerate.
1051
1052 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1053
1054 * elf32-hppa.c (plt_stub): New.
1055 (PLT_STUB_ENTRY): Define.
1056 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1057 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1058 (elf32_hppa_link_hash_table_create): Init to suit.
1059 (elf32_hppa_check_relocs): Set has_12bit_branch and
1060 has_17bit_branch as appropriate.
1061 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1062 non-local functions.
1063 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1064 Add space for plt_stub as needed.
1065 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1066 functions at plt_stub.
1067 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1068 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1069
1070 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1071 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1072 of fixed size, and if negative, disable handling of input sections
1073 before stub section. Set up default stub group size depending
1074 on detected branch relocs.
1075 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1076 ensure different offsets from sym_value aren't rounded to
1077 different 2k blocks. Use lrsel and rrsel for other stubs too for
1078 consistency rather than necessity.
1079 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1080 (final_link_relocate): Likewise.
1081 (elf32_hppa_relocate_section): Likewise.
1082
1083 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1084 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1085 (elf_hppa_final_link_relocate): Handle them.
1086 (elf_hppa_relocate_insn): Likewise.
1087 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1088
1089 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1090
1091 * elfcode.h (elf_object_p): Preserve and clear abfd section
1092 information. Restore at error.
1093
1094 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1095
1096 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1097 is empty, make sure that its rva also 0. NT loader dislikes
1098 having otherwise.
1099
1100 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1101
1102 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1103 global by default.
1104
1105 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1106
1107 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1108 currently unused RELATIVE_DYNAMIC_RELOCS code.
1109 (hppa_discard_copies): Likewise.
1110 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1111 comments. Don't check non-code output sections for stub grouping.
1112
1113 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1114
1115 * section.c (bfd_get_unique_section_name): Return NULL if
1116 bfd_malloc fails.
1117
1118 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1119
1120 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1121 instruction sequence to actually work.
1122 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1123 accordingly.
1124
1125 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1126
1127 * elf32-sh.c (sh_elf_relocate_section): Use
1128 _bfd_final_link_relocate to apply the relocation against a section
1129 symbol, when doing relocatable links.
1130
1131 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1132
1133 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1134 to id_sec.
1135 (stub_hash_newfunc): Here too.
1136 (hppa_add_stub): And here.
1137 (elf32_hppa_link_hash_table): Remove stub_section_created,
1138 reloc_section_created, first_init_sec and first_fini_sec. Add
1139 stub_group.
1140 (elf32_hppa_link_hash_table_create): Init to suit.
1141 (hppa_get_stub_entry): Add support for grouping stub sections.
1142 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1143 section code. Index stub vars by section->id.
1144 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1145 exit paths. Zap allocation of above removed vars. Refine
1146 link-once test.
1147
1148 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1149 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1150 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1151 rather than pointer to bfd_link_info.
1152 (hppa_add_stub): Likewise.
1153 (final_link_relocate): Likewise.
1154
1155 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1156
1157 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1158 link-once sections.
1159
1160 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1161
1162 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1163 ld/emulparams/shelf.sh.
1164
1165 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1166
1167 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1168 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1169 * bfd-in2.h: Regenerate.
1170
1171 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1172
1173 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1174 LITUSE relocations incorrectly if -relax is specified on the ld
1175 command line and the displacement field of the load or store
1176 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1177
1178 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1179
1180 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1181 first_fini_sec here.
1182 (elf32_hppa_size_stubs): Instead correctly find the first .init
1183 and .fini section here.
1184
1185 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1186
1187 * elf32-hppa.c (clobber_millicode_symbols): New function.
1188 (elf32_hppa_size_dynamic_sections): Call it.
1189
1190 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1191
1192 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1193 packed. Add plabel, plt_abs packed booleans.
1194 (hppa_link_hash_newfunc): Init new fields.
1195 (PLABEL_PLT_ENTRY_SIZE): Define.
1196 (hppa_stub_name): Use size_t len vars.
1197 (hppa_add_stub): Likewise.
1198 (elf32_hppa_build_stubs): Likewise.
1199 (hppa_build_one_stub): Kill some compiler warnings.
1200 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1201 if dynamic linking. Munge the local plt offsets into
1202 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1203 size_t len vars. Add assert for plabel addend.
1204 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1205 (elf32_hppa_hide_symbol): New function.
1206 (elf_backend_hide_symbol): Define.
1207 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1208 with h->plabel set. Don't make plt entries to have dynamic syms
1209 when they have been forced local. If plt entry is used by a
1210 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1211 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1212 Set up .plt offsets for local syms.
1213 (elf32_hppa_relocate_section): Initialise plt entries for local
1214 syms. Leave weak undefined plabels zero. Make global plabel
1215 relocs against function symbol, and leave the addend zero.
1216 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1217 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1218 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1219 relocs instead of SEGREL32 for dynamic got relocs.
1220 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1221 (elf_backend_got_header_size): Adjust.
1222 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1223
1224 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1225 (hppa_type_of_stub): Use it instead of #if 0
1226 (hppa_discard_copies): Use it here too.
1227 (elf32_hppa_size_dynamic_sections): And here.
1228
1229 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1230 (elf32_hppa_link_hash_table_create): And here.
1231 (hppa_build_one_stub): And here. Instead keep track of stub
1232 offset using _raw_size.
1233 (elf32_hppa_size_stubs): Likewise.
1234 (elf32_hppa_build_stubs): Likewise.
1235 (hppa_size_one_stub): Likewise. Resize reloc section too.
1236
1237 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1238 first_fini_sec handling. Don't search for reloc section or set
1239 hplink->reloc_section_created here.
1240 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1241 set reloc_section_created here.
1242 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1243 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1244 and DT_FINI.
1245 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1246
1247 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1248 with `hplink->root.'.
1249 (elf32_hppa_check_relocs): Likewise.
1250 (elf32_hppa_gc_sweep_hook): Likewise.
1251 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1252 (hppa_handle_PIC_calls): Likewise.
1253 (elf32_hppa_size_dynamic_sections): Likewise.
1254 (elf32_hppa_set_gp): Likewise.
1255 (elf32_hppa_relocate_section): Likewise.
1256 (elf32_hppa_finish_dynamic_symbol): Likewise.
1257 (elf32_hppa_finish_dynamic_sections): Likewise.
1258
1259 From David Huggins-Daines <dhd@linuxcare.com>
1260 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1261 defined weak symbols in shared links.
1262 (final_link_relocate): Calls to defined weak symbols in shared
1263 objects must go via import stubs, as the target might not be known
1264 at link time.
1265
1266 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1267
1268 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1269 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1270 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1271 the original entries with EMPTY_HOWTOs, and added new ones to fill
1272 in the gap.
1273 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1274 (sh_elf_relocate_section): Likewise.
1275
1276 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1277
1278 * cpu-mips.c (arch_info_struct): Add mips:4K
1279 * bfd-in2.h (bfd_mach_mips4K): New define.
1280 * archures.c: Add bfd_mach_mips4K to comment.
1281 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1282 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1283
1284 2000-09-13 Marco Franzen <marcof@thyron.com>
1285
1286 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1287 use size_t as a counter.
1288 (som_write_space_strings): Similarly.
1289
1290 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1291
1292 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1293 and prototype.
1294 (elf32_i860_relocate_section): Invoke new function from here.
1295
1296 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1297
1298 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1299 static.
1300
1301 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1302
1303 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1304 target section name instead of dumping core when the target symbol is
1305 undefined.
1306
1307 2000-09-09 Kazu Hirata <kazu@hxi.com>
1308
1309 * riscix.c: Remove DEFUN.
1310
1311 2000-09-08 Nick Clifton <nickc@redhat.com>
1312
1313 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1314 initialise flags in output bfd if the input bfd is the default
1315 architecture with the default flags.
1316
1317 2000-09-08 Kazu Hirata <kazu@hxi.com>
1318
1319 * archive.c: Fix formatting.
1320 * coff-arm.c: Likewise.
1321 * doc/chew.c: Likewise.
1322
1323 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1324
1325 * section.c (bfd_get_unique_section_name): Put a dot before the
1326 numeric suffix.
1327
1328 2000-09-07 Kazu Hirata <kazu@hxi.com>
1329
1330 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1331 * elf.c: Fix formatting.
1332
1333 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1334
1335 * config.bfd (sh-*-linux*): Added.
1336 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1337 * targets.c: Declare them.
1338 * elf32-sh-lin.c: New file.
1339 * Makefile.am: Compile it.
1340 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1341 * configure, Makefile.in: Rebuilt.
1342
1343 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1344
1345 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1346 pseduo-section when determining where the TOC ends.
1347
1348 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1349 output x_tvndx as it is only two bytes wide.
1350
1351 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1352 reloc is 26 or 32 bits wide.
1353
1354 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1355 for relocs that don't change anything. Also look at the full
1356 6 bits of bitsize.
1357
1358 2000-09-06 Philip Blundell <philb@gnu.org>
1359
1360 * config.bfd (arm*-*-uclinux*): New target.
1361
1362 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1363
1364 * configure: Rebuilt with new libtool.m4.
1365
1366 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1367
1368 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1369 word for variable name.
1370 * bfd-in2.h: Regenerate.
1371
1372 2000-09-05 Nick Clifton <nickc@redhat.com>
1373
1374 * config.in: Regenerate.
1375 * libbfd.h: Regenerate.
1376 * po/bfd.pot: Regenerate.
1377 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1378 local versions.
1379
1380 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1381
1382 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1383
1384 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1385
1386 Shared library and PIC support.
1387 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1388 (GOT_ENTRY_SIZE): New.
1389 (ELF_DYNAMIC_INTERPRETER): New.
1390 (STUB_SUFFIX): Define.
1391 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1392 (RELATIVE_DYNAMIC_RELOCS): Define.
1393 (enum elf32_hppa_stub_type): New.
1394 (struct elf32_hppa_stub_hash_entry): Rename offset to
1395 stub_offset. Add a number of new fields.
1396 (struct elf32_hppa_link_hash_entry): New.
1397 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1398 global_value.
1399 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1400 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1401 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1402 new fields.
1403 (hppa_link_hash_newfunc): New function.
1404 (elf32_hppa_link_hash_table_create): Use above function. Init new
1405 fields.
1406 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1407 instead of addend, and remove sym_name from args. Don't use
1408 symbol name for local syms, instead use sym index.
1409 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1410 stub type rather than size. Pass in hash and handle import stub
1411 case. Also pass in reloc instead of offset so we can calculate
1412 PCREL22F and PCREL12F branches properly.
1413 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1414 import and export stubs too.
1415 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1416 import and export stub sizing.
1417 (elf32_hppa_check_relocs): New function.
1418 (elf32_hppa_adjust_dynamic_symbol): New function.
1419 (hppa_discard_copies): New function.
1420 (elf32_hppa_size_dynamic_sections): New function.
1421 (elf_backend_size_dynamic_sections): Define.
1422 (elf32_hppa_finish_dynamic_symbol): New function.
1423 (elf_backend_finish_dynamic_symbol): Define.
1424 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1425 some local vars into the link hash table too. For shared links,
1426 trundle over function syms, generating export stubs. Handle
1427 PCREL22F branches. Break out stub creation code from here..
1428 (hppa_add_stub): .. to here. New function.
1429 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1430 call the bfd linker. Use elf_gp to record global pointer.
1431 Calculate a value from sections if $global$ is missing.
1432 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1433 (elf32_hppa_gc_mark_hook): New function.
1434 (elf_backend_gc_mark_hook): Define.
1435 (elf32_hppa_gc_sweep_hook): New function.
1436 (elf_backend_gc_sweep_hook): Define.
1437 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1438 Add rel to args, and remove howto, input_bfd, offset, addend,
1439 sym_name as we can recalculate these locally. Handle calls to
1440 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1441 handling of undefined weak syms. Check that stubs are in range.
1442 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1443 message on hitting a DPREL21L reloc that needs fixing. Subtract
1444 off PC for PCREL14F. Break out code that does a stub lookup from
1445 here..
1446 (hppa_get_stub_entry): ..to here. New function.
1447 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1448 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1449 relocs, etc. etc.
1450 (elf32_hppa_finish_dynamic_sections): New function.
1451 (elf_backend_finish_dynamic_sections): Define.
1452 (elf_backend_final_write_processing) Define.
1453 (hppa_handle_PIC_calls): New function.
1454 (elf32_hppa_build_stubs): Call it. Pass link_info to
1455 hppa_build_one_stub.
1456 (elf32_hppa_create_dynamic_sections): New function
1457 to create .plt and .got then set .plt flags correctly.
1458 (elf_backend_create_dynamic_sections): Define.
1459 (elf32_hppa_object_p): New function.
1460 (elf_backend_object_p): Define.
1461 (elf32_hppa_elf_get_symbol_type): New function.
1462 (elf_backend_get_symbol_type): Define.
1463 (elf_backend_can_gc_sections): Define.
1464 (elf_backend_want_got_plt): Define.
1465 (elf_backend_plt_alignment): Set to 2.
1466 (elf_backend_plt_readonly): Define.
1467 (elf_backend_want_plt_sym): Define.
1468 (elf_backend_got_header_size): Reserve one entry.
1469
1470 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1471 (elf32_hppa_size_stubs): Pass in multi_subspace.
1472 (elf32_hppa_set_gp): Declare.
1473
1474 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1475 (bfd_get_unique_section_name): New function.
1476 * bfd_in2.h: Regenerate.
1477
1478 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1479 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1480 comment.
1481
1482 From David Huggins-Daines <dhd@linuxcare.com>
1483 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1484 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1485 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1486 been updated in finish_dynamic_symbol before modifying function
1487 symbol.
1488
1489 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1490 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1491 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1492 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1493 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1494 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1495 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1496 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1497
1498 From David Huggins-Daines <dhd@linuxcare.com>
1499 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1500 style of local labels as well.
1501
1502 2000-09-03 Philip Blundell <philb@gnu.org>
1503
1504 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1505 references to undefined symbols in debugging sections.
1506
1507 2000-09-02 H.J. Lu <hjl@gnu.org>
1508
1509 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1510 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1511 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1512 section.
1513
1514 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1515
1516 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1517 (elf32_i860_is_local_label_name): New function and prototype.
1518
1519 2000-09-02 Nick Clifton <nickc@redhat.com>
1520
1521 * configure.in: Increase version number to 2.10.91.
1522 * configure: Regenerate.
1523 * aclocal.m4: Regenerate.
1524 * config.in: Regenerate.
1525 * po/bfd.pot: Regenerate.
1526
1527 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1528
1529 * elf.c (_bfd_elf_make_section_from_shdr): Add
1530 .gnu.linkobce.wi. to the list of debug section names.
1531
1532 2000-09-02 Nick Clifton <nickc@redhat.com>
1533
1534 * dwarf2.c (find_debug_info): New function: Locate a section
1535 containing dwarf2 debug information.
1536 (bfd_dwarf2_find_nearest_line): Find all sections containing
1537 debug information and include them in the stash.
1538
1539 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1540
1541 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1542 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1543 (sh_reloc_map): Add new relocs.
1544 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1545 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1546 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1547 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1548 functions.
1549 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1550 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1551 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1552 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1553 New array constants.
1554 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1555 New variables.
1556 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1557 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1558 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1559 elf_sh_plt_reloc_offset): Define.
1560 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1561 elf_sh_link_hash_table): New structs.
1562 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1563 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1564 relocation types.
1565 (elf_backend_create_dynamic_sections,
1566 bfd_elf32_bfd_link_hash_table_create,
1567 elf_backend_adjust_dynamic_symbol,
1568 elf_backend_size_dynamic_sections,
1569 elf_backend_finish_dynamic_symbol,
1570 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1571 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1572 elf_backend_got_header_size, elf_backend_plt_header_size):
1573 Define.
1574 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1575 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1576 New relocs.
1577 * bfd-in2.h, libbfd.h: Rebuilt.
1578
1579 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1580
1581 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1582 change.
1583
1584 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1585
1586 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1587 not initialized, set them to indicate the SH1 instruction set.
1588
1589 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1590
1591 * acinclude.m4: Include libtool and gettext macros from the
1592 top level.
1593 * aclocal.m4, configure: Rebuilt.
1594
1595 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1596
1597 * elf.c: Eliminate references to __sparcv9 macro; replace with
1598 autoconf variables HAVE_PSINFO32_T etc.
1599 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1600 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1601 * config.in: Ditto.
1602 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1603 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1604 * aclocal.m4: Ditto.
1605 * configure: Regenerate.
1606
1607 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1608
1609 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1610 for any shared link, not just shared -Bsymbolic.
1611 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1612 any shared link, and pass link info to it.
1613 (elf_i386_size_dynamic_sections): Update comment.
1614 (elf_i386_discard_copies): Modify to discard relocs for symbols
1615 that have been forced local.
1616 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1617 that have been forced local.
1618
1619 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1620
1621 * elflink.h (elf_link_add_object_symbols): Allow common
1622 symbols to have an alignment of 1 if explicitly requested, and
1623 not overridden by other definitions.
1624
1625 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1626
1627 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1628 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1629
1630 2000-08-22 H.J. Lu <hjl@gnu.org>
1631
1632 * elf-bfd.h (elf_link_hash_table): Add runpath.
1633
1634 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1635 * bfd-in2.h: Rebuilt.
1636
1637 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1638 "runpath" field to NULL.
1639 (bfd_elf_get_runpath_list): New function.
1640
1641 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1642 DT_RUNPATH entries.
1643
1644 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1645
1646 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1647 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1648 explicitly. Improve validation of r_type.
1649
1650 2000-08-21 H.J. Lu <hjl@gnu.org>
1651
1652 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1653 dynamic allocated content space. Add a comment to remind us that
1654 one day this ought to be fixed.
1655 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1656 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1657 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1658
1659 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1660
1661 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1662 field with the newly relocated value instead of adding it to the
1663 existing immediate field.
1664 (elf32_i860_relocate_splitn): Likewise.
1665 (elf32_i860_relocate_highadj): Likewise.
1666
1667 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1668
1669 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1670 was previously just a stub).
1671
1672 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1673
1674 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1675 Formatting fixes.
1676 (_bfd_elf_create_dynamic_sections): Likewise.
1677
1678 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1679
1680 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1681 for undefined symbols to be the beginning of the section.
1682
1683 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1684 four extra entries at the beginning of the .rela.plt section.
1685 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1686 section to account for the four reserved entries in the .plt section.
1687
1688 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1689
1690 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1691 to the list of NOPs we recognize after a branch-and-link.
1692 Use the ori NOP when one is needed.
1693
1694 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1695 for large archives.
1696
1697 2000-08-14 Jim Wilson <wilson@cygnus.com>
1698
1699 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1700 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1701 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1702 EF_IA_64_ABSOLUTE.
1703
1704 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1705
1706 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1707
1708 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1709
1710 * elf32-i860.c (elf32_i860_relocate_section): New function.
1711 (i860_final_link_relocate): New function.
1712 (elf32_i860_relocate_splitn): New function.
1713 (elf32_i860_relocate_pc16): New function.
1714 (elf32_i860_relocate_highadj): New function.
1715 (elf32_i860_howto): Minor adjustments to some relocations.
1716 (elf_info_to_howto_rel): Define.
1717 (elf_backend_relocate_section): Define.
1718
1719 2000-08-10 Nick Clifton <nickc@cygnus.com>
1720
1721 * elf32-arm.h: Fix formatting.
1722
1723 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1724
1725 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1726
1727 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1728
1729 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1730
1731 2000-08-07 Kazu Hirata <kazu@hxi.com>
1732
1733 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1734 * elf64-ia64.c: Fix a typo.
1735
1736 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1737
1738 * elf32-i860 (elf32_i860_howto_table): New structure.
1739 (lookup_howto): New function.
1740 (elf32_i860_reloc_type_lookup): New function.
1741 (elf32_i860_info_to_howto_rela): New function.
1742 (elf_code_to_howto_index): New structure.
1743 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1744 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1745 elf32_i860_reloc_type_lookup.
1746
1747 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1748
1749 * som.c (struct fixup_format): Constify `format'.
1750 (som_hppa_howto_table): Use SOM_HOWTO macro.
1751 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1752 (som_bfd_reloc_type_lookup): Likewise.
1753 (compare_subspaces): Remove unused `count1', `count2'.
1754 (som_begin_writing): Remove unused `total_reloc_size'.
1755 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1756 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1757 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1758 (som_find_nearest_line): Decorate unused parameter(s).
1759 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1760 (som_bfd_link_split_section): Likewise.
1761
1762 2000-08-03 Nick Clifton <nickc@cygnus.com>
1763
1764 * section.c: Restore backed out code.
1765 * elf.c: Restore backed out code.
1766 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1767 binaries from working.
1768 * bfd-in2.h: Regenerate.
1769
1770 2000-08-03 H.J. Lu <hjl@gnu.org>
1771
1772 * section.c: Back out the change made by Nick Clifton
1773 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1774 binaries.
1775 * bfd-in2.h: Likewise.
1776 * elf.c: Likewise.
1777
1778 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1779
1780 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1781
1782 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1783
1784 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1785 * bfd-in2.h, libbfd.h: Regenerate.
1786
1787 2000-07-31 Nick Clifton <nickc@cygnus.com>
1788
1789 * section.c (struct sec): Add new boolean field 'segment_mark'.
1790 (STD_SECTION): Initialise new field to zero.
1791
1792 * bfd-in2.h: Regenerate.
1793
1794 * elf.c (copy_private_bfd_data): Reorganise section to segment
1795 mapping to cope with moved sections requiring new segments,
1796 and overlapping segments.
1797 (SEGMENT_END): New macro: Return the end address of a segment.
1798 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1799 contains a section by comparing their VMA addresses.
1800 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1801 contains a section by comparing their LMA addresses.
1802 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1803 section should be included in a segment.
1804 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1805 follows another in memory.
1806 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1807 segments overlap.
1808
1809 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1810
1811 * cpu-i860.c: Added comments.
1812
1813 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1814 bfd_elf32_i860_little_vec.
1815 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1816 (ELF_MAXPAGESIZE): Changed to 4096.
1817
1818 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1819 new target.
1820 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1821
1822 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1823 config for little endian elf32 i860.
1824 (targ_defvec): Define for the new config above
1825 as "bfd_elf32_i860_little_vec".
1826 (targ_selvecs): Define for the new config above
1827 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1828
1829 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1830 of new target vec.
1831
1832 * configure: Regenerated.
1833
1834 2000-07-27 H.J. Lu <hjl@gnu.org>
1835
1836 * elflink.h (elf_merge_symbol): Take one more argument,
1837 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1838 entry. Don't overide the existing weak definition if dt_needed
1839 is true.
1840 (elf_link_add_object_symbols): Pass dt_needed to
1841 elf_merge_symbol ().
1842
1843 2000-07-27 Nick Clifton <nickc@cygnus.com>
1844
1845 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1846 allocated contents.
1847
1848 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1849
1850 * configure.host (*-*-aix*): AIX has 'long long' always.
1851
1852 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1853 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1854 (xcoff_write_archive_contents_big): Don't update the offset
1855 of the symbol table, xcoff_write_armap will do it.
1856
1857 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1858
1859 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1860 of dynobj for SGI_COMPAT checks.
1861
1862 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1863
1864 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1865 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1866 * bfd-in2.h: Regenerate.
1867
1868 2000-07-21 Nick Clifton <nickc@cygnus.com>
1869
1870 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1871 range symbol indices in relocs and issue an error message.
1872
1873 2000-07-20 H.J. Lu <hjl@gnu.org>
1874
1875 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1876 info->new_dtags when setting DT_FLAGS_1. It will only be set
1877 by the new linker options. It shouldn't break anything.
1878
1879 2000-07-20 H.J. Lu <hjl@gnu.org>
1880
1881 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1882 only if info->new_dtags is true.
1883
1884 2000-07-20 H.J. Lu <hjl@gnu.org>
1885
1886 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1887 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1888
1889 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1890
1891 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1892 (ALL_MACHINES_CFILES): Add cpu-cris.c.
1893 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1894 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1895 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1896 * Makefile.in: Rebuild.
1897 * aclocal.m4: Rebuild.
1898 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1899 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1900 (bfd_cris_arch): Declare.
1901 (bfd_archures_list): Add bfd_cris_arch.
1902 * bfd-in2.h: Rebuild.
1903 * config.bfd: (cris-*-*): New target.
1904 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
1905 * configure: Rebuild.
1906 * elf.c (prep_headers): Add bfd_arch_cris.
1907 * libbfd.h: Rebuild.
1908 * libaout.h (enum machine_type): Add M_CRIS.
1909 * reloc.c: Add CRIS relocations.
1910 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
1911 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
1912 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
1913 * po/POTFILES.in, po/bfd.pot: Regenerate.
1914
1915 2000-07-19 H.J. Lu <hjl@gnu.org>
1916
1917 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
1918 DF_TEXTREL if DT_TEXTREL is set.
1919 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1920 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1921 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1922 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
1923 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1924 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1925 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1926 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1927 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
1928 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
1929
1930 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
1931 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
1932 DT_RPATH is set.
1933 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
1934
1935 2000-07-19 H.J. Lu <hjl@gnu.org>
1936
1937 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
1938 * bfd-in2.h: Rebuild.
1939
1940 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
1941 (elf_dt_soname): New.
1942
1943 * elf.c (bfd_elf_set_dt_needed_soname): New.
1944
1945 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
1946 entry if the shared object loaded by DT_NEEDED is used to
1947 resolve the reference in a regular object.
1948
1949 2000-07-19 H.J. Lu <hjl@gnu.org>
1950
1951 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
1952 DT_DEPAUDIT and DT_AUDIT as strings.
1953
1954 2000-07-19 Nick Clifton <nickc@cygnus.com>
1955
1956 * format.c: Fix formatting.
1957
1958 2000-07-19 H.J. Lu <hjl@gnu.org>
1959
1960 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
1961
1962 2000-07-19 H.J. Lu <hjl@gnu.org>
1963
1964 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
1965 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
1966 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
1967 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
1968 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
1969 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
1970 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
1971
1972 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
1973
1974 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
1975 renamed functions from here...
1976 (assign_section_numbers): Use renamed functions.
1977 (prep_headers): Use renamed functions.
1978
1979 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
1980 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
1981 * bfd-in2.h: Regenerate.
1982
1983 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
1984
1985 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
1986 parenthesis in if statement.
1987
1988 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
1989
1990 Enable the support for Traditional MIPS.
1991 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
1992 return ict_none appropriately for traditional mips targets.
1993 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
1994 (STUB_MOVE): Conditionalize for traditonal mips.
1995 (STUB_LI16): Likewise.
1996 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
1997 room for RTPROC header.
1998 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
1999 the permission for the PT_DYNAMIC as read, write and execute.
2000 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2001 for traditonal mips.
2002 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2003 _DYNAMIC_LINKING for traditonal mips.
2004 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2005 in case of traditonal mips.
2006 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2007 entry is required. For a function if PLT is not required then set the
2008 corresponding hash table entry to 0.
2009 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2010 traditonal mips.
2011 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2012 shared object set the value to 0.
2013 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2014 _DYNAMIC_LINKING for traditonal mips.
2015 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2016 for traditonal mips.
2017
2018 2000-07-15 H.J. Lu <hjl@gnu.org>
2019
2020 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2021
2022 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2023
2024 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2025 out a structure that is BFD_IN_MEMORY.
2026
2027 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2028
2029 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2030 bfd pointer. Print section id instead of bfd pointer for local
2031 syms. Prefix addend with `+' for global syms as well as local.
2032 Correct calculation of name component lengths.
2033 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2034
2035 From David Huggins-Daines <dhd@linuxcare.com>
2036 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2037 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2038 (elf64_hppa_modify_segment_map): Likewise.
2039
2040 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2041
2042 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2043 addresses to be "naturally" sign extended. Return -1 if unknown.
2044 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2045 * bfd-in2.h: Regenerate.
2046
2047 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2048
2049 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2050 and ECOF_SIGNED_64 to list ways to extract an offset.
2051 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2052 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2053 Update.
2054 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2055 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2056
2057 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2058
2059 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2060 bfd_get_start_address.
2061 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2062 (elf_swap_ehdr_out): Ditto.
2063
2064 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2065
2066 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2067 compatibility with older binutils.
2068
2069 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2070
2071 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2072 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2073
2074 From Ryan Bradetich <rbradetich@uswest.net>
2075 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2076 (parse_line_table): Ditto.
2077 (_bfd_dwarf1_find_nearest_line): Ditto.
2078 * syms.c (cmpindexentry): Remove extra `*' from params.
2079
2080 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2081
2082 * elf32-mips.c (sort_dynamic_relocs): New Function.
2083 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2084 via qsort to sort the dynamic relocations in increasing r_symndx
2085 value.
2086
2087 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2088
2089 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2090 ATTRIBUTE_UNUSED to unused args.
2091 (get_opd): Likewise.
2092 (get_plt): Likewise.
2093 (get_dlt): Likewise.
2094 (get_stub): Likewise.
2095 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2096 (elf64_hppa_link_output_symbol_hook): Likewise.
2097 (elf64_hppa_check_relocs): Delete unused var.
2098 (elf64_hppa_size_dynamic_sections): Likewise.
2099 (elf64_hppa_finalize_opd): Likewise.
2100 (elf64_hppa_finalize_dynreloc): Likewise.
2101 (elf64_hppa_modify_segment_map): Likewise.
2102 (elf64_hppa_finish_dynamic_sections): Likewise.
2103
2104 * elf-hppa.h (elf_hppa_final_write_processing): Add
2105 ATTRIBUTE_UNUSED to unused args.
2106 (elf_hppa_final_link_relocate): Likewise.
2107 (elf_hppa_record_segment_addrs): Add paretheses.
2108 (elf_hppa_relocate_section): Constify dyn_name.
2109
2110 From David Huggins-Daines <dhd@linuxcare.com>
2111 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2112 rearrange case statement so that it gets preferred to 32-bit ones.
2113
2114 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2115 asection->id instead of address of asection structure.
2116 (elf32_hppa_size_stubs): Likewise.
2117
2118 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2119 for .init* and .fini*.
2120
2121 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2122 and addends used in stub names to 32 bits.
2123 (elf32_hppa_size_stubs): Likewise.
2124
2125 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2126 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2127 not bfd_put_64. Fix minor comment typo and formatting.
2128
2129 Changes to create multiple linker stubs, positioned immediately
2130 before the section where they are required.
2131 * elf32-hppa.c: Don't include hppa_stubs.h.
2132 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2133 (elf32_hppa_stub_hash_table): Delete.
2134 (elf32_hppa_link_hash_entry): Delete.
2135 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2136 stub_hash_table, and store the struct here rather than a pointer.
2137 Delete output_symbol_count. Add offset array. Change
2138 global_value to a bfd_vma.
2139 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2140 (elf32_hppa_stub_hash_traverse): Delete.
2141 (elf32_hppa_name_of_stub): Delete.
2142 (elf32_hppa_link_hash_lookup): Delete.
2143 (elf32_hppa_link_hash_traverse): Delete.
2144 (elf32_hppa_stub_hash_table_init): Delete.
2145 (elf32_hppa_size_of_stub): Pass input section and offset rather
2146 than location and calculate location here. Don't pass name as all
2147 stubs are now the same size.
2148 (elf32_hppa_stub_hash_newfunc): Init new fields.
2149 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2150 too.
2151 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2152 comparing against ints. Rewrite stub handling code.
2153 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2154 Case enums to int before comparing against ints. Remove
2155 bfd_reloc_dangerous case.
2156 (elf32_hppa_build_one_stub): Rewrite.
2157 (elf32_hppa_size_one_stub): New function.
2158 (elf32_hppa_build_stubs): Rewrite.
2159 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2160 Rewrite stub-handling specific code.
2161
2162 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2163
2164 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2165
2166 * hppa_stubs.h: Delete.
2167 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2168 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2169 * Makefile.in: Regenerate.
2170
2171 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2172 e_nlrsel.
2173
2174 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2175
2176 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2177 and section name for bfd_reloc_notsupported error message.
2178 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2179 bfd_reloc_notsupported.
2180 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2181
2182 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2183 undefined weak symbols for all relocs.
2184 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2185 offsets are relative to one past the delay slot.
2186 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2187 branch destination. Put addend into stub name too.
2188 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2189 adjust by 8 when deciding whether a linker stub is needed. Put
2190 addend into stub name as for above.
2191
2192 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2193 various args and vars.
2194 (elf32_hppa_bfd_final_link_relocate): Here too.
2195 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2196 inner block var to avoid shadowing.
2197
2198 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2199 unsigned.
2200 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2201 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2202 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2203
2204 * libhppa.h: Change practically all unsigned ints to plain ints.
2205 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2206 prototypes.
2207
2208 From Ryan Bradetich <rbradetich@uswest.net>
2209 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2210 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2211 suit above.
2212 From David Huggins-Daines <dhd@linuxcare.com>
2213 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2214 to the new OP_* ones.
2215
2216 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2217 error exit. Bail out earlier on plabel relocs that we aren't
2218 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2219 string, and then don't free our copy.
2220 (elf32_hppa_build_one_stub): Make insn unsigned int.
2221
2222 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2223 available with BL, not BE and BLE.
2224
2225 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2226 code for elf arg relocs.
2227 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2228 argument with elf_link_hash_entry h. Handle undefined weak
2229 symbols. Move $global$ lookup from here...
2230 (elf32_hppa_relocate_section): ...to here. Return correct error
2231 message for non-handled relocs.
2232 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2233 wrong test was -0x3ffff to +0x40000.
2234
2235 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2236 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2237 Handle them as such.
2238 (elf_hppa_relocate_insn): Fix a typo.
2239
2240 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2241 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2242 assemble_17, assemble_21): Delete.
2243 Supply defines for all 64 possible opcodes.
2244 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2245 formats. Handle COMICLR.
2246 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2247 -10, -16, 16, 22.
2248
2249 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2250 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2251 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2252 to suit.
2253 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2254 the local syms - did this code get deleted accidentally? Ignore
2255 undefined and undefweak syms.
2256
2257 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2258 block. Use it instead of elf64_hppa_hash_table (info).
2259 (elf_hppa_final_link_relocate): Use hppa_info instead of
2260 elf64_hppa_hash_table (info).
2261
2262 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2263 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2264 (hppa_rebuild_insn): Mask immediate bits here instead.
2265 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2266
2267 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2268
2269 * section.c (struct sec): Add id field. Tidy comment formatting.
2270 (bfd_make_section_anyway): Set id.
2271 (STD_SECTION): Init id too.
2272 Change CONST to const throughout.
2273 * archures.c (bfd_arch_info): Tidy comment.
2274 (bfd_arch_list): Change a CONST to const.
2275 * libbfd-in.h: Tidy comments and replace CONST with const.
2276 * elf-bfd.h: Likewise.
2277 * libbfd.h: Regenerate.
2278 * bfd-in2.h: Regenerate.
2279 * libcoff.h: Regenerate.
2280
2281 2000-07-07 DJ Delorie <dj@redhat.com>
2282
2283 * archive.c (_bfd_write_archive_contents): Add an informative
2284 comment.
2285
2286 2000-07-06 Kazu Hirata <kazu@hxi.com>
2287
2288 * srec.c: Fix formatting.
2289
2290 2000-06-05 DJ Delorie <dj@redhat.com>
2291
2292 * MAINTAINERS: new
2293
2294 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2295
2296 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2297 value of PC-relative offsets.
2298
2299 2000-07-03 Jim Wilson <wilson@cygnus.com>
2300
2301 * elf64-alpha.c (alpha_elf_size_info): New.
2302 (elf_backend_size_info): Define to alpha_elf_size_info.
2303 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2304
2305 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2306
2307 * elf32-mips.c: Include elf32-target.h again for the traditional
2308 MIPS targets.
2309
2310 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2311
2312 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2313 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2314 (avr_info_to_howto_rela): Likewise.
2315 (elf32_avr_gc_mark_hook): Likewise.
2316 (elf32_avr_gc_sweep_hook): Likewise.
2317 (elf32_avr_relocate_section): Likewise.
2318
2319 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2320
2321 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2322 an external symbol for a non-shared, non-relocatable link.
2323
2324 2000-07-03 Nick Clifton <nickc@redhat.com>
2325
2326 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2327 is an external symbol.
2328 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2329 external symbol.
2330
2331 2000-07-03 Kazu Hirata <kazu@hxi.com>
2332
2333 * reloc16.c: Fix formatting.
2334
2335 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2336
2337 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2338 to add a new target for traditional mips i.e
2339 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2340 * configure.in: Likewise.
2341 * configure: Rebuild.
2342 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2343 bfd_target_vector.
2344 (bfd_elf32_tradlittlemips_vec): Likewise.
2345 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2346 to see that elfNN_bed does not get redefined even if the target file
2347 is included twice for a chip. See elf32-mips.c.
2348
2349 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2350
2351 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2352 (CLEANFILES): Add DEPA.
2353 * Makefile.in: Regenerate.
2354
2355 2000-06-30 DJ Delorie <dj@cygnus.com>
2356
2357 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2358 can't assume the PE header is at 0x80.
2359
2360 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2361
2362 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2363
2364 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2365
2366 * go32stub.h: Update stub.
2367
2368 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2369
2370 * archures.c (bfd_mach_avr5): Define.
2371 * bfd-in2.h (bfd_mach_avr5): Define.
2372 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2373 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2374 (compatible): Update comment. Add missing test.
2375 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2376 for avr2 and avr4. Simplify 8K wrap code.
2377 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2378 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2379
2380 2000-06-26 Kazu Hirata <kazu@hxi.com>
2381
2382 * coff-h8300.c: Fix formatting.
2383 * cpu-h8300.c: Likewise.
2384
2385 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2386
2387 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2388 for local symbols whose names are unknown.
2389
2390 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2391
2392 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2393 find one.
2394 * Makefile.in: Regenerate.
2395 * doc/Makefile.in: Regenerate.
2396
2397 2000-06-20 H.J. Lu <hjl@gnu.org>
2398
2399 * Makefile.am: Rebuild dependency.
2400 * Makefile.in: Rebuild.
2401
2402 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2403
2404 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2405 (elf_backend_copy_indirect_symbol): Map to the new function.
2406
2407 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2408
2409 * archive.c (normalize): Correct pointer comparison when checking
2410 for backslashes.
2411 (bfd_bsd_truncate_arname): Likewise.
2412 (bfd_gnu_truncate_arname): Likewise.
2413
2414 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2415
2416 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2417 sections elf_{text,data}_{section,symbol}.
2418 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2419 (_bfd_mips_elf_hide_symbol): New function.
2420 (elf_backend_hide_symbol): Map to the new function.
2421 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2422 definitions of mips_elf_{text,data}_{section,symbol}.
2423 (mips_elf_local_relocation_p): Try to find the direct symbol
2424 based on new check_forced argument.
2425 (mips_elf_calculate_relocation): Use new version of
2426 mips_elf_local_relocation_p.
2427 (mips_elf_relocate_section): Likewise.
2428 (_bfd_mips_elf_relocate_section): Likewise.
2429 (mips_elf_sort_hash_table): Only assert that have enough GOT
2430 space.
2431 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2432 entry if the relocation based on the new external argument.
2433 (mips_elf_create_dynamic_relocation): Assert that we have a
2434 section contents allocated where we can swap out the dynamic
2435 relocations.
2436 (mips_elf_calculate_relocation): Find the real hash-table entry
2437 correctly by using h->root.root.type. Only create a dynamic
2438 relocation entry if the symbol is defined in a shared library.
2439 Create an external GOT entry for the GOT16 relocation if the
2440 symbol was forced local.
2441 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2442 dynamic index if the symbol was forced local.
2443
2444 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2445
2446 * elf32-mips.c: Fix typos in comments.
2447
2448 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2449
2450 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2451 CORE_VERSION_1.
2452
2453 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2454
2455 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2456 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2457 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2458 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2459 (bfd_elf32_m68hc11_vec): Likewise.
2460 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2461 Supports 68hc11 & 68hc12 at the same time.
2462 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2463 bfd_target_vector.
2464 (bfd_elf32_m68hc11_vec): Likewise.
2465 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2466 * archures.c (bfd_m68hc12_arch): Define and register in global list
2467 (bfd_m68hc11_arch): Likewise.
2468 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2469 BFD_RELOC_M68HC11_3B): Define.
2470 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2471 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2472
2473 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2474
2475 * elf_bfd.h (struct elf_backend_data): Add info argument to
2476 elf_backend_hide_symbol.
2477 (_bfd_elf_link_hash_hide_symbol): Likewise.
2478 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2479 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2480 * elflink.h (elf_link_add_object_symbols): Likewise.
2481 (elf_link_assign_sym_version): Likewise.
2482
2483 2000-06-18 H.J. Lu <hjl@gnu.org>
2484
2485 * coff-i386.c (coff_i386_reloc): Don't return in case of
2486 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2487 Compensate PE relocations when linking with non-PE object
2488 files to generate a non-PE executable.
2489
2490 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2491
2492 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2493 GOT entries if we're doing a static link or -Bsymbolic link.
2494
2495 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2496
2497 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2498 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2499 available.
2500 (elf_link_output_relocs): Likewise.
2501 (elf_reloc_link_order): Likewise.
2502
2503 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2504
2505 * archures.c (enum bfd_architecture): #define constants for
2506 PowerPc and RS6000 machine numbers.
2507 * bfd-in2.h: Regenerate.
2508 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2509 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2510 and RS6000 machine numbers using #defined constants from
2511 archures.c.
2512 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2513 machine numbers using #defined constants from archures.c. Add
2514 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2515 64-bit words in 620 entry.
2516 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2517 RSC, and RS2.
2518 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2519
2520 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2521
2522 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2523 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2524 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2525
2526 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2527
2528 * bfd-in.h (bfd_family_coff): Define.
2529 * bfd-in2.h: Regenerate.
2530 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2531 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2532 instead of bfd_target_coff_flavour.
2533 * cofflink.c (_bfd_coff_final_link): Likewise.
2534 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2535 exclude XCOFF files.
2536 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2537 Likewise.
2538 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2539 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2540 * xcofflink.c (XCOFF_XVECP): Delete.
2541 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2542 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2543 bfd_xcoff_record_link_assignment,
2544 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2545 check for bfd_target_xcoff_flavour.
2546
2547 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2548
2549 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2550 files on AIX 4.3.
2551 (read_hdr): New function.
2552 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2553 of trying to extract individual registers. Set abfd->arch_info
2554 to match the architecture that created the core file.
2555 (rs6000coff_get_section_contents): Delete.
2556 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2557
2558 2000-06-14 H.J. Lu <hjl@gnu.org>
2559
2560 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2561 is NULL.
2562
2563 2000-06-13 H.J. Lu <hjl@gnu.org>
2564
2565 * configure: Regenerate.
2566
2567 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2568
2569 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2570 armpei_little_vec.
2571
2572 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2573
2574 * configure.in (VERSION): Update to show this is the CVS mainline.
2575
2576 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2577
2578 * elf32-d10v.c: Include elf/d10v.h
2579 (enum reloc_type): Delete.
2580 * elf32-d30v.c: Include elf/d30v.h
2581 (enum reloc_type): Delete.
2582
2583 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2584 * Makefile.in: Regenerate.
2585
2586 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2587 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2588 move HOWTOs into elf_howto_table.
2589 (R_386_standard, R_386_ext_offset): Define.
2590 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2591 (elf_i386_reloc_type_lookup): Modify calculation of index into
2592 elf_howto_table since we've removed the padding.
2593 (elf_i386_info_to_howto_rel): Likewise.
2594 (elf_i386_relocate_section): Likewise.
2595
2596 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2597
2598 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2599
2600 2000-06-05 H.J. Lu <hjl@gnu.org>
2601
2602 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2603 an error when seeing an undefined symbol with hidden/internal
2604 attribute. It is handled in *_relocate_section ().
2605
2606 2000-06-05 H.J. Lu <hjl@gnu.org>
2607
2608 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2609 indirect symbol for the ELF_LINK_NON_ELF bit.
2610 (elf_link_output_extsym): Don't output the indirect symbol even
2611 if the ELF_LINK_NON_ELF bit is set.
2612
2613 2000-06-01 J.T. Conklin <jtc@redback.com>
2614
2615 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2616 (i[3456]86-*-netbsdaout*): New target.
2617 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2618 (i[3456]86-*-openbsd*): Likewise.
2619
2620 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2621
2622 * trad-core.c: From hpux-core.c, include <dirent.h> or
2623 <sys/ndir.h> when possible.
2624
2625 2000-05-31 Nick Clifton <nickc@cygnus.com>
2626
2627 * opintl.h (_(String)): Explain why dgettext is used instead
2628 of gettext.
2629
2630 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2631
2632 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2633 definitions. We must not assume they are sorted in the file
2634 according to their index numbers.
2635
2636 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2637
2638 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2639 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2640 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2641
2642 2000-05-30 Nick Clifton <nickc@cygnus.com>
2643
2644 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2645 80960CA, 80960MC as valid machine names.
2646
2647 2000-05-30 H.J. Lu <hjl@gnu.org>
2648
2649 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2650 visibility bits if the symbol is undefined. Correctly handle
2651 weak undefined symbols with hidden and internal attributes.
2652
2653 * elflink.h (elf_link_add_object_symbols): Always turn the
2654 symbol into local if it has the hidden or internal attribute.
2655
2656 2000-05-29 Philip Blundell <philb@gnu.org>
2657
2658 * ppcboot.c: Add packed attribute if compiling with GCC.
2659
2660 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2661
2662 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2663
2664 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2665
2666 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2667 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2668 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2669 a few old comments.
2670
2671 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2672
2673 * Makefile.am: Update dependencies with "make dep-am"
2674 * Makefile.in: Regenerate.
2675
2676 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2677 bindtextdomain): Replace defines with those from intl/libgettext.h
2678 to quieten gcc warnings.
2679
2680 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2681
2682 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2683
2684 * archive.c (normalize, bfd_bsd_truncate_arname,
2685 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2686 file names with backslashes.
2687
2688 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2689 before opening it.
2690
2691 * sysdep.h: Include filenames.h.
2692
2693 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2694
2695 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2696
2697 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2698
2699 * elf64-sparc.c (sparc64_elf_relax_section): New.
2700 (sparc64_elf_relocate_section): Optimize tail call into branch always
2701 if possible.
2702 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2703 (elf32_sparc_relax_section): New.
2704
2705 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2706
2707 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2708 Remove unusued variables.
2709 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2710 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2711 previous fix, so that shared libs really don't influence targets
2712 extension mask and memory model.
2713
2714 2000-05-23 H.J. Lu <hjl@gnu.org>
2715
2716 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2717 h->root.other not h->other.
2718 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2719
2720 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2721
2722 2000-05-23 H.J. Lu <hjl@gnu.org>
2723
2724 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2725 undefined symbol with the non-default visibility attributes.
2726 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2727 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2728 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2729 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2730 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2731 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2732 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2733 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2734 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2735 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2736 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2737
2738 2000-05-22 Richard Henderson <rth@cygnus.com>
2739
2740 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2741 PCREL22, PCREL64I. Zero size of special relocs.
2742 (elf64_ia64_reloc_type_lookup): Likewise.
2743 (USE_BRL, oor_brl, oor_ip): New.
2744 (elf64_ia64_relax_section): New.
2745 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2746 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2747 (elf64_ia64_relocate_section): Likewise.
2748 (bfd_elf64_bfd_relax_section): New.
2749 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2750 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2751 * bfd-in2.h, libbfd.h: Regenerate.
2752
2753 2000-05-22 Nick Clifton <nickc@cygnus.com>
2754
2755 * configure.in : Add peigen.lo to MIPS PE targets.
2756 * configure: Regenerate.
2757
2758 2000-05-22 Momchil Velikov <velco@fadata.bg>
2759
2760 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2761 only if it is known for both input and output bfds. Separate
2762 error message strings as in some languages, it may be necessary
2763 to change more than one place in the string to change between
2764 'big' and 'little'.
2765
2766 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2767 endianess checks, call _bfd_generic_verify_endian_match() instead.
2768
2769 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2770
2771 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2772
2773 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2774 endianess before checking bfd flavours.
2775
2776 2000-05-22 H.J. Lu <hjl@gnu.org>
2777
2778 * elflink.h (elf_link_output_extsym): Clear the visibility
2779 field for symbols not defined locally.
2780
2781 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2782
2783 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2784 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2785 (hppa_rebuild_insn): Mask immediate bits here instead.
2786 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2787
2788 2000-05-18 Momchil Velikov <velco@fadata.bg>
2789
2790 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2791 relocs for an executable, ensure that they are virtual addresses.
2792
2793 2000-05-18 Jeffrey A Law (law@cygnus.com)
2794
2795 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2796
2797 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2798 Rick Gorton <gorton@scrugs.lkg.dec.com>
2799
2800 * elflink.h: Add emitrelocations support: when enabled, relocation
2801 information and relocation sections are put into final output
2802 executables. If the emitrelocations flag is set, do the following:
2803 (elf_bfd_final_link): Emit relocation sections.
2804 (elf_link_input_bfd): Compute relocation section contents.
2805 (elf_gc_sections): Don't clean relocation sections.
2806
2807 2000-05-16 Catherine Moore <clm@cygnus.com>
2808
2809 * som.c (som_decode_symclass): Recognize weak symbols.
2810
2811 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2812
2813 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2814 read idata section only from dataoff.
2815 (pe_print_edata): Correctly check for valid eat_member.
2816
2817 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2818
2819 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2820
2821 2000-05-14 Philip Blundell <philb@gnu.org>
2822
2823 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2824
2825 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2826
2827 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2828
2829 * peigen.c (pe_print_idata): Look for .idata section and print
2830 info even if data directory has zero entries. Read idata section
2831 starting from dataoff, and adjust all data offsets to suit. Cast
2832 all bfd_vma vars to unsigned long before passing to fprintf.
2833 * peigen.c (pe_print_edata): Similarly, look for .edata section
2834 and print info even if data directory has zero entries. Cast
2835 all bfd_vma vars to unsigned long before passing to fprintf.
2836
2837 From Szabolcs Szakacsits <szaka@F-Secure.com>
2838 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2839 directory size which may be bogus.
2840 * peigen.c (pe_print_edata): Similarly.
2841
2842 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2843
2844 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2845 section is empty.
2846 (copy_private_bfd_data): Allow for space possibly taken up by elf
2847 headers when calculating segment physical address from lma.
2848
2849 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2850
2851 * versados.c (versados_scan): Init stringlen and pass_2_done.
2852
2853 * trad-core.c (trad_unix_core_file_p): Return
2854 bfd_error_wrong_format rather than bfd_error_file_truncated.
2855
2856 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2857 add_data_entry. DataDirectory virtual address is relative.
2858 (pe_print_idata): Account for relative DataDirectory virtual
2859 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2860 (pe_print_edata): Similarly.
2861
2862 From Szabolcs Szakacsits <szaka@F-Secure.com>
2863 * peigen.c (dir_names): Add Delay Import Directory.
2864 (pe_print_idata): Always search for bfd section containing
2865 idata address rather than looking up section name. Print this
2866 section name rather than .idata.
2867 (pe_print_edata): Similarly. Also print some fields as %08lx.
2868 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2869 Win32Version.
2870
2871 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2872
2873 * xcoff.h: Rename to xcoff-target.h
2874 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2875 * coff-rs6000.c: Ditto.
2876 * coff64-rs6000.c: Ditto.
2877 * coff-pmac.c: Ditto.
2878 * Makefile.in: Regenerate.
2879
2880 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2881
2882 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2883 Change U802TOC64MAGIC to U803XTOCMAGIC.
2884
2885 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
2886
2887 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2888 * bfd-in.h: Prototype bfd_elf_get_arch_size.
2889 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2890
2891 2000-05-04 Alan Modra <alan@linuxcare.com.au>
2892
2893 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2894
2895 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2896
2897 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2898 hidden and internal symbols.
2899 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2900 visibility.
2901 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
2902 assign a PLT or GOT entry to symbols with hidden and
2903 internal visibility.
2904
2905 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
2906
2907 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
2908 the .bss section.
2909 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2910
2911 2000-05-02 H.J. Lu <hjl@gnu.org>
2912
2913 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
2914 ELFOSABI_SYSV.
2915
2916 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2917
2918 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
2919 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
2920 dependencies.
2921 * Makefile.in: Regenerate.
2922
2923 2000-05-01 Jim Wilson <wilson@cygnus.com>
2924
2925 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
2926 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
2927 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
2928 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
2929 * Makefile.in: Rebuild.
2930
2931 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2932
2933 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
2934 doesn't work very well.
2935
2936 * elf-hppa.h (elf_hppa_internal_shdr): Define.
2937 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
2938 Set hdr->s_type to 1 if ARCH_SIZE == 32.
2939 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
2940 (elf_hppa_info_to_howto): Likewise.
2941 (elf_hppa_info_to_howto_rel): Likewise.
2942 (elf_hppa_reloc_type_lookup): Likewise.
2943 (elf_hppa_is_local_label_name): Likewise.
2944 (elf_hppa_fake_sections): Likewise.
2945 (elf_hppa_final_write_processing): Likewise.
2946 (elf_hppa_howto_table): Fully initialise all entries.
2947 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
2948 (elf_hppa_info_to_howto): Likewise.
2949 (elf_hppa_info_to_howto_rel): Likewise.
2950 (elf_hppa_reloc_type_lookup): Likewise.
2951 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
2952 elf_hppa_unmark_useless_dynamic_symbols,
2953 elf_hppa_remark_useless_dynamic_symbols,
2954 elf_hppa_record_segment_addrs, elf_hppa_final_link,
2955 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
2956 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
2957 elf32-hppa.c mess is cleaned up.
2958 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
2959 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
2960 r_field then call hppa_field_adjust inline func with variable
2961 r_field arg, instead call hppa_field_adjust with fixed arg.
2962 In case R_PARISC_PCREL22F, don't set r_field.
2963 (elf_hppa_relocate_insn): Change args and return type to unsigned
2964 int. Call re_assemble_* funcs to do the work.
2965
2966 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
2967 sign extending.
2968
2969 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
2970 extending.
2971 (sign_extend): Mask first before sign extending.
2972 (low_sign_extend): Rewrite without condition expression.
2973 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
2974 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
2975 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2976 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
2977 result as function return value rather than through pointer arg.
2978 Accept unsigned int args, and return unsigned int.
2979 (re_assemble_3): New. Combines function of dis_assemble_3 with
2980 re-assembly of opcode and immediate.
2981 (re_assemble_12): Likewise.
2982 (re_assemble_16): Likewise.
2983 (re_assemble_17): Likewise.
2984 (re_assemble_21): Likewise.
2985 (re_assemble_22): Likewise.
2986 (hppa_field_adjust): Rewrite and document, paying attention to
2987 size of types and signed/unsigned issues.
2988 (get_opcode): Shift before masking.
2989 (FDLW): Rename to FLDW.
2990 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
2991 (hppa_rebuild_insn): Change args and return value to unsigned
2992 int. Make use of re_assemble_*. Correct case 11.
2993
2994 * dep-in.sed: Handle ../opcodes/.
2995 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
2996 elf64-hppa.h, hppa_stubs.h, xcoff.h.
2997 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
2998 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
2999 elfarm-nabi.lo dependencies outside of auto-dependency area.
3000 Regenerate dependencies.
3001 * Makefile.in: Regenerate.
3002
3003 * configure.in (TRAD_HEADER): Test non-null before
3004 AC_DEFINE_UNQUOTED.
3005 * configure: Regenerate.
3006
3007 * reloc.c: Fix mis-spelling in comment.
3008
3009 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3010
3011 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3012 * vms.c (vms_openr_next_archived_file): Return NULL.
3013
3014 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3015
3016 * coffcode.h Copy changes mistakenly done to libcoff.h in
3017 4/24/2000 patch.
3018
3019 2000-04-29 Andreas Jaeger <aj@suse.de>
3020
3021 * libbfd-in.h: Correctly check GCC version.
3022 * bfd-in.h: Likewise.
3023 * libhppa.h: Likewise.
3024 * libbfd.h: Regenerate.
3025 * bfd-in2.h: Regenerate.
3026
3027 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3028
3029 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3030 coffdu-rs6000.{lo,c}.
3031 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3032 on xcoff.h
3033 * Makefile.in: Regenerate.
3034 * xcoff.h: New file.
3035 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3036 * coff-rs6000.c: Move all declarations and defines that are
3037 common to the xcoff backends into xcoff.h
3038 * coff64-rs6000.c: Ditto,
3039
3040 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3041
3042 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3043 _bfd_coff_force_symnames in strings and
3044 _bfd_coff_debug_string_prefix_length to their default values.
3045 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3046
3047 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3048
3049 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3050 _bfd_coff_force_symnames in strings and
3051 _bfd_coff_debug_string_prefix_length to their default values.
3052
3053 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3054
3055 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3056 Check local_got_refcounts before dereferencing.
3057
3058 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3059 before deciding we don't need R_PPC_PLT32 relocation.
3060 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3061 dereferencing.
3062
3063 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3064
3065 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3066 .plt entries.
3067 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3068 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3069 (elf_i386_relocate_section): Allow for .plt to go missing.
3070 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3071 can use a relative reloc for got as elf_i386_relocate_section.
3072 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3073
3074 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3075
3076 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3077
3078 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3079
3080 * Makefile.am (coff64-rs6000.lo): New rule.
3081 * Makefile.in: Regenerate.
3082 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3083 xcoff_is_local_label_name, xcoff_rtype2howto,
3084 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3085 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3086 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3087 (NO_COFF_SYMBOLS): Define.
3088 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3089 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3090 internally.
3091 (MINUS_ONE): New macro.
3092 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3093 relocation.
3094 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3095 coff_SWAP_aux_out): Map to the new functions.
3096 * coff64-rs6000.c: New file.
3097 * libcoff.h (bfd_coff_backend_data): Add new fields
3098 _bfd_coff_force_symnames_in_strings and
3099 _bfd_coff_debug_string_prefix_length.
3100 (bfd_coff_force_symnames_in_strings,
3101 bfd_coff_debug_string_prefix_length): New macros for above fields.
3102 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3103 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3104 of using coff_swap_sym_in directly.
3105 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3106 (coff_set_flags) Set magic for XCOFF64.
3107 (coff_compute_section_file_positions): Add symbol name length to
3108 string section length if bfd_coff_debug_string_prefix_length is
3109 true.
3110 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3111 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3112 using coff_swap_lineno_in directly.
3113 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3114 and _bfd_coff_debug_string_prefix_length fields.
3115 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3116 symbol names into strings table when
3117 bfd_coff_force_symnames_in_strings is true.
3118 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3119 SET_RELOC_VADDR): New macros.
3120 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3121 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3122 code.
3123 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3124 changes within RS6000COFF_C specific code.
3125 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3126 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3127 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3128 Extend existing hack on target name.
3129 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3130 target name.
3131 * coff-tic54x.c (ticof): Keep up to date with new fields
3132 in bfd_coff_backend_data.
3133 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3134 targ_selvecs to include rs6000coff64_vec for rs6000.
3135 * configure.in: Add rs6000coff64_vec case.
3136 * cpu-powerpc.c: New bfd_arch_info_type.
3137
3138 2000-04-24 Jeffrey A Law (law@cygnus.com)
3139
3140 * config.bfd: Only disable elf32-hppa vectors, not all of the
3141 BSD and OSF configuration support. Provide (disabled) clauses
3142 for PA64 support.
3143 * configure.in: Add clause for PA64 support.
3144 * configure: Rebuilt.
3145
3146 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3147 (bfd_elf64_hppa_vec): Declare.
3148
3149 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3150 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3151 (elf64-hppa.lo): Add dependencies.
3152 * Makefile.in: Rebuilt.
3153
3154 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3155
3156 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3157
3158 * libhppa.h (dis_assemble_16): New function.
3159 (pa_arch): Added pa20w element.
3160
3161 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3162
3163 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3164 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3165 bfd_elf64_slurp_reloc_table.
3166
3167 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3168 definitions to get external names.
3169 (elf_write_relocs): Renamed from write_relocs and make global.
3170 (elf_slurp_reloc_table): Make global.
3171 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3172
3173 * archive.c (hpux_uid_gid_encode): New function.
3174 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3175 defined and the ID is greater than 99999.
3176 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3177 special uid/gid fields into 32 bit values.
3178
3179 2000-04-21 Matthew Green <mrg@cygnus.com>
3180
3181 * config.bfd: Add NetBSD/sparc64 support.
3182
3183 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3184 David Mosberger <davidm@hpl.hp.com>
3185 Timothy Wall <twall@cygnus.com>
3186 Jim Wilson <wilson@cygnus.com>
3187
3188 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3189 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3190 (BFD64_BACKENDS): Add elf64-ia64.lo.
3191 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3192 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3193 * Makefile.in: Rebuild.
3194 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3195 (bfd_ia64_arch): Declare.
3196 (bfd_archures_list): Add bfd_ia64_arch.
3197 * bfd-in2.h: Rebuild.
3198 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3199 * configure: Rebuild.
3200 * configure.host: (ia64-*-linux*): New host.
3201 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3202 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3203 * elf.c (prep_headers): Add bfd_arch_ia64.
3204 * libbfd.h: Rebuild.
3205 * reloc.c: Add IA-64 relocations.
3206 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3207 Declare.
3208 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3209 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3210
3211 2000-04-21 Richard Henderson <rth@cygnus.com>
3212
3213 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3214 contents when performing a partial link.
3215 (bfd_elf_d30v_reloc_21): Likewise.
3216
3217 2000-04-20 H.J. Lu <hjl@gnu.org>
3218
3219 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3220 patch to symbols defined by a shared object.
3221 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3222
3223 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3224
3225 K&R compiler fixes.
3226 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3227 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3228
3229 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3230
3231 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3232 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3233 (coff-ia64.lo): Add dependency.
3234 * Makefile.in: Regenerate.
3235 * coff-ia64.c: New file.
3236 * efi-app-ia32.c: Ditto.
3237 * efi-app-ia64.c: Ditto.
3238 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3239 (coff_set_flags): Ditto.
3240 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3241 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3242 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3243 * configure: Regenerate.
3244 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3245 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3246 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3247 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3248 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3249 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3250 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3251 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3252 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3253 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3254 (GET_PDATA_ENTRY): Ditto.
3255 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3256 data_start. Use above macros to read fields that are 64 bit wide for
3257 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3258 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3259 FileAlignment and SectionAlignment to minimum alignment if they
3260 are zero.
3261 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3262 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3263 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3264 Use above macros to write fields that are 64 bit wide for
3265 COFF_WITH_PEP64.
3266 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3267 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3268 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3269 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3270 begin address, end address, and unwind info address only. Use
3271 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3272 print addresses.
3273 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3274 HIGH3ADJ relocation names.
3275 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3276 * targets.c: Declare bfd_efi_app_ia32_vec and
3277 bfd_efi_app_ia64_vec.
3278 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3279 bfd_efi_app_ia64_vec.
3280
3281 2000-04-17 Timothy Wall <twall@cygnus.com>
3282
3283 * bfd-in2.h: Add prototypes for tic54x load page access.
3284 * bfd-in.h: Regenerate.
3285 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3286 in customized _set_arch_mach function.
3287 * coffcode.h (coff_set_alignment_hook): Set section load page if
3288 the appropriate macro is defined.
3289 (write_object_contents): Read section load page.
3290
3291 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3292
3293 * elf32-hppa.h: Update copyright date.
3294
3295 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3296 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3297
3298 * elf32-d30v.c (MAX32): Don't use LL suffix.
3299 (MIN32): Define in terms of MAX32.
3300 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3301
3302 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3303 expression.
3304
3305 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3306
3307 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3308
3309 * dep-in.sed: Match space before file name, not after.
3310 * Makefile.am: Regenerate dependencies.
3311 * Makefile.in: Regenerate.
3312
3313 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3314 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3315 extend without an if statement.
3316
3317 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3318
3319 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3320 signed quantites.
3321 * elf32-mips.c (gprel16_with_gp): Likewise.
3322 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3323 here using -0x40000, not (int)0xfffc0000.
3324 (elf32_hppa_size_of_stub): Likewise.
3325
3326 2000-04-11 Timothy Wall <twall@cygnus.com>
3327
3328 * coff-tic54x.c: Now builds with all targets.
3329 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3330 * Makefile.in: Regenerate.
3331 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3332 unitialized variable.
3333
3334 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3335
3336 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3337 --enable-build-warnings option.
3338 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3339 * Makefile.in, configure: Re-generate.
3340
3341 2000-04-07 Nick Clifton <nickc@cygnus.com>
3342
3343 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3344 BFD_RELOC_THUMB_PCREL_BLX.
3345
3346 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3347 R_ARM_XPC25 and R_ARM_THM_PC22.
3348
3349 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3350 R_ARM_XPC25 and R_ARM_THM_XPC22.
3351 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3352 R_ARM_[XPC25|THM_XPC22].
3353
3354 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3355 elf/arm-oabi.h to elf/arm.h
3356
3357 * Makefile.am: Fix dependency for elfarm-oabi.c
3358 * Makefile.in: Regenerate.
3359
3360 * bfd-in2.h: Regenerate.
3361 * libbfd.h: Regenerate.
3362
3363 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3364
3365 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3366 and restore it on failure. Release newly allocated tdata on
3367 failure.
3368
3369 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3370
3371 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3372 (decode_line_info): Set it. Report error if unit->line_offset is
3373 equal to or larger than it.
3374
3375 2000-04-07 Timothy Wall <twall@cygnus.com>
3376
3377 * targets.c: Added vecs for tic54x.
3378 * reloc.c: Added relocs for tic54x.
3379 * libbfd.h: Regenerated.
3380 * configure: Add TI COFF vecs for tic54x.
3381 * configure.in: Ditto.
3382 * config.bfd (targ_cpu): Recognize new tic54x target.
3383 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3384 * bfd-in2.h: Add tic54x target and relocations.
3385 * Makefile.am, Makefile.in: Add tic54x target.
3386 * archures.c (bfd_archures_list): Add tic54x target.
3387 * coff-tic54x.c: New.
3388 * cpu-tic54x.c: New.
3389
3390 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3391
3392 * elfcore.h (elf_core_file_p): call backend_object_p which
3393 thereby gets an opportunity to update the arch/machine type.
3394
3395 2000-04-06 Timothy Wall <twall@cygnus.com>
3396
3397 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3398 class. Handle SEC_CLINK and SEC_BLOCK flags.
3399 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3400 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3401
3402 2000-04-06 Nick Clifton <nickc@cygnus.com>
3403
3404 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3405 EF_INTERWORK if this is an unknown EABI.
3406 (elf32_arm_merge_private_bfd_data): Check EABI version
3407 numbers. Only check EF_xxx flags if the EABI version number
3408 is unknown.
3409 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3410 if the EABI version number is unknown.
3411 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3412 if the EABI version number is unknown.
3413
3414 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3415
3416 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3417 BFD_RELOC_SH_LOOP_END.
3418 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3419 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3420 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3421 (sh_elf_reloc_loop): New function.
3422 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3423 any more.
3424 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3425 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3426 * bfd-in2.h, libbfd.h: Regenerate.
3427
3428 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3429
3430 * po/bfd.pot: Regenerate.
3431
3432 * Makefile.am: Remove extraneous mkdep comment.
3433 (MKDEP): Use gcc -MM rather than mkdep.
3434 (DEP): Quote when passing vars to sub-make. Add warning
3435 message to end.
3436 (DEP1): Rewrite for "gcc -MM".
3437 (CLEANFILES): Add DEP2.
3438 Update dependencies.
3439 * Makefile.in: Regenerate.
3440
3441 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3442
3443 * configure.in: Added corefile support for AIX 4.3. In particular,
3444 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3445 compiling rs6000-core.c.
3446 * configure: Regenerated.
3447
3448 2000-04-03 H.J. Lu <hjl@gnu.org>
3449
3450 * cache.c (bfd_open_file): Unlink the output file only if
3451 it has non-zero size.
3452
3453 2000-04-01 Ken Block USG <block@zk3.dec.com>
3454
3455 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3456 relative relocations for non-loaded sections in shared objects.
3457 (elf64_alpha_check_relocs): Similarly.
3458
3459 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3460
3461 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3462 BFD_RELOC_16 to switch for extended relocs.
3463 (MY_swap_ext_reloc_in): New.
3464 (MY_swap_ext_reloc_out): New.
3465 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3466 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3467 (NAME(aout,squirt_out_relocs)): Similarly use
3468 MY_swap_ext_reloc_out.
3469 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3470
3471 2000-04-03 Kazu Hirata <kazu@hxi.com>
3472
3473 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3474 the R_PCRWORD_B case.
3475
3476 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3477
3478 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3479 on some targets.
3480 * ihex.c : Ditto.
3481
3482 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3483
3484 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3485 HOWTO references to bfd_elf_generic_reloc, that have
3486 partial_inplace == true, now use the new function. The function
3487 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3488 extends its fixes to the R_M32R_{16,24,32} relocs.
3489 The new logic in m32r_elf_lo16_reloc() has been removed, and
3490 it instead calls the new routine to obtain that functionality.
3491
3492 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3493
3494 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3495 elf32_avr_check_relocs, avr_final_link_relocate,
3496 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3497 elf32_avr_object_p): Add prototypes.
3498 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3499 (bfd_elf_avr_final_write_processing): Make static.
3500
3501 2000-03-27 Denis Chertykov <denisc@overta.ru>
3502
3503 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3504 * archures.c (bfd_architecture): Add AVR architecture.
3505 (bfd_archures_list): Add reference to AVR architecture info.
3506 * elf.c (prep_headers): Handle bfd_arch_avr.
3507 * reloc.c: Add various AVR relocation enums.
3508 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3509 list.
3510 * Makefile.am: Add support for AVR elf.
3511 * configure.in: Likewise.
3512 * config.bfd: Likewise.
3513 * Makefile.in: Regenerate.
3514 * configure: This too.
3515 * bfd-in2.h: And this.
3516 * libbfd.h: And this.
3517
3518 2000-03-24 H.J. Lu <hjl@gnu.org>
3519
3520 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3521 (elf64_alpha_find_reloc_at_ofs): Likewise.
3522
3523 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3524
3525 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3526 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3527 allowable range used to be -2**(n-1) to 2**n-1.
3528 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3529 "boolean overflow" with "bfd_reloc_status_type flag".
3530
3531 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3532
3533 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3534
3535 2000-03-14 Kazu Hirata <kazu@hxi.com>
3536
3537 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3538 of shrinks properly, including the last reloc.
3539
3540 2000-03-13 Kazu Hirata <kazu@hxi.com>
3541
3542 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3543 check for R_MOVL2.
3544
3545 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3546
3547 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3548 a format mismatch rather than an "error" from bfd_read such as
3549 bfd_error_file_truncated.
3550
3551 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3552
3553 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3554 sign-extension and big-endian compensation for
3555 R_MIPS_64 even in ld -r.
3556
3557 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3558
3559 * elf32-mips.c (mips_elf_next_relocation): Rename from
3560 mips_elf_next_lo16_relocation, and generalize to look
3561 for any relocation type.
3562 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3563 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3564 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3565 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3566 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3567 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3568 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3569 (mips_rtype_to_howto): Likewise.
3570 (mips_elf_calculate_relocation): Handle new relocs.
3571 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3572 are paired. The addend for R_MIPS_GNU_REL16_S2
3573 is shifted right two bits.
3574
3575 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3576
3577 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3578 comment, and ensure it doesn't happen again.
3579 (bfd_install_relocation): Same here.
3580 (_bfd_relocate_contents): Don't bother assigning unused signmask
3581 shift result. Fix typos in comments.
3582 Remove trailing whitespace throughout file.
3583
3584 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3585
3586 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3587 * bfd-in2.h: Rebuild.
3588
3589 2000-03-06 Nick Clifton <nickc@cygnus.com>
3590
3591 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3592 sym_ptr_ptr fields.
3593 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3594 (SIZEOF_ILF_STRINGS): Redefine.
3595 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3596 relative reloc, as opposed to a section relative reloc.
3597 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3598 not C_LABEL.
3599 Add length of symbol's prefix to string pointer.
3600 Store a pointer to the symbol in the symbol pointer table.
3601 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3602 Initialise the symbol pointer table.
3603 Store the hint in the Hint/Name table.
3604 Make the jump reloc be symbol realtive, not section relative.
3605 Create an import symbol for imported code.
3606
3607 2000-03-06 Catherine Moore <clm@cygnus.com>
3608
3609 * elf.c (swap_out_syms): Check for null type_ptr.
3610
3611 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3612
3613 * aout-target.h (MY(write_object_contents)): Remove unused
3614 and unusable "#if CHOOSE_RELOC_SIZE".
3615 * pc532-mach.c (MY(write_object_contents)): Ditto.
3616 * netbsd.h (MY(write_object_contents)): Ditto.
3617 * hp300hpux.c (MY(write_object_contents)): Ditto.
3618 * freebsd.h (MY(write_object_contents)): Ditto.
3619 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3620
3621 2000-02-29 H.J. Lu <hjl@gnu.org>
3622
3623 * peicode.h (jtab): Make it static.
3624
3625 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3626 defined and COFF_IMAGE_WITH_PE is not defined.
3627 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3628 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3629
3630 2000-03-01 Nick Clifton <nickc@cygnus.com>
3631
3632 * coff-arm.c (bfd_arm_process_before_allocation): Make
3633 'symndx' signed to prevent compile time warning.
3634
3635 * coff-mcore.c: Remove unused prototype for pe_object_p.
3636
3637 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3638 functions that are not used when COFF_IMAGE_WITH_PE is
3639 defined.
3640 (struct sh_opcode): Change type of 'flags' field to unsigned
3641 long so that it can hold the USESAS flag.
3642
3643 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3644
3645 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3646 'sym_sec'.
3647
3648 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3649 parameters.
3650 Remove unusued variables and code.
3651 (elf_backend_add_symbol_hook): Fix prototype.
3652
3653 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3654 'srelgot'.
3655
3656 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3657 'oldinst'.
3658
3659 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3660 parameters.
3661 Remove unusued variables and code.
3662 (elf_backend_add_symbol_hook): Fix prototype.
3663
3664 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3665
3666 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3667 to unused function parameter.
3668
3669 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3670 parameters.
3671 Use EMPTY_HOWTO to initialise empty howto slots.
3672 Remove unused variables.
3673
3674 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3675
3676 2000-03-01 H.J. Lu <hjl@gnu.org>
3677
3678 * aoutx.h (aout_link_input_section_std): Pass "true" to
3679 the undefined_symbol callback.
3680 (aout_link_input_section_ext): Likewise.
3681 * bout.c (get_value): Likewise.
3682 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3683 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3684 Likewise.
3685 (alpha_relocate_section): Likewise.
3686 * coff-arm.c (coff_arm_relocate_section): Likewise.
3687 * coff-i960.c (coff_i960_relocate_section): Likewise.
3688 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3689 * coff-mips.c (mips_relocate_section): Likewise.
3690 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3691 * coff-sh.c (sh_relocate_section): Likewise.
3692 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3693 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3694 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3695 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3696 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3697 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3698 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3699 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3700 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3701 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3702 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3703 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3704 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3705 * elflink.h (elf_link_output_extsym): Likewise.
3706 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3707 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3708 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3709
3710 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3711 undefined_symbol callback when building shared library with
3712 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3713 "true".
3714 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3715 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3716 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3717 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3718 (elf32_mips_get_relocated_section_content): Likewise.
3719 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3720 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3721 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3722 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3723
3724 2000-02-28 Nick Clifton <nickc@cygnus.com>
3725
3726 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3727 * Makefile.in: Regenerate.
3728
3729 * configure.in: Add support for mips and sh pe vectors.
3730 * configure: regenerate.
3731
3732 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3733 targets.
3734
3735 * targets.c: Add mips and sh pe vectors.
3736
3737 * libpei.h (coff_final_link_postscript): Only define if not
3738 already defined.
3739
3740 * coffcode.h: Add support for WinCE magic numbers.
3741
3742 * peigen.c (pe_print_reloc): Update comment and rearrange
3743 appending of newline character.
3744
3745 * peicode.h: Add support for Image Library Format.
3746 (pe_ILF_vars): Structure containing data used by ILF code.
3747 (pe_ILF_make_a_section): New function. Create a section based
3748 on ILF data.
3749 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3750 ILF data.
3751 (pe_ILF_make_a_symbol): New function. Create a symbol based
3752 on ILF data.
3753 (pe_ILF_save_relocs): New function. Store the relocs created
3754 by pe_ILF_make_a_reloc in a section.
3755 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3756 an ILF object.
3757 (pe_ILF_object_p): New function. Return a bfd_target pointer
3758 for an ILF object.
3759 (pe_bfd_object_p): If an ILF object is detected call
3760 pe_ILF_object_p on it.
3761
3762 * coff-arm.c: Add support for WinCE relocs which are different
3763 from normal ARM COFF relocs.
3764 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3765
3766 * coff-sh.c: Add support for sh-pe target.
3767 * pe-sh.c: New file. Support code for sh-pe target.
3768 * pei-sh.c: New file. Support code for sh-pe target.
3769
3770 * pe-mips.c: New file. Support code for mips-pe target.
3771 * pei-mips.c: New file. Support code for mips-pe target.
3772
3773 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3774
3775 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3776 architecture if the object causing the bump is dynamic.
3777 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3778 and also don't it for memory ordering.
3779 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3780
3781 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3782
3783 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3784 calling bfd_get_section_size_before_reloc.
3785 (decode_line_info): Likewise.
3786 (_bfd_dwarf2_find_nearest_line): Likewise.
3787
3788 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3789
3790 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3791 name of the libtool directory.
3792 * Makefile.in: Rebuild.
3793
3794 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3795
3796 * som.c (SOM_HOWTO): Define.
3797 (som_hppa_howto_table): Use it.
3798
3799 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3800
3801 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3802
3803 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3804
3805 2000-02-24 Catherine Moore <clm@cygnus.com>
3806
3807 * som.c (som_misc_symbol_info): Add field
3808 secondary_def.
3809 (som_bfd_derive_misc_symbol_info): Initialize
3810 secondary_def.
3811 (som_build_and_write_symbol_table): Keep track
3812 of secondary_def field.
3813 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3814 if secondary_def field is set.
3815 (som_bfd_ar_write_symbol_stuff): Initialize
3816 secondary_def.
3817
3818 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3819
3820 * dwarf2.c (read_address): Read 16-bits addresses.
3821 (parse_comp_unit): Accept addr_size == 2.
3822
3823 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3824
3825 * bfd-in.h: Update copyright date.
3826
3827 2000-02-23 Linas Vepstas <linas@linas.org>
3828
3829 * cpu-i370.c: New file.
3830 * elf32-i370.c: New file.
3831 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3832 (bfd_i370_arch): New.
3833 (bfd_archures_list): Add bfd_i370_arch.
3834 * elf.c (prep_headers): Add bfd_arch_i370.
3835 * Makefile.am: Add support for IBM 370 elf.
3836 * config.bfd: Likewise.
3837 * configure.in: Likewise.
3838 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3839 * reloc.c (bfd_reloc_code_type): Likewise.
3840 * targets.c: Likewise.
3841
3842 * Makefile.in: Regenerate.
3843 * configure: Regenerate.
3844 * bfd-in2.h: Regenerate.
3845
3846 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3847
3848 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3849 invalid relocation types, and change them to R_386_NONE.
3850
3851 2000-02-22 H.J. Lu <hjl@gnu.org>
3852
3853 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3854 not defined, don't add a second ELF_VER_CHR.
3855
3856 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3857 symbols converted to local symbols even when stripping all
3858 symbols.
3859 (elf_link_output_extsym): Process global symbols converted to
3860 local symbols even if they are being stripped.
3861
3862 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3863
3864 * archures.c (bfd_octets_per_byte): Return unsigned int.
3865 (bfd_arch_mach_octets_per_byte): Ditto.
3866 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3867 comparison warning.
3868 * section.c (bfd_get_section_size_before_reloc): Quell signed
3869 vs. unsigned comparison warning.
3870 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3871 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3872 change. What was I thinking?
3873 * bfd-in2.h: Regenerate.
3874
3875 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3876 (elf_gc_sections): Same here.
3877 (elf_gc_common_finalize_got_offsets): And here.
3878
3879 2000-02-21 Ian Lance Taylor <ian@zembu.com>
3880
3881 ELF HPPA doesn't work at present; remove it until it does.
3882 * config.bfd: Comment out setting targ_defvec to
3883 bfd_elf32_hppa_vec.
3884 * Makefile.am: Rebuild dependencies.
3885 (BFD32_BACKENDS): Remove elf32-hppa.lo.
3886 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3887 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3888 * Makefile.in: Rebuild.
3889 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3890
3891 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3892
3893 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3894 is no bfd_free(). Revert bfd_free part of previous change.
3895
3896 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3897
3898 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3899 arrays.
3900 (coff_compute_section_file_positions): Use bfd_free to pair
3901 bfd_malloc.
3902 (coff_write_object_contents): Likewise.
3903
3904 * coff-rs6000.c (xcoff_howto_table_16): New variable.
3905 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
3906
3907 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
3908
3909 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
3910 (xcoff_ar_file_hdr_big): New structure.
3911 (SIZEOF_AR_FILE_HDR_BIG): New macro.
3912 (xcoff_ar_hdr_big): New structure.
3913 (SIZEOF_AR_HDR_BIG): New macro.
3914 (xcoff_big_format_p): New macro.
3915 (xcoff_ardata_big): New macro.
3916 (arch_xhdr_big): New macro.
3917 (xcoff_slurp_armap): Handle large archives.
3918 (xcoff_archive_p): Detect large archives.
3919 (xcoff_read_ar_hdr): Handle large archives.
3920 (xcoff_openr_next_archived_file): Handle large archives.
3921 (xcoff_generic_stat_arch_elt): Handle large archives.
3922 (xcoff_write_armap_old): Rename from xcoff_write_armap.
3923 (xcoff_write_armap_big): New function.
3924 (xcoff_write_armap): New function, dispatch to _old or _big.
3925 (xcoff_write_archive_contents_old): Rename from
3926 xcoff_write_archive_contents.
3927 (xcoff_write_archive_contents_big): New function.
3928 (xcoff_write_archive_contents): New function, dispatch to _old or
3929 _big.
3930
3931 2000-02-18 Richard Henderson <rth@cygnus.com>
3932
3933 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
3934 and hide_symbol members.
3935 (elf_link_hash_copy_indirect): Remove.
3936 (elf_link_hash_hide_symbol): Remove.
3937 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
3938 and elf_backend_hide_symbol.
3939 (_bfd_elf_link_hash_copy_indirect): Declare.
3940 (_bfd_elf_link_hash_hide_symbol): Declare.
3941 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
3942 (_bfd_elf_link_hash_hide_symbol): Likewise.
3943 (_bfd_elf_link_hash_table_init): Don't init killed members.
3944 * elflink.h (elf_link_add_object_symbols): Use the bed function
3945 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
3946 (elf_link_assign_sym_version): Likewise.
3947 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
3948 (elf_backend_hide_symbol): Likewise.
3949 (elfNN_bed): Update for new members.
3950
3951 2000-02-17 Kevin Buettner <kevinb@redhat.com>
3952
3953 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
3954 STACK_END_ADDR): Define for new core file format.
3955 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
3956 for handling the vagaries of the various core file structures used
3957 by AIX over the years.
3958 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
3959 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
3960 core_dumpx structure.
3961
3962 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3963
3964 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
3965 (bfd_mach_sh3_dsp): Likewise.
3966 (bfd_mach_sh4): Reinstate.
3967 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
3968 * bfd-in2.h: Regenerate.
3969 * coff-sh.c (struct sh_opcode): flags is no longer short.
3970 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
3971 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
3972 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
3973 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
3974 (sh_opcodes): No longer const.
3975 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
3976 (sh_insn_uses_reg): Check for USESAS and USESR8.
3977 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
3978 (_bfd_sh_align_load_span): Return early for SH4.
3979 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
3980 Take into account that field b of a parallel processing insn
3981 could be mistaken for a separate insn.
3982 * cpu-sh.c (arch_info_struct): New array elements for
3983 sh2, sh-dsp and sh3-dsp.
3984 Reinstate element for sh4.
3985 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
3986 (SH4_NEXT): Reinstate.
3987 (SH3_NEXT, SH3E_NEXT): Adjust.
3988 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
3989 * elf32-sh.c (sh_elf_set_private_flags): New function.
3990 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
3991 (sh_elf_merge_private_data): New function.
3992 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
3993 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3994 (bfd_elf32_bfd_merge_private_bfd_data): Change to
3995 sh_elf_merge_private_data.
3996
3997 2000-02-13 Richard Henderson <rth@cygnus.com>
3998
3999 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4000 hide_symbol members.
4001 (elf_link_hash_copy_indirect): New.
4002 (elf_link_hash_hide_symbol): New.
4003 * elflink.h (elf_link_add_object_symbols): Break out copy from
4004 indirect new new symbol to elf.c.
4005 (elf_link_assign_sym_version): Break out privatization of
4006 non-exported symbol to elf.c.
4007 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4008 (_bfd_elf_link_hash_hide_symbol): New.
4009 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4010
4011 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4012
4013 * section.c (_bfd_strip_section_from_output): Add info parameter.
4014 If it passed as non-NULL, use it to check whether any input BFD
4015 has an input section which uses this output section. Change all
4016 callers.
4017 * bfd-in2.h: Rebuild.
4018
4019 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4020 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4021 1999-11-29.
4022 * bfd-in2.h: Rebuild.
4023
4024 2000-02-10 Timothy Wall <twall@cygnus.com>
4025
4026 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4027 allow final modifications of swapped-in symbol.
4028 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4029 * coffcode.h (coff_write_relocs): Use macro
4030 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4031 symbol index should be set to -1.
4032
4033 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4034
4035 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4036 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4037 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4038 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4039 sh_insns_uses_or_sets_freg): New functions.
4040 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4041 * (sh_insns_conflict): Use new functions and new macros to
4042 detect conflicts when two instructions both set same integer registers,
4043 both set same fp register, and both set special register.
4044
4045 2000-02-09 Timothy Wall <twall@cygnus.com>
4046
4047 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4048 swapping in sections, so that the swapping routines have access to
4049 the arch/mach info.
4050
4051 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4052
4053 * coff-go32.c: Update comment. Update copyright.
4054
4055 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4056
4057 * syms.c (bfd_decode_symclass)
4058 Two new class characters were added - 'V' and 'v'. The
4059 meaning of 'W' is now restricted to just weak non-object
4060 symbols. This allows differentiation between, for example,
4061 weak functions vs weak objects. nm for example now dumps:
4062 'W' = weak global
4063 'w' = weak unresolved
4064 'V' = weak global object
4065 'v' = weak unresolved object
4066
4067 (bfd_is_undefined_symclass): New function. Return true if the
4068 given symbol class represents and undefined/unresolved symbol.
4069
4070 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4071 unresolved symbols.
4072
4073 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4074
4075 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4076 STT_ARM_16BIT flag set, but it is not attached to a data object
4077 return STT_ARM_16BIT so that it will be treated as code by the
4078 disassembler.
4079
4080 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4081
4082 * coff-i386.c (i3coff_object_p): Remove prototype.
4083 Update copyright.
4084
4085 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4086 to name. Update copyright.
4087
4088 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4089 assignment to avoid warning. Update copyright.
4090
4091 2000-01-24 Robert Lipe (robertl@sco.com)
4092
4093 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4094 instead of using GNU C extension.
4095
4096 2000-01-21 Nick Clifton <nickc@cygnus.com>
4097
4098 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4099 amount from a bfd_in_memory structure.
4100 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4101 structure.
4102
4103 2000-01-14 Nick Clifton <nickc@cygnus.com>
4104
4105 * linker.c (default_indirect_link_order): oops - fix incorrectly
4106 applied patch from Tim Wall.
4107
4108 2000-01-13 Timothy Wall (twall@tiac.net>
4109
4110 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4111 = scnhsz, filhsz, relsz, aoutsz, etc)
4112
4113 * coffswap.h: Ditto.
4114
4115 2000-01-13 Nick Clifton <nickc@cygnus.com>
4116
4117 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4118 interwork thumb to arm stub.
4119
4120 2000-01-13 Timothy Wall (twall@tiac.net>
4121
4122 * archures.c (bfd_octets_per_byte): New function: Return
4123 target byte size.
4124 (bfd_arch_mach_octets_per_byte): New function: Return target
4125 byte size.
4126
4127 * section.c: Distinguish between octets and bytes for usage of
4128 _cooked_size, _raw_size, and output_offset. Clarify
4129 description of bfd_set_section_contents.
4130
4131 * bfd-in2.h: Regenerate.
4132
4133 * coffgen.c: Indicate that the offset parameter is in bytes, not
4134 octets.
4135
4136 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4137 where appropriate to get the octet offset when calling
4138 bfd_set_section_contents.
4139 (bfd_coff_reloc_link_order): Ditto.
4140
4141 * linker.c (bfd_generic_reloc_link_order): Ditto.
4142 (_bfd_default_link_order): Ditto.
4143
4144 * reloc.c (bfd_perform_relocation): Distinguish between octets
4145 and bytes. Use octets when indexing into octet data; use bytes
4146 when calculating target addresses.
4147 (bfd_install_relocation): Ditto.
4148
4149 * srec.c (srec_write_section): Ditto.
4150
4151 2000-01-13 Nick Clifton <nickc@cygnus.com>
4152
4153 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4154 3 to 2. This allows 4 byte sized sections, which is necessary for
4155 dlltool to build functioning DLLs.
4156
4157 2000-01-10 Philip Blundell <pb@futuretv.com>
4158
4159 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4160 (arm*-*-conix*): New target.
4161
4162 2000-01-10 Egor Duda <deo@logos-m.ru>
4163
4164 * config.bfd: Include elf32_i386 vector to target list for cygwin
4165 and mingw.
4166
4167 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4168 * configure.in: Test for structure win32_pstatus_t in
4169 <sys/procfs.h>
4170 * configure: Regenerate.
4171
4172 * elf.c (elfcore_grok_win32pstatus): New function: process
4173 win32_pstatus_t notes in elf core file.
4174 (elfcore_grok_note): Detect win32_pstatus notes.
4175
4176 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4177
4178 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4179 visibility.
4180 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4181 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4182
4183 For older changes see ChangeLog-9899
4184 \f
4185 Local Variables:
4186 mode: change-log
4187 left-margin: 8
4188 fill-column: 74
4189 version-control: never
4190 End:
This page took 0.109428 seconds and 3 git commands to generate.