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