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