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