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