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