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