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