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