1 2001-02-28 Philip Blundell <pb@futuretv.com>
3 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
6 2001-02-27 H.J. Lu <hjl@gnu.org>
8 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
9 abfd->tdata.aout_data == NULL.
11 2001-02-27 Alan Modra <alan@linuxcare.com.au>
13 * elf32-hppa.c: Correct field selector in stub comments.
14 (clobber_millicode_symbols): Formatting fix.
16 * configure.in: Bump version to 2.11.90.
17 * configure: Regenerate.
18 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
19 (CFILES): $SOURCE_CFILES + generated C files.
20 (POTFILES): Include $HFILES not $SOURCE_HFILES.
22 * Makefile.in: Regenerate.
23 * doc/Makefile.in: This too.
25 2001-02-26 Timothy Wall <twall@cygnus.com>
27 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
30 2001-02-26 Nick Clifton <nickc@redhat.com>
32 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
33 up, replacing multiple if statements with a switch.
34 (handle_COMDAT): New function.
36 2001-02-26 H.J. Lu <hjl@gnu.org>
38 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
39 a warning for section flags we do not handle instead of
42 2001-02-26 Andreas Jaeger <aj@suse.de>
44 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
46 2001-02-22 Timothy Wall <twall@cygnus.com>
48 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
49 * configure.in: Add objects for elf64_ia64_aix vectors.
50 * configure: Regenerated.
51 * configure.host: Recognize ia64-*-aix*.
52 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
53 for AIX. AIX5 requires most relocations to be dynamic (*all*
54 binaries are somewhat similar to shared libraries).
55 * targets.c: Add elf64_ia64_aix vectors.
57 2001-02-21 David Mosberger <davidm@hpl.hp.com>
59 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
60 C8 said "1" instead of "8". Clarify error string for IMM22:
61 "signed integer" instead of just "integer".
63 2001-02-20 Andreas Jaeger <aj@suse.de>
65 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
66 PLT entries that could serve as a definition for a weak symbol.
68 2001-02-19 Jakub Jelinek <jakub@redhat.com>
70 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
71 entries that could serve as a definition for a weak symbol.
72 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
74 2001-02-18 David O'Brien <obrien@FreeBSD>
76 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
77 FreeBSD/i386-CURRENT differently until I can figure out the needed
79 * configure: Regenerate.
80 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
81 FreeBSD/PowerPC, and FreeBSD/sparc64.
83 2001-02-18 lars brinkhoff <lars@nocrew.org>
85 * Makefile.am: Add PDP-11 a.out target.
86 * config.bfd: Likewise.
87 * configure.in: Likewise.
88 * targets.c: Likewise.
89 * archures.c: Likewise.
90 * bfd-in2.h: Likewise. Add PDP-11 relocations.
91 * libbfd.h: Add PDP-11 relocations.
93 * cpu-pdp11.c: New file.
96 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
97 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
98 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
99 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
100 (GET_MAGIC): New macro.
101 (PUT_MAGIC): Likewise.
102 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
104 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
106 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
109 2001-02-18 H.J. Lu <hjl@gnu.org>
111 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
114 2001-02-18 Kazu Hirata <kazu@hxi.com>
116 * vms-misc.c: Fix formatting.
118 2001-02-16 Kazu Hirata <kazu@hxi.com>
120 * vms.c: Fix formatting.
122 2001-02-14 H.J. Lu <hjl@gnu.org>
124 * elf.c (elf_find_function): New function.
125 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
126 the file name and function name.
128 2001-02-14 Nick Clifton <nickc@redhat.com>
130 * ecoff.c (bfd_debug_section): Update to initialise new fields in
133 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
134 (BFD64_BACKENDS): Add pepigen.c
135 Add rules to create peigen.c and pepigen.c from peXXigen.c.
137 * Makefile.in: Regenerate.
138 * configure: Regenerate.
139 * po/POTFILES.in: Regenerate.
140 * po/bfd.pot: Regenerate.
142 2001-02-14 H.J. Lu <hjl@gnu.org>
144 * libcoff-in.h (pe_tdata): Add members target_subsystem and
145 force_minimum_alignment.
147 2001-02-14 Bo Thorsen <bo@suse.de>
149 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
150 (elf64_86_64_size_info): Struct added to fix a problem
151 with the hashtable string entries.
152 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
153 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
154 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
155 remove the FIXME for this.
156 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
157 section. Also removed the FIXME for it.
158 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
159 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
160 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
162 2001-02-13 Richard Henderson <rth@redhat.com>
164 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
165 and not user provided.
167 2001-02-13 Kazu Hirata <kazu@hxi.com>
169 * vms.c (vms_print_symbol): Remove unreachable code.
171 * rs6000-core.c: Fix formatting.
173 2001-02-13 David Mosberger <davidm@hpl.hp.com>
175 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
176 as _bfd_XXi_only_swap_filehdr_out.
177 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
178 pe->force_minimum_alignment to TRUE.
179 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
180 PEI_TARGET_SUBSYSTEM.
181 (pe_print_private_bfd_data): Call
182 _bfd_XX_print_private_bfd_data_common() instead of
183 _bfd_pe_print_private_bfd_data_common().
184 (pe_bfd_copy_private_bfd_data): Call
185 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
186 _bfd_pe_bfd_copy_private_bfd_data_common().
187 (coff_bfd_copy_private_section_data): Define as
188 _bfd_XX_bfd_copy_private_section_data instead of
189 _bfd_pe_bfd_copy_private_section_data.
190 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
191 of a _bfd_pe_get_symbol_info.
195 * peXXigen.c: Renamed from peigen.c.
196 (COFF_WITH_XX): Define this macro (will get expanded into
197 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
198 compiled as peigen.c or pepigen.c.
199 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
200 define the canonical PEP structures and definitions.
201 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
202 effect, enforce minimum file and section alignments. If
203 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
204 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
205 so, by default, this is a no-op).
207 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
208 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
209 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
210 _bfd_pefoo if it's not defined. Use these macros to define
213 * libcoff.h (pe_tdata): Add members target_subsystem and
214 force_minimum_alignment.
216 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
218 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
220 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
223 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
224 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
227 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
228 (BFD64_BACKENDS_CFILES): Mention pepigen.c
229 (peigen.c): Add rule to generate from peXXigen.c.
231 (pepigen.lo): List dependencies for pepigen.lo.
233 2001-02-13 Alan Modra <alan@linuxcare.com.au>
235 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
236 $global$ referenced but not defined, set its value here.
238 2001-02-09 Bo Thorsen <bo@suse.de>
240 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
242 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
244 (elf64_x86_64_relocate_section): Fix formatting.
245 (elf64_x86_64_relocate_section): Fix addend for relocation of
246 R_X86_64_(8|16|32|PC8|PC16|PC32).
248 2001-02-12 Jan Hubicka <jh@suse.cz>
250 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
252 2001-02-11 H.J. Lu <hjl@gnu.org>
254 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
257 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
259 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
260 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
261 relocations against dynsym symbols.
263 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
264 the R_MIPS_26 relocation.
265 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
266 the R_MIPS_26 relocation.
267 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
269 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
270 the R_MIPS_26 relocation.
271 (mips_elf64_howto_table_rela): Likewise.
273 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
274 member to mark symbols that have non-CALL relocations against
276 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
277 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
279 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
280 non-CALL relocation against it is encountered.
281 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
282 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
283 no_fn_stub is not set.
285 * elf32-mips.c (mips_elf_output_extsym): Get the output section
286 information from the real symbol for indirect ones.
287 Check no_fn_stub to find out if a symbol has a function stub
290 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
292 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
293 * Makefile.in: Regenerate.
295 2001-02-09 David Mosberger <davidm@hpl.hp.com>
297 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
298 true if section name is an unwind table section name.
299 (elfNN_ia64_additional_program_headers): Count each unwind section
301 (elfNN_ia64_modify_segment_map): Install one unwind program header
302 for each unwind separate section. Note: normally the linker
303 script merges the unwind sections that go into a single segment,
304 so this still generates at most one unwind program header per
307 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
308 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
309 (elfNN_ia64_fake_sections): Mark sections with names that start
310 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
313 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
314 Use it to make sh_info in unwind section point to the text section
317 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
319 * Makefile.am: Add linux target for S/390.
320 * archures.c: Likewise.
321 * bfd-in2.h: Likewise.
322 * config.bfd: Likewise.
323 * configure.in: Likewise.
325 * libbfd.h: Likewise.
326 * targets.c: Likewise.
327 * cpu-s390.c: New file.
328 * elf32-s390.c: New file.
329 * elf64-s390.c: New file.
331 2001-02-09 Nick Clifton <nickc@redhat.com>
333 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
334 ImageBase. This has already been done by coff_swap_hdr_in.
336 2001-02-09 Jakub Jelinek <jakub@redhat.com>
338 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
340 2001-02-09 Jakub Jelinek <jakub@redhat.com>
342 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
343 (sparc64_elf_relocate_section): Likewise.
345 2001-02-09 Mark Kettenis <kettenis@gnu.org>
347 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
348 similar to R_SPARC_32.
349 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
351 2001-02-08 H.J. Lu <hjl@gnu.org>
353 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
354 relocation entries for weak definitions when building DSO with
357 2001-02-08 Richard Henderson <rth@redhat.com>
359 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
360 before visibility. Locally defined protected symbols are not
363 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
365 * config.bfd: Enable coff64 for rs6000-*. Patch from
366 <hzoli@austin.ibm.com>.
368 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
370 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
371 found, do not attempt to find dwarf2 info before returning.
373 2001-02-07 Jakub Jelinek <jakub@redhat.com>
375 * elflink.h (is_global_symbol_definition): Rename to
376 is_global_data_symbol_definition and have it reject function
378 (elf_link_is_defined_archive_symbol): Use renamed function.
380 2001-02-07 Todd Vierling <tv@wasabisystems.com>
382 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
383 * libbfd.h (bfd_target_vector): Likewise.
384 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
385 make static; create pointer reference named bfd_target_vector.
386 (_bfd_target_vector_entries): Calculate this based on the array
387 typed _bfd_target_vector.
389 2001-02-06 H.J. Lu <hjl@gnu.org>
391 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
392 internal symbols are not dynamic.
393 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
395 2001-02-06 Nick Clifton <nickc@redhat.com>
397 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
398 that it will not be pulled into the list of files that make up
400 * Makefile.in: Regenerate.
401 * po/bfd.pot: Regenerate.
403 2001-02-06 H.J. Lu <hjl@gnu.org>
405 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
407 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
408 external_PEI_IMAGE_hdr.
410 2001-02-06 Kazu Hirata <kazu@hxi.com>
412 * elf-m10200.c: Fix formatting.
414 2001-02-04 Nick Clifton <nickc@redhat.com>
416 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
417 rel, it will be handled later on.
419 2001-02-02 Fred Fish <fnf@ninemoons.com>
421 * Makefile.in: Fix typo.
423 2001-02-01 Kazu Hirata <kazu@hxi.com>
425 * elf-m10300.c: Fix formatting.
427 2001-01-30 Alan Modra <alan@linuxcare.com.au>
429 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
430 (elf_backend_get_symbol_type): Define.
431 (elf64_hppa_object_p): Set architecture and machine from elf
434 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
436 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
439 2001-01-26 Richard Henderson <rth@redhat.com>
441 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
442 for non-default visibility.
443 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
444 delete ugly macro and replace with pretty function.
446 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
448 * coff-go32.c: Update copyright.
449 * coff-stgo32.c: Likewise.
450 * coff-go32.c (COFF_LONG_FILENAMES): Define.
451 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
452 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
453 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
455 2001-01-25 Kazu Hirata <kazu@hxi.com>
457 * bfd-in2.h: Rebuild.
458 * libbfd.h: Likewise.
460 2001-01-23 H.J. Lu <hjl@gnu.org>
462 * bfd-in2.h: Rebuild.
464 2001-01-23 H.J. Lu <hjl@gnu.org>
466 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
467 is NULL or PRIV(vms_rec) is outside of the buffer.
469 2001-01-23 Kazu Hirata <kazu@hxi.com>
471 * coff64-rs6000.c: Fix formatting.
472 * coff-arm.c: Likewise.
473 * coffgen.c: Likewise.
474 * cofflink.c: Likewise.
475 * coff-mcore.c: Likewise.
476 * coff-mips.c: Likewise.
477 * coff-pmac.c: Likewise.
478 * coff-ppc.c: Likewise.
479 * coff-rs6000.c: Likewise.
481 * elf32-fr30.c: Likewise.
482 * elf32-i370.c: Likewise.
483 * elf32-i860.c: Likewise.
484 * elf32-m32r.c: Likewise.
485 * elf32-m68k.c: Likewise.
486 * elf32-mcore.c: Likewise.
487 * elf32-ppc.c: Likewise.
488 * elf32-sh.c: Likewise.
489 * elf32-v850.c: Likewise.
490 * elf64-alpha.c: Likewise.
491 * elf64-sparc.c: Likewise.
492 * elflink.c: Likewise.
493 * elflink.h: Likewise.
494 * elf-m10200.c: Likewise.
495 * elf-m10300.c: Likewise.
496 * elfxx-ia64.c: Likewise.
498 * aoutx.h: Fix formatting.
500 * bfd-in2.h: Likewise.
501 * bfd-in.h: Likewise.
502 * cpu-i386.c: Likewise.
503 * cpu-m68hc11.c: Likewise.
504 * dwarf2.c: Likewise.
505 * elf64-x86-64.c: Likewise.
506 * format.c: Likewise.
507 * freebsd.h: Likewise.
509 * hp300hpux.c: Likewise.
510 * hppabsd-core.c: Likewise.
511 * hpux-core.c: Likewise.
513 2001-01-22 Bo Thorsen <bo@suse.de>
515 * elf64-x86-64.c: Added PIC support for X86-64.
516 (elf64_x86_64_link_hash_newfunc): Function added.
517 (elf64_x86_64_link_hash_table_create): Likewise.
518 (elf64_x86_64_check_relocs): Likewise.
519 (elf64_x86_64_gc_mark_hook): Likewise.
520 (elf64_x86_64_gc_sweep_hook): Likewise.
521 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
522 (elf64_x86_64_size_dynamic_sections): Likewise.
523 (elf64_x86_64_discard_copies): Likewise.
524 (elf64_x86_64_finish_dynamic_symbol): Likewise.
525 (elf64_x86_64_finish_dynamic_sections): Likewise.
526 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
528 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
530 * Makefile.am (install-data-local): Make use of $(DESTDIR).
531 * Makefile.in: Regenerate.
533 2001-01-21 Kazu Hirata <kazu@hxi.com>
535 * coff-a29k.c: Fix formatting.
537 2001-01-19 H.J. Lu <hjl@gnu.org>
539 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
540 relocation section names.
541 (elf_i386_relocate_section): Report files with bad relocation
542 section names and return false.
544 2001-01-17 Bo Thorsen <bo@suse.de>
546 * targets.c: Alphabetize list of xvecs.
548 2001-01-14 Alan Modra <alan@linuxcare.com.au>
550 * config.bfd: Add linux target variant for elfxx-hppa.
551 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
552 bfd_elf64_hppa_linux_vec.
553 * configure: Regenerate.
554 * elf64-hppa.c: Include elf64-target.h again to support linux
556 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
557 * elf32-hppa.c: Include elf32-target.h again to support linux
559 (elf32_hppa_post_process_headers): New function.
560 (elf_backend_post_process_headers): Define.
561 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
562 bfd_elf32_hppa_linux_vec.
564 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
565 and data_segment_base fields.
566 (elf32_hppa_link_hash_table_create ): Init them.
567 (elf32_hppa_check_relocs): Update comments.
568 (hppa_record_segment_addr): New function.
569 (elf32_hppa_relocate_section): Call it.
570 (final_link_relocate): Handle R_PARISC_SEGREL32.
571 (elf32_hppa_final_link): New function.
572 (bfd_elf32_bfd_final_link): Define to call it.
573 (hppa_unwind_entry_compare): New function.
574 * cache.c (bfd_open_file): Create files in write+read mode.
576 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
577 SEGREL32 and numerous other relocs. Change duplicate
578 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
580 * opncls.c (bfd_fdopenr): Add parens like the comment says around
583 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
584 .plt entries for DT_INIT and DT_FINI.
585 (elf32_hppa_finish_dynamic_sections): Remove special handling of
588 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
589 offsets for stub .plt access if wide mode. Check offset in range.
591 2001-01-13 Nick Clifton <nickc@redhat.com>
593 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
596 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
599 2001-01-12 Alan Modra <alan@linuxcare.com.au>
601 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
602 * configure: Regenerate.
604 2001-01-11 Peter Targett <peter.targett@arccores.com>
606 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
607 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
608 * cpu-arc.c (arch_info_struct): Add entries for variants.
609 (bfd_arc_arch) Set default to bfd_mach_arc_5.
610 (arc_get_mach) Don't assume machine names prefixed arc- before
612 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
614 (arc_elf_final_write_processing) Likewise.
615 (ELF_MACHINE_CODE) Use EM_ARC.
617 2001-01-10 Nick Clifton <nickc@redhat.com>
619 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
621 2001-01-07 Philip Blundell <philb@gnu.org>
623 * README: Replace `bug-gnu-utils@gnu.org' with
624 `bug-binutils@gnu.org'.
626 2001-01-04 Kazu Hirata <kazu@hxi.com>
628 * som.c: Fix formatting.
630 2001-01-03 Kazu Hirata <kazu@hxi.com>
632 * ecoffswap.h: Fix formatting.
633 * elf-bfd.h: Likewise.
634 * elfarm-nabi.c: Likewise.
635 * elfarm-oabi.c: Likewise.
636 * elfcode.h: Likewise.
637 * elfcore.h: Likewise.
638 * elflink.c: Likewise.
639 * elflink.h: Likewise.
640 * elfxx-ia64.c: Likewise.
641 * elfxx-target.h: Likewise.
643 * linker.c: Likewise.
644 * lynx-core.c: Likewise.
646 2001-01-02 Kazu Hirata <kazu@hxi.com>
648 * pc532-mach.c: Fix formatting.
649 * pe-arm.c: Likewise.
650 * pe-i386.c: Likewise.
651 * pe-mips.c: Likewise.
652 * pe-ppc.c: Likewise.
654 * pei-mips.c: Likewise.
655 * pei-sh.c: Likewise.
656 * peicode.h: Likewise.
657 * ppcboot.c: Likewise.
658 * ptrace-core.c: Likewise.
660 2001-01-01 Kazu Hirata <kazu@hxi.com>
662 * reloc.c: Fix formatting.
663 * riscix.c: Likewise.
664 * rs6000-core.c: Likewise.
665 * xcoff-target.h: Likewise.
667 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
669 * elfcode.h (elf_object_p): Also restore the bfd mach field on
670 error, by calling bfd_default_set_arch_mach with incoming
673 2000-12-26 Kazu Hirata <kazu@hxi.com>
675 * vaxnetbsd.c: Fix formatting.
676 * versados.c: Likewise.
677 * vms-gsd.c: Likewise.
678 * vms-hdr.c: Likewise.
679 * vms-misc.c: Likewise.
681 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
683 * archive.c (coff_write_armap): Don't write more than symbol_count
684 `archive_member_file_ptr's.
686 2000-12-25 Kazu Hirata <kazu@hxi.com>
688 * vms-tir.c: Fix formatting.
690 2000-12-23 Kazu Hirata <kazu@hxi.com>
692 * vms.c: Fix formatting.
695 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
697 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
699 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
701 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
704 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
706 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
708 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
710 * libbfd.c (bfd_get_bits): Added
711 (bfd_put_bits): Likewise
712 * bfd-in.h: Declared the above.
713 * bfd-in2.h: Regenerated.
715 2000-12-20 Kazu Hirata <kazu@hxi.com>
717 * targets.c: Fix formatting.
718 * tekhex.c: Likewise.
719 * trad-core.c: Likewise.
721 2000-12-19 Kazu Hirata <kazu@hxi.com>
723 * sco5-core.c: Fix formatting.
724 * section.c: Likewise.
725 * sparclinux.c: Likewise.
726 * sparclynx.c: Likewise.
727 * sparcnetbsd.c: Likewise.
730 * stab-syms.c: Likewise.
733 * sysdep.h: Likewise.
735 2000-12-18 Nick Clifton <nickc@redhat.com>
737 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
739 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
740 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
742 2000-12-18 Nick Clifton <nickc@redhat.com>
744 * vms-misc.c (_bfd_vms_get_record): Add default case to
747 2000-12-15 Miloslav Trmac <mitr@volny.cz>
749 * elfcore.h (elf_core_file_p): Move to the start of the program
750 headers before attempting to read them.
752 2000-12-14 Kazu Hirata <kazu@hxi.com>
754 * peigen.c: Fix formatting.
758 2000-12-13 Kazu Hirata <kazu@hxi.com>
760 * peigen.c: Fix formatting.
762 2000-12-12 Jim Wilson <wilson@redhat.com>
764 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
766 2000-12-08 Mark Salter <msalter@redhat.com>
768 * binary.c (binary_set_section_contents): Ignore sections
771 2000-12-12 Kazu Hirata <kazu@hxi.com>
773 * m68klinux.c: Fix formatting.
774 * m68knetbsd.c: Likewise.
775 * mipsbsd.c: Likewise.
776 * netbsd-core.c: Likewise.
777 * netbsd.h: Likewise.
778 * newsos3.c: Likewise.
779 * nlm32-alpha.c: Likewise.
780 * nlm32-i386.c: Likewise.
781 * nlm32-ppc.c: Likewise.
782 * nlm32-sparc.c: Likewise.
783 * nlmcode.h: Likewise.
784 * nlmswap.h: Likewise.
785 * nlm-target.h: Likewise.
786 * ns32knetbsd.c: Likewise.
788 2000-12-10 Fred Fish <fnf@be.com>
790 * elflink.h (elf_link_output_extsym): Don't complain about undefined
791 symbols in shared objects if allow_shlib_undefined is true.
793 2000-12-12 Nick Clifton <nickc@redhat.com>
795 * cpu-sh.c: Fix formattng.
796 * elf.c: Fix formattng.
797 * elf32-mips.c: Fix formattng.
798 * elf32-sh.c: Fix formattng.
799 * elf64-alpha.c: Fix formattng.
801 2000-12-09 Nick Clifton <nickc@redhat.com>
803 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
804 dwarf2_find_line_info as last parameter to invocation of
805 _bfd_dwarf2_find_nearest_line.
806 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
807 dwarf2_find_line_info as last parameter to invocation of
808 _bfd_dwarf2_find_nearest_line.
810 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
812 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
813 (BFD_LIBS): ...to here.
814 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
815 (BFD_LIBS_CFILES): ...to here.
816 * Makefile.in: Regenerate.
817 * configure.in: Remove dwarf.lo from the elf shell variable.
818 * configure: Regenerate.
819 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
820 * libcoff.h: Regenerate.
821 * coffgen.c (coff_find_nearest_line): Call
822 _bfd_dwarf2_find_nearest_line.
823 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
825 (read_abbrevs): Likewise
826 (decode_line_info): Likewise.
827 (parse_comp_unit): Likewise.
828 (comp_unit_find_nearest_line): Likewise.
829 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
830 * libbfd.h: Regenerate.
831 * elf.c (_bfd_elf_find_nearest_line): Update call.
832 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
833 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
834 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
835 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
836 (styp_to_sec_flags): Handle DWARF2 sections.
837 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
838 to _bfd_find_nearest_line.
839 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
840 call to _bfd_find_nearest_line.
842 2000-12-08 Kazu Hirata <kazu@hxi.com>
844 * coffgen.c: Fix formatting.
845 * elf-m10300.c: Likewise.
846 * elf32-i386.c: Likewise.
847 * elf32-i960.c: Likewise.
848 * elf32-m68k.c: Likewise.
849 * elf32-mcore.c: Likewise.
850 * elf32-ppc.c: Likewise.
851 * elf32-sh.c: Likewise.
852 * elf32-sparc.c: Likewise.
853 * elf32-v850.c: Likewise.
854 * elf64-alpha.c: Likewise.
855 * elf64-hppa.c: Likewise.
856 * elf64-mips.c: Likewise.
857 * elf64-sparc.c: Likewise.
859 2000-12-07 Kazu Hirata <kazu@hxi.com>
861 * elf32-ppc.c: Fix formatting.
862 * elf64-x86-64.c: Likewise.
864 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
866 From Ralf Baechle <ralf@gnu.org>
868 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
869 BFDs containing no sections or empty .text, .data or .bss sections
870 to be merged, regardless of their flags.
872 2000-12-06 Kazu Hirata <kazu@hxi.com>
874 * elf32-m32r.c: Fix formatting.
875 * elf32-m68hc11.c: Likewise.
876 * elf32-m68hc12.c: Likewise.
877 * elf32-m68k.c: Likewise.
878 * elf32-mcore.c: Likewise.
879 * elf32-pj.c: Likewise.
880 * elf32-ppc.c: Likewise.
882 2000-12-05 Kazu Hirata <kazu@hxi.com>
884 * elf32-fr30.c: Fix formatting.
885 * elf32-hppa.c: Likewise.
886 * elf32-i370.c: Likewise.
887 * elf32-i386.c: Likewise.
888 * elf32-i860.c: Likewise.
889 * elf32-i960.c: Likewise.
891 2000-12-03 Kazu Hirata <kazu@hxi.com>
893 * elf32-arm.h: Fix formatting.
894 * elf32-avr.c: Likewise.
895 * elf32-cris.c: Likewise.
896 * elf32-d10v.c: Likewise.
897 * elf32-d30v.c: Likewise.
898 * elf-hppa.h: Likewise.
899 * elf-m10200.c: Likewise.
900 * elf-m10300.c: Likewise.
902 2000-12-01 Chris Demetriou <cgd@sibyte.com>
904 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
905 bfd_mach_mips32_4k. Update FIXME comment.
906 * archures.c (bfd_mach_mips32): New constant.
907 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
908 the latter, renumber it.
909 * bfd-in2.h (bfd_mach_mips32): New constant.
910 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
911 the latter, renumber it.
912 * cpu-mips.c (I_mips32): New constant.
913 (I_mips4K, I_mips32_4k): Rename the former to the latter.
914 (arch_info_struct): Add bfd_mach_mips32 entry, replace
915 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
916 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
917 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
918 with E_MIPS_MACH_MIPS32_4K.
919 (_bfd_mips_elf_final_write_processing): Replace
920 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
921 bfd_mach_mips32 case.
922 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
923 comparison with support for MIPS32.
924 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
927 * aoutx.h (NAME(aout,machine_type)): Add cases for
928 bfd_mach_mips5 and bfd_mach_mips64.
929 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
930 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
931 * cpu_mips.c (I_mips5, I_mips64): New definitions.
932 (arch_info_struct): Add entries for bfd_mach_mips5 and
934 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
935 _bfd_mips_elf_print_private_bfd_data): Add cases for
936 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
937 (_bfd_mips_elf_final_write_processing): Add cases for
938 bfd_mach_mips5 and bfd_mach_mips64.
940 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
941 bfd_mach_mips_sb1 case.
942 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
943 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
944 * bfd/cpu-mips.c (I_sb1): New constant.
945 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
946 * bfd/elf32-mips.c (elf_mips_mach): Add case for
948 (_bfd_mips_elf_final_write_processing): Add case for
951 2000-12-01 Joel Sherrill <joel@OARcorp.com>
953 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
954 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
955 (sparc*-*-rtems*): Switched from a.out to ELF.
957 2000-11-30 Jan Hubicka <jh@suse.cz>
959 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
960 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
961 (elf64-x86-64.lo): Add dependencies.
962 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
963 bfd_mach_x86_64_intel_syntax.
964 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
965 * config.bfd (x86_64): Add.
966 * configure.in: Add support for bfd_elf64_x86_64_vec.
967 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
968 (bfd_i386_arch, i8086_ar): Link in.
969 * elf64-x86-64.c: New file.
970 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
971 * targets.c (bfd_elf64_x86_64_vec): Add.
972 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
974 2000-11-30 Kazu Hirata <kazu@hxi.com>
976 * xcofflink.c: Fix formatting.
978 2000-11-28 Kazu Hirata <kazu@hxi.com>
980 * aoutx.h: Fix formatting.
981 * bfd-in.h: Likewise.
982 * bfd-in2.h: Likewise.
984 * cisco-core.c: Likewise.
985 * coff64-rs6000.c: Likewise.
986 * coffcode.h: Likewise.
987 * coffswap.h: Likewise.
988 * corefile.c: Likewise.
989 * elf32-mips.c: Likewise.
991 2000-11-27 Kazu Hirata <kazu@hxi.com>
993 * aout-adobe.c: Fix formatting.
994 * coff64-rs6000.c: Likewise.
995 * coffgen.c: Likewise.
996 * cofflink.c: Likewise.
998 2000-11-27 Philip Blundell <pb@futuretv.com>
1000 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1001 (obj_coff_strings_written): New accessor macro for above.
1002 * libcoff.h: Regenerate.
1003 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1005 * coffcode.h (coff_write_object_contents): No need to write out
1006 the string table if it's already been done.
1008 2000-11-22 Philip Blundell <pb@futuretv.com>
1010 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1011 weak undefined symbols.
1013 2000-11-24 Nick Clifton <nickc@redhat.com>
1015 * archures.c (bfd_mach_arm_5TE): Define.
1016 (bfd_mach_arm+XScale): Define.
1017 * bfd-in2.h: Regenerate.
1019 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1020 BFD_RELOC_ARM_PCREL_BLX.
1022 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1023 XScale machine numbers.
1025 * config.bfd (xscale-elf): Add target.
1026 (xscale-coff): Add target.
1028 * cpu-arm.c: Add xscale machine name.
1029 Add v5t, v5te and XScale machine numbers.
1031 2000-11-23 Kazu Hirata <kazu@hxi.com>
1033 * aix386-core.c: Fix formatting.
1035 2000-11-22 Jim Wilson <wilson@redhat.com>
1037 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1038 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1039 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1040 (ins_imms_scaled): Initialize sign_bit at function entry.
1041 (elf64_ia64_operands): Add missing initializers.
1042 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1043 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1044 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1045 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1046 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1048 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1049 and free_extsyms at function entry.
1050 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1051 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1052 (get_got): Delete unused local srel.
1053 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1054 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1056 2000-11-21 Kazu Hirata <kazu@hxi.com>
1058 * coff-a29k.c: Fix formatting.
1059 * coff-h8500.c: Likewise.
1060 * coff-i960.c: Likewise.
1061 * coff-ppc.c: Likewise.
1062 * coff-rs6000.c: Likewise.
1063 * coff-stgo32.c: Likewise.
1064 * coff-tic54x.c: Likewise.
1065 * coff-w65.c: Likewise.
1066 * cpu-h8500.c: Likewise.
1067 * cpu-hppa.c: Likewise.
1068 * cpu-ns32k.c: Likewise.
1069 * ecoff.c: Likewise.
1070 * ecofflink.c: Likewise.
1072 2000-11-21 Nick Clifton <nickc@redhat.com>
1074 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1075 remove possibility of infinite loop.
1077 2000-11-20 Kazu Hirata <kazu@hxi.com>
1079 * aix386-core.c: Fix formatting.
1080 * aout-adobe.c: Likewise.
1081 * aout-arm.c: Likewise.
1082 * aout-encap.c: Likewise.
1083 * aout-ns32k.c: Likewise.
1084 * aout-target.h: Likewise.
1085 * aout-tic30.c: Likewise.
1086 * aoutf1.h: Likewise.
1087 * aoutx.h: Likewise.
1088 * archive.c: Likewise.
1089 * bfd-in.h: Likewise.
1090 * bfd-in2.h: Likewise.
1094 2000-11-17 H.J. Lu <hjl@gnu.org>
1096 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1097 pltoff entries for DT_INIT and DT_FINI.
1098 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1099 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1102 2000-11-16 Richard Henderson <rth@redhat.com>
1104 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1105 (allocate_dynrel_entries): Likewise.
1106 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1107 (set_pltoff_entry): Likewise.
1108 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1109 (elfNN_ia64_reloc_type_lookup): Likewise.
1110 (elfNN_ia64_install_value): Likewise.
1111 (elfNN_ia64_relocate_section): Likewise.
1112 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1113 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1115 2000-11-16 Kazu Hirata <kazu@hxi.com>
1117 * cpu-a29k.c: Fix formatting.
1118 * cpu-alpha.c: Likewise.
1119 * cpu-arm.c: Likewise.
1120 * cpu-avr.c: Likewise.
1121 * cpu-d10v.c: Likewise.
1122 * cpu-h8500.c: Likewise.
1123 * cpu-hppa.c: Likewise.
1124 * cpu-i370.c: Likewise.
1125 * cpu-i386.c: Likewise.
1126 * cpu-i960.c: Likewise.
1127 * cpu-ia64-opc.c: Likewise.
1128 * cpu-ia64.c: Likewise.
1129 * cpu-m32r.c: Likewise.
1130 * cpu-m68hc11.c: Likewise.
1131 * cpu-m68hc12.c: Likewise.
1132 * cpu-m68k.c: Likewise.
1133 * cpu-m88k.c: Likewise.
1134 * cpu-mips.c: Likewise.
1135 * cpu-ns32k.c: Likewise.
1136 * cpu-pj.c: Likewise.
1137 * cpu-powerpc.c: Likewise.
1138 * cpu-sh.c: Likewise.
1139 * cpu-sparc.c: Likewise.
1140 * cpu-tic54x.c: Likewise.
1141 * cpu-v850.c: Likewise.
1142 * cpu-vax.c: Likewise.
1143 * cpu-w65.c: Likewise.
1144 * cpu-we32k.c: Likewise.
1145 * cpu-z8k.c: Likewise.
1146 * dwarf1.c: Likewise.
1147 * dwarf2.c: Likewise.
1149 2000-11-15 Kazu Hirata <kazu@hxi.com>
1151 * coff-arm.c: Fix formatting.
1152 * coff-ppc.c: Likewise.
1153 * coff-rs6000.c: Likewise.
1154 * coff-sh.c: Likewise.
1155 * coff-sparc.c: Likewise.
1156 * coff-tic30.c: Likewise.
1157 * coff-tic54x.c: Likewise.
1158 * coff-tic80.c: Likewise.
1159 * coff-w65.c: Likewise.
1160 * coff-we32k.c: Likewise.
1161 * coff-z8k.c: Likewise.
1163 2000-11-15 Richard Henderson <rth@redhat.com>
1165 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1166 section with the same ALLOC|LOAD flags as the source section.
1168 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1170 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1171 by STO_ALPHA constants.
1173 2000-11-14 Kazu Hirata <kazu@hxi.com>
1175 * coff-pmac.c: Fix formatting.
1176 * coff-ppc.c: Likewise.
1178 2000-11-13 H.J. Lu <hjl@gnu.org>
1180 * elflink.h (elf_link_add_object_symbols): Also add indirect
1181 symbols for common symbols with the default version.
1183 2000-11-09 Philip Blundell <pb@futuretv.com>
1185 * section.c (STD_SECTION): Set gc_mark flag.
1187 2000-11-11 Kazu Hirata <kazu@hxi.com>
1189 * coff-i960.c: Likewise.
1190 * coff-m68k.c: Likewise.
1191 * coff-m88k.c: Likewise.
1192 * coff-mcore.c: Likewise.
1193 * coff-mips.c: Likewise.
1195 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1197 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1199 2000-11-10 Kazu Hirata <kazu@hxi.com>
1201 * coff-h8300.c: Fix formatting.
1202 * coff-h8500.c: Likewise.
1203 * coff-i386.c: Likewise.
1204 * coff-i860.c: Likewise.
1205 * coff-i960.c: Likewise.
1206 * coff-ia64.c: Likewise.
1208 2000-11-09 Kazu Hirata <kazu@hxi.com>
1210 * archive.c: Fix formatting.
1211 * archures.c: Likewise.
1213 2000-11-07 Richard Henderson <rth@redhat.com>
1215 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1216 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1217 * section.c (bfd_set_section_contents): Call memcpy if
1218 section->contents set and location not equal to contents plus offset.
1220 2000-11-08 Kazu Hirata <kazu@hxi.com>
1222 * bfd-in.h: Fix formatting.
1223 * bfd-in2.h: Likewise.
1225 * binary.c: Likewise.
1227 * coff-a29k.c: Likewise.
1228 * coff-alpha.c: Likewise.
1229 * coff-apollo.c: Likewise.
1230 * coff-aux.c: Likewise.
1232 2000-11-07 Kazu Hirata <kazu@hxi.com>
1234 * aix386-core.c: Fix formatting.
1235 * aoutf1.h: Likewise.
1236 * aoutx.h: Likewise.
1237 * archures.c: Likewise.
1238 * armnetbsd.c: Likewise.
1240 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1242 * coff-h8300.c (special): Adjust reloc address.
1244 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1246 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1247 to differentiate elf32 and elf64 on ia64.
1248 * bfd-in2.h: Regenerate.
1249 * config.bfd: Add target for "ia64*-*-hpux*".
1250 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1251 * configure: Regenerate.
1252 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1253 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1255 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1256 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1257 * Makefile.in: Regnerate.
1258 * elf64-ia64.c: Deleted.
1259 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1261 2000-11-06 Kazu Hirata <kazu@hxi.com>
1263 * aout-adobe.c: Fix formatting.
1264 * aout-arm.c: Likewise.
1265 * aout-cris.c: Likewise.
1266 * aout-encap.c: Likewise.
1267 * aout-ns32k.c: Likewise.
1268 * aout-target.h: Likewise.
1269 * aout-tic30.c: Likewise.
1271 2000-11-05 Philip Blundell <philb@gnu.org>
1273 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1274 BFDs containing no sections to be merged, regardless of their flags.
1276 2000-11-04 Philip Blundell <philb@gnu.org>
1278 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1279 if a relocation for an undefined symbol also results in an
1282 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1284 * config.bfd: Add support for Sun Chorus.
1286 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1288 * configure.in: Recognize alpha-*-freebsd*.
1289 * configure: Regenerate.
1291 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1293 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1294 (Chunk): New global variable set by a parameter in objcopy.c.
1295 (S3Forced): New global variable set by a parameter in
1297 (srec_set_section_contents): If S3Forced is true, always generate
1299 (srec_write_section): Use 'Chunk' to limit maximum length of S
1302 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1304 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1305 * Makefile.in: Regenerate.
1306 * bfd-in2.h: Regenerate.
1307 * po/bfd.pot: Regenerate.
1309 2000-10-31 Philip Blundell <philb@gnu.org>
1311 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1312 EF_SOFT_FLOAT if it is defined.
1314 2000-10-27 Philip Blundell <philb@gnu.org>
1316 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1317 attempts to mix PIC code with non-PIC, just mark the output as
1318 being position dependent.
1319 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1320 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1321 all mismatches, not just the first one.
1323 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1325 * ieee.c (ieee_archive_p): Plug one of many possible
1326 memory leaks in error handling.
1328 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1330 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1331 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1333 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1334 sparc64_elf_object_p): Support v9b.
1335 * archures.c: Declare v8plusb and v9b machines.
1337 * cpu-sparc.c: Ditto.
1339 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1341 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1344 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1345 (SYMBOL_CALLS_LOCAL): New macro.
1346 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1347 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1348 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1349 (ppc_elf_relocate_section): Use flag variable to determine
1350 whether the relocation refers to a local symbol.
1351 Test whether a PLTREL24 reloc will produce a reloc by looking
1352 to see whether a PLT entry was made.
1354 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1356 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1357 entries that could serve as a definition for a weak symbol.
1359 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1361 From Ralf Baechle <ralf@gnu.org>
1363 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1364 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1365 against local symbols.
1366 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1368 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1370 * section.c (struct sec): Add kept_section.
1371 (struct bfd_comdat_info): Remove sec, we can use above.
1372 (STD_SECTION): Add initializer.
1373 (bfd_make_section_anyway): Init here too.
1375 * bfd-in2.h: Regenerate.
1377 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1379 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1380 fudge values for discarded link-once section symbols.
1382 * elf64-hppa.c: Include alloca-conf.h
1384 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1386 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1388 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1390 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1392 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1394 2000-10-10 Tom Rix <trix@redhat.com>
1396 * section.c (bfd_make_section_anyway): Release newsect ptr when
1397 newsect->symbol fails to alloc. Use bfd_release instead of free.
1399 2000-10-09 Richard Henderson <rth@cygnus.com
1401 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1402 (elf64_ia64_unwind_entry_compare): New.
1403 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1405 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1407 * elflink.h (size_dynamic_sections): Don't create various tags if
1408 .dynstr is excluded from the link. Don't set first dynsym entry
1409 if dynsymcount is zero.
1410 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1411 .dynsym excluded from the link. Don't try to write any dynamic
1412 sections excluded from the link.
1414 * elf.c (swap_out_syms): Handle global section symbols.
1416 2000-10-05 DJ Delorie <dj@redhat.com>
1418 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1419 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1420 (coff_write_relocs): write extended reloc count
1421 (coff_write_object_contents): account for extended relocs
1423 2000-10-05 Jim Wilson <wilson@cygnus.com>
1425 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1427 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1428 elf_backend_section_flags function.
1429 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1431 (elf64_ia64_section_flags): New function containing flag conversion
1433 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1434 * elfxx-target.h (elf_backend_section_flags): Define.
1435 (elfNN_bed): Initialize elf_backend_section_flags field.
1437 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1439 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1440 _bfd_elf32_gc_record_vtable. Correct a comment.
1442 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1444 From Ralf Baechle <ralf@gnu.org>
1446 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1447 produces binaries with got[1] = 0x80000001 to differenciate them
1448 for the dynamic linker from the broken binaries produced by old
1451 2000-09-30 Petr Sorfa <petrs@sco.com>
1453 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1454 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1455 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1456 * configure: Regenerate.
1458 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1460 Define two bfd_targets for absence and presence of leading
1461 underscore on symbols. Make sure to only link same kind.
1462 * elf32-cris.c (cris_elf_object_p,
1463 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1464 cris_elf_merge_private_bfd_data): New.
1465 (elf_backend_object_p, elf_backend_final_write_processing,
1466 bfd_elf32_bfd_print_private_bfd_data,
1467 bfd_elf32_bfd_merge_private_bfd_data): Define.
1468 <Target vector definition>: Include elf32-target.h twice with
1469 different macro settings:
1470 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1471 bfd_elf32_us_cris_vec.
1472 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1473 (elf_symbol_leading_char): First as 0, then '_'.
1474 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1475 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1476 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1477 * configure: Regenerate.
1478 * targets.c: Declare bfd_elf32_us_cris_vec.
1479 * po/bfd.pot: Regenerate.
1481 2000-09-29 Momchil Velikov <velco@fadata.bg>
1483 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1484 R_ARM_THM_PC22 relocations.
1486 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1488 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1490 2000-09-29 Momchil Velikov <velco@fadata.bg>
1492 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1493 is has the SEC_HAS_CONTENTS flag set.
1495 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1496 Hans-Peter Nilsson <hp@axis.com>
1498 * aout-cris.c (N_TXTADDR): Define.
1500 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1502 * som.c: Include alloca-conf.h.
1503 * Makefile.am: "make dep-am"
1504 * Makefile.in: Regenerate.
1506 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1508 * elf32-hppa.c (plt_stub): New.
1509 (PLT_STUB_ENTRY): Define.
1510 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1511 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1512 (elf32_hppa_link_hash_table_create): Init to suit.
1513 (elf32_hppa_check_relocs): Set has_12bit_branch and
1514 has_17bit_branch as appropriate.
1515 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1516 non-local functions.
1517 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1518 Add space for plt_stub as needed.
1519 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1520 functions at plt_stub.
1521 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1522 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1524 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1525 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1526 of fixed size, and if negative, disable handling of input sections
1527 before stub section. Set up default stub group size depending
1528 on detected branch relocs.
1529 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1530 ensure different offsets from sym_value aren't rounded to
1531 different 2k blocks. Use lrsel and rrsel for other stubs too for
1532 consistency rather than necessity.
1533 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1534 (final_link_relocate): Likewise.
1535 (elf32_hppa_relocate_section): Likewise.
1537 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1538 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1539 (elf_hppa_final_link_relocate): Handle them.
1540 (elf_hppa_relocate_insn): Likewise.
1541 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1543 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1545 * elfcode.h (elf_object_p): Preserve and clear abfd section
1546 information. Restore at error.
1548 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1550 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1551 is empty, make sure that its rva also 0. NT loader dislikes
1554 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1556 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1559 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1561 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1562 currently unused RELATIVE_DYNAMIC_RELOCS code.
1563 (hppa_discard_copies): Likewise.
1564 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1565 comments. Don't check non-code output sections for stub grouping.
1567 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1569 * section.c (bfd_get_unique_section_name): Return NULL if
1572 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1574 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1575 instruction sequence to actually work.
1576 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1579 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1581 * elf32-sh.c (sh_elf_relocate_section): Use
1582 _bfd_final_link_relocate to apply the relocation against a section
1583 symbol, when doing relocatable links.
1585 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1587 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1589 (stub_hash_newfunc): Here too.
1590 (hppa_add_stub): And here.
1591 (elf32_hppa_link_hash_table): Remove stub_section_created,
1592 reloc_section_created, first_init_sec and first_fini_sec. Add
1594 (elf32_hppa_link_hash_table_create): Init to suit.
1595 (hppa_get_stub_entry): Add support for grouping stub sections.
1596 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1597 section code. Index stub vars by section->id.
1598 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1599 exit paths. Zap allocation of above removed vars. Refine
1602 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1603 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1604 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1605 rather than pointer to bfd_link_info.
1606 (hppa_add_stub): Likewise.
1607 (final_link_relocate): Likewise.
1609 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1611 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1614 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1616 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1617 ld/emulparams/shelf.sh.
1619 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1621 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1622 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1623 * bfd-in2.h: Regenerate.
1625 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1627 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1628 LITUSE relocations incorrectly if -relax is specified on the ld
1629 command line and the displacement field of the load or store
1630 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1632 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1634 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1635 first_fini_sec here.
1636 (elf32_hppa_size_stubs): Instead correctly find the first .init
1637 and .fini section here.
1639 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1641 * elf32-hppa.c (clobber_millicode_symbols): New function.
1642 (elf32_hppa_size_dynamic_sections): Call it.
1644 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1646 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1647 packed. Add plabel, plt_abs packed booleans.
1648 (hppa_link_hash_newfunc): Init new fields.
1649 (PLABEL_PLT_ENTRY_SIZE): Define.
1650 (hppa_stub_name): Use size_t len vars.
1651 (hppa_add_stub): Likewise.
1652 (elf32_hppa_build_stubs): Likewise.
1653 (hppa_build_one_stub): Kill some compiler warnings.
1654 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1655 if dynamic linking. Munge the local plt offsets into
1656 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1657 size_t len vars. Add assert for plabel addend.
1658 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1659 (elf32_hppa_hide_symbol): New function.
1660 (elf_backend_hide_symbol): Define.
1661 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1662 with h->plabel set. Don't make plt entries to have dynamic syms
1663 when they have been forced local. If plt entry is used by a
1664 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1665 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1666 Set up .plt offsets for local syms.
1667 (elf32_hppa_relocate_section): Initialise plt entries for local
1668 syms. Leave weak undefined plabels zero. Make global plabel
1669 relocs against function symbol, and leave the addend zero.
1670 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1671 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1672 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1673 relocs instead of SEGREL32 for dynamic got relocs.
1674 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1675 (elf_backend_got_header_size): Adjust.
1676 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1678 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1679 (hppa_type_of_stub): Use it instead of #if 0
1680 (hppa_discard_copies): Use it here too.
1681 (elf32_hppa_size_dynamic_sections): And here.
1683 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1684 (elf32_hppa_link_hash_table_create): And here.
1685 (hppa_build_one_stub): And here. Instead keep track of stub
1686 offset using _raw_size.
1687 (elf32_hppa_size_stubs): Likewise.
1688 (elf32_hppa_build_stubs): Likewise.
1689 (hppa_size_one_stub): Likewise. Resize reloc section too.
1691 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1692 first_fini_sec handling. Don't search for reloc section or set
1693 hplink->reloc_section_created here.
1694 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1695 set reloc_section_created here.
1696 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1697 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1699 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1701 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1702 with `hplink->root.'.
1703 (elf32_hppa_check_relocs): Likewise.
1704 (elf32_hppa_gc_sweep_hook): Likewise.
1705 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1706 (hppa_handle_PIC_calls): Likewise.
1707 (elf32_hppa_size_dynamic_sections): Likewise.
1708 (elf32_hppa_set_gp): Likewise.
1709 (elf32_hppa_relocate_section): Likewise.
1710 (elf32_hppa_finish_dynamic_symbol): Likewise.
1711 (elf32_hppa_finish_dynamic_sections): Likewise.
1713 From David Huggins-Daines <dhd@linuxcare.com>
1714 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1715 defined weak symbols in shared links.
1716 (final_link_relocate): Calls to defined weak symbols in shared
1717 objects must go via import stubs, as the target might not be known
1720 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1722 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1723 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1724 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1725 the original entries with EMPTY_HOWTOs, and added new ones to fill
1727 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1728 (sh_elf_relocate_section): Likewise.
1730 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1732 * cpu-mips.c (arch_info_struct): Add mips:4K
1733 * bfd-in2.h (bfd_mach_mips4K): New define.
1734 * archures.c: Add bfd_mach_mips4K to comment.
1735 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1736 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1738 2000-09-13 Marco Franzen <marcof@thyron.com>
1740 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1741 use size_t as a counter.
1742 (som_write_space_strings): Similarly.
1744 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1746 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1748 (elf32_i860_relocate_section): Invoke new function from here.
1750 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1752 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1755 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1757 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1758 target section name instead of dumping core when the target symbol is
1761 2000-09-09 Kazu Hirata <kazu@hxi.com>
1763 * riscix.c: Remove DEFUN.
1765 2000-09-08 Nick Clifton <nickc@redhat.com>
1767 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1768 initialise flags in output bfd if the input bfd is the default
1769 architecture with the default flags.
1771 2000-09-08 Kazu Hirata <kazu@hxi.com>
1773 * archive.c: Fix formatting.
1774 * coff-arm.c: Likewise.
1775 * doc/chew.c: Likewise.
1777 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1779 * section.c (bfd_get_unique_section_name): Put a dot before the
1782 2000-09-07 Kazu Hirata <kazu@hxi.com>
1784 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1785 * elf.c: Fix formatting.
1787 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1789 * config.bfd (sh-*-linux*): Added.
1790 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1791 * targets.c: Declare them.
1792 * elf32-sh-lin.c: New file.
1793 * Makefile.am: Compile it.
1794 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1795 * configure, Makefile.in: Rebuilt.
1797 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1799 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1800 pseduo-section when determining where the TOC ends.
1802 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1803 output x_tvndx as it is only two bytes wide.
1805 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1806 reloc is 26 or 32 bits wide.
1808 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1809 for relocs that don't change anything. Also look at the full
1812 2000-09-06 Philip Blundell <philb@gnu.org>
1814 * config.bfd (arm*-*-uclinux*): New target.
1816 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1818 * configure: Rebuilt with new libtool.m4.
1820 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1822 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1823 word for variable name.
1824 * bfd-in2.h: Regenerate.
1826 2000-09-05 Nick Clifton <nickc@redhat.com>
1828 * config.in: Regenerate.
1829 * libbfd.h: Regenerate.
1830 * po/bfd.pot: Regenerate.
1831 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1834 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1836 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1838 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1840 Shared library and PIC support.
1841 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1842 (GOT_ENTRY_SIZE): New.
1843 (ELF_DYNAMIC_INTERPRETER): New.
1844 (STUB_SUFFIX): Define.
1845 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1846 (RELATIVE_DYNAMIC_RELOCS): Define.
1847 (enum elf32_hppa_stub_type): New.
1848 (struct elf32_hppa_stub_hash_entry): Rename offset to
1849 stub_offset. Add a number of new fields.
1850 (struct elf32_hppa_link_hash_entry): New.
1851 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1853 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1854 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1855 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1857 (hppa_link_hash_newfunc): New function.
1858 (elf32_hppa_link_hash_table_create): Use above function. Init new
1860 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1861 instead of addend, and remove sym_name from args. Don't use
1862 symbol name for local syms, instead use sym index.
1863 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1864 stub type rather than size. Pass in hash and handle import stub
1865 case. Also pass in reloc instead of offset so we can calculate
1866 PCREL22F and PCREL12F branches properly.
1867 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1868 import and export stubs too.
1869 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1870 import and export stub sizing.
1871 (elf32_hppa_check_relocs): New function.
1872 (elf32_hppa_adjust_dynamic_symbol): New function.
1873 (hppa_discard_copies): New function.
1874 (elf32_hppa_size_dynamic_sections): New function.
1875 (elf_backend_size_dynamic_sections): Define.
1876 (elf32_hppa_finish_dynamic_symbol): New function.
1877 (elf_backend_finish_dynamic_symbol): Define.
1878 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1879 some local vars into the link hash table too. For shared links,
1880 trundle over function syms, generating export stubs. Handle
1881 PCREL22F branches. Break out stub creation code from here..
1882 (hppa_add_stub): .. to here. New function.
1883 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1884 call the bfd linker. Use elf_gp to record global pointer.
1885 Calculate a value from sections if $global$ is missing.
1886 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1887 (elf32_hppa_gc_mark_hook): New function.
1888 (elf_backend_gc_mark_hook): Define.
1889 (elf32_hppa_gc_sweep_hook): New function.
1890 (elf_backend_gc_sweep_hook): Define.
1891 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1892 Add rel to args, and remove howto, input_bfd, offset, addend,
1893 sym_name as we can recalculate these locally. Handle calls to
1894 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1895 handling of undefined weak syms. Check that stubs are in range.
1896 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1897 message on hitting a DPREL21L reloc that needs fixing. Subtract
1898 off PC for PCREL14F. Break out code that does a stub lookup from
1900 (hppa_get_stub_entry): ..to here. New function.
1901 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1902 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1904 (elf32_hppa_finish_dynamic_sections): New function.
1905 (elf_backend_finish_dynamic_sections): Define.
1906 (elf_backend_final_write_processing) Define.
1907 (hppa_handle_PIC_calls): New function.
1908 (elf32_hppa_build_stubs): Call it. Pass link_info to
1909 hppa_build_one_stub.
1910 (elf32_hppa_create_dynamic_sections): New function
1911 to create .plt and .got then set .plt flags correctly.
1912 (elf_backend_create_dynamic_sections): Define.
1913 (elf32_hppa_object_p): New function.
1914 (elf_backend_object_p): Define.
1915 (elf32_hppa_elf_get_symbol_type): New function.
1916 (elf_backend_get_symbol_type): Define.
1917 (elf_backend_can_gc_sections): Define.
1918 (elf_backend_want_got_plt): Define.
1919 (elf_backend_plt_alignment): Set to 2.
1920 (elf_backend_plt_readonly): Define.
1921 (elf_backend_want_plt_sym): Define.
1922 (elf_backend_got_header_size): Reserve one entry.
1924 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1925 (elf32_hppa_size_stubs): Pass in multi_subspace.
1926 (elf32_hppa_set_gp): Declare.
1928 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1929 (bfd_get_unique_section_name): New function.
1930 * bfd_in2.h: Regenerate.
1932 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1933 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1936 From David Huggins-Daines <dhd@linuxcare.com>
1937 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1938 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1939 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1940 been updated in finish_dynamic_symbol before modifying function
1943 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1944 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1945 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1946 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1947 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1948 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1949 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1950 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1952 From David Huggins-Daines <dhd@linuxcare.com>
1953 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1954 style of local labels as well.
1956 2000-09-03 Philip Blundell <philb@gnu.org>
1958 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1959 references to undefined symbols in debugging sections.
1961 2000-09-02 H.J. Lu <hjl@gnu.org>
1963 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1964 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1965 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1968 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1970 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1971 (elf32_i860_is_local_label_name): New function and prototype.
1973 2000-09-02 Nick Clifton <nickc@redhat.com>
1975 * configure.in: Increase version number to 2.10.91.
1976 * configure: Regenerate.
1977 * aclocal.m4: Regenerate.
1978 * config.in: Regenerate.
1979 * po/bfd.pot: Regenerate.
1981 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1983 * elf.c (_bfd_elf_make_section_from_shdr): Add
1984 .gnu.linkobce.wi. to the list of debug section names.
1986 2000-09-02 Nick Clifton <nickc@redhat.com>
1988 * dwarf2.c (find_debug_info): New function: Locate a section
1989 containing dwarf2 debug information.
1990 (bfd_dwarf2_find_nearest_line): Find all sections containing
1991 debug information and include them in the stash.
1993 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1995 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1996 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1997 (sh_reloc_map): Add new relocs.
1998 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1999 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2000 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2001 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2003 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2004 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2005 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2006 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2007 New array constants.
2008 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2010 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2011 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2012 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2013 elf_sh_plt_reloc_offset): Define.
2014 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2015 elf_sh_link_hash_table): New structs.
2016 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2017 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2019 (elf_backend_create_dynamic_sections,
2020 bfd_elf32_bfd_link_hash_table_create,
2021 elf_backend_adjust_dynamic_symbol,
2022 elf_backend_size_dynamic_sections,
2023 elf_backend_finish_dynamic_symbol,
2024 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2025 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2026 elf_backend_got_header_size, elf_backend_plt_header_size):
2028 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2029 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2031 * bfd-in2.h, libbfd.h: Rebuilt.
2033 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2035 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2038 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2040 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2041 not initialized, set them to indicate the SH1 instruction set.
2043 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2045 * acinclude.m4: Include libtool and gettext macros from the
2047 * aclocal.m4, configure: Rebuilt.
2049 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2051 * elf.c: Eliminate references to __sparcv9 macro; replace with
2052 autoconf variables HAVE_PSINFO32_T etc.
2053 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2054 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2056 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2057 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2058 * aclocal.m4: Ditto.
2059 * configure: Regenerate.
2061 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2063 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2064 for any shared link, not just shared -Bsymbolic.
2065 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2066 any shared link, and pass link info to it.
2067 (elf_i386_size_dynamic_sections): Update comment.
2068 (elf_i386_discard_copies): Modify to discard relocs for symbols
2069 that have been forced local.
2070 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2071 that have been forced local.
2073 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2075 * elflink.h (elf_link_add_object_symbols): Allow common
2076 symbols to have an alignment of 1 if explicitly requested, and
2077 not overridden by other definitions.
2079 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2081 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2082 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2084 2000-08-22 H.J. Lu <hjl@gnu.org>
2086 * elf-bfd.h (elf_link_hash_table): Add runpath.
2088 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2089 * bfd-in2.h: Rebuilt.
2091 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2092 "runpath" field to NULL.
2093 (bfd_elf_get_runpath_list): New function.
2095 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2098 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2100 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2101 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2102 explicitly. Improve validation of r_type.
2104 2000-08-21 H.J. Lu <hjl@gnu.org>
2106 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2107 dynamic allocated content space. Add a comment to remind us that
2108 one day this ought to be fixed.
2109 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2110 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2111 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2113 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2115 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2116 field with the newly relocated value instead of adding it to the
2117 existing immediate field.
2118 (elf32_i860_relocate_splitn): Likewise.
2119 (elf32_i860_relocate_highadj): Likewise.
2121 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2123 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2124 was previously just a stub).
2126 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2128 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2130 (_bfd_elf_create_dynamic_sections): Likewise.
2132 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2134 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2135 for undefined symbols to be the beginning of the section.
2137 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2138 four extra entries at the beginning of the .rela.plt section.
2139 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2140 section to account for the four reserved entries in the .plt section.
2142 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2144 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2145 to the list of NOPs we recognize after a branch-and-link.
2146 Use the ori NOP when one is needed.
2148 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2151 2000-08-14 Jim Wilson <wilson@cygnus.com>
2153 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2154 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2155 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2158 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2160 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2162 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2164 * elf32-i860.c (elf32_i860_relocate_section): New function.
2165 (i860_final_link_relocate): New function.
2166 (elf32_i860_relocate_splitn): New function.
2167 (elf32_i860_relocate_pc16): New function.
2168 (elf32_i860_relocate_highadj): New function.
2169 (elf32_i860_howto): Minor adjustments to some relocations.
2170 (elf_info_to_howto_rel): Define.
2171 (elf_backend_relocate_section): Define.
2173 2000-08-10 Nick Clifton <nickc@cygnus.com>
2175 * elf32-arm.h: Fix formatting.
2177 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2179 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2181 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2183 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2185 2000-08-07 Kazu Hirata <kazu@hxi.com>
2187 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2188 * elf64-ia64.c: Fix a typo.
2190 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2192 * elf32-i860 (elf32_i860_howto_table): New structure.
2193 (lookup_howto): New function.
2194 (elf32_i860_reloc_type_lookup): New function.
2195 (elf32_i860_info_to_howto_rela): New function.
2196 (elf_code_to_howto_index): New structure.
2197 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2198 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2199 elf32_i860_reloc_type_lookup.
2201 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2203 * som.c (struct fixup_format): Constify `format'.
2204 (som_hppa_howto_table): Use SOM_HOWTO macro.
2205 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2206 (som_bfd_reloc_type_lookup): Likewise.
2207 (compare_subspaces): Remove unused `count1', `count2'.
2208 (som_begin_writing): Remove unused `total_reloc_size'.
2209 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2210 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2211 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2212 (som_find_nearest_line): Decorate unused parameter(s).
2213 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2214 (som_bfd_link_split_section): Likewise.
2216 2000-08-03 Nick Clifton <nickc@cygnus.com>
2218 * section.c: Restore backed out code.
2219 * elf.c: Restore backed out code.
2220 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2221 binaries from working.
2222 * bfd-in2.h: Regenerate.
2224 2000-08-03 H.J. Lu <hjl@gnu.org>
2226 * section.c: Back out the change made by Nick Clifton
2227 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2229 * bfd-in2.h: Likewise.
2232 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2234 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2236 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2238 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2239 * bfd-in2.h, libbfd.h: Regenerate.
2241 2000-07-31 Nick Clifton <nickc@cygnus.com>
2243 * section.c (struct sec): Add new boolean field 'segment_mark'.
2244 (STD_SECTION): Initialise new field to zero.
2246 * bfd-in2.h: Regenerate.
2248 * elf.c (copy_private_bfd_data): Reorganise section to segment
2249 mapping to cope with moved sections requiring new segments,
2250 and overlapping segments.
2251 (SEGMENT_END): New macro: Return the end address of a segment.
2252 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2253 contains a section by comparing their VMA addresses.
2254 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2255 contains a section by comparing their LMA addresses.
2256 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2257 section should be included in a segment.
2258 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2259 follows another in memory.
2260 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2263 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2265 * cpu-i860.c: Added comments.
2267 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2268 bfd_elf32_i860_little_vec.
2269 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2270 (ELF_MAXPAGESIZE): Changed to 4096.
2272 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2274 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2276 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2277 config for little endian elf32 i860.
2278 (targ_defvec): Define for the new config above
2279 as "bfd_elf32_i860_little_vec".
2280 (targ_selvecs): Define for the new config above
2281 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2283 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2286 * configure: Regenerated.
2288 2000-07-27 H.J. Lu <hjl@gnu.org>
2290 * elflink.h (elf_merge_symbol): Take one more argument,
2291 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2292 entry. Don't overide the existing weak definition if dt_needed
2294 (elf_link_add_object_symbols): Pass dt_needed to
2295 elf_merge_symbol ().
2297 2000-07-27 Nick Clifton <nickc@cygnus.com>
2299 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2302 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2304 * configure.host (*-*-aix*): AIX has 'long long' always.
2306 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2307 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2308 (xcoff_write_archive_contents_big): Don't update the offset
2309 of the symbol table, xcoff_write_armap will do it.
2311 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2313 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2314 of dynobj for SGI_COMPAT checks.
2316 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2318 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2319 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2320 * bfd-in2.h: Regenerate.
2322 2000-07-21 Nick Clifton <nickc@cygnus.com>
2324 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2325 range symbol indices in relocs and issue an error message.
2327 2000-07-20 H.J. Lu <hjl@gnu.org>
2329 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2330 info->new_dtags when setting DT_FLAGS_1. It will only be set
2331 by the new linker options. It shouldn't break anything.
2333 2000-07-20 H.J. Lu <hjl@gnu.org>
2335 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2336 only if info->new_dtags is true.
2338 2000-07-20 H.J. Lu <hjl@gnu.org>
2340 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2341 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2343 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2345 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2346 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2347 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2348 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2349 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2350 * Makefile.in: Rebuild.
2351 * aclocal.m4: Rebuild.
2352 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2353 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2354 (bfd_cris_arch): Declare.
2355 (bfd_archures_list): Add bfd_cris_arch.
2356 * bfd-in2.h: Rebuild.
2357 * config.bfd: (cris-*-*): New target.
2358 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2359 * configure: Rebuild.
2360 * elf.c (prep_headers): Add bfd_arch_cris.
2361 * libbfd.h: Rebuild.
2362 * libaout.h (enum machine_type): Add M_CRIS.
2363 * reloc.c: Add CRIS relocations.
2364 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2365 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2366 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2367 * po/POTFILES.in, po/bfd.pot: Regenerate.
2369 2000-07-19 H.J. Lu <hjl@gnu.org>
2371 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2372 DF_TEXTREL if DT_TEXTREL is set.
2373 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2374 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2375 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2376 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2377 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2378 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2379 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2380 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2381 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2382 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2384 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2385 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2387 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2389 2000-07-19 H.J. Lu <hjl@gnu.org>
2391 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2392 * bfd-in2.h: Rebuild.
2394 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2395 (elf_dt_soname): New.
2397 * elf.c (bfd_elf_set_dt_needed_soname): New.
2399 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2400 entry if the shared object loaded by DT_NEEDED is used to
2401 resolve the reference in a regular object.
2403 2000-07-19 H.J. Lu <hjl@gnu.org>
2405 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2406 DT_DEPAUDIT and DT_AUDIT as strings.
2408 2000-07-19 Nick Clifton <nickc@cygnus.com>
2410 * format.c: Fix formatting.
2412 2000-07-19 H.J. Lu <hjl@gnu.org>
2414 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2416 2000-07-19 H.J. Lu <hjl@gnu.org>
2418 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2419 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2420 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2421 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2422 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2423 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2424 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2426 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2428 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2429 renamed functions from here...
2430 (assign_section_numbers): Use renamed functions.
2431 (prep_headers): Use renamed functions.
2433 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2434 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2435 * bfd-in2.h: Regenerate.
2437 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2439 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2440 parenthesis in if statement.
2442 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2444 Enable the support for Traditional MIPS.
2445 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2446 return ict_none appropriately for traditional mips targets.
2447 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2448 (STUB_MOVE): Conditionalize for traditonal mips.
2449 (STUB_LI16): Likewise.
2450 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2451 room for RTPROC header.
2452 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2453 the permission for the PT_DYNAMIC as read, write and execute.
2454 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2455 for traditonal mips.
2456 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2457 _DYNAMIC_LINKING for traditonal mips.
2458 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2459 in case of traditonal mips.
2460 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2461 entry is required. For a function if PLT is not required then set the
2462 corresponding hash table entry to 0.
2463 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2465 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2466 shared object set the value to 0.
2467 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2468 _DYNAMIC_LINKING for traditonal mips.
2469 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2470 for traditonal mips.
2472 2000-07-15 H.J. Lu <hjl@gnu.org>
2474 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2476 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2478 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2479 out a structure that is BFD_IN_MEMORY.
2481 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2483 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2484 bfd pointer. Print section id instead of bfd pointer for local
2485 syms. Prefix addend with `+' for global syms as well as local.
2486 Correct calculation of name component lengths.
2487 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2489 From David Huggins-Daines <dhd@linuxcare.com>
2490 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2491 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2492 (elf64_hppa_modify_segment_map): Likewise.
2494 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2496 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2497 addresses to be "naturally" sign extended. Return -1 if unknown.
2498 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2499 * bfd-in2.h: Regenerate.
2501 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2503 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2504 and ECOF_SIGNED_64 to list ways to extract an offset.
2505 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2506 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2508 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2509 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2511 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2513 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2514 bfd_get_start_address.
2515 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2516 (elf_swap_ehdr_out): Ditto.
2518 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2520 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2521 compatibility with older binutils.
2523 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2525 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2526 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2528 From Ryan Bradetich <rbradetich@uswest.net>
2529 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2530 (parse_line_table): Ditto.
2531 (_bfd_dwarf1_find_nearest_line): Ditto.
2532 * syms.c (cmpindexentry): Remove extra `*' from params.
2534 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2536 * elf32-mips.c (sort_dynamic_relocs): New Function.
2537 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2538 via qsort to sort the dynamic relocations in increasing r_symndx
2541 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2543 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2544 ATTRIBUTE_UNUSED to unused args.
2545 (get_opd): Likewise.
2546 (get_plt): Likewise.
2547 (get_dlt): Likewise.
2548 (get_stub): Likewise.
2549 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2550 (elf64_hppa_link_output_symbol_hook): Likewise.
2551 (elf64_hppa_check_relocs): Delete unused var.
2552 (elf64_hppa_size_dynamic_sections): Likewise.
2553 (elf64_hppa_finalize_opd): Likewise.
2554 (elf64_hppa_finalize_dynreloc): Likewise.
2555 (elf64_hppa_modify_segment_map): Likewise.
2556 (elf64_hppa_finish_dynamic_sections): Likewise.
2558 * elf-hppa.h (elf_hppa_final_write_processing): Add
2559 ATTRIBUTE_UNUSED to unused args.
2560 (elf_hppa_final_link_relocate): Likewise.
2561 (elf_hppa_record_segment_addrs): Add paretheses.
2562 (elf_hppa_relocate_section): Constify dyn_name.
2564 From David Huggins-Daines <dhd@linuxcare.com>
2565 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2566 rearrange case statement so that it gets preferred to 32-bit ones.
2568 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2569 asection->id instead of address of asection structure.
2570 (elf32_hppa_size_stubs): Likewise.
2572 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2573 for .init* and .fini*.
2575 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2576 and addends used in stub names to 32 bits.
2577 (elf32_hppa_size_stubs): Likewise.
2579 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2580 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2581 not bfd_put_64. Fix minor comment typo and formatting.
2583 Changes to create multiple linker stubs, positioned immediately
2584 before the section where they are required.
2585 * elf32-hppa.c: Don't include hppa_stubs.h.
2586 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2587 (elf32_hppa_stub_hash_table): Delete.
2588 (elf32_hppa_link_hash_entry): Delete.
2589 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2590 stub_hash_table, and store the struct here rather than a pointer.
2591 Delete output_symbol_count. Add offset array. Change
2592 global_value to a bfd_vma.
2593 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2594 (elf32_hppa_stub_hash_traverse): Delete.
2595 (elf32_hppa_name_of_stub): Delete.
2596 (elf32_hppa_link_hash_lookup): Delete.
2597 (elf32_hppa_link_hash_traverse): Delete.
2598 (elf32_hppa_stub_hash_table_init): Delete.
2599 (elf32_hppa_size_of_stub): Pass input section and offset rather
2600 than location and calculate location here. Don't pass name as all
2601 stubs are now the same size.
2602 (elf32_hppa_stub_hash_newfunc): Init new fields.
2603 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2605 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2606 comparing against ints. Rewrite stub handling code.
2607 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2608 Case enums to int before comparing against ints. Remove
2609 bfd_reloc_dangerous case.
2610 (elf32_hppa_build_one_stub): Rewrite.
2611 (elf32_hppa_size_one_stub): New function.
2612 (elf32_hppa_build_stubs): Rewrite.
2613 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2614 Rewrite stub-handling specific code.
2616 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2618 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2620 * hppa_stubs.h: Delete.
2621 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2622 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2623 * Makefile.in: Regenerate.
2625 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2628 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2630 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2631 and section name for bfd_reloc_notsupported error message.
2632 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2633 bfd_reloc_notsupported.
2634 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2636 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2637 undefined weak symbols for all relocs.
2638 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2639 offsets are relative to one past the delay slot.
2640 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2641 branch destination. Put addend into stub name too.
2642 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2643 adjust by 8 when deciding whether a linker stub is needed. Put
2644 addend into stub name as for above.
2646 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2647 various args and vars.
2648 (elf32_hppa_bfd_final_link_relocate): Here too.
2649 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2650 inner block var to avoid shadowing.
2652 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2654 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2655 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2656 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2658 * libhppa.h: Change practically all unsigned ints to plain ints.
2659 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2662 From Ryan Bradetich <rbradetich@uswest.net>
2663 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2664 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2666 From David Huggins-Daines <dhd@linuxcare.com>
2667 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2668 to the new OP_* ones.
2670 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2671 error exit. Bail out earlier on plabel relocs that we aren't
2672 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2673 string, and then don't free our copy.
2674 (elf32_hppa_build_one_stub): Make insn unsigned int.
2676 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2677 available with BL, not BE and BLE.
2679 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2680 code for elf arg relocs.
2681 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2682 argument with elf_link_hash_entry h. Handle undefined weak
2683 symbols. Move $global$ lookup from here...
2684 (elf32_hppa_relocate_section): ...to here. Return correct error
2685 message for non-handled relocs.
2686 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2687 wrong test was -0x3ffff to +0x40000.
2689 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2690 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2691 Handle them as such.
2692 (elf_hppa_relocate_insn): Fix a typo.
2694 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2695 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2696 assemble_17, assemble_21): Delete.
2697 Supply defines for all 64 possible opcodes.
2698 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2699 formats. Handle COMICLR.
2700 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2703 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2704 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2705 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2707 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2708 the local syms - did this code get deleted accidentally? Ignore
2709 undefined and undefweak syms.
2711 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2712 block. Use it instead of elf64_hppa_hash_table (info).
2713 (elf_hppa_final_link_relocate): Use hppa_info instead of
2714 elf64_hppa_hash_table (info).
2716 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2717 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2718 (hppa_rebuild_insn): Mask immediate bits here instead.
2719 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2721 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2723 * section.c (struct sec): Add id field. Tidy comment formatting.
2724 (bfd_make_section_anyway): Set id.
2725 (STD_SECTION): Init id too.
2726 Change CONST to const throughout.
2727 * archures.c (bfd_arch_info): Tidy comment.
2728 (bfd_arch_list): Change a CONST to const.
2729 * libbfd-in.h: Tidy comments and replace CONST with const.
2730 * elf-bfd.h: Likewise.
2731 * libbfd.h: Regenerate.
2732 * bfd-in2.h: Regenerate.
2733 * libcoff.h: Regenerate.
2735 2000-07-07 DJ Delorie <dj@redhat.com>
2737 * archive.c (_bfd_write_archive_contents): Add an informative
2740 2000-07-06 Kazu Hirata <kazu@hxi.com>
2742 * srec.c: Fix formatting.
2744 2000-06-05 DJ Delorie <dj@redhat.com>
2748 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2750 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2751 value of PC-relative offsets.
2753 2000-07-03 Jim Wilson <wilson@cygnus.com>
2755 * elf64-alpha.c (alpha_elf_size_info): New.
2756 (elf_backend_size_info): Define to alpha_elf_size_info.
2757 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2759 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2761 * elf32-mips.c: Include elf32-target.h again for the traditional
2764 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2766 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2767 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2768 (avr_info_to_howto_rela): Likewise.
2769 (elf32_avr_gc_mark_hook): Likewise.
2770 (elf32_avr_gc_sweep_hook): Likewise.
2771 (elf32_avr_relocate_section): Likewise.
2773 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2775 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2776 an external symbol for a non-shared, non-relocatable link.
2778 2000-07-03 Nick Clifton <nickc@redhat.com>
2780 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2781 is an external symbol.
2782 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2785 2000-07-03 Kazu Hirata <kazu@hxi.com>
2787 * reloc16.c: Fix formatting.
2789 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2791 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2792 to add a new target for traditional mips i.e
2793 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2794 * configure.in: Likewise.
2795 * configure: Rebuild.
2796 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2798 (bfd_elf32_tradlittlemips_vec): Likewise.
2799 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2800 to see that elfNN_bed does not get redefined even if the target file
2801 is included twice for a chip. See elf32-mips.c.
2803 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2805 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2806 (CLEANFILES): Add DEPA.
2807 * Makefile.in: Regenerate.
2809 2000-06-30 DJ Delorie <dj@cygnus.com>
2811 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2812 can't assume the PE header is at 0x80.
2814 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2816 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2818 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2820 * go32stub.h: Update stub.
2822 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2824 * archures.c (bfd_mach_avr5): Define.
2825 * bfd-in2.h (bfd_mach_avr5): Define.
2826 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2827 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2828 (compatible): Update comment. Add missing test.
2829 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2830 for avr2 and avr4. Simplify 8K wrap code.
2831 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2832 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2834 2000-06-26 Kazu Hirata <kazu@hxi.com>
2836 * coff-h8300.c: Fix formatting.
2837 * cpu-h8300.c: Likewise.
2839 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2841 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2842 for local symbols whose names are unknown.
2844 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2846 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2848 * Makefile.in: Regenerate.
2849 * doc/Makefile.in: Regenerate.
2851 2000-06-20 H.J. Lu <hjl@gnu.org>
2853 * Makefile.am: Rebuild dependency.
2854 * Makefile.in: Rebuild.
2856 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2858 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2859 (elf_backend_copy_indirect_symbol): Map to the new function.
2861 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2863 * archive.c (normalize): Correct pointer comparison when checking
2865 (bfd_bsd_truncate_arname): Likewise.
2866 (bfd_gnu_truncate_arname): Likewise.
2868 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2870 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2871 sections elf_{text,data}_{section,symbol}.
2872 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2873 (_bfd_mips_elf_hide_symbol): New function.
2874 (elf_backend_hide_symbol): Map to the new function.
2875 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2876 definitions of mips_elf_{text,data}_{section,symbol}.
2877 (mips_elf_local_relocation_p): Try to find the direct symbol
2878 based on new check_forced argument.
2879 (mips_elf_calculate_relocation): Use new version of
2880 mips_elf_local_relocation_p.
2881 (mips_elf_relocate_section): Likewise.
2882 (_bfd_mips_elf_relocate_section): Likewise.
2883 (mips_elf_sort_hash_table): Only assert that have enough GOT
2885 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2886 entry if the relocation based on the new external argument.
2887 (mips_elf_create_dynamic_relocation): Assert that we have a
2888 section contents allocated where we can swap out the dynamic
2890 (mips_elf_calculate_relocation): Find the real hash-table entry
2891 correctly by using h->root.root.type. Only create a dynamic
2892 relocation entry if the symbol is defined in a shared library.
2893 Create an external GOT entry for the GOT16 relocation if the
2894 symbol was forced local.
2895 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2896 dynamic index if the symbol was forced local.
2898 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2900 * elf32-mips.c: Fix typos in comments.
2902 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2904 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2907 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2909 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2910 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2911 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2912 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2913 (bfd_elf32_m68hc11_vec): Likewise.
2914 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2915 Supports 68hc11 & 68hc12 at the same time.
2916 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2918 (bfd_elf32_m68hc11_vec): Likewise.
2919 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2920 * archures.c (bfd_m68hc12_arch): Define and register in global list
2921 (bfd_m68hc11_arch): Likewise.
2922 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2923 BFD_RELOC_M68HC11_3B): Define.
2924 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2925 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2927 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2929 * elf_bfd.h (struct elf_backend_data): Add info argument to
2930 elf_backend_hide_symbol.
2931 (_bfd_elf_link_hash_hide_symbol): Likewise.
2932 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2933 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2934 * elflink.h (elf_link_add_object_symbols): Likewise.
2935 (elf_link_assign_sym_version): Likewise.
2937 2000-06-18 H.J. Lu <hjl@gnu.org>
2939 * coff-i386.c (coff_i386_reloc): Don't return in case of
2940 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2941 Compensate PE relocations when linking with non-PE object
2942 files to generate a non-PE executable.
2944 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2946 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2947 GOT entries if we're doing a static link or -Bsymbolic link.
2949 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2951 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2952 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2954 (elf_link_output_relocs): Likewise.
2955 (elf_reloc_link_order): Likewise.
2957 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2959 * archures.c (enum bfd_architecture): #define constants for
2960 PowerPc and RS6000 machine numbers.
2961 * bfd-in2.h: Regenerate.
2962 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2963 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2964 and RS6000 machine numbers using #defined constants from
2966 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2967 machine numbers using #defined constants from archures.c. Add
2968 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2969 64-bit words in 620 entry.
2970 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2972 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2974 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2976 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2977 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2978 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2980 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2982 * bfd-in.h (bfd_family_coff): Define.
2983 * bfd-in2.h: Regenerate.
2984 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2985 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2986 instead of bfd_target_coff_flavour.
2987 * cofflink.c (_bfd_coff_final_link): Likewise.
2988 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2989 exclude XCOFF files.
2990 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2992 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2993 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2994 * xcofflink.c (XCOFF_XVECP): Delete.
2995 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2996 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2997 bfd_xcoff_record_link_assignment,
2998 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2999 check for bfd_target_xcoff_flavour.
3001 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3003 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3005 (read_hdr): New function.
3006 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3007 of trying to extract individual registers. Set abfd->arch_info
3008 to match the architecture that created the core file.
3009 (rs6000coff_get_section_contents): Delete.
3010 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3012 2000-06-14 H.J. Lu <hjl@gnu.org>
3014 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3017 2000-06-13 H.J. Lu <hjl@gnu.org>
3019 * configure: Regenerate.
3021 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3023 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3026 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3028 * configure.in (VERSION): Update to show this is the CVS mainline.
3030 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3032 * elf32-d10v.c: Include elf/d10v.h
3033 (enum reloc_type): Delete.
3034 * elf32-d30v.c: Include elf/d30v.h
3035 (enum reloc_type): Delete.
3037 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3038 * Makefile.in: Regenerate.
3040 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3041 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3042 move HOWTOs into elf_howto_table.
3043 (R_386_standard, R_386_ext_offset): Define.
3044 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3045 (elf_i386_reloc_type_lookup): Modify calculation of index into
3046 elf_howto_table since we've removed the padding.
3047 (elf_i386_info_to_howto_rel): Likewise.
3048 (elf_i386_relocate_section): Likewise.
3050 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3052 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3054 2000-06-05 H.J. Lu <hjl@gnu.org>
3056 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3057 an error when seeing an undefined symbol with hidden/internal
3058 attribute. It is handled in *_relocate_section ().
3060 2000-06-05 H.J. Lu <hjl@gnu.org>
3062 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3063 indirect symbol for the ELF_LINK_NON_ELF bit.
3064 (elf_link_output_extsym): Don't output the indirect symbol even
3065 if the ELF_LINK_NON_ELF bit is set.
3067 2000-06-01 J.T. Conklin <jtc@redback.com>
3069 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3070 (i[3456]86-*-netbsdaout*): New target.
3071 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3072 (i[3456]86-*-openbsd*): Likewise.
3074 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3076 * trad-core.c: From hpux-core.c, include <dirent.h> or
3077 <sys/ndir.h> when possible.
3079 2000-05-31 Nick Clifton <nickc@cygnus.com>
3081 * opintl.h (_(String)): Explain why dgettext is used instead
3084 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3086 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3087 definitions. We must not assume they are sorted in the file
3088 according to their index numbers.
3090 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3092 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3093 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3094 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3096 2000-05-30 Nick Clifton <nickc@cygnus.com>
3098 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3099 80960CA, 80960MC as valid machine names.
3101 2000-05-30 H.J. Lu <hjl@gnu.org>
3103 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3104 visibility bits if the symbol is undefined. Correctly handle
3105 weak undefined symbols with hidden and internal attributes.
3107 * elflink.h (elf_link_add_object_symbols): Always turn the
3108 symbol into local if it has the hidden or internal attribute.
3110 2000-05-29 Philip Blundell <philb@gnu.org>
3112 * ppcboot.c: Add packed attribute if compiling with GCC.
3114 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3116 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3118 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3120 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3121 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3122 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3125 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3127 * Makefile.am: Update dependencies with "make dep-am"
3128 * Makefile.in: Regenerate.
3130 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3131 bindtextdomain): Replace defines with those from intl/libgettext.h
3132 to quieten gcc warnings.
3134 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3136 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3138 * archive.c (normalize, bfd_bsd_truncate_arname,
3139 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3140 file names with backslashes.
3142 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3145 * sysdep.h: Include filenames.h.
3147 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3149 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3151 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3153 * elf64-sparc.c (sparc64_elf_relax_section): New.
3154 (sparc64_elf_relocate_section): Optimize tail call into branch always
3156 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3157 (elf32_sparc_relax_section): New.
3159 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3161 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3162 Remove unusued variables.
3163 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3164 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3165 previous fix, so that shared libs really don't influence targets
3166 extension mask and memory model.
3168 2000-05-23 H.J. Lu <hjl@gnu.org>
3170 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3171 h->root.other not h->other.
3172 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3174 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3176 2000-05-23 H.J. Lu <hjl@gnu.org>
3178 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3179 undefined symbol with the non-default visibility attributes.
3180 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3181 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3182 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3183 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3184 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3185 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3186 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3187 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3188 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3189 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3190 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3192 2000-05-22 Richard Henderson <rth@cygnus.com>
3194 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3195 PCREL22, PCREL64I. Zero size of special relocs.
3196 (elf64_ia64_reloc_type_lookup): Likewise.
3197 (USE_BRL, oor_brl, oor_ip): New.
3198 (elf64_ia64_relax_section): New.
3199 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3200 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3201 (elf64_ia64_relocate_section): Likewise.
3202 (bfd_elf64_bfd_relax_section): New.
3203 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3204 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3205 * bfd-in2.h, libbfd.h: Regenerate.
3207 2000-05-22 Nick Clifton <nickc@cygnus.com>
3209 * configure.in : Add peigen.lo to MIPS PE targets.
3210 * configure: Regenerate.
3212 2000-05-22 Momchil Velikov <velco@fadata.bg>
3214 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3215 only if it is known for both input and output bfds. Separate
3216 error message strings as in some languages, it may be necessary
3217 to change more than one place in the string to change between
3220 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3221 endianess checks, call _bfd_generic_verify_endian_match() instead.
3223 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3225 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3227 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3228 endianess before checking bfd flavours.
3230 2000-05-22 H.J. Lu <hjl@gnu.org>
3232 * elflink.h (elf_link_output_extsym): Clear the visibility
3233 field for symbols not defined locally.
3235 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3237 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3238 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3239 (hppa_rebuild_insn): Mask immediate bits here instead.
3240 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3242 2000-05-18 Momchil Velikov <velco@fadata.bg>
3244 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3245 relocs for an executable, ensure that they are virtual addresses.
3247 2000-05-18 Jeffrey A Law (law@cygnus.com)
3249 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3251 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3252 Rick Gorton <gorton@scrugs.lkg.dec.com>
3254 * elflink.h: Add emitrelocations support: when enabled, relocation
3255 information and relocation sections are put into final output
3256 executables. If the emitrelocations flag is set, do the following:
3257 (elf_bfd_final_link): Emit relocation sections.
3258 (elf_link_input_bfd): Compute relocation section contents.
3259 (elf_gc_sections): Don't clean relocation sections.
3261 2000-05-16 Catherine Moore <clm@cygnus.com>
3263 * som.c (som_decode_symclass): Recognize weak symbols.
3265 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3267 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3268 read idata section only from dataoff.
3269 (pe_print_edata): Correctly check for valid eat_member.
3271 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3273 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3275 2000-05-14 Philip Blundell <philb@gnu.org>
3277 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3279 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3281 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3283 * peigen.c (pe_print_idata): Look for .idata section and print
3284 info even if data directory has zero entries. Read idata section
3285 starting from dataoff, and adjust all data offsets to suit. Cast
3286 all bfd_vma vars to unsigned long before passing to fprintf.
3287 * peigen.c (pe_print_edata): Similarly, look for .edata section
3288 and print info even if data directory has zero entries. Cast
3289 all bfd_vma vars to unsigned long before passing to fprintf.
3291 From Szabolcs Szakacsits <szaka@F-Secure.com>
3292 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3293 directory size which may be bogus.
3294 * peigen.c (pe_print_edata): Similarly.
3296 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3298 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3300 (copy_private_bfd_data): Allow for space possibly taken up by elf
3301 headers when calculating segment physical address from lma.
3303 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3305 * versados.c (versados_scan): Init stringlen and pass_2_done.
3307 * trad-core.c (trad_unix_core_file_p): Return
3308 bfd_error_wrong_format rather than bfd_error_file_truncated.
3310 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3311 add_data_entry. DataDirectory virtual address is relative.
3312 (pe_print_idata): Account for relative DataDirectory virtual
3313 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3314 (pe_print_edata): Similarly.
3316 From Szabolcs Szakacsits <szaka@F-Secure.com>
3317 * peigen.c (dir_names): Add Delay Import Directory.
3318 (pe_print_idata): Always search for bfd section containing
3319 idata address rather than looking up section name. Print this
3320 section name rather than .idata.
3321 (pe_print_edata): Similarly. Also print some fields as %08lx.
3322 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3325 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3327 * xcoff.h: Rename to xcoff-target.h
3328 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3329 * coff-rs6000.c: Ditto.
3330 * coff64-rs6000.c: Ditto.
3331 * coff-pmac.c: Ditto.
3332 * Makefile.in: Regenerate.
3334 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3336 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3337 Change U802TOC64MAGIC to U803XTOCMAGIC.
3339 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3341 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3342 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3343 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3345 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3347 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3349 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3351 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3352 hidden and internal symbols.
3353 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3355 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3356 assign a PLT or GOT entry to symbols with hidden and
3357 internal visibility.
3359 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3361 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3363 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3365 2000-05-02 H.J. Lu <hjl@gnu.org>
3367 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3370 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3372 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3373 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3375 * Makefile.in: Regenerate.
3377 2000-05-01 Jim Wilson <wilson@cygnus.com>
3379 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3380 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3381 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3382 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3383 * Makefile.in: Rebuild.
3385 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3387 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3388 doesn't work very well.
3390 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3391 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3392 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3393 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3394 (elf_hppa_info_to_howto): Likewise.
3395 (elf_hppa_info_to_howto_rel): Likewise.
3396 (elf_hppa_reloc_type_lookup): Likewise.
3397 (elf_hppa_is_local_label_name): Likewise.
3398 (elf_hppa_fake_sections): Likewise.
3399 (elf_hppa_final_write_processing): Likewise.
3400 (elf_hppa_howto_table): Fully initialise all entries.
3401 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3402 (elf_hppa_info_to_howto): Likewise.
3403 (elf_hppa_info_to_howto_rel): Likewise.
3404 (elf_hppa_reloc_type_lookup): Likewise.
3405 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3406 elf_hppa_unmark_useless_dynamic_symbols,
3407 elf_hppa_remark_useless_dynamic_symbols,
3408 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3409 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3410 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3411 elf32-hppa.c mess is cleaned up.
3412 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3413 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3414 r_field then call hppa_field_adjust inline func with variable
3415 r_field arg, instead call hppa_field_adjust with fixed arg.
3416 In case R_PARISC_PCREL22F, don't set r_field.
3417 (elf_hppa_relocate_insn): Change args and return type to unsigned
3418 int. Call re_assemble_* funcs to do the work.
3420 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3423 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3425 (sign_extend): Mask first before sign extending.
3426 (low_sign_extend): Rewrite without condition expression.
3427 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3428 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3429 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3430 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3431 result as function return value rather than through pointer arg.
3432 Accept unsigned int args, and return unsigned int.
3433 (re_assemble_3): New. Combines function of dis_assemble_3 with
3434 re-assembly of opcode and immediate.
3435 (re_assemble_12): Likewise.
3436 (re_assemble_16): Likewise.
3437 (re_assemble_17): Likewise.
3438 (re_assemble_21): Likewise.
3439 (re_assemble_22): Likewise.
3440 (hppa_field_adjust): Rewrite and document, paying attention to
3441 size of types and signed/unsigned issues.
3442 (get_opcode): Shift before masking.
3443 (FDLW): Rename to FLDW.
3444 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3445 (hppa_rebuild_insn): Change args and return value to unsigned
3446 int. Make use of re_assemble_*. Correct case 11.
3448 * dep-in.sed: Handle ../opcodes/.
3449 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3450 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3451 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3452 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3453 elfarm-nabi.lo dependencies outside of auto-dependency area.
3454 Regenerate dependencies.
3455 * Makefile.in: Regenerate.
3457 * configure.in (TRAD_HEADER): Test non-null before
3459 * configure: Regenerate.
3461 * reloc.c: Fix mis-spelling in comment.
3463 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3465 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3466 * vms.c (vms_openr_next_archived_file): Return NULL.
3468 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3470 * coffcode.h Copy changes mistakenly done to libcoff.h in
3473 2000-04-29 Andreas Jaeger <aj@suse.de>
3475 * libbfd-in.h: Correctly check GCC version.
3476 * bfd-in.h: Likewise.
3477 * libhppa.h: Likewise.
3478 * libbfd.h: Regenerate.
3479 * bfd-in2.h: Regenerate.
3481 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3483 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3484 coffdu-rs6000.{lo,c}.
3485 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3487 * Makefile.in: Regenerate.
3488 * xcoff.h: New file.
3489 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3490 * coff-rs6000.c: Move all declarations and defines that are
3491 common to the xcoff backends into xcoff.h
3492 * coff64-rs6000.c: Ditto,
3494 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3496 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3497 _bfd_coff_force_symnames in strings and
3498 _bfd_coff_debug_string_prefix_length to their default values.
3499 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3501 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3503 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3504 _bfd_coff_force_symnames in strings and
3505 _bfd_coff_debug_string_prefix_length to their default values.
3507 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3509 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3510 Check local_got_refcounts before dereferencing.
3512 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3513 before deciding we don't need R_PPC_PLT32 relocation.
3514 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3517 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3519 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3521 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3522 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3523 (elf_i386_relocate_section): Allow for .plt to go missing.
3524 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3525 can use a relative reloc for got as elf_i386_relocate_section.
3526 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3528 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3530 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3532 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3534 * Makefile.am (coff64-rs6000.lo): New rule.
3535 * Makefile.in: Regenerate.
3536 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3537 xcoff_is_local_label_name, xcoff_rtype2howto,
3538 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3539 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3540 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3541 (NO_COFF_SYMBOLS): Define.
3542 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3543 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3545 (MINUS_ONE): New macro.
3546 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3548 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3549 coff_SWAP_aux_out): Map to the new functions.
3550 * coff64-rs6000.c: New file.
3551 * libcoff.h (bfd_coff_backend_data): Add new fields
3552 _bfd_coff_force_symnames_in_strings and
3553 _bfd_coff_debug_string_prefix_length.
3554 (bfd_coff_force_symnames_in_strings,
3555 bfd_coff_debug_string_prefix_length): New macros for above fields.
3556 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3557 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3558 of using coff_swap_sym_in directly.
3559 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3560 (coff_set_flags) Set magic for XCOFF64.
3561 (coff_compute_section_file_positions): Add symbol name length to
3562 string section length if bfd_coff_debug_string_prefix_length is
3564 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3565 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3566 using coff_swap_lineno_in directly.
3567 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3568 and _bfd_coff_debug_string_prefix_length fields.
3569 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3570 symbol names into strings table when
3571 bfd_coff_force_symnames_in_strings is true.
3572 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3573 SET_RELOC_VADDR): New macros.
3574 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3575 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3577 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3578 changes within RS6000COFF_C specific code.
3579 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3580 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3581 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3582 Extend existing hack on target name.
3583 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3585 * coff-tic54x.c (ticof): Keep up to date with new fields
3586 in bfd_coff_backend_data.
3587 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3588 targ_selvecs to include rs6000coff64_vec for rs6000.
3589 * configure.in: Add rs6000coff64_vec case.
3590 * cpu-powerpc.c: New bfd_arch_info_type.
3592 2000-04-24 Jeffrey A Law (law@cygnus.com)
3594 * config.bfd: Only disable elf32-hppa vectors, not all of the
3595 BSD and OSF configuration support. Provide (disabled) clauses
3597 * configure.in: Add clause for PA64 support.
3598 * configure: Rebuilt.
3600 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3601 (bfd_elf64_hppa_vec): Declare.
3603 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3604 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3605 (elf64-hppa.lo): Add dependencies.
3606 * Makefile.in: Rebuilt.
3608 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3610 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3612 * libhppa.h (dis_assemble_16): New function.
3613 (pa_arch): Added pa20w element.
3615 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3617 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3618 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3619 bfd_elf64_slurp_reloc_table.
3621 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3622 definitions to get external names.
3623 (elf_write_relocs): Renamed from write_relocs and make global.
3624 (elf_slurp_reloc_table): Make global.
3625 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3627 * archive.c (hpux_uid_gid_encode): New function.
3628 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3629 defined and the ID is greater than 99999.
3630 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3631 special uid/gid fields into 32 bit values.
3633 2000-04-21 Matthew Green <mrg@cygnus.com>
3635 * config.bfd: Add NetBSD/sparc64 support.
3637 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3638 David Mosberger <davidm@hpl.hp.com>
3639 Timothy Wall <twall@cygnus.com>
3640 Jim Wilson <wilson@cygnus.com>
3642 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3643 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3644 (BFD64_BACKENDS): Add elf64-ia64.lo.
3645 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3646 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3647 * Makefile.in: Rebuild.
3648 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3649 (bfd_ia64_arch): Declare.
3650 (bfd_archures_list): Add bfd_ia64_arch.
3651 * bfd-in2.h: Rebuild.
3652 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3653 * configure: Rebuild.
3654 * configure.host: (ia64-*-linux*): New host.
3655 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3656 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3657 * elf.c (prep_headers): Add bfd_arch_ia64.
3658 * libbfd.h: Rebuild.
3659 * reloc.c: Add IA-64 relocations.
3660 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3662 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3663 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3665 2000-04-21 Richard Henderson <rth@cygnus.com>
3667 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3668 contents when performing a partial link.
3669 (bfd_elf_d30v_reloc_21): Likewise.
3671 2000-04-20 H.J. Lu <hjl@gnu.org>
3673 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3674 patch to symbols defined by a shared object.
3675 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3677 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3680 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3681 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3683 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3685 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3686 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3687 (coff-ia64.lo): Add dependency.
3688 * Makefile.in: Regenerate.
3689 * coff-ia64.c: New file.
3690 * efi-app-ia32.c: Ditto.
3691 * efi-app-ia64.c: Ditto.
3692 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3693 (coff_set_flags): Ditto.
3694 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3695 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3696 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3697 * configure: Regenerate.
3698 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3699 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3700 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3701 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3702 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3703 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3704 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3705 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3706 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3707 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3708 (GET_PDATA_ENTRY): Ditto.
3709 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3710 data_start. Use above macros to read fields that are 64 bit wide for
3711 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3712 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3713 FileAlignment and SectionAlignment to minimum alignment if they
3715 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3716 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3717 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3718 Use above macros to write fields that are 64 bit wide for
3720 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3721 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3722 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3723 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3724 begin address, end address, and unwind info address only. Use
3725 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3727 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3728 HIGH3ADJ relocation names.
3729 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3730 * targets.c: Declare bfd_efi_app_ia32_vec and
3731 bfd_efi_app_ia64_vec.
3732 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3733 bfd_efi_app_ia64_vec.
3735 2000-04-17 Timothy Wall <twall@cygnus.com>
3737 * bfd-in2.h: Add prototypes for tic54x load page access.
3738 * bfd-in.h: Regenerate.
3739 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3740 in customized _set_arch_mach function.
3741 * coffcode.h (coff_set_alignment_hook): Set section load page if
3742 the appropriate macro is defined.
3743 (write_object_contents): Read section load page.
3745 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3747 * elf32-hppa.h: Update copyright date.
3749 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3750 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3752 * elf32-d30v.c (MAX32): Don't use LL suffix.
3753 (MIN32): Define in terms of MAX32.
3754 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3756 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3759 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3761 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3763 * dep-in.sed: Match space before file name, not after.
3764 * Makefile.am: Regenerate dependencies.
3765 * Makefile.in: Regenerate.
3767 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3768 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3769 extend without an if statement.
3771 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3773 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3775 * elf32-mips.c (gprel16_with_gp): Likewise.
3776 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3777 here using -0x40000, not (int)0xfffc0000.
3778 (elf32_hppa_size_of_stub): Likewise.
3780 2000-04-11 Timothy Wall <twall@cygnus.com>
3782 * coff-tic54x.c: Now builds with all targets.
3783 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3784 * Makefile.in: Regenerate.
3785 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3786 unitialized variable.
3788 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3790 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3791 --enable-build-warnings option.
3792 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3793 * Makefile.in, configure: Re-generate.
3795 2000-04-07 Nick Clifton <nickc@cygnus.com>
3797 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3798 BFD_RELOC_THUMB_PCREL_BLX.
3800 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3801 R_ARM_XPC25 and R_ARM_THM_PC22.
3803 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3804 R_ARM_XPC25 and R_ARM_THM_XPC22.
3805 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3806 R_ARM_[XPC25|THM_XPC22].
3808 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3809 elf/arm-oabi.h to elf/arm.h
3811 * Makefile.am: Fix dependency for elfarm-oabi.c
3812 * Makefile.in: Regenerate.
3814 * bfd-in2.h: Regenerate.
3815 * libbfd.h: Regenerate.
3817 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3819 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3820 and restore it on failure. Release newly allocated tdata on
3823 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3825 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3826 (decode_line_info): Set it. Report error if unit->line_offset is
3827 equal to or larger than it.
3829 2000-04-07 Timothy Wall <twall@cygnus.com>
3831 * targets.c: Added vecs for tic54x.
3832 * reloc.c: Added relocs for tic54x.
3833 * libbfd.h: Regenerated.
3834 * configure: Add TI COFF vecs for tic54x.
3835 * configure.in: Ditto.
3836 * config.bfd (targ_cpu): Recognize new tic54x target.
3837 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3838 * bfd-in2.h: Add tic54x target and relocations.
3839 * Makefile.am, Makefile.in: Add tic54x target.
3840 * archures.c (bfd_archures_list): Add tic54x target.
3841 * coff-tic54x.c: New.
3842 * cpu-tic54x.c: New.
3844 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3846 * elfcore.h (elf_core_file_p): call backend_object_p which
3847 thereby gets an opportunity to update the arch/machine type.
3849 2000-04-06 Timothy Wall <twall@cygnus.com>
3851 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3852 class. Handle SEC_CLINK and SEC_BLOCK flags.
3853 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3854 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3856 2000-04-06 Nick Clifton <nickc@cygnus.com>
3858 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3859 EF_INTERWORK if this is an unknown EABI.
3860 (elf32_arm_merge_private_bfd_data): Check EABI version
3861 numbers. Only check EF_xxx flags if the EABI version number
3863 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3864 if the EABI version number is unknown.
3865 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3866 if the EABI version number is unknown.
3868 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3870 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3871 BFD_RELOC_SH_LOOP_END.
3872 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3873 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3874 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3875 (sh_elf_reloc_loop): New function.
3876 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3878 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3879 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3880 * bfd-in2.h, libbfd.h: Regenerate.
3882 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3884 * po/bfd.pot: Regenerate.
3886 * Makefile.am: Remove extraneous mkdep comment.
3887 (MKDEP): Use gcc -MM rather than mkdep.
3888 (DEP): Quote when passing vars to sub-make. Add warning
3890 (DEP1): Rewrite for "gcc -MM".
3891 (CLEANFILES): Add DEP2.
3892 Update dependencies.
3893 * Makefile.in: Regenerate.
3895 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3897 * configure.in: Added corefile support for AIX 4.3. In particular,
3898 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3899 compiling rs6000-core.c.
3900 * configure: Regenerated.
3902 2000-04-03 H.J. Lu <hjl@gnu.org>
3904 * cache.c (bfd_open_file): Unlink the output file only if
3905 it has non-zero size.
3907 2000-04-01 Ken Block USG <block@zk3.dec.com>
3909 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3910 relative relocations for non-loaded sections in shared objects.
3911 (elf64_alpha_check_relocs): Similarly.
3913 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3915 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3916 BFD_RELOC_16 to switch for extended relocs.
3917 (MY_swap_ext_reloc_in): New.
3918 (MY_swap_ext_reloc_out): New.
3919 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3920 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3921 (NAME(aout,squirt_out_relocs)): Similarly use
3922 MY_swap_ext_reloc_out.
3923 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3925 2000-04-03 Kazu Hirata <kazu@hxi.com>
3927 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3928 the R_PCRWORD_B case.
3930 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3932 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3936 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3938 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3939 HOWTO references to bfd_elf_generic_reloc, that have
3940 partial_inplace == true, now use the new function. The function
3941 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3942 extends its fixes to the R_M32R_{16,24,32} relocs.
3943 The new logic in m32r_elf_lo16_reloc() has been removed, and
3944 it instead calls the new routine to obtain that functionality.
3946 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3948 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3949 elf32_avr_check_relocs, avr_final_link_relocate,
3950 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3951 elf32_avr_object_p): Add prototypes.
3952 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3953 (bfd_elf_avr_final_write_processing): Make static.
3955 2000-03-27 Denis Chertykov <denisc@overta.ru>
3957 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3958 * archures.c (bfd_architecture): Add AVR architecture.
3959 (bfd_archures_list): Add reference to AVR architecture info.
3960 * elf.c (prep_headers): Handle bfd_arch_avr.
3961 * reloc.c: Add various AVR relocation enums.
3962 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3964 * Makefile.am: Add support for AVR elf.
3965 * configure.in: Likewise.
3966 * config.bfd: Likewise.
3967 * Makefile.in: Regenerate.
3968 * configure: This too.
3969 * bfd-in2.h: And this.
3970 * libbfd.h: And this.
3972 2000-03-24 H.J. Lu <hjl@gnu.org>
3974 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3975 (elf64_alpha_find_reloc_at_ofs): Likewise.
3977 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3979 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3980 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3981 allowable range used to be -2**(n-1) to 2**n-1.
3982 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3983 "boolean overflow" with "bfd_reloc_status_type flag".
3985 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3987 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3989 2000-03-14 Kazu Hirata <kazu@hxi.com>
3991 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3992 of shrinks properly, including the last reloc.
3994 2000-03-13 Kazu Hirata <kazu@hxi.com>
3996 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3999 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4001 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4002 a format mismatch rather than an "error" from bfd_read such as
4003 bfd_error_file_truncated.
4005 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4007 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4008 sign-extension and big-endian compensation for
4009 R_MIPS_64 even in ld -r.
4011 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4013 * elf32-mips.c (mips_elf_next_relocation): Rename from
4014 mips_elf_next_lo16_relocation, and generalize to look
4015 for any relocation type.
4016 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4017 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4018 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4019 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4020 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4021 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4022 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4023 (mips_rtype_to_howto): Likewise.
4024 (mips_elf_calculate_relocation): Handle new relocs.
4025 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4026 are paired. The addend for R_MIPS_GNU_REL16_S2
4027 is shifted right two bits.
4029 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4031 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4032 comment, and ensure it doesn't happen again.
4033 (bfd_install_relocation): Same here.
4034 (_bfd_relocate_contents): Don't bother assigning unused signmask
4035 shift result. Fix typos in comments.
4036 Remove trailing whitespace throughout file.
4038 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4040 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4041 * bfd-in2.h: Rebuild.
4043 2000-03-06 Nick Clifton <nickc@cygnus.com>
4045 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4047 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4048 (SIZEOF_ILF_STRINGS): Redefine.
4049 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4050 relative reloc, as opposed to a section relative reloc.
4051 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4053 Add length of symbol's prefix to string pointer.
4054 Store a pointer to the symbol in the symbol pointer table.
4055 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4056 Initialise the symbol pointer table.
4057 Store the hint in the Hint/Name table.
4058 Make the jump reloc be symbol realtive, not section relative.
4059 Create an import symbol for imported code.
4061 2000-03-06 Catherine Moore <clm@cygnus.com>
4063 * elf.c (swap_out_syms): Check for null type_ptr.
4065 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4067 * aout-target.h (MY(write_object_contents)): Remove unused
4068 and unusable "#if CHOOSE_RELOC_SIZE".
4069 * pc532-mach.c (MY(write_object_contents)): Ditto.
4070 * netbsd.h (MY(write_object_contents)): Ditto.
4071 * hp300hpux.c (MY(write_object_contents)): Ditto.
4072 * freebsd.h (MY(write_object_contents)): Ditto.
4073 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4075 2000-02-29 H.J. Lu <hjl@gnu.org>
4077 * peicode.h (jtab): Make it static.
4079 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4080 defined and COFF_IMAGE_WITH_PE is not defined.
4081 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4082 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4084 2000-03-01 Nick Clifton <nickc@cygnus.com>
4086 * coff-arm.c (bfd_arm_process_before_allocation): Make
4087 'symndx' signed to prevent compile time warning.
4089 * coff-mcore.c: Remove unused prototype for pe_object_p.
4091 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4092 functions that are not used when COFF_IMAGE_WITH_PE is
4094 (struct sh_opcode): Change type of 'flags' field to unsigned
4095 long so that it can hold the USESAS flag.
4097 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4099 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4102 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4104 Remove unusued variables and code.
4105 (elf_backend_add_symbol_hook): Fix prototype.
4107 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4110 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4113 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4115 Remove unusued variables and code.
4116 (elf_backend_add_symbol_hook): Fix prototype.
4118 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4120 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4121 to unused function parameter.
4123 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4125 Use EMPTY_HOWTO to initialise empty howto slots.
4126 Remove unused variables.
4128 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4130 2000-03-01 H.J. Lu <hjl@gnu.org>
4132 * aoutx.h (aout_link_input_section_std): Pass "true" to
4133 the undefined_symbol callback.
4134 (aout_link_input_section_ext): Likewise.
4135 * bout.c (get_value): Likewise.
4136 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4137 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4139 (alpha_relocate_section): Likewise.
4140 * coff-arm.c (coff_arm_relocate_section): Likewise.
4141 * coff-i960.c (coff_i960_relocate_section): Likewise.
4142 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4143 * coff-mips.c (mips_relocate_section): Likewise.
4144 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4145 * coff-sh.c (sh_relocate_section): Likewise.
4146 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4147 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4148 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4149 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4150 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4151 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4152 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4153 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4154 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4155 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4156 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4157 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4158 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4159 * elflink.h (elf_link_output_extsym): Likewise.
4160 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4161 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4162 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4164 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4165 undefined_symbol callback when building shared library with
4166 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4168 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4169 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4170 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4171 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4172 (elf32_mips_get_relocated_section_content): Likewise.
4173 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4174 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4175 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4176 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4178 2000-02-28 Nick Clifton <nickc@cygnus.com>
4180 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4181 * Makefile.in: Regenerate.
4183 * configure.in: Add support for mips and sh pe vectors.
4184 * configure: regenerate.
4186 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4189 * targets.c: Add mips and sh pe vectors.
4191 * libpei.h (coff_final_link_postscript): Only define if not
4194 * coffcode.h: Add support for WinCE magic numbers.
4196 * peigen.c (pe_print_reloc): Update comment and rearrange
4197 appending of newline character.
4199 * peicode.h: Add support for Image Library Format.
4200 (pe_ILF_vars): Structure containing data used by ILF code.
4201 (pe_ILF_make_a_section): New function. Create a section based
4203 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4205 (pe_ILF_make_a_symbol): New function. Create a symbol based
4207 (pe_ILF_save_relocs): New function. Store the relocs created
4208 by pe_ILF_make_a_reloc in a section.
4209 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4211 (pe_ILF_object_p): New function. Return a bfd_target pointer
4213 (pe_bfd_object_p): If an ILF object is detected call
4214 pe_ILF_object_p on it.
4216 * coff-arm.c: Add support for WinCE relocs which are different
4217 from normal ARM COFF relocs.
4218 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4220 * coff-sh.c: Add support for sh-pe target.
4221 * pe-sh.c: New file. Support code for sh-pe target.
4222 * pei-sh.c: New file. Support code for sh-pe target.
4224 * pe-mips.c: New file. Support code for mips-pe target.
4225 * pei-mips.c: New file. Support code for mips-pe target.
4227 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4229 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4230 architecture if the object causing the bump is dynamic.
4231 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4232 and also don't it for memory ordering.
4233 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4235 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4237 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4238 calling bfd_get_section_size_before_reloc.
4239 (decode_line_info): Likewise.
4240 (_bfd_dwarf2_find_nearest_line): Likewise.
4242 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4244 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4245 name of the libtool directory.
4246 * Makefile.in: Rebuild.
4248 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4250 * som.c (SOM_HOWTO): Define.
4251 (som_hppa_howto_table): Use it.
4253 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4255 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4257 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4259 2000-02-24 Catherine Moore <clm@cygnus.com>
4261 * som.c (som_misc_symbol_info): Add field
4263 (som_bfd_derive_misc_symbol_info): Initialize
4265 (som_build_and_write_symbol_table): Keep track
4266 of secondary_def field.
4267 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4268 if secondary_def field is set.
4269 (som_bfd_ar_write_symbol_stuff): Initialize
4272 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4274 * dwarf2.c (read_address): Read 16-bits addresses.
4275 (parse_comp_unit): Accept addr_size == 2.
4277 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4279 * bfd-in.h: Update copyright date.
4281 2000-02-23 Linas Vepstas <linas@linas.org>
4283 * cpu-i370.c: New file.
4284 * elf32-i370.c: New file.
4285 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4286 (bfd_i370_arch): New.
4287 (bfd_archures_list): Add bfd_i370_arch.
4288 * elf.c (prep_headers): Add bfd_arch_i370.
4289 * Makefile.am: Add support for IBM 370 elf.
4290 * config.bfd: Likewise.
4291 * configure.in: Likewise.
4292 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4293 * reloc.c (bfd_reloc_code_type): Likewise.
4294 * targets.c: Likewise.
4296 * Makefile.in: Regenerate.
4297 * configure: Regenerate.
4298 * bfd-in2.h: Regenerate.
4300 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4302 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4303 invalid relocation types, and change them to R_386_NONE.
4305 2000-02-22 H.J. Lu <hjl@gnu.org>
4307 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4308 not defined, don't add a second ELF_VER_CHR.
4310 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4311 symbols converted to local symbols even when stripping all
4313 (elf_link_output_extsym): Process global symbols converted to
4314 local symbols even if they are being stripped.
4316 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4318 * archures.c (bfd_octets_per_byte): Return unsigned int.
4319 (bfd_arch_mach_octets_per_byte): Ditto.
4320 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4322 * section.c (bfd_get_section_size_before_reloc): Quell signed
4323 vs. unsigned comparison warning.
4324 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4325 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4326 change. What was I thinking?
4327 * bfd-in2.h: Regenerate.
4329 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4330 (elf_gc_sections): Same here.
4331 (elf_gc_common_finalize_got_offsets): And here.
4333 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4335 ELF HPPA doesn't work at present; remove it until it does.
4336 * config.bfd: Comment out setting targ_defvec to
4338 * Makefile.am: Rebuild dependencies.
4339 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4340 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4341 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4342 * Makefile.in: Rebuild.
4343 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4345 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4347 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4348 is no bfd_free(). Revert bfd_free part of previous change.
4350 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4352 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4354 (coff_compute_section_file_positions): Use bfd_free to pair
4356 (coff_write_object_contents): Likewise.
4358 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4359 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4361 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4363 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4364 (xcoff_ar_file_hdr_big): New structure.
4365 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4366 (xcoff_ar_hdr_big): New structure.
4367 (SIZEOF_AR_HDR_BIG): New macro.
4368 (xcoff_big_format_p): New macro.
4369 (xcoff_ardata_big): New macro.
4370 (arch_xhdr_big): New macro.
4371 (xcoff_slurp_armap): Handle large archives.
4372 (xcoff_archive_p): Detect large archives.
4373 (xcoff_read_ar_hdr): Handle large archives.
4374 (xcoff_openr_next_archived_file): Handle large archives.
4375 (xcoff_generic_stat_arch_elt): Handle large archives.
4376 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4377 (xcoff_write_armap_big): New function.
4378 (xcoff_write_armap): New function, dispatch to _old or _big.
4379 (xcoff_write_archive_contents_old): Rename from
4380 xcoff_write_archive_contents.
4381 (xcoff_write_archive_contents_big): New function.
4382 (xcoff_write_archive_contents): New function, dispatch to _old or
4385 2000-02-18 Richard Henderson <rth@cygnus.com>
4387 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4388 and hide_symbol members.
4389 (elf_link_hash_copy_indirect): Remove.
4390 (elf_link_hash_hide_symbol): Remove.
4391 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4392 and elf_backend_hide_symbol.
4393 (_bfd_elf_link_hash_copy_indirect): Declare.
4394 (_bfd_elf_link_hash_hide_symbol): Declare.
4395 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4396 (_bfd_elf_link_hash_hide_symbol): Likewise.
4397 (_bfd_elf_link_hash_table_init): Don't init killed members.
4398 * elflink.h (elf_link_add_object_symbols): Use the bed function
4399 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4400 (elf_link_assign_sym_version): Likewise.
4401 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4402 (elf_backend_hide_symbol): Likewise.
4403 (elfNN_bed): Update for new members.
4405 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4407 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4408 STACK_END_ADDR): Define for new core file format.
4409 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4410 for handling the vagaries of the various core file structures used
4411 by AIX over the years.
4412 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4413 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4414 core_dumpx structure.
4416 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4418 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4419 (bfd_mach_sh3_dsp): Likewise.
4420 (bfd_mach_sh4): Reinstate.
4421 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4422 * bfd-in2.h: Regenerate.
4423 * coff-sh.c (struct sh_opcode): flags is no longer short.
4424 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4425 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4426 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4427 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4428 (sh_opcodes): No longer const.
4429 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4430 (sh_insn_uses_reg): Check for USESAS and USESR8.
4431 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4432 (_bfd_sh_align_load_span): Return early for SH4.
4433 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4434 Take into account that field b of a parallel processing insn
4435 could be mistaken for a separate insn.
4436 * cpu-sh.c (arch_info_struct): New array elements for
4437 sh2, sh-dsp and sh3-dsp.
4438 Reinstate element for sh4.
4439 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4440 (SH4_NEXT): Reinstate.
4441 (SH3_NEXT, SH3E_NEXT): Adjust.
4442 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4443 * elf32-sh.c (sh_elf_set_private_flags): New function.
4444 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4445 (sh_elf_merge_private_data): New function.
4446 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4447 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4448 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4449 sh_elf_merge_private_data.
4451 2000-02-13 Richard Henderson <rth@cygnus.com>
4453 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4454 hide_symbol members.
4455 (elf_link_hash_copy_indirect): New.
4456 (elf_link_hash_hide_symbol): New.
4457 * elflink.h (elf_link_add_object_symbols): Break out copy from
4458 indirect new new symbol to elf.c.
4459 (elf_link_assign_sym_version): Break out privatization of
4460 non-exported symbol to elf.c.
4461 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4462 (_bfd_elf_link_hash_hide_symbol): New.
4463 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4465 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4467 * section.c (_bfd_strip_section_from_output): Add info parameter.
4468 If it passed as non-NULL, use it to check whether any input BFD
4469 has an input section which uses this output section. Change all
4471 * bfd-in2.h: Rebuild.
4473 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4474 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4476 * bfd-in2.h: Rebuild.
4478 2000-02-10 Timothy Wall <twall@cygnus.com>
4480 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4481 allow final modifications of swapped-in symbol.
4482 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4483 * coffcode.h (coff_write_relocs): Use macro
4484 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4485 symbol index should be set to -1.
4487 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4489 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4490 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4491 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4492 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4493 sh_insns_uses_or_sets_freg): New functions.
4494 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4495 * (sh_insns_conflict): Use new functions and new macros to
4496 detect conflicts when two instructions both set same integer registers,
4497 both set same fp register, and both set special register.
4499 2000-02-09 Timothy Wall <twall@cygnus.com>
4501 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4502 swapping in sections, so that the swapping routines have access to
4505 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4507 * coff-go32.c: Update comment. Update copyright.
4509 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4511 * syms.c (bfd_decode_symclass)
4512 Two new class characters were added - 'V' and 'v'. The
4513 meaning of 'W' is now restricted to just weak non-object
4514 symbols. This allows differentiation between, for example,
4515 weak functions vs weak objects. nm for example now dumps:
4517 'w' = weak unresolved
4518 'V' = weak global object
4519 'v' = weak unresolved object
4521 (bfd_is_undefined_symclass): New function. Return true if the
4522 given symbol class represents and undefined/unresolved symbol.
4524 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4527 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4529 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4530 STT_ARM_16BIT flag set, but it is not attached to a data object
4531 return STT_ARM_16BIT so that it will be treated as code by the
4534 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4536 * coff-i386.c (i3coff_object_p): Remove prototype.
4539 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4540 to name. Update copyright.
4542 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4543 assignment to avoid warning. Update copyright.
4545 2000-01-24 Robert Lipe (robertl@sco.com)
4547 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4548 instead of using GNU C extension.
4550 2000-01-21 Nick Clifton <nickc@cygnus.com>
4552 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4553 amount from a bfd_in_memory structure.
4554 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4557 2000-01-14 Nick Clifton <nickc@cygnus.com>
4559 * linker.c (default_indirect_link_order): oops - fix incorrectly
4560 applied patch from Tim Wall.
4562 2000-01-13 Timothy Wall (twall@tiac.net>
4564 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4565 = scnhsz, filhsz, relsz, aoutsz, etc)
4567 * coffswap.h: Ditto.
4569 2000-01-13 Nick Clifton <nickc@cygnus.com>
4571 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4572 interwork thumb to arm stub.
4574 2000-01-13 Timothy Wall (twall@tiac.net>
4576 * archures.c (bfd_octets_per_byte): New function: Return
4578 (bfd_arch_mach_octets_per_byte): New function: Return target
4581 * section.c: Distinguish between octets and bytes for usage of
4582 _cooked_size, _raw_size, and output_offset. Clarify
4583 description of bfd_set_section_contents.
4585 * bfd-in2.h: Regenerate.
4587 * coffgen.c: Indicate that the offset parameter is in bytes, not
4590 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4591 where appropriate to get the octet offset when calling
4592 bfd_set_section_contents.
4593 (bfd_coff_reloc_link_order): Ditto.
4595 * linker.c (bfd_generic_reloc_link_order): Ditto.
4596 (_bfd_default_link_order): Ditto.
4598 * reloc.c (bfd_perform_relocation): Distinguish between octets
4599 and bytes. Use octets when indexing into octet data; use bytes
4600 when calculating target addresses.
4601 (bfd_install_relocation): Ditto.
4603 * srec.c (srec_write_section): Ditto.
4605 2000-01-13 Nick Clifton <nickc@cygnus.com>
4607 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4608 3 to 2. This allows 4 byte sized sections, which is necessary for
4609 dlltool to build functioning DLLs.
4611 2000-01-10 Philip Blundell <pb@futuretv.com>
4613 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4614 (arm*-*-conix*): New target.
4616 2000-01-10 Egor Duda <deo@logos-m.ru>
4618 * config.bfd: Include elf32_i386 vector to target list for cygwin
4621 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4622 * configure.in: Test for structure win32_pstatus_t in
4624 * configure: Regenerate.
4626 * elf.c (elfcore_grok_win32pstatus): New function: process
4627 win32_pstatus_t notes in elf core file.
4628 (elfcore_grok_note): Detect win32_pstatus notes.
4630 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4632 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4634 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4635 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4637 For older changes see ChangeLog-9899
4643 version-control: never