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