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