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