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