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