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