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