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