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