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