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