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