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