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