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