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