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