1 2001-02-26 Nick Clifton <nickc@redhat.com>
3 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4 up, replacing multiple if statements with a switch.
5 (handle_COMDAT): New function.
7 2001-02-26 H.J. Lu <hjl@gnu.org>
9 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
10 a warning for section flags we do not handle instead of
13 2001-02-26 Andreas Jaeger <aj@suse.de>
15 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
17 2001-02-22 Timothy Wall <twall@cygnus.com>
19 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
20 * configure.in: Add objects for elf64_ia64_aix vectors.
21 * configure: Regenerated.
22 * configure.host: Recognize ia64-*-aix*.
23 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
24 for AIX. AIX5 requires most relocations to be dynamic (*all*
25 binaries are somewhat similar to shared libraries).
26 * targets.c: Add elf64_ia64_aix vectors.
28 2001-02-21 David Mosberger <davidm@hpl.hp.com>
30 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
31 C8 said "1" instead of "8". Clarify error string for IMM22:
32 "signed integer" instead of just "integer".
34 2001-02-20 Andreas Jaeger <aj@suse.de>
36 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
37 PLT entries that could serve as a definition for a weak symbol.
39 2001-02-19 Jakub Jelinek <jakub@redhat.com>
41 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
42 entries that could serve as a definition for a weak symbol.
43 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
45 2001-02-18 David O'Brien <obrien@FreeBSD>
47 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
48 FreeBSD/i386-CURRENT differently until I can figure out the needed
50 * configure: Regenerate.
51 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
52 FreeBSD/PowerPC, and FreeBSD/sparc64.
54 2001-02-18 lars brinkhoff <lars@nocrew.org>
56 * Makefile.am: Add PDP-11 a.out target.
57 * config.bfd: Likewise.
58 * configure.in: Likewise.
59 * targets.c: Likewise.
60 * archures.c: Likewise.
61 * bfd-in2.h: Likewise. Add PDP-11 relocations.
62 * libbfd.h: Add PDP-11 relocations.
64 * cpu-pdp11.c: New file.
67 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
68 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
69 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
70 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
71 (GET_MAGIC): New macro.
72 (PUT_MAGIC): Likewise.
73 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
75 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
77 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
80 2001-02-18 H.J. Lu <hjl@gnu.org>
82 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
85 2001-02-18 Kazu Hirata <kazu@hxi.com>
87 * vms-misc.c: Fix formatting.
89 2001-02-16 Kazu Hirata <kazu@hxi.com>
91 * vms.c: Fix formatting.
93 2001-02-14 H.J. Lu <hjl@gnu.org>
95 * elf.c (elf_find_function): New function.
96 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
97 the file name and function name.
99 2001-02-14 Nick Clifton <nickc@redhat.com>
101 * ecoff.c (bfd_debug_section): Update to initialise new fields in
104 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
105 (BFD64_BACKENDS): Add pepigen.c
106 Add rules to create peigen.c and pepigen.c from peXXigen.c.
108 * Makefile.in: Regenerate.
109 * configure: Regenerate.
110 * po/POTFILES.in: Regenerate.
111 * po/bfd.pot: Regenerate.
113 2001-02-14 H.J. Lu <hjl@gnu.org>
115 * libcoff-in.h (pe_tdata): Add members target_subsystem and
116 force_minimum_alignment.
118 2001-02-14 Bo Thorsen <bo@suse.de>
120 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
121 (elf64_86_64_size_info): Struct added to fix a problem
122 with the hashtable string entries.
123 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
124 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
125 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
126 remove the FIXME for this.
127 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
128 section. Also removed the FIXME for it.
129 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
130 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
131 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
133 2001-02-13 Richard Henderson <rth@redhat.com>
135 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
136 and not user provided.
138 2001-02-13 Kazu Hirata <kazu@hxi.com>
140 * vms.c (vms_print_symbol): Remove unreachable code.
142 * rs6000-core.c: Fix formatting.
144 2001-02-13 David Mosberger <davidm@hpl.hp.com>
146 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
147 as _bfd_XXi_only_swap_filehdr_out.
148 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
149 pe->force_minimum_alignment to TRUE.
150 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
151 PEI_TARGET_SUBSYSTEM.
152 (pe_print_private_bfd_data): Call
153 _bfd_XX_print_private_bfd_data_common() instead of
154 _bfd_pe_print_private_bfd_data_common().
155 (pe_bfd_copy_private_bfd_data): Call
156 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
157 _bfd_pe_bfd_copy_private_bfd_data_common().
158 (coff_bfd_copy_private_section_data): Define as
159 _bfd_XX_bfd_copy_private_section_data instead of
160 _bfd_pe_bfd_copy_private_section_data.
161 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
162 of a _bfd_pe_get_symbol_info.
166 * peXXigen.c: Renamed from peigen.c.
167 (COFF_WITH_XX): Define this macro (will get expanded into
168 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
169 compiled as peigen.c or pepigen.c.
170 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
171 define the canonical PEP structures and definitions.
172 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
173 effect, enforce minimum file and section alignments. If
174 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
175 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
176 so, by default, this is a no-op).
178 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
179 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
180 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
181 _bfd_pefoo if it's not defined. Use these macros to define
184 * libcoff.h (pe_tdata): Add members target_subsystem and
185 force_minimum_alignment.
187 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
189 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
191 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
194 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
195 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
198 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
199 (BFD64_BACKENDS_CFILES): Mention pepigen.c
200 (peigen.c): Add rule to generate from peXXigen.c.
202 (pepigen.lo): List dependencies for pepigen.lo.
204 2001-02-13 Alan Modra <alan@linuxcare.com.au>
206 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
207 $global$ referenced but not defined, set its value here.
209 2001-02-09 Bo Thorsen <bo@suse.de>
211 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
213 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
215 (elf64_x86_64_relocate_section): Fix formatting.
216 (elf64_x86_64_relocate_section): Fix addend for relocation of
217 R_X86_64_(8|16|32|PC8|PC16|PC32).
219 2001-02-12 Jan Hubicka <jh@suse.cz>
221 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
223 2001-02-11 H.J. Lu <hjl@gnu.org>
225 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
228 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
230 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
231 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
232 relocations against dynsym symbols.
234 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
235 the R_MIPS_26 relocation.
236 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
237 the R_MIPS_26 relocation.
238 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
240 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
241 the R_MIPS_26 relocation.
242 (mips_elf64_howto_table_rela): Likewise.
244 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
245 member to mark symbols that have non-CALL relocations against
247 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
248 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
250 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
251 non-CALL relocation against it is encountered.
252 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
253 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
254 no_fn_stub is not set.
256 * elf32-mips.c (mips_elf_output_extsym): Get the output section
257 information from the real symbol for indirect ones.
258 Check no_fn_stub to find out if a symbol has a function stub
261 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
263 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
264 * Makefile.in: Regenerate.
266 2001-02-09 David Mosberger <davidm@hpl.hp.com>
268 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
269 true if section name is an unwind table section name.
270 (elfNN_ia64_additional_program_headers): Count each unwind section
272 (elfNN_ia64_modify_segment_map): Install one unwind program header
273 for each unwind separate section. Note: normally the linker
274 script merges the unwind sections that go into a single segment,
275 so this still generates at most one unwind program header per
278 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
279 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
280 (elfNN_ia64_fake_sections): Mark sections with names that start
281 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
284 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
285 Use it to make sh_info in unwind section point to the text section
288 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
290 * Makefile.am: Add linux target for S/390.
291 * archures.c: Likewise.
292 * bfd-in2.h: Likewise.
293 * config.bfd: Likewise.
294 * configure.in: Likewise.
296 * libbfd.h: Likewise.
297 * targets.c: Likewise.
298 * cpu-s390.c: New file.
299 * elf32-s390.c: New file.
300 * elf64-s390.c: New file.
302 2001-02-09 Nick Clifton <nickc@redhat.com>
304 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
305 ImageBase. This has already been done by coff_swap_hdr_in.
307 2001-02-09 Jakub Jelinek <jakub@redhat.com>
309 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
311 2001-02-09 Jakub Jelinek <jakub@redhat.com>
313 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
314 (sparc64_elf_relocate_section): Likewise.
316 2001-02-09 Mark Kettenis <kettenis@gnu.org>
318 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
319 similar to R_SPARC_32.
320 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
322 2001-02-08 H.J. Lu <hjl@gnu.org>
324 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
325 relocation entries for weak definitions when building DSO with
328 2001-02-08 Richard Henderson <rth@redhat.com>
330 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
331 before visibility. Locally defined protected symbols are not
334 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
336 * config.bfd: Enable coff64 for rs6000-*. Patch from
337 <hzoli@austin.ibm.com>.
339 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
341 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
342 found, do not attempt to find dwarf2 info before returning.
344 2001-02-07 Jakub Jelinek <jakub@redhat.com>
346 * elflink.h (is_global_symbol_definition): Rename to
347 is_global_data_symbol_definition and have it reject function
349 (elf_link_is_defined_archive_symbol): Use renamed function.
351 2001-02-07 Todd Vierling <tv@wasabisystems.com>
353 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
354 * libbfd.h (bfd_target_vector): Likewise.
355 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
356 make static; create pointer reference named bfd_target_vector.
357 (_bfd_target_vector_entries): Calculate this based on the array
358 typed _bfd_target_vector.
360 2001-02-06 H.J. Lu <hjl@gnu.org>
362 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
363 internal symbols are not dynamic.
364 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
366 2001-02-06 Nick Clifton <nickc@redhat.com>
368 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
369 that it will not be pulled into the list of files that make up
371 * Makefile.in: Regenerate.
372 * po/bfd.pot: Regenerate.
374 2001-02-06 H.J. Lu <hjl@gnu.org>
376 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
378 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
379 external_PEI_IMAGE_hdr.
381 2001-02-06 Kazu Hirata <kazu@hxi.com>
383 * elf-m10200.c: Fix formatting.
385 2001-02-04 Nick Clifton <nickc@redhat.com>
387 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
388 rel, it will be handled later on.
390 2001-02-02 Fred Fish <fnf@ninemoons.com>
392 * Makefile.in: Fix typo.
394 2001-02-01 Kazu Hirata <kazu@hxi.com>
396 * elf-m10300.c: Fix formatting.
398 2001-01-30 Alan Modra <alan@linuxcare.com.au>
400 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
401 (elf_backend_get_symbol_type): Define.
402 (elf64_hppa_object_p): Set architecture and machine from elf
405 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
407 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
410 2001-01-26 Richard Henderson <rth@redhat.com>
412 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
413 for non-default visibility.
414 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
415 delete ugly macro and replace with pretty function.
417 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
419 * coff-go32.c: Update copyright.
420 * coff-stgo32.c: Likewise.
421 * coff-go32.c (COFF_LONG_FILENAMES): Define.
422 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
423 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
424 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
426 2001-01-25 Kazu Hirata <kazu@hxi.com>
428 * bfd-in2.h: Rebuild.
429 * libbfd.h: Likewise.
431 2001-01-23 H.J. Lu <hjl@gnu.org>
433 * bfd-in2.h: Rebuild.
435 2001-01-23 H.J. Lu <hjl@gnu.org>
437 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
438 is NULL or PRIV(vms_rec) is outside of the buffer.
440 2001-01-23 Kazu Hirata <kazu@hxi.com>
442 * coff64-rs6000.c: Fix formatting.
443 * coff-arm.c: Likewise.
444 * coffgen.c: Likewise.
445 * cofflink.c: Likewise.
446 * coff-mcore.c: Likewise.
447 * coff-mips.c: Likewise.
448 * coff-pmac.c: Likewise.
449 * coff-ppc.c: Likewise.
450 * coff-rs6000.c: Likewise.
452 * elf32-fr30.c: Likewise.
453 * elf32-i370.c: Likewise.
454 * elf32-i860.c: Likewise.
455 * elf32-m32r.c: Likewise.
456 * elf32-m68k.c: Likewise.
457 * elf32-mcore.c: Likewise.
458 * elf32-ppc.c: Likewise.
459 * elf32-sh.c: Likewise.
460 * elf32-v850.c: Likewise.
461 * elf64-alpha.c: Likewise.
462 * elf64-sparc.c: Likewise.
463 * elflink.c: Likewise.
464 * elflink.h: Likewise.
465 * elf-m10200.c: Likewise.
466 * elf-m10300.c: Likewise.
467 * elfxx-ia64.c: Likewise.
469 * aoutx.h: Fix formatting.
471 * bfd-in2.h: Likewise.
472 * bfd-in.h: Likewise.
473 * cpu-i386.c: Likewise.
474 * cpu-m68hc11.c: Likewise.
475 * dwarf2.c: Likewise.
476 * elf64-x86-64.c: Likewise.
477 * format.c: Likewise.
478 * freebsd.h: Likewise.
480 * hp300hpux.c: Likewise.
481 * hppabsd-core.c: Likewise.
482 * hpux-core.c: Likewise.
484 2001-01-22 Bo Thorsen <bo@suse.de>
486 * elf64-x86-64.c: Added PIC support for X86-64.
487 (elf64_x86_64_link_hash_newfunc): Function added.
488 (elf64_x86_64_link_hash_table_create): Likewise.
489 (elf64_x86_64_check_relocs): Likewise.
490 (elf64_x86_64_gc_mark_hook): Likewise.
491 (elf64_x86_64_gc_sweep_hook): Likewise.
492 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
493 (elf64_x86_64_size_dynamic_sections): Likewise.
494 (elf64_x86_64_discard_copies): Likewise.
495 (elf64_x86_64_finish_dynamic_symbol): Likewise.
496 (elf64_x86_64_finish_dynamic_sections): Likewise.
497 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
499 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
501 * Makefile.am (install-data-local): Make use of $(DESTDIR).
502 * Makefile.in: Regenerate.
504 2001-01-21 Kazu Hirata <kazu@hxi.com>
506 * coff-a29k.c: Fix formatting.
508 2001-01-19 H.J. Lu <hjl@gnu.org>
510 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
511 relocation section names.
512 (elf_i386_relocate_section): Report files with bad relocation
513 section names and return false.
515 2001-01-17 Bo Thorsen <bo@suse.de>
517 * targets.c: Alphabetize list of xvecs.
519 2001-01-14 Alan Modra <alan@linuxcare.com.au>
521 * config.bfd: Add linux target variant for elfxx-hppa.
522 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
523 bfd_elf64_hppa_linux_vec.
524 * configure: Regenerate.
525 * elf64-hppa.c: Include elf64-target.h again to support linux
527 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
528 * elf32-hppa.c: Include elf32-target.h again to support linux
530 (elf32_hppa_post_process_headers): New function.
531 (elf_backend_post_process_headers): Define.
532 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
533 bfd_elf32_hppa_linux_vec.
535 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
536 and data_segment_base fields.
537 (elf32_hppa_link_hash_table_create ): Init them.
538 (elf32_hppa_check_relocs): Update comments.
539 (hppa_record_segment_addr): New function.
540 (elf32_hppa_relocate_section): Call it.
541 (final_link_relocate): Handle R_PARISC_SEGREL32.
542 (elf32_hppa_final_link): New function.
543 (bfd_elf32_bfd_final_link): Define to call it.
544 (hppa_unwind_entry_compare): New function.
545 * cache.c (bfd_open_file): Create files in write+read mode.
547 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
548 SEGREL32 and numerous other relocs. Change duplicate
549 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
551 * opncls.c (bfd_fdopenr): Add parens like the comment says around
554 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
555 .plt entries for DT_INIT and DT_FINI.
556 (elf32_hppa_finish_dynamic_sections): Remove special handling of
559 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
560 offsets for stub .plt access if wide mode. Check offset in range.
562 2001-01-13 Nick Clifton <nickc@redhat.com>
564 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
567 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
570 2001-01-12 Alan Modra <alan@linuxcare.com.au>
572 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
573 * configure: Regenerate.
575 2001-01-11 Peter Targett <peter.targett@arccores.com>
577 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
578 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
579 * cpu-arc.c (arch_info_struct): Add entries for variants.
580 (bfd_arc_arch) Set default to bfd_mach_arc_5.
581 (arc_get_mach) Don't assume machine names prefixed arc- before
583 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
585 (arc_elf_final_write_processing) Likewise.
586 (ELF_MACHINE_CODE) Use EM_ARC.
588 2001-01-10 Nick Clifton <nickc@redhat.com>
590 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
592 2001-01-07 Philip Blundell <philb@gnu.org>
594 * README: Replace `bug-gnu-utils@gnu.org' with
595 `bug-binutils@gnu.org'.
597 2001-01-04 Kazu Hirata <kazu@hxi.com>
599 * som.c: Fix formatting.
601 2001-01-03 Kazu Hirata <kazu@hxi.com>
603 * ecoffswap.h: Fix formatting.
604 * elf-bfd.h: Likewise.
605 * elfarm-nabi.c: Likewise.
606 * elfarm-oabi.c: Likewise.
607 * elfcode.h: Likewise.
608 * elfcore.h: Likewise.
609 * elflink.c: Likewise.
610 * elflink.h: Likewise.
611 * elfxx-ia64.c: Likewise.
612 * elfxx-target.h: Likewise.
614 * linker.c: Likewise.
615 * lynx-core.c: Likewise.
617 2001-01-02 Kazu Hirata <kazu@hxi.com>
619 * pc532-mach.c: Fix formatting.
620 * pe-arm.c: Likewise.
621 * pe-i386.c: Likewise.
622 * pe-mips.c: Likewise.
623 * pe-ppc.c: Likewise.
625 * pei-mips.c: Likewise.
626 * pei-sh.c: Likewise.
627 * peicode.h: Likewise.
628 * ppcboot.c: Likewise.
629 * ptrace-core.c: Likewise.
631 2001-01-01 Kazu Hirata <kazu@hxi.com>
633 * reloc.c: Fix formatting.
634 * riscix.c: Likewise.
635 * rs6000-core.c: Likewise.
636 * xcoff-target.h: Likewise.
638 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
640 * elfcode.h (elf_object_p): Also restore the bfd mach field on
641 error, by calling bfd_default_set_arch_mach with incoming
644 2000-12-26 Kazu Hirata <kazu@hxi.com>
646 * vaxnetbsd.c: Fix formatting.
647 * versados.c: Likewise.
648 * vms-gsd.c: Likewise.
649 * vms-hdr.c: Likewise.
650 * vms-misc.c: Likewise.
652 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
654 * archive.c (coff_write_armap): Don't write more than symbol_count
655 `archive_member_file_ptr's.
657 2000-12-25 Kazu Hirata <kazu@hxi.com>
659 * vms-tir.c: Fix formatting.
661 2000-12-23 Kazu Hirata <kazu@hxi.com>
663 * vms.c: Fix formatting.
666 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
668 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
670 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
672 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
675 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
677 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
679 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
681 * libbfd.c (bfd_get_bits): Added
682 (bfd_put_bits): Likewise
683 * bfd-in.h: Declared the above.
684 * bfd-in2.h: Regenerated.
686 2000-12-20 Kazu Hirata <kazu@hxi.com>
688 * targets.c: Fix formatting.
689 * tekhex.c: Likewise.
690 * trad-core.c: Likewise.
692 2000-12-19 Kazu Hirata <kazu@hxi.com>
694 * sco5-core.c: Fix formatting.
695 * section.c: Likewise.
696 * sparclinux.c: Likewise.
697 * sparclynx.c: Likewise.
698 * sparcnetbsd.c: Likewise.
701 * stab-syms.c: Likewise.
704 * sysdep.h: Likewise.
706 2000-12-18 Nick Clifton <nickc@redhat.com>
708 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
710 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
711 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
713 2000-12-18 Nick Clifton <nickc@redhat.com>
715 * vms-misc.c (_bfd_vms_get_record): Add default case to
718 2000-12-15 Miloslav Trmac <mitr@volny.cz>
720 * elfcore.h (elf_core_file_p): Move to the start of the program
721 headers before attempting to read them.
723 2000-12-14 Kazu Hirata <kazu@hxi.com>
725 * peigen.c: Fix formatting.
729 2000-12-13 Kazu Hirata <kazu@hxi.com>
731 * peigen.c: Fix formatting.
733 2000-12-12 Jim Wilson <wilson@redhat.com>
735 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
737 2000-12-08 Mark Salter <msalter@redhat.com>
739 * binary.c (binary_set_section_contents): Ignore sections
742 2000-12-12 Kazu Hirata <kazu@hxi.com>
744 * m68klinux.c: Fix formatting.
745 * m68knetbsd.c: Likewise.
746 * mipsbsd.c: Likewise.
747 * netbsd-core.c: Likewise.
748 * netbsd.h: Likewise.
749 * newsos3.c: Likewise.
750 * nlm32-alpha.c: Likewise.
751 * nlm32-i386.c: Likewise.
752 * nlm32-ppc.c: Likewise.
753 * nlm32-sparc.c: Likewise.
754 * nlmcode.h: Likewise.
755 * nlmswap.h: Likewise.
756 * nlm-target.h: Likewise.
757 * ns32knetbsd.c: Likewise.
759 2000-12-10 Fred Fish <fnf@be.com>
761 * elflink.h (elf_link_output_extsym): Don't complain about undefined
762 symbols in shared objects if allow_shlib_undefined is true.
764 2000-12-12 Nick Clifton <nickc@redhat.com>
766 * cpu-sh.c: Fix formattng.
767 * elf.c: Fix formattng.
768 * elf32-mips.c: Fix formattng.
769 * elf32-sh.c: Fix formattng.
770 * elf64-alpha.c: Fix formattng.
772 2000-12-09 Nick Clifton <nickc@redhat.com>
774 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
775 dwarf2_find_line_info as last parameter to invocation of
776 _bfd_dwarf2_find_nearest_line.
777 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
778 dwarf2_find_line_info as last parameter to invocation of
779 _bfd_dwarf2_find_nearest_line.
781 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
783 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
784 (BFD_LIBS): ...to here.
785 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
786 (BFD_LIBS_CFILES): ...to here.
787 * Makefile.in: Regenerate.
788 * configure.in: Remove dwarf.lo from the elf shell variable.
789 * configure: Regenerate.
790 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
791 * libcoff.h: Regenerate.
792 * coffgen.c (coff_find_nearest_line): Call
793 _bfd_dwarf2_find_nearest_line.
794 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
796 (read_abbrevs): Likewise
797 (decode_line_info): Likewise.
798 (parse_comp_unit): Likewise.
799 (comp_unit_find_nearest_line): Likewise.
800 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
801 * libbfd.h: Regenerate.
802 * elf.c (_bfd_elf_find_nearest_line): Update call.
803 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
804 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
805 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
806 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
807 (styp_to_sec_flags): Handle DWARF2 sections.
808 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
809 to _bfd_find_nearest_line.
810 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
811 call to _bfd_find_nearest_line.
813 2000-12-08 Kazu Hirata <kazu@hxi.com>
815 * coffgen.c: Fix formatting.
816 * elf-m10300.c: Likewise.
817 * elf32-i386.c: Likewise.
818 * elf32-i960.c: Likewise.
819 * elf32-m68k.c: Likewise.
820 * elf32-mcore.c: Likewise.
821 * elf32-ppc.c: Likewise.
822 * elf32-sh.c: Likewise.
823 * elf32-sparc.c: Likewise.
824 * elf32-v850.c: Likewise.
825 * elf64-alpha.c: Likewise.
826 * elf64-hppa.c: Likewise.
827 * elf64-mips.c: Likewise.
828 * elf64-sparc.c: Likewise.
830 2000-12-07 Kazu Hirata <kazu@hxi.com>
832 * elf32-ppc.c: Fix formatting.
833 * elf64-x86-64.c: Likewise.
835 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
837 From Ralf Baechle <ralf@gnu.org>
839 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
840 BFDs containing no sections or empty .text, .data or .bss sections
841 to be merged, regardless of their flags.
843 2000-12-06 Kazu Hirata <kazu@hxi.com>
845 * elf32-m32r.c: Fix formatting.
846 * elf32-m68hc11.c: Likewise.
847 * elf32-m68hc12.c: Likewise.
848 * elf32-m68k.c: Likewise.
849 * elf32-mcore.c: Likewise.
850 * elf32-pj.c: Likewise.
851 * elf32-ppc.c: Likewise.
853 2000-12-05 Kazu Hirata <kazu@hxi.com>
855 * elf32-fr30.c: Fix formatting.
856 * elf32-hppa.c: Likewise.
857 * elf32-i370.c: Likewise.
858 * elf32-i386.c: Likewise.
859 * elf32-i860.c: Likewise.
860 * elf32-i960.c: Likewise.
862 2000-12-03 Kazu Hirata <kazu@hxi.com>
864 * elf32-arm.h: Fix formatting.
865 * elf32-avr.c: Likewise.
866 * elf32-cris.c: Likewise.
867 * elf32-d10v.c: Likewise.
868 * elf32-d30v.c: Likewise.
869 * elf-hppa.h: Likewise.
870 * elf-m10200.c: Likewise.
871 * elf-m10300.c: Likewise.
873 2000-12-01 Chris Demetriou <cgd@sibyte.com>
875 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
876 bfd_mach_mips32_4k. Update FIXME comment.
877 * archures.c (bfd_mach_mips32): New constant.
878 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
879 the latter, renumber it.
880 * bfd-in2.h (bfd_mach_mips32): New constant.
881 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
882 the latter, renumber it.
883 * cpu-mips.c (I_mips32): New constant.
884 (I_mips4K, I_mips32_4k): Rename the former to the latter.
885 (arch_info_struct): Add bfd_mach_mips32 entry, replace
886 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
887 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
888 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
889 with E_MIPS_MACH_MIPS32_4K.
890 (_bfd_mips_elf_final_write_processing): Replace
891 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
892 bfd_mach_mips32 case.
893 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
894 comparison with support for MIPS32.
895 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
898 * aoutx.h (NAME(aout,machine_type)): Add cases for
899 bfd_mach_mips5 and bfd_mach_mips64.
900 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
901 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
902 * cpu_mips.c (I_mips5, I_mips64): New definitions.
903 (arch_info_struct): Add entries for bfd_mach_mips5 and
905 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
906 _bfd_mips_elf_print_private_bfd_data): Add cases for
907 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
908 (_bfd_mips_elf_final_write_processing): Add cases for
909 bfd_mach_mips5 and bfd_mach_mips64.
911 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
912 bfd_mach_mips_sb1 case.
913 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
914 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
915 * bfd/cpu-mips.c (I_sb1): New constant.
916 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
917 * bfd/elf32-mips.c (elf_mips_mach): Add case for
919 (_bfd_mips_elf_final_write_processing): Add case for
922 2000-12-01 Joel Sherrill <joel@OARcorp.com>
924 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
925 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
926 (sparc*-*-rtems*): Switched from a.out to ELF.
928 2000-11-30 Jan Hubicka <jh@suse.cz>
930 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
931 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
932 (elf64-x86-64.lo): Add dependencies.
933 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
934 bfd_mach_x86_64_intel_syntax.
935 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
936 * config.bfd (x86_64): Add.
937 * configure.in: Add support for bfd_elf64_x86_64_vec.
938 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
939 (bfd_i386_arch, i8086_ar): Link in.
940 * elf64-x86-64.c: New file.
941 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
942 * targets.c (bfd_elf64_x86_64_vec): Add.
943 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
945 2000-11-30 Kazu Hirata <kazu@hxi.com>
947 * xcofflink.c: Fix formatting.
949 2000-11-28 Kazu Hirata <kazu@hxi.com>
951 * aoutx.h: Fix formatting.
952 * bfd-in.h: Likewise.
953 * bfd-in2.h: Likewise.
955 * cisco-core.c: Likewise.
956 * coff64-rs6000.c: Likewise.
957 * coffcode.h: Likewise.
958 * coffswap.h: Likewise.
959 * corefile.c: Likewise.
960 * elf32-mips.c: Likewise.
962 2000-11-27 Kazu Hirata <kazu@hxi.com>
964 * aout-adobe.c: Fix formatting.
965 * coff64-rs6000.c: Likewise.
966 * coffgen.c: Likewise.
967 * cofflink.c: Likewise.
969 2000-11-27 Philip Blundell <pb@futuretv.com>
971 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
972 (obj_coff_strings_written): New accessor macro for above.
973 * libcoff.h: Regenerate.
974 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
976 * coffcode.h (coff_write_object_contents): No need to write out
977 the string table if it's already been done.
979 2000-11-22 Philip Blundell <pb@futuretv.com>
981 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
982 weak undefined symbols.
984 2000-11-24 Nick Clifton <nickc@redhat.com>
986 * archures.c (bfd_mach_arm_5TE): Define.
987 (bfd_mach_arm+XScale): Define.
988 * bfd-in2.h: Regenerate.
990 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
991 BFD_RELOC_ARM_PCREL_BLX.
993 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
994 XScale machine numbers.
996 * config.bfd (xscale-elf): Add target.
997 (xscale-coff): Add target.
999 * cpu-arm.c: Add xscale machine name.
1000 Add v5t, v5te and XScale machine numbers.
1002 2000-11-23 Kazu Hirata <kazu@hxi.com>
1004 * aix386-core.c: Fix formatting.
1006 2000-11-22 Jim Wilson <wilson@redhat.com>
1008 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1009 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1010 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1011 (ins_imms_scaled): Initialize sign_bit at function entry.
1012 (elf64_ia64_operands): Add missing initializers.
1013 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1014 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1015 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1016 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1017 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1019 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1020 and free_extsyms at function entry.
1021 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1022 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1023 (get_got): Delete unused local srel.
1024 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1025 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1027 2000-11-21 Kazu Hirata <kazu@hxi.com>
1029 * coff-a29k.c: Fix formatting.
1030 * coff-h8500.c: Likewise.
1031 * coff-i960.c: Likewise.
1032 * coff-ppc.c: Likewise.
1033 * coff-rs6000.c: Likewise.
1034 * coff-stgo32.c: Likewise.
1035 * coff-tic54x.c: Likewise.
1036 * coff-w65.c: Likewise.
1037 * cpu-h8500.c: Likewise.
1038 * cpu-hppa.c: Likewise.
1039 * cpu-ns32k.c: Likewise.
1040 * ecoff.c: Likewise.
1041 * ecofflink.c: Likewise.
1043 2000-11-21 Nick Clifton <nickc@redhat.com>
1045 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1046 remove possibility of infinite loop.
1048 2000-11-20 Kazu Hirata <kazu@hxi.com>
1050 * aix386-core.c: Fix formatting.
1051 * aout-adobe.c: Likewise.
1052 * aout-arm.c: Likewise.
1053 * aout-encap.c: Likewise.
1054 * aout-ns32k.c: Likewise.
1055 * aout-target.h: Likewise.
1056 * aout-tic30.c: Likewise.
1057 * aoutf1.h: Likewise.
1058 * aoutx.h: Likewise.
1059 * archive.c: Likewise.
1060 * bfd-in.h: Likewise.
1061 * bfd-in2.h: Likewise.
1065 2000-11-17 H.J. Lu <hjl@gnu.org>
1067 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1068 pltoff entries for DT_INIT and DT_FINI.
1069 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1070 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1073 2000-11-16 Richard Henderson <rth@redhat.com>
1075 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1076 (allocate_dynrel_entries): Likewise.
1077 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1078 (set_pltoff_entry): Likewise.
1079 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1080 (elfNN_ia64_reloc_type_lookup): Likewise.
1081 (elfNN_ia64_install_value): Likewise.
1082 (elfNN_ia64_relocate_section): Likewise.
1083 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1084 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1086 2000-11-16 Kazu Hirata <kazu@hxi.com>
1088 * cpu-a29k.c: Fix formatting.
1089 * cpu-alpha.c: Likewise.
1090 * cpu-arm.c: Likewise.
1091 * cpu-avr.c: Likewise.
1092 * cpu-d10v.c: Likewise.
1093 * cpu-h8500.c: Likewise.
1094 * cpu-hppa.c: Likewise.
1095 * cpu-i370.c: Likewise.
1096 * cpu-i386.c: Likewise.
1097 * cpu-i960.c: Likewise.
1098 * cpu-ia64-opc.c: Likewise.
1099 * cpu-ia64.c: Likewise.
1100 * cpu-m32r.c: Likewise.
1101 * cpu-m68hc11.c: Likewise.
1102 * cpu-m68hc12.c: Likewise.
1103 * cpu-m68k.c: Likewise.
1104 * cpu-m88k.c: Likewise.
1105 * cpu-mips.c: Likewise.
1106 * cpu-ns32k.c: Likewise.
1107 * cpu-pj.c: Likewise.
1108 * cpu-powerpc.c: Likewise.
1109 * cpu-sh.c: Likewise.
1110 * cpu-sparc.c: Likewise.
1111 * cpu-tic54x.c: Likewise.
1112 * cpu-v850.c: Likewise.
1113 * cpu-vax.c: Likewise.
1114 * cpu-w65.c: Likewise.
1115 * cpu-we32k.c: Likewise.
1116 * cpu-z8k.c: Likewise.
1117 * dwarf1.c: Likewise.
1118 * dwarf2.c: Likewise.
1120 2000-11-15 Kazu Hirata <kazu@hxi.com>
1122 * coff-arm.c: Fix formatting.
1123 * coff-ppc.c: Likewise.
1124 * coff-rs6000.c: Likewise.
1125 * coff-sh.c: Likewise.
1126 * coff-sparc.c: Likewise.
1127 * coff-tic30.c: Likewise.
1128 * coff-tic54x.c: Likewise.
1129 * coff-tic80.c: Likewise.
1130 * coff-w65.c: Likewise.
1131 * coff-we32k.c: Likewise.
1132 * coff-z8k.c: Likewise.
1134 2000-11-15 Richard Henderson <rth@redhat.com>
1136 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1137 section with the same ALLOC|LOAD flags as the source section.
1139 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1141 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1142 by STO_ALPHA constants.
1144 2000-11-14 Kazu Hirata <kazu@hxi.com>
1146 * coff-pmac.c: Fix formatting.
1147 * coff-ppc.c: Likewise.
1149 2000-11-13 H.J. Lu <hjl@gnu.org>
1151 * elflink.h (elf_link_add_object_symbols): Also add indirect
1152 symbols for common symbols with the default version.
1154 2000-11-09 Philip Blundell <pb@futuretv.com>
1156 * section.c (STD_SECTION): Set gc_mark flag.
1158 2000-11-11 Kazu Hirata <kazu@hxi.com>
1160 * coff-i960.c: Likewise.
1161 * coff-m68k.c: Likewise.
1162 * coff-m88k.c: Likewise.
1163 * coff-mcore.c: Likewise.
1164 * coff-mips.c: Likewise.
1166 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1168 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1170 2000-11-10 Kazu Hirata <kazu@hxi.com>
1172 * coff-h8300.c: Fix formatting.
1173 * coff-h8500.c: Likewise.
1174 * coff-i386.c: Likewise.
1175 * coff-i860.c: Likewise.
1176 * coff-i960.c: Likewise.
1177 * coff-ia64.c: Likewise.
1179 2000-11-09 Kazu Hirata <kazu@hxi.com>
1181 * archive.c: Fix formatting.
1182 * archures.c: Likewise.
1184 2000-11-07 Richard Henderson <rth@redhat.com>
1186 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1187 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1188 * section.c (bfd_set_section_contents): Call memcpy if
1189 section->contents set and location not equal to contents plus offset.
1191 2000-11-08 Kazu Hirata <kazu@hxi.com>
1193 * bfd-in.h: Fix formatting.
1194 * bfd-in2.h: Likewise.
1196 * binary.c: Likewise.
1198 * coff-a29k.c: Likewise.
1199 * coff-alpha.c: Likewise.
1200 * coff-apollo.c: Likewise.
1201 * coff-aux.c: Likewise.
1203 2000-11-07 Kazu Hirata <kazu@hxi.com>
1205 * aix386-core.c: Fix formatting.
1206 * aoutf1.h: Likewise.
1207 * aoutx.h: Likewise.
1208 * archures.c: Likewise.
1209 * armnetbsd.c: Likewise.
1211 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1213 * coff-h8300.c (special): Adjust reloc address.
1215 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1217 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1218 to differentiate elf32 and elf64 on ia64.
1219 * bfd-in2.h: Regenerate.
1220 * config.bfd: Add target for "ia64*-*-hpux*".
1221 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1222 * configure: Regenerate.
1223 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1224 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1226 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1227 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1228 * Makefile.in: Regnerate.
1229 * elf64-ia64.c: Deleted.
1230 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1232 2000-11-06 Kazu Hirata <kazu@hxi.com>
1234 * aout-adobe.c: Fix formatting.
1235 * aout-arm.c: Likewise.
1236 * aout-cris.c: Likewise.
1237 * aout-encap.c: Likewise.
1238 * aout-ns32k.c: Likewise.
1239 * aout-target.h: Likewise.
1240 * aout-tic30.c: Likewise.
1242 2000-11-05 Philip Blundell <philb@gnu.org>
1244 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1245 BFDs containing no sections to be merged, regardless of their flags.
1247 2000-11-04 Philip Blundell <philb@gnu.org>
1249 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1250 if a relocation for an undefined symbol also results in an
1253 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1255 * config.bfd: Add support for Sun Chorus.
1257 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1259 * configure.in: Recognize alpha-*-freebsd*.
1260 * configure: Regenerate.
1262 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1264 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1265 (Chunk): New global variable set by a parameter in objcopy.c.
1266 (S3Forced): New global variable set by a parameter in
1268 (srec_set_section_contents): If S3Forced is true, always generate
1270 (srec_write_section): Use 'Chunk' to limit maximum length of S
1273 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1275 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1276 * Makefile.in: Regenerate.
1277 * bfd-in2.h: Regenerate.
1278 * po/bfd.pot: Regenerate.
1280 2000-10-31 Philip Blundell <philb@gnu.org>
1282 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1283 EF_SOFT_FLOAT if it is defined.
1285 2000-10-27 Philip Blundell <philb@gnu.org>
1287 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1288 attempts to mix PIC code with non-PIC, just mark the output as
1289 being position dependent.
1290 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1291 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1292 all mismatches, not just the first one.
1294 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1296 * ieee.c (ieee_archive_p): Plug one of many possible
1297 memory leaks in error handling.
1299 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1301 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1302 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1304 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1305 sparc64_elf_object_p): Support v9b.
1306 * archures.c: Declare v8plusb and v9b machines.
1308 * cpu-sparc.c: Ditto.
1310 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1312 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1315 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1316 (SYMBOL_CALLS_LOCAL): New macro.
1317 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1318 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1319 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1320 (ppc_elf_relocate_section): Use flag variable to determine
1321 whether the relocation refers to a local symbol.
1322 Test whether a PLTREL24 reloc will produce a reloc by looking
1323 to see whether a PLT entry was made.
1325 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1327 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1328 entries that could serve as a definition for a weak symbol.
1330 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1332 From Ralf Baechle <ralf@gnu.org>
1334 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1335 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1336 against local symbols.
1337 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1339 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1341 * section.c (struct sec): Add kept_section.
1342 (struct bfd_comdat_info): Remove sec, we can use above.
1343 (STD_SECTION): Add initializer.
1344 (bfd_make_section_anyway): Init here too.
1346 * bfd-in2.h: Regenerate.
1348 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1350 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1351 fudge values for discarded link-once section symbols.
1353 * elf64-hppa.c: Include alloca-conf.h
1355 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1357 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1359 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1361 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1363 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1365 2000-10-10 Tom Rix <trix@redhat.com>
1367 * section.c (bfd_make_section_anyway): Release newsect ptr when
1368 newsect->symbol fails to alloc. Use bfd_release instead of free.
1370 2000-10-09 Richard Henderson <rth@cygnus.com
1372 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1373 (elf64_ia64_unwind_entry_compare): New.
1374 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1376 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1378 * elflink.h (size_dynamic_sections): Don't create various tags if
1379 .dynstr is excluded from the link. Don't set first dynsym entry
1380 if dynsymcount is zero.
1381 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1382 .dynsym excluded from the link. Don't try to write any dynamic
1383 sections excluded from the link.
1385 * elf.c (swap_out_syms): Handle global section symbols.
1387 2000-10-05 DJ Delorie <dj@redhat.com>
1389 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1390 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1391 (coff_write_relocs): write extended reloc count
1392 (coff_write_object_contents): account for extended relocs
1394 2000-10-05 Jim Wilson <wilson@cygnus.com>
1396 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1398 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1399 elf_backend_section_flags function.
1400 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1402 (elf64_ia64_section_flags): New function containing flag conversion
1404 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1405 * elfxx-target.h (elf_backend_section_flags): Define.
1406 (elfNN_bed): Initialize elf_backend_section_flags field.
1408 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1410 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1411 _bfd_elf32_gc_record_vtable. Correct a comment.
1413 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1415 From Ralf Baechle <ralf@gnu.org>
1417 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1418 produces binaries with got[1] = 0x80000001 to differenciate them
1419 for the dynamic linker from the broken binaries produced by old
1422 2000-09-30 Petr Sorfa <petrs@sco.com>
1424 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1425 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1426 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1427 * configure: Regenerate.
1429 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1431 Define two bfd_targets for absence and presence of leading
1432 underscore on symbols. Make sure to only link same kind.
1433 * elf32-cris.c (cris_elf_object_p,
1434 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1435 cris_elf_merge_private_bfd_data): New.
1436 (elf_backend_object_p, elf_backend_final_write_processing,
1437 bfd_elf32_bfd_print_private_bfd_data,
1438 bfd_elf32_bfd_merge_private_bfd_data): Define.
1439 <Target vector definition>: Include elf32-target.h twice with
1440 different macro settings:
1441 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1442 bfd_elf32_us_cris_vec.
1443 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1444 (elf_symbol_leading_char): First as 0, then '_'.
1445 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1446 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1447 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1448 * configure: Regenerate.
1449 * targets.c: Declare bfd_elf32_us_cris_vec.
1450 * po/bfd.pot: Regenerate.
1452 2000-09-29 Momchil Velikov <velco@fadata.bg>
1454 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1455 R_ARM_THM_PC22 relocations.
1457 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1459 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1461 2000-09-29 Momchil Velikov <velco@fadata.bg>
1463 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1464 is has the SEC_HAS_CONTENTS flag set.
1466 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1467 Hans-Peter Nilsson <hp@axis.com>
1469 * aout-cris.c (N_TXTADDR): Define.
1471 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1473 * som.c: Include alloca-conf.h.
1474 * Makefile.am: "make dep-am"
1475 * Makefile.in: Regenerate.
1477 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1479 * elf32-hppa.c (plt_stub): New.
1480 (PLT_STUB_ENTRY): Define.
1481 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1482 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1483 (elf32_hppa_link_hash_table_create): Init to suit.
1484 (elf32_hppa_check_relocs): Set has_12bit_branch and
1485 has_17bit_branch as appropriate.
1486 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1487 non-local functions.
1488 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1489 Add space for plt_stub as needed.
1490 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1491 functions at plt_stub.
1492 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1493 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1495 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1496 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1497 of fixed size, and if negative, disable handling of input sections
1498 before stub section. Set up default stub group size depending
1499 on detected branch relocs.
1500 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1501 ensure different offsets from sym_value aren't rounded to
1502 different 2k blocks. Use lrsel and rrsel for other stubs too for
1503 consistency rather than necessity.
1504 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1505 (final_link_relocate): Likewise.
1506 (elf32_hppa_relocate_section): Likewise.
1508 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1509 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1510 (elf_hppa_final_link_relocate): Handle them.
1511 (elf_hppa_relocate_insn): Likewise.
1512 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1514 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1516 * elfcode.h (elf_object_p): Preserve and clear abfd section
1517 information. Restore at error.
1519 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1521 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1522 is empty, make sure that its rva also 0. NT loader dislikes
1525 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1527 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1530 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1532 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1533 currently unused RELATIVE_DYNAMIC_RELOCS code.
1534 (hppa_discard_copies): Likewise.
1535 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1536 comments. Don't check non-code output sections for stub grouping.
1538 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1540 * section.c (bfd_get_unique_section_name): Return NULL if
1543 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1545 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1546 instruction sequence to actually work.
1547 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1550 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1552 * elf32-sh.c (sh_elf_relocate_section): Use
1553 _bfd_final_link_relocate to apply the relocation against a section
1554 symbol, when doing relocatable links.
1556 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1558 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1560 (stub_hash_newfunc): Here too.
1561 (hppa_add_stub): And here.
1562 (elf32_hppa_link_hash_table): Remove stub_section_created,
1563 reloc_section_created, first_init_sec and first_fini_sec. Add
1565 (elf32_hppa_link_hash_table_create): Init to suit.
1566 (hppa_get_stub_entry): Add support for grouping stub sections.
1567 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1568 section code. Index stub vars by section->id.
1569 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1570 exit paths. Zap allocation of above removed vars. Refine
1573 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1574 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1575 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1576 rather than pointer to bfd_link_info.
1577 (hppa_add_stub): Likewise.
1578 (final_link_relocate): Likewise.
1580 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1582 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1585 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1587 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1588 ld/emulparams/shelf.sh.
1590 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1592 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1593 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1594 * bfd-in2.h: Regenerate.
1596 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1598 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1599 LITUSE relocations incorrectly if -relax is specified on the ld
1600 command line and the displacement field of the load or store
1601 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1603 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1605 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1606 first_fini_sec here.
1607 (elf32_hppa_size_stubs): Instead correctly find the first .init
1608 and .fini section here.
1610 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1612 * elf32-hppa.c (clobber_millicode_symbols): New function.
1613 (elf32_hppa_size_dynamic_sections): Call it.
1615 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1617 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1618 packed. Add plabel, plt_abs packed booleans.
1619 (hppa_link_hash_newfunc): Init new fields.
1620 (PLABEL_PLT_ENTRY_SIZE): Define.
1621 (hppa_stub_name): Use size_t len vars.
1622 (hppa_add_stub): Likewise.
1623 (elf32_hppa_build_stubs): Likewise.
1624 (hppa_build_one_stub): Kill some compiler warnings.
1625 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1626 if dynamic linking. Munge the local plt offsets into
1627 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1628 size_t len vars. Add assert for plabel addend.
1629 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1630 (elf32_hppa_hide_symbol): New function.
1631 (elf_backend_hide_symbol): Define.
1632 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1633 with h->plabel set. Don't make plt entries to have dynamic syms
1634 when they have been forced local. If plt entry is used by a
1635 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1636 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1637 Set up .plt offsets for local syms.
1638 (elf32_hppa_relocate_section): Initialise plt entries for local
1639 syms. Leave weak undefined plabels zero. Make global plabel
1640 relocs against function symbol, and leave the addend zero.
1641 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1642 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1643 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1644 relocs instead of SEGREL32 for dynamic got relocs.
1645 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1646 (elf_backend_got_header_size): Adjust.
1647 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1649 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1650 (hppa_type_of_stub): Use it instead of #if 0
1651 (hppa_discard_copies): Use it here too.
1652 (elf32_hppa_size_dynamic_sections): And here.
1654 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1655 (elf32_hppa_link_hash_table_create): And here.
1656 (hppa_build_one_stub): And here. Instead keep track of stub
1657 offset using _raw_size.
1658 (elf32_hppa_size_stubs): Likewise.
1659 (elf32_hppa_build_stubs): Likewise.
1660 (hppa_size_one_stub): Likewise. Resize reloc section too.
1662 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1663 first_fini_sec handling. Don't search for reloc section or set
1664 hplink->reloc_section_created here.
1665 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1666 set reloc_section_created here.
1667 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1668 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1670 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1672 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1673 with `hplink->root.'.
1674 (elf32_hppa_check_relocs): Likewise.
1675 (elf32_hppa_gc_sweep_hook): Likewise.
1676 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1677 (hppa_handle_PIC_calls): Likewise.
1678 (elf32_hppa_size_dynamic_sections): Likewise.
1679 (elf32_hppa_set_gp): Likewise.
1680 (elf32_hppa_relocate_section): Likewise.
1681 (elf32_hppa_finish_dynamic_symbol): Likewise.
1682 (elf32_hppa_finish_dynamic_sections): Likewise.
1684 From David Huggins-Daines <dhd@linuxcare.com>
1685 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1686 defined weak symbols in shared links.
1687 (final_link_relocate): Calls to defined weak symbols in shared
1688 objects must go via import stubs, as the target might not be known
1691 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1693 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1694 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1695 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1696 the original entries with EMPTY_HOWTOs, and added new ones to fill
1698 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1699 (sh_elf_relocate_section): Likewise.
1701 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1703 * cpu-mips.c (arch_info_struct): Add mips:4K
1704 * bfd-in2.h (bfd_mach_mips4K): New define.
1705 * archures.c: Add bfd_mach_mips4K to comment.
1706 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1707 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1709 2000-09-13 Marco Franzen <marcof@thyron.com>
1711 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1712 use size_t as a counter.
1713 (som_write_space_strings): Similarly.
1715 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1717 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1719 (elf32_i860_relocate_section): Invoke new function from here.
1721 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1723 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1726 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1728 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1729 target section name instead of dumping core when the target symbol is
1732 2000-09-09 Kazu Hirata <kazu@hxi.com>
1734 * riscix.c: Remove DEFUN.
1736 2000-09-08 Nick Clifton <nickc@redhat.com>
1738 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1739 initialise flags in output bfd if the input bfd is the default
1740 architecture with the default flags.
1742 2000-09-08 Kazu Hirata <kazu@hxi.com>
1744 * archive.c: Fix formatting.
1745 * coff-arm.c: Likewise.
1746 * doc/chew.c: Likewise.
1748 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1750 * section.c (bfd_get_unique_section_name): Put a dot before the
1753 2000-09-07 Kazu Hirata <kazu@hxi.com>
1755 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1756 * elf.c: Fix formatting.
1758 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1760 * config.bfd (sh-*-linux*): Added.
1761 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1762 * targets.c: Declare them.
1763 * elf32-sh-lin.c: New file.
1764 * Makefile.am: Compile it.
1765 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1766 * configure, Makefile.in: Rebuilt.
1768 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1770 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1771 pseduo-section when determining where the TOC ends.
1773 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1774 output x_tvndx as it is only two bytes wide.
1776 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1777 reloc is 26 or 32 bits wide.
1779 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1780 for relocs that don't change anything. Also look at the full
1783 2000-09-06 Philip Blundell <philb@gnu.org>
1785 * config.bfd (arm*-*-uclinux*): New target.
1787 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1789 * configure: Rebuilt with new libtool.m4.
1791 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1793 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1794 word for variable name.
1795 * bfd-in2.h: Regenerate.
1797 2000-09-05 Nick Clifton <nickc@redhat.com>
1799 * config.in: Regenerate.
1800 * libbfd.h: Regenerate.
1801 * po/bfd.pot: Regenerate.
1802 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1805 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1807 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1809 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1811 Shared library and PIC support.
1812 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1813 (GOT_ENTRY_SIZE): New.
1814 (ELF_DYNAMIC_INTERPRETER): New.
1815 (STUB_SUFFIX): Define.
1816 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1817 (RELATIVE_DYNAMIC_RELOCS): Define.
1818 (enum elf32_hppa_stub_type): New.
1819 (struct elf32_hppa_stub_hash_entry): Rename offset to
1820 stub_offset. Add a number of new fields.
1821 (struct elf32_hppa_link_hash_entry): New.
1822 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1824 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1825 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1826 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1828 (hppa_link_hash_newfunc): New function.
1829 (elf32_hppa_link_hash_table_create): Use above function. Init new
1831 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1832 instead of addend, and remove sym_name from args. Don't use
1833 symbol name for local syms, instead use sym index.
1834 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1835 stub type rather than size. Pass in hash and handle import stub
1836 case. Also pass in reloc instead of offset so we can calculate
1837 PCREL22F and PCREL12F branches properly.
1838 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1839 import and export stubs too.
1840 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1841 import and export stub sizing.
1842 (elf32_hppa_check_relocs): New function.
1843 (elf32_hppa_adjust_dynamic_symbol): New function.
1844 (hppa_discard_copies): New function.
1845 (elf32_hppa_size_dynamic_sections): New function.
1846 (elf_backend_size_dynamic_sections): Define.
1847 (elf32_hppa_finish_dynamic_symbol): New function.
1848 (elf_backend_finish_dynamic_symbol): Define.
1849 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1850 some local vars into the link hash table too. For shared links,
1851 trundle over function syms, generating export stubs. Handle
1852 PCREL22F branches. Break out stub creation code from here..
1853 (hppa_add_stub): .. to here. New function.
1854 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1855 call the bfd linker. Use elf_gp to record global pointer.
1856 Calculate a value from sections if $global$ is missing.
1857 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1858 (elf32_hppa_gc_mark_hook): New function.
1859 (elf_backend_gc_mark_hook): Define.
1860 (elf32_hppa_gc_sweep_hook): New function.
1861 (elf_backend_gc_sweep_hook): Define.
1862 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1863 Add rel to args, and remove howto, input_bfd, offset, addend,
1864 sym_name as we can recalculate these locally. Handle calls to
1865 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1866 handling of undefined weak syms. Check that stubs are in range.
1867 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1868 message on hitting a DPREL21L reloc that needs fixing. Subtract
1869 off PC for PCREL14F. Break out code that does a stub lookup from
1871 (hppa_get_stub_entry): ..to here. New function.
1872 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1873 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1875 (elf32_hppa_finish_dynamic_sections): New function.
1876 (elf_backend_finish_dynamic_sections): Define.
1877 (elf_backend_final_write_processing) Define.
1878 (hppa_handle_PIC_calls): New function.
1879 (elf32_hppa_build_stubs): Call it. Pass link_info to
1880 hppa_build_one_stub.
1881 (elf32_hppa_create_dynamic_sections): New function
1882 to create .plt and .got then set .plt flags correctly.
1883 (elf_backend_create_dynamic_sections): Define.
1884 (elf32_hppa_object_p): New function.
1885 (elf_backend_object_p): Define.
1886 (elf32_hppa_elf_get_symbol_type): New function.
1887 (elf_backend_get_symbol_type): Define.
1888 (elf_backend_can_gc_sections): Define.
1889 (elf_backend_want_got_plt): Define.
1890 (elf_backend_plt_alignment): Set to 2.
1891 (elf_backend_plt_readonly): Define.
1892 (elf_backend_want_plt_sym): Define.
1893 (elf_backend_got_header_size): Reserve one entry.
1895 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1896 (elf32_hppa_size_stubs): Pass in multi_subspace.
1897 (elf32_hppa_set_gp): Declare.
1899 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1900 (bfd_get_unique_section_name): New function.
1901 * bfd_in2.h: Regenerate.
1903 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1904 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1907 From David Huggins-Daines <dhd@linuxcare.com>
1908 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1909 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1910 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1911 been updated in finish_dynamic_symbol before modifying function
1914 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1915 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1916 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1917 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1918 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1919 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1920 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1921 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1923 From David Huggins-Daines <dhd@linuxcare.com>
1924 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1925 style of local labels as well.
1927 2000-09-03 Philip Blundell <philb@gnu.org>
1929 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1930 references to undefined symbols in debugging sections.
1932 2000-09-02 H.J. Lu <hjl@gnu.org>
1934 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1935 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1936 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1939 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1941 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1942 (elf32_i860_is_local_label_name): New function and prototype.
1944 2000-09-02 Nick Clifton <nickc@redhat.com>
1946 * configure.in: Increase version number to 2.10.91.
1947 * configure: Regenerate.
1948 * aclocal.m4: Regenerate.
1949 * config.in: Regenerate.
1950 * po/bfd.pot: Regenerate.
1952 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1954 * elf.c (_bfd_elf_make_section_from_shdr): Add
1955 .gnu.linkobce.wi. to the list of debug section names.
1957 2000-09-02 Nick Clifton <nickc@redhat.com>
1959 * dwarf2.c (find_debug_info): New function: Locate a section
1960 containing dwarf2 debug information.
1961 (bfd_dwarf2_find_nearest_line): Find all sections containing
1962 debug information and include them in the stash.
1964 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1966 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1967 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1968 (sh_reloc_map): Add new relocs.
1969 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1970 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1971 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1972 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1974 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1975 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1976 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1977 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1978 New array constants.
1979 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1981 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1982 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1983 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1984 elf_sh_plt_reloc_offset): Define.
1985 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1986 elf_sh_link_hash_table): New structs.
1987 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1988 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1990 (elf_backend_create_dynamic_sections,
1991 bfd_elf32_bfd_link_hash_table_create,
1992 elf_backend_adjust_dynamic_symbol,
1993 elf_backend_size_dynamic_sections,
1994 elf_backend_finish_dynamic_symbol,
1995 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1996 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1997 elf_backend_got_header_size, elf_backend_plt_header_size):
1999 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2000 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2002 * bfd-in2.h, libbfd.h: Rebuilt.
2004 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2006 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2009 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2011 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2012 not initialized, set them to indicate the SH1 instruction set.
2014 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2016 * acinclude.m4: Include libtool and gettext macros from the
2018 * aclocal.m4, configure: Rebuilt.
2020 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2022 * elf.c: Eliminate references to __sparcv9 macro; replace with
2023 autoconf variables HAVE_PSINFO32_T etc.
2024 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2025 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2027 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2028 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2029 * aclocal.m4: Ditto.
2030 * configure: Regenerate.
2032 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2034 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2035 for any shared link, not just shared -Bsymbolic.
2036 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2037 any shared link, and pass link info to it.
2038 (elf_i386_size_dynamic_sections): Update comment.
2039 (elf_i386_discard_copies): Modify to discard relocs for symbols
2040 that have been forced local.
2041 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2042 that have been forced local.
2044 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2046 * elflink.h (elf_link_add_object_symbols): Allow common
2047 symbols to have an alignment of 1 if explicitly requested, and
2048 not overridden by other definitions.
2050 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2052 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2053 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2055 2000-08-22 H.J. Lu <hjl@gnu.org>
2057 * elf-bfd.h (elf_link_hash_table): Add runpath.
2059 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2060 * bfd-in2.h: Rebuilt.
2062 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2063 "runpath" field to NULL.
2064 (bfd_elf_get_runpath_list): New function.
2066 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2069 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2071 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2072 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2073 explicitly. Improve validation of r_type.
2075 2000-08-21 H.J. Lu <hjl@gnu.org>
2077 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2078 dynamic allocated content space. Add a comment to remind us that
2079 one day this ought to be fixed.
2080 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2081 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2082 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2084 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2086 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2087 field with the newly relocated value instead of adding it to the
2088 existing immediate field.
2089 (elf32_i860_relocate_splitn): Likewise.
2090 (elf32_i860_relocate_highadj): Likewise.
2092 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2094 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2095 was previously just a stub).
2097 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2099 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2101 (_bfd_elf_create_dynamic_sections): Likewise.
2103 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2105 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2106 for undefined symbols to be the beginning of the section.
2108 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2109 four extra entries at the beginning of the .rela.plt section.
2110 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2111 section to account for the four reserved entries in the .plt section.
2113 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2115 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2116 to the list of NOPs we recognize after a branch-and-link.
2117 Use the ori NOP when one is needed.
2119 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2122 2000-08-14 Jim Wilson <wilson@cygnus.com>
2124 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2125 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2126 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2129 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2131 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2133 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2135 * elf32-i860.c (elf32_i860_relocate_section): New function.
2136 (i860_final_link_relocate): New function.
2137 (elf32_i860_relocate_splitn): New function.
2138 (elf32_i860_relocate_pc16): New function.
2139 (elf32_i860_relocate_highadj): New function.
2140 (elf32_i860_howto): Minor adjustments to some relocations.
2141 (elf_info_to_howto_rel): Define.
2142 (elf_backend_relocate_section): Define.
2144 2000-08-10 Nick Clifton <nickc@cygnus.com>
2146 * elf32-arm.h: Fix formatting.
2148 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2150 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2152 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2154 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2156 2000-08-07 Kazu Hirata <kazu@hxi.com>
2158 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2159 * elf64-ia64.c: Fix a typo.
2161 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2163 * elf32-i860 (elf32_i860_howto_table): New structure.
2164 (lookup_howto): New function.
2165 (elf32_i860_reloc_type_lookup): New function.
2166 (elf32_i860_info_to_howto_rela): New function.
2167 (elf_code_to_howto_index): New structure.
2168 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2169 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2170 elf32_i860_reloc_type_lookup.
2172 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2174 * som.c (struct fixup_format): Constify `format'.
2175 (som_hppa_howto_table): Use SOM_HOWTO macro.
2176 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2177 (som_bfd_reloc_type_lookup): Likewise.
2178 (compare_subspaces): Remove unused `count1', `count2'.
2179 (som_begin_writing): Remove unused `total_reloc_size'.
2180 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2181 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2182 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2183 (som_find_nearest_line): Decorate unused parameter(s).
2184 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2185 (som_bfd_link_split_section): Likewise.
2187 2000-08-03 Nick Clifton <nickc@cygnus.com>
2189 * section.c: Restore backed out code.
2190 * elf.c: Restore backed out code.
2191 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2192 binaries from working.
2193 * bfd-in2.h: Regenerate.
2195 2000-08-03 H.J. Lu <hjl@gnu.org>
2197 * section.c: Back out the change made by Nick Clifton
2198 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2200 * bfd-in2.h: Likewise.
2203 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2205 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2207 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2209 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2210 * bfd-in2.h, libbfd.h: Regenerate.
2212 2000-07-31 Nick Clifton <nickc@cygnus.com>
2214 * section.c (struct sec): Add new boolean field 'segment_mark'.
2215 (STD_SECTION): Initialise new field to zero.
2217 * bfd-in2.h: Regenerate.
2219 * elf.c (copy_private_bfd_data): Reorganise section to segment
2220 mapping to cope with moved sections requiring new segments,
2221 and overlapping segments.
2222 (SEGMENT_END): New macro: Return the end address of a segment.
2223 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2224 contains a section by comparing their VMA addresses.
2225 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2226 contains a section by comparing their LMA addresses.
2227 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2228 section should be included in a segment.
2229 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2230 follows another in memory.
2231 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2234 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2236 * cpu-i860.c: Added comments.
2238 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2239 bfd_elf32_i860_little_vec.
2240 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2241 (ELF_MAXPAGESIZE): Changed to 4096.
2243 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2245 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2247 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2248 config for little endian elf32 i860.
2249 (targ_defvec): Define for the new config above
2250 as "bfd_elf32_i860_little_vec".
2251 (targ_selvecs): Define for the new config above
2252 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2254 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2257 * configure: Regenerated.
2259 2000-07-27 H.J. Lu <hjl@gnu.org>
2261 * elflink.h (elf_merge_symbol): Take one more argument,
2262 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2263 entry. Don't overide the existing weak definition if dt_needed
2265 (elf_link_add_object_symbols): Pass dt_needed to
2266 elf_merge_symbol ().
2268 2000-07-27 Nick Clifton <nickc@cygnus.com>
2270 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2273 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2275 * configure.host (*-*-aix*): AIX has 'long long' always.
2277 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2278 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2279 (xcoff_write_archive_contents_big): Don't update the offset
2280 of the symbol table, xcoff_write_armap will do it.
2282 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2284 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2285 of dynobj for SGI_COMPAT checks.
2287 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2289 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2290 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2291 * bfd-in2.h: Regenerate.
2293 2000-07-21 Nick Clifton <nickc@cygnus.com>
2295 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2296 range symbol indices in relocs and issue an error message.
2298 2000-07-20 H.J. Lu <hjl@gnu.org>
2300 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2301 info->new_dtags when setting DT_FLAGS_1. It will only be set
2302 by the new linker options. It shouldn't break anything.
2304 2000-07-20 H.J. Lu <hjl@gnu.org>
2306 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2307 only if info->new_dtags is true.
2309 2000-07-20 H.J. Lu <hjl@gnu.org>
2311 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2312 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2314 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2316 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2317 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2318 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2319 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2320 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2321 * Makefile.in: Rebuild.
2322 * aclocal.m4: Rebuild.
2323 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2324 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2325 (bfd_cris_arch): Declare.
2326 (bfd_archures_list): Add bfd_cris_arch.
2327 * bfd-in2.h: Rebuild.
2328 * config.bfd: (cris-*-*): New target.
2329 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2330 * configure: Rebuild.
2331 * elf.c (prep_headers): Add bfd_arch_cris.
2332 * libbfd.h: Rebuild.
2333 * libaout.h (enum machine_type): Add M_CRIS.
2334 * reloc.c: Add CRIS relocations.
2335 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2336 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2337 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2338 * po/POTFILES.in, po/bfd.pot: Regenerate.
2340 2000-07-19 H.J. Lu <hjl@gnu.org>
2342 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2343 DF_TEXTREL if DT_TEXTREL is set.
2344 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2345 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2346 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2347 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2348 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2349 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2350 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2351 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2352 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2353 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2355 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2356 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2358 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2360 2000-07-19 H.J. Lu <hjl@gnu.org>
2362 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2363 * bfd-in2.h: Rebuild.
2365 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2366 (elf_dt_soname): New.
2368 * elf.c (bfd_elf_set_dt_needed_soname): New.
2370 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2371 entry if the shared object loaded by DT_NEEDED is used to
2372 resolve the reference in a regular object.
2374 2000-07-19 H.J. Lu <hjl@gnu.org>
2376 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2377 DT_DEPAUDIT and DT_AUDIT as strings.
2379 2000-07-19 Nick Clifton <nickc@cygnus.com>
2381 * format.c: Fix formatting.
2383 2000-07-19 H.J. Lu <hjl@gnu.org>
2385 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2387 2000-07-19 H.J. Lu <hjl@gnu.org>
2389 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2390 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2391 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2392 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2393 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2394 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2395 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2397 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2399 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2400 renamed functions from here...
2401 (assign_section_numbers): Use renamed functions.
2402 (prep_headers): Use renamed functions.
2404 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2405 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2406 * bfd-in2.h: Regenerate.
2408 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2410 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2411 parenthesis in if statement.
2413 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2415 Enable the support for Traditional MIPS.
2416 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2417 return ict_none appropriately for traditional mips targets.
2418 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2419 (STUB_MOVE): Conditionalize for traditonal mips.
2420 (STUB_LI16): Likewise.
2421 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2422 room for RTPROC header.
2423 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2424 the permission for the PT_DYNAMIC as read, write and execute.
2425 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2426 for traditonal mips.
2427 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2428 _DYNAMIC_LINKING for traditonal mips.
2429 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2430 in case of traditonal mips.
2431 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2432 entry is required. For a function if PLT is not required then set the
2433 corresponding hash table entry to 0.
2434 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2436 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2437 shared object set the value to 0.
2438 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2439 _DYNAMIC_LINKING for traditonal mips.
2440 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2441 for traditonal mips.
2443 2000-07-15 H.J. Lu <hjl@gnu.org>
2445 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2447 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2449 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2450 out a structure that is BFD_IN_MEMORY.
2452 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2454 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2455 bfd pointer. Print section id instead of bfd pointer for local
2456 syms. Prefix addend with `+' for global syms as well as local.
2457 Correct calculation of name component lengths.
2458 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2460 From David Huggins-Daines <dhd@linuxcare.com>
2461 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2462 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2463 (elf64_hppa_modify_segment_map): Likewise.
2465 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2467 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2468 addresses to be "naturally" sign extended. Return -1 if unknown.
2469 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2470 * bfd-in2.h: Regenerate.
2472 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2474 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2475 and ECOF_SIGNED_64 to list ways to extract an offset.
2476 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2477 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2479 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2480 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2482 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2484 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2485 bfd_get_start_address.
2486 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2487 (elf_swap_ehdr_out): Ditto.
2489 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2491 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2492 compatibility with older binutils.
2494 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2496 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2497 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2499 From Ryan Bradetich <rbradetich@uswest.net>
2500 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2501 (parse_line_table): Ditto.
2502 (_bfd_dwarf1_find_nearest_line): Ditto.
2503 * syms.c (cmpindexentry): Remove extra `*' from params.
2505 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2507 * elf32-mips.c (sort_dynamic_relocs): New Function.
2508 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2509 via qsort to sort the dynamic relocations in increasing r_symndx
2512 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2514 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2515 ATTRIBUTE_UNUSED to unused args.
2516 (get_opd): Likewise.
2517 (get_plt): Likewise.
2518 (get_dlt): Likewise.
2519 (get_stub): Likewise.
2520 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2521 (elf64_hppa_link_output_symbol_hook): Likewise.
2522 (elf64_hppa_check_relocs): Delete unused var.
2523 (elf64_hppa_size_dynamic_sections): Likewise.
2524 (elf64_hppa_finalize_opd): Likewise.
2525 (elf64_hppa_finalize_dynreloc): Likewise.
2526 (elf64_hppa_modify_segment_map): Likewise.
2527 (elf64_hppa_finish_dynamic_sections): Likewise.
2529 * elf-hppa.h (elf_hppa_final_write_processing): Add
2530 ATTRIBUTE_UNUSED to unused args.
2531 (elf_hppa_final_link_relocate): Likewise.
2532 (elf_hppa_record_segment_addrs): Add paretheses.
2533 (elf_hppa_relocate_section): Constify dyn_name.
2535 From David Huggins-Daines <dhd@linuxcare.com>
2536 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2537 rearrange case statement so that it gets preferred to 32-bit ones.
2539 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2540 asection->id instead of address of asection structure.
2541 (elf32_hppa_size_stubs): Likewise.
2543 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2544 for .init* and .fini*.
2546 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2547 and addends used in stub names to 32 bits.
2548 (elf32_hppa_size_stubs): Likewise.
2550 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2551 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2552 not bfd_put_64. Fix minor comment typo and formatting.
2554 Changes to create multiple linker stubs, positioned immediately
2555 before the section where they are required.
2556 * elf32-hppa.c: Don't include hppa_stubs.h.
2557 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2558 (elf32_hppa_stub_hash_table): Delete.
2559 (elf32_hppa_link_hash_entry): Delete.
2560 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2561 stub_hash_table, and store the struct here rather than a pointer.
2562 Delete output_symbol_count. Add offset array. Change
2563 global_value to a bfd_vma.
2564 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2565 (elf32_hppa_stub_hash_traverse): Delete.
2566 (elf32_hppa_name_of_stub): Delete.
2567 (elf32_hppa_link_hash_lookup): Delete.
2568 (elf32_hppa_link_hash_traverse): Delete.
2569 (elf32_hppa_stub_hash_table_init): Delete.
2570 (elf32_hppa_size_of_stub): Pass input section and offset rather
2571 than location and calculate location here. Don't pass name as all
2572 stubs are now the same size.
2573 (elf32_hppa_stub_hash_newfunc): Init new fields.
2574 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2576 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2577 comparing against ints. Rewrite stub handling code.
2578 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2579 Case enums to int before comparing against ints. Remove
2580 bfd_reloc_dangerous case.
2581 (elf32_hppa_build_one_stub): Rewrite.
2582 (elf32_hppa_size_one_stub): New function.
2583 (elf32_hppa_build_stubs): Rewrite.
2584 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2585 Rewrite stub-handling specific code.
2587 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2589 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2591 * hppa_stubs.h: Delete.
2592 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2593 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2594 * Makefile.in: Regenerate.
2596 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2599 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2601 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2602 and section name for bfd_reloc_notsupported error message.
2603 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2604 bfd_reloc_notsupported.
2605 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2607 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2608 undefined weak symbols for all relocs.
2609 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2610 offsets are relative to one past the delay slot.
2611 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2612 branch destination. Put addend into stub name too.
2613 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2614 adjust by 8 when deciding whether a linker stub is needed. Put
2615 addend into stub name as for above.
2617 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2618 various args and vars.
2619 (elf32_hppa_bfd_final_link_relocate): Here too.
2620 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2621 inner block var to avoid shadowing.
2623 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2625 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2626 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2627 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2629 * libhppa.h: Change practically all unsigned ints to plain ints.
2630 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2633 From Ryan Bradetich <rbradetich@uswest.net>
2634 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2635 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2637 From David Huggins-Daines <dhd@linuxcare.com>
2638 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2639 to the new OP_* ones.
2641 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2642 error exit. Bail out earlier on plabel relocs that we aren't
2643 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2644 string, and then don't free our copy.
2645 (elf32_hppa_build_one_stub): Make insn unsigned int.
2647 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2648 available with BL, not BE and BLE.
2650 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2651 code for elf arg relocs.
2652 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2653 argument with elf_link_hash_entry h. Handle undefined weak
2654 symbols. Move $global$ lookup from here...
2655 (elf32_hppa_relocate_section): ...to here. Return correct error
2656 message for non-handled relocs.
2657 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2658 wrong test was -0x3ffff to +0x40000.
2660 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2661 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2662 Handle them as such.
2663 (elf_hppa_relocate_insn): Fix a typo.
2665 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2666 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2667 assemble_17, assemble_21): Delete.
2668 Supply defines for all 64 possible opcodes.
2669 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2670 formats. Handle COMICLR.
2671 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2674 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2675 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2676 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2678 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2679 the local syms - did this code get deleted accidentally? Ignore
2680 undefined and undefweak syms.
2682 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2683 block. Use it instead of elf64_hppa_hash_table (info).
2684 (elf_hppa_final_link_relocate): Use hppa_info instead of
2685 elf64_hppa_hash_table (info).
2687 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2688 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2689 (hppa_rebuild_insn): Mask immediate bits here instead.
2690 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2692 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2694 * section.c (struct sec): Add id field. Tidy comment formatting.
2695 (bfd_make_section_anyway): Set id.
2696 (STD_SECTION): Init id too.
2697 Change CONST to const throughout.
2698 * archures.c (bfd_arch_info): Tidy comment.
2699 (bfd_arch_list): Change a CONST to const.
2700 * libbfd-in.h: Tidy comments and replace CONST with const.
2701 * elf-bfd.h: Likewise.
2702 * libbfd.h: Regenerate.
2703 * bfd-in2.h: Regenerate.
2704 * libcoff.h: Regenerate.
2706 2000-07-07 DJ Delorie <dj@redhat.com>
2708 * archive.c (_bfd_write_archive_contents): Add an informative
2711 2000-07-06 Kazu Hirata <kazu@hxi.com>
2713 * srec.c: Fix formatting.
2715 2000-06-05 DJ Delorie <dj@redhat.com>
2719 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2721 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2722 value of PC-relative offsets.
2724 2000-07-03 Jim Wilson <wilson@cygnus.com>
2726 * elf64-alpha.c (alpha_elf_size_info): New.
2727 (elf_backend_size_info): Define to alpha_elf_size_info.
2728 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2730 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2732 * elf32-mips.c: Include elf32-target.h again for the traditional
2735 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2737 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2738 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2739 (avr_info_to_howto_rela): Likewise.
2740 (elf32_avr_gc_mark_hook): Likewise.
2741 (elf32_avr_gc_sweep_hook): Likewise.
2742 (elf32_avr_relocate_section): Likewise.
2744 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2746 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2747 an external symbol for a non-shared, non-relocatable link.
2749 2000-07-03 Nick Clifton <nickc@redhat.com>
2751 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2752 is an external symbol.
2753 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2756 2000-07-03 Kazu Hirata <kazu@hxi.com>
2758 * reloc16.c: Fix formatting.
2760 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2762 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2763 to add a new target for traditional mips i.e
2764 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2765 * configure.in: Likewise.
2766 * configure: Rebuild.
2767 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2769 (bfd_elf32_tradlittlemips_vec): Likewise.
2770 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2771 to see that elfNN_bed does not get redefined even if the target file
2772 is included twice for a chip. See elf32-mips.c.
2774 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2776 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2777 (CLEANFILES): Add DEPA.
2778 * Makefile.in: Regenerate.
2780 2000-06-30 DJ Delorie <dj@cygnus.com>
2782 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2783 can't assume the PE header is at 0x80.
2785 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2787 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2789 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2791 * go32stub.h: Update stub.
2793 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2795 * archures.c (bfd_mach_avr5): Define.
2796 * bfd-in2.h (bfd_mach_avr5): Define.
2797 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2798 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2799 (compatible): Update comment. Add missing test.
2800 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2801 for avr2 and avr4. Simplify 8K wrap code.
2802 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2803 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2805 2000-06-26 Kazu Hirata <kazu@hxi.com>
2807 * coff-h8300.c: Fix formatting.
2808 * cpu-h8300.c: Likewise.
2810 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2812 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2813 for local symbols whose names are unknown.
2815 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2817 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2819 * Makefile.in: Regenerate.
2820 * doc/Makefile.in: Regenerate.
2822 2000-06-20 H.J. Lu <hjl@gnu.org>
2824 * Makefile.am: Rebuild dependency.
2825 * Makefile.in: Rebuild.
2827 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2829 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2830 (elf_backend_copy_indirect_symbol): Map to the new function.
2832 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2834 * archive.c (normalize): Correct pointer comparison when checking
2836 (bfd_bsd_truncate_arname): Likewise.
2837 (bfd_gnu_truncate_arname): Likewise.
2839 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2841 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2842 sections elf_{text,data}_{section,symbol}.
2843 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2844 (_bfd_mips_elf_hide_symbol): New function.
2845 (elf_backend_hide_symbol): Map to the new function.
2846 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2847 definitions of mips_elf_{text,data}_{section,symbol}.
2848 (mips_elf_local_relocation_p): Try to find the direct symbol
2849 based on new check_forced argument.
2850 (mips_elf_calculate_relocation): Use new version of
2851 mips_elf_local_relocation_p.
2852 (mips_elf_relocate_section): Likewise.
2853 (_bfd_mips_elf_relocate_section): Likewise.
2854 (mips_elf_sort_hash_table): Only assert that have enough GOT
2856 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2857 entry if the relocation based on the new external argument.
2858 (mips_elf_create_dynamic_relocation): Assert that we have a
2859 section contents allocated where we can swap out the dynamic
2861 (mips_elf_calculate_relocation): Find the real hash-table entry
2862 correctly by using h->root.root.type. Only create a dynamic
2863 relocation entry if the symbol is defined in a shared library.
2864 Create an external GOT entry for the GOT16 relocation if the
2865 symbol was forced local.
2866 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2867 dynamic index if the symbol was forced local.
2869 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2871 * elf32-mips.c: Fix typos in comments.
2873 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2875 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2878 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2880 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2881 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2882 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2883 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2884 (bfd_elf32_m68hc11_vec): Likewise.
2885 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2886 Supports 68hc11 & 68hc12 at the same time.
2887 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2889 (bfd_elf32_m68hc11_vec): Likewise.
2890 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2891 * archures.c (bfd_m68hc12_arch): Define and register in global list
2892 (bfd_m68hc11_arch): Likewise.
2893 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2894 BFD_RELOC_M68HC11_3B): Define.
2895 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2896 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2898 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2900 * elf_bfd.h (struct elf_backend_data): Add info argument to
2901 elf_backend_hide_symbol.
2902 (_bfd_elf_link_hash_hide_symbol): Likewise.
2903 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2904 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2905 * elflink.h (elf_link_add_object_symbols): Likewise.
2906 (elf_link_assign_sym_version): Likewise.
2908 2000-06-18 H.J. Lu <hjl@gnu.org>
2910 * coff-i386.c (coff_i386_reloc): Don't return in case of
2911 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2912 Compensate PE relocations when linking with non-PE object
2913 files to generate a non-PE executable.
2915 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2917 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2918 GOT entries if we're doing a static link or -Bsymbolic link.
2920 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2922 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2923 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2925 (elf_link_output_relocs): Likewise.
2926 (elf_reloc_link_order): Likewise.
2928 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2930 * archures.c (enum bfd_architecture): #define constants for
2931 PowerPc and RS6000 machine numbers.
2932 * bfd-in2.h: Regenerate.
2933 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2934 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2935 and RS6000 machine numbers using #defined constants from
2937 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2938 machine numbers using #defined constants from archures.c. Add
2939 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2940 64-bit words in 620 entry.
2941 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2943 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2945 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2947 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2948 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2949 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2951 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2953 * bfd-in.h (bfd_family_coff): Define.
2954 * bfd-in2.h: Regenerate.
2955 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2956 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2957 instead of bfd_target_coff_flavour.
2958 * cofflink.c (_bfd_coff_final_link): Likewise.
2959 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2960 exclude XCOFF files.
2961 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2963 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2964 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2965 * xcofflink.c (XCOFF_XVECP): Delete.
2966 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2967 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2968 bfd_xcoff_record_link_assignment,
2969 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2970 check for bfd_target_xcoff_flavour.
2972 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2974 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2976 (read_hdr): New function.
2977 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2978 of trying to extract individual registers. Set abfd->arch_info
2979 to match the architecture that created the core file.
2980 (rs6000coff_get_section_contents): Delete.
2981 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2983 2000-06-14 H.J. Lu <hjl@gnu.org>
2985 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2988 2000-06-13 H.J. Lu <hjl@gnu.org>
2990 * configure: Regenerate.
2992 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2994 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2997 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2999 * configure.in (VERSION): Update to show this is the CVS mainline.
3001 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3003 * elf32-d10v.c: Include elf/d10v.h
3004 (enum reloc_type): Delete.
3005 * elf32-d30v.c: Include elf/d30v.h
3006 (enum reloc_type): Delete.
3008 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3009 * Makefile.in: Regenerate.
3011 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3012 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3013 move HOWTOs into elf_howto_table.
3014 (R_386_standard, R_386_ext_offset): Define.
3015 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3016 (elf_i386_reloc_type_lookup): Modify calculation of index into
3017 elf_howto_table since we've removed the padding.
3018 (elf_i386_info_to_howto_rel): Likewise.
3019 (elf_i386_relocate_section): Likewise.
3021 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3023 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3025 2000-06-05 H.J. Lu <hjl@gnu.org>
3027 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3028 an error when seeing an undefined symbol with hidden/internal
3029 attribute. It is handled in *_relocate_section ().
3031 2000-06-05 H.J. Lu <hjl@gnu.org>
3033 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3034 indirect symbol for the ELF_LINK_NON_ELF bit.
3035 (elf_link_output_extsym): Don't output the indirect symbol even
3036 if the ELF_LINK_NON_ELF bit is set.
3038 2000-06-01 J.T. Conklin <jtc@redback.com>
3040 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3041 (i[3456]86-*-netbsdaout*): New target.
3042 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3043 (i[3456]86-*-openbsd*): Likewise.
3045 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3047 * trad-core.c: From hpux-core.c, include <dirent.h> or
3048 <sys/ndir.h> when possible.
3050 2000-05-31 Nick Clifton <nickc@cygnus.com>
3052 * opintl.h (_(String)): Explain why dgettext is used instead
3055 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3057 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3058 definitions. We must not assume they are sorted in the file
3059 according to their index numbers.
3061 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3063 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3064 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3065 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3067 2000-05-30 Nick Clifton <nickc@cygnus.com>
3069 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3070 80960CA, 80960MC as valid machine names.
3072 2000-05-30 H.J. Lu <hjl@gnu.org>
3074 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3075 visibility bits if the symbol is undefined. Correctly handle
3076 weak undefined symbols with hidden and internal attributes.
3078 * elflink.h (elf_link_add_object_symbols): Always turn the
3079 symbol into local if it has the hidden or internal attribute.
3081 2000-05-29 Philip Blundell <philb@gnu.org>
3083 * ppcboot.c: Add packed attribute if compiling with GCC.
3085 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3087 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3089 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3091 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3092 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3093 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3096 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3098 * Makefile.am: Update dependencies with "make dep-am"
3099 * Makefile.in: Regenerate.
3101 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3102 bindtextdomain): Replace defines with those from intl/libgettext.h
3103 to quieten gcc warnings.
3105 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3107 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3109 * archive.c (normalize, bfd_bsd_truncate_arname,
3110 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3111 file names with backslashes.
3113 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3116 * sysdep.h: Include filenames.h.
3118 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3120 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3122 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3124 * elf64-sparc.c (sparc64_elf_relax_section): New.
3125 (sparc64_elf_relocate_section): Optimize tail call into branch always
3127 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3128 (elf32_sparc_relax_section): New.
3130 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3132 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3133 Remove unusued variables.
3134 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3135 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3136 previous fix, so that shared libs really don't influence targets
3137 extension mask and memory model.
3139 2000-05-23 H.J. Lu <hjl@gnu.org>
3141 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3142 h->root.other not h->other.
3143 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3145 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3147 2000-05-23 H.J. Lu <hjl@gnu.org>
3149 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3150 undefined symbol with the non-default visibility attributes.
3151 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3152 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3153 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3154 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3155 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3156 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3157 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3158 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3159 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3160 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3161 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3163 2000-05-22 Richard Henderson <rth@cygnus.com>
3165 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3166 PCREL22, PCREL64I. Zero size of special relocs.
3167 (elf64_ia64_reloc_type_lookup): Likewise.
3168 (USE_BRL, oor_brl, oor_ip): New.
3169 (elf64_ia64_relax_section): New.
3170 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3171 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3172 (elf64_ia64_relocate_section): Likewise.
3173 (bfd_elf64_bfd_relax_section): New.
3174 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3175 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3176 * bfd-in2.h, libbfd.h: Regenerate.
3178 2000-05-22 Nick Clifton <nickc@cygnus.com>
3180 * configure.in : Add peigen.lo to MIPS PE targets.
3181 * configure: Regenerate.
3183 2000-05-22 Momchil Velikov <velco@fadata.bg>
3185 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3186 only if it is known for both input and output bfds. Separate
3187 error message strings as in some languages, it may be necessary
3188 to change more than one place in the string to change between
3191 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3192 endianess checks, call _bfd_generic_verify_endian_match() instead.
3194 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3196 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3198 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3199 endianess before checking bfd flavours.
3201 2000-05-22 H.J. Lu <hjl@gnu.org>
3203 * elflink.h (elf_link_output_extsym): Clear the visibility
3204 field for symbols not defined locally.
3206 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3208 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3209 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3210 (hppa_rebuild_insn): Mask immediate bits here instead.
3211 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3213 2000-05-18 Momchil Velikov <velco@fadata.bg>
3215 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3216 relocs for an executable, ensure that they are virtual addresses.
3218 2000-05-18 Jeffrey A Law (law@cygnus.com)
3220 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3222 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3223 Rick Gorton <gorton@scrugs.lkg.dec.com>
3225 * elflink.h: Add emitrelocations support: when enabled, relocation
3226 information and relocation sections are put into final output
3227 executables. If the emitrelocations flag is set, do the following:
3228 (elf_bfd_final_link): Emit relocation sections.
3229 (elf_link_input_bfd): Compute relocation section contents.
3230 (elf_gc_sections): Don't clean relocation sections.
3232 2000-05-16 Catherine Moore <clm@cygnus.com>
3234 * som.c (som_decode_symclass): Recognize weak symbols.
3236 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3238 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3239 read idata section only from dataoff.
3240 (pe_print_edata): Correctly check for valid eat_member.
3242 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3244 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3246 2000-05-14 Philip Blundell <philb@gnu.org>
3248 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3250 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3252 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3254 * peigen.c (pe_print_idata): Look for .idata section and print
3255 info even if data directory has zero entries. Read idata section
3256 starting from dataoff, and adjust all data offsets to suit. Cast
3257 all bfd_vma vars to unsigned long before passing to fprintf.
3258 * peigen.c (pe_print_edata): Similarly, look for .edata section
3259 and print info even if data directory has zero entries. Cast
3260 all bfd_vma vars to unsigned long before passing to fprintf.
3262 From Szabolcs Szakacsits <szaka@F-Secure.com>
3263 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3264 directory size which may be bogus.
3265 * peigen.c (pe_print_edata): Similarly.
3267 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3269 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3271 (copy_private_bfd_data): Allow for space possibly taken up by elf
3272 headers when calculating segment physical address from lma.
3274 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3276 * versados.c (versados_scan): Init stringlen and pass_2_done.
3278 * trad-core.c (trad_unix_core_file_p): Return
3279 bfd_error_wrong_format rather than bfd_error_file_truncated.
3281 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3282 add_data_entry. DataDirectory virtual address is relative.
3283 (pe_print_idata): Account for relative DataDirectory virtual
3284 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3285 (pe_print_edata): Similarly.
3287 From Szabolcs Szakacsits <szaka@F-Secure.com>
3288 * peigen.c (dir_names): Add Delay Import Directory.
3289 (pe_print_idata): Always search for bfd section containing
3290 idata address rather than looking up section name. Print this
3291 section name rather than .idata.
3292 (pe_print_edata): Similarly. Also print some fields as %08lx.
3293 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3296 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3298 * xcoff.h: Rename to xcoff-target.h
3299 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3300 * coff-rs6000.c: Ditto.
3301 * coff64-rs6000.c: Ditto.
3302 * coff-pmac.c: Ditto.
3303 * Makefile.in: Regenerate.
3305 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3307 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3308 Change U802TOC64MAGIC to U803XTOCMAGIC.
3310 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3312 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3313 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3314 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3316 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3318 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3320 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3322 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3323 hidden and internal symbols.
3324 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3326 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3327 assign a PLT or GOT entry to symbols with hidden and
3328 internal visibility.
3330 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3332 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3334 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3336 2000-05-02 H.J. Lu <hjl@gnu.org>
3338 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3341 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3343 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3344 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3346 * Makefile.in: Regenerate.
3348 2000-05-01 Jim Wilson <wilson@cygnus.com>
3350 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3351 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3352 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3353 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3354 * Makefile.in: Rebuild.
3356 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3358 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3359 doesn't work very well.
3361 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3362 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3363 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3364 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3365 (elf_hppa_info_to_howto): Likewise.
3366 (elf_hppa_info_to_howto_rel): Likewise.
3367 (elf_hppa_reloc_type_lookup): Likewise.
3368 (elf_hppa_is_local_label_name): Likewise.
3369 (elf_hppa_fake_sections): Likewise.
3370 (elf_hppa_final_write_processing): Likewise.
3371 (elf_hppa_howto_table): Fully initialise all entries.
3372 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3373 (elf_hppa_info_to_howto): Likewise.
3374 (elf_hppa_info_to_howto_rel): Likewise.
3375 (elf_hppa_reloc_type_lookup): Likewise.
3376 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3377 elf_hppa_unmark_useless_dynamic_symbols,
3378 elf_hppa_remark_useless_dynamic_symbols,
3379 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3380 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3381 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3382 elf32-hppa.c mess is cleaned up.
3383 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3384 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3385 r_field then call hppa_field_adjust inline func with variable
3386 r_field arg, instead call hppa_field_adjust with fixed arg.
3387 In case R_PARISC_PCREL22F, don't set r_field.
3388 (elf_hppa_relocate_insn): Change args and return type to unsigned
3389 int. Call re_assemble_* funcs to do the work.
3391 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3394 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3396 (sign_extend): Mask first before sign extending.
3397 (low_sign_extend): Rewrite without condition expression.
3398 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3399 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3400 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3401 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3402 result as function return value rather than through pointer arg.
3403 Accept unsigned int args, and return unsigned int.
3404 (re_assemble_3): New. Combines function of dis_assemble_3 with
3405 re-assembly of opcode and immediate.
3406 (re_assemble_12): Likewise.
3407 (re_assemble_16): Likewise.
3408 (re_assemble_17): Likewise.
3409 (re_assemble_21): Likewise.
3410 (re_assemble_22): Likewise.
3411 (hppa_field_adjust): Rewrite and document, paying attention to
3412 size of types and signed/unsigned issues.
3413 (get_opcode): Shift before masking.
3414 (FDLW): Rename to FLDW.
3415 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3416 (hppa_rebuild_insn): Change args and return value to unsigned
3417 int. Make use of re_assemble_*. Correct case 11.
3419 * dep-in.sed: Handle ../opcodes/.
3420 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3421 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3422 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3423 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3424 elfarm-nabi.lo dependencies outside of auto-dependency area.
3425 Regenerate dependencies.
3426 * Makefile.in: Regenerate.
3428 * configure.in (TRAD_HEADER): Test non-null before
3430 * configure: Regenerate.
3432 * reloc.c: Fix mis-spelling in comment.
3434 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3436 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3437 * vms.c (vms_openr_next_archived_file): Return NULL.
3439 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3441 * coffcode.h Copy changes mistakenly done to libcoff.h in
3444 2000-04-29 Andreas Jaeger <aj@suse.de>
3446 * libbfd-in.h: Correctly check GCC version.
3447 * bfd-in.h: Likewise.
3448 * libhppa.h: Likewise.
3449 * libbfd.h: Regenerate.
3450 * bfd-in2.h: Regenerate.
3452 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3454 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3455 coffdu-rs6000.{lo,c}.
3456 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3458 * Makefile.in: Regenerate.
3459 * xcoff.h: New file.
3460 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3461 * coff-rs6000.c: Move all declarations and defines that are
3462 common to the xcoff backends into xcoff.h
3463 * coff64-rs6000.c: Ditto,
3465 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3467 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3468 _bfd_coff_force_symnames in strings and
3469 _bfd_coff_debug_string_prefix_length to their default values.
3470 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3472 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3474 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3475 _bfd_coff_force_symnames in strings and
3476 _bfd_coff_debug_string_prefix_length to their default values.
3478 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3480 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3481 Check local_got_refcounts before dereferencing.
3483 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3484 before deciding we don't need R_PPC_PLT32 relocation.
3485 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3488 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3490 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3492 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3493 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3494 (elf_i386_relocate_section): Allow for .plt to go missing.
3495 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3496 can use a relative reloc for got as elf_i386_relocate_section.
3497 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3499 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3501 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3503 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3505 * Makefile.am (coff64-rs6000.lo): New rule.
3506 * Makefile.in: Regenerate.
3507 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3508 xcoff_is_local_label_name, xcoff_rtype2howto,
3509 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3510 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3511 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3512 (NO_COFF_SYMBOLS): Define.
3513 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3514 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3516 (MINUS_ONE): New macro.
3517 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3519 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3520 coff_SWAP_aux_out): Map to the new functions.
3521 * coff64-rs6000.c: New file.
3522 * libcoff.h (bfd_coff_backend_data): Add new fields
3523 _bfd_coff_force_symnames_in_strings and
3524 _bfd_coff_debug_string_prefix_length.
3525 (bfd_coff_force_symnames_in_strings,
3526 bfd_coff_debug_string_prefix_length): New macros for above fields.
3527 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3528 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3529 of using coff_swap_sym_in directly.
3530 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3531 (coff_set_flags) Set magic for XCOFF64.
3532 (coff_compute_section_file_positions): Add symbol name length to
3533 string section length if bfd_coff_debug_string_prefix_length is
3535 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3536 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3537 using coff_swap_lineno_in directly.
3538 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3539 and _bfd_coff_debug_string_prefix_length fields.
3540 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3541 symbol names into strings table when
3542 bfd_coff_force_symnames_in_strings is true.
3543 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3544 SET_RELOC_VADDR): New macros.
3545 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3546 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3548 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3549 changes within RS6000COFF_C specific code.
3550 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3551 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3552 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3553 Extend existing hack on target name.
3554 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3556 * coff-tic54x.c (ticof): Keep up to date with new fields
3557 in bfd_coff_backend_data.
3558 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3559 targ_selvecs to include rs6000coff64_vec for rs6000.
3560 * configure.in: Add rs6000coff64_vec case.
3561 * cpu-powerpc.c: New bfd_arch_info_type.
3563 2000-04-24 Jeffrey A Law (law@cygnus.com)
3565 * config.bfd: Only disable elf32-hppa vectors, not all of the
3566 BSD and OSF configuration support. Provide (disabled) clauses
3568 * configure.in: Add clause for PA64 support.
3569 * configure: Rebuilt.
3571 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3572 (bfd_elf64_hppa_vec): Declare.
3574 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3575 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3576 (elf64-hppa.lo): Add dependencies.
3577 * Makefile.in: Rebuilt.
3579 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3581 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3583 * libhppa.h (dis_assemble_16): New function.
3584 (pa_arch): Added pa20w element.
3586 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3588 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3589 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3590 bfd_elf64_slurp_reloc_table.
3592 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3593 definitions to get external names.
3594 (elf_write_relocs): Renamed from write_relocs and make global.
3595 (elf_slurp_reloc_table): Make global.
3596 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3598 * archive.c (hpux_uid_gid_encode): New function.
3599 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3600 defined and the ID is greater than 99999.
3601 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3602 special uid/gid fields into 32 bit values.
3604 2000-04-21 Matthew Green <mrg@cygnus.com>
3606 * config.bfd: Add NetBSD/sparc64 support.
3608 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3609 David Mosberger <davidm@hpl.hp.com>
3610 Timothy Wall <twall@cygnus.com>
3611 Jim Wilson <wilson@cygnus.com>
3613 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3614 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3615 (BFD64_BACKENDS): Add elf64-ia64.lo.
3616 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3617 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3618 * Makefile.in: Rebuild.
3619 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3620 (bfd_ia64_arch): Declare.
3621 (bfd_archures_list): Add bfd_ia64_arch.
3622 * bfd-in2.h: Rebuild.
3623 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3624 * configure: Rebuild.
3625 * configure.host: (ia64-*-linux*): New host.
3626 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3627 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3628 * elf.c (prep_headers): Add bfd_arch_ia64.
3629 * libbfd.h: Rebuild.
3630 * reloc.c: Add IA-64 relocations.
3631 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3633 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3634 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3636 2000-04-21 Richard Henderson <rth@cygnus.com>
3638 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3639 contents when performing a partial link.
3640 (bfd_elf_d30v_reloc_21): Likewise.
3642 2000-04-20 H.J. Lu <hjl@gnu.org>
3644 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3645 patch to symbols defined by a shared object.
3646 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3648 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3651 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3652 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3654 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3656 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3657 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3658 (coff-ia64.lo): Add dependency.
3659 * Makefile.in: Regenerate.
3660 * coff-ia64.c: New file.
3661 * efi-app-ia32.c: Ditto.
3662 * efi-app-ia64.c: Ditto.
3663 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3664 (coff_set_flags): Ditto.
3665 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3666 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3667 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3668 * configure: Regenerate.
3669 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3670 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3671 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3672 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3673 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3674 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3675 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3676 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3677 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3678 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3679 (GET_PDATA_ENTRY): Ditto.
3680 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3681 data_start. Use above macros to read fields that are 64 bit wide for
3682 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3683 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3684 FileAlignment and SectionAlignment to minimum alignment if they
3686 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3687 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3688 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3689 Use above macros to write fields that are 64 bit wide for
3691 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3692 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3693 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3694 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3695 begin address, end address, and unwind info address only. Use
3696 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3698 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3699 HIGH3ADJ relocation names.
3700 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3701 * targets.c: Declare bfd_efi_app_ia32_vec and
3702 bfd_efi_app_ia64_vec.
3703 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3704 bfd_efi_app_ia64_vec.
3706 2000-04-17 Timothy Wall <twall@cygnus.com>
3708 * bfd-in2.h: Add prototypes for tic54x load page access.
3709 * bfd-in.h: Regenerate.
3710 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3711 in customized _set_arch_mach function.
3712 * coffcode.h (coff_set_alignment_hook): Set section load page if
3713 the appropriate macro is defined.
3714 (write_object_contents): Read section load page.
3716 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3718 * elf32-hppa.h: Update copyright date.
3720 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3721 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3723 * elf32-d30v.c (MAX32): Don't use LL suffix.
3724 (MIN32): Define in terms of MAX32.
3725 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3727 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3730 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3732 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3734 * dep-in.sed: Match space before file name, not after.
3735 * Makefile.am: Regenerate dependencies.
3736 * Makefile.in: Regenerate.
3738 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3739 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3740 extend without an if statement.
3742 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3744 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3746 * elf32-mips.c (gprel16_with_gp): Likewise.
3747 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3748 here using -0x40000, not (int)0xfffc0000.
3749 (elf32_hppa_size_of_stub): Likewise.
3751 2000-04-11 Timothy Wall <twall@cygnus.com>
3753 * coff-tic54x.c: Now builds with all targets.
3754 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3755 * Makefile.in: Regenerate.
3756 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3757 unitialized variable.
3759 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3761 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3762 --enable-build-warnings option.
3763 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3764 * Makefile.in, configure: Re-generate.
3766 2000-04-07 Nick Clifton <nickc@cygnus.com>
3768 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3769 BFD_RELOC_THUMB_PCREL_BLX.
3771 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3772 R_ARM_XPC25 and R_ARM_THM_PC22.
3774 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3775 R_ARM_XPC25 and R_ARM_THM_XPC22.
3776 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3777 R_ARM_[XPC25|THM_XPC22].
3779 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3780 elf/arm-oabi.h to elf/arm.h
3782 * Makefile.am: Fix dependency for elfarm-oabi.c
3783 * Makefile.in: Regenerate.
3785 * bfd-in2.h: Regenerate.
3786 * libbfd.h: Regenerate.
3788 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3790 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3791 and restore it on failure. Release newly allocated tdata on
3794 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3796 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3797 (decode_line_info): Set it. Report error if unit->line_offset is
3798 equal to or larger than it.
3800 2000-04-07 Timothy Wall <twall@cygnus.com>
3802 * targets.c: Added vecs for tic54x.
3803 * reloc.c: Added relocs for tic54x.
3804 * libbfd.h: Regenerated.
3805 * configure: Add TI COFF vecs for tic54x.
3806 * configure.in: Ditto.
3807 * config.bfd (targ_cpu): Recognize new tic54x target.
3808 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3809 * bfd-in2.h: Add tic54x target and relocations.
3810 * Makefile.am, Makefile.in: Add tic54x target.
3811 * archures.c (bfd_archures_list): Add tic54x target.
3812 * coff-tic54x.c: New.
3813 * cpu-tic54x.c: New.
3815 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3817 * elfcore.h (elf_core_file_p): call backend_object_p which
3818 thereby gets an opportunity to update the arch/machine type.
3820 2000-04-06 Timothy Wall <twall@cygnus.com>
3822 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3823 class. Handle SEC_CLINK and SEC_BLOCK flags.
3824 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3825 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3827 2000-04-06 Nick Clifton <nickc@cygnus.com>
3829 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3830 EF_INTERWORK if this is an unknown EABI.
3831 (elf32_arm_merge_private_bfd_data): Check EABI version
3832 numbers. Only check EF_xxx flags if the EABI version number
3834 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3835 if the EABI version number is unknown.
3836 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3837 if the EABI version number is unknown.
3839 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3841 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3842 BFD_RELOC_SH_LOOP_END.
3843 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3844 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3845 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3846 (sh_elf_reloc_loop): New function.
3847 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3849 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3850 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3851 * bfd-in2.h, libbfd.h: Regenerate.
3853 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3855 * po/bfd.pot: Regenerate.
3857 * Makefile.am: Remove extraneous mkdep comment.
3858 (MKDEP): Use gcc -MM rather than mkdep.
3859 (DEP): Quote when passing vars to sub-make. Add warning
3861 (DEP1): Rewrite for "gcc -MM".
3862 (CLEANFILES): Add DEP2.
3863 Update dependencies.
3864 * Makefile.in: Regenerate.
3866 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3868 * configure.in: Added corefile support for AIX 4.3. In particular,
3869 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3870 compiling rs6000-core.c.
3871 * configure: Regenerated.
3873 2000-04-03 H.J. Lu <hjl@gnu.org>
3875 * cache.c (bfd_open_file): Unlink the output file only if
3876 it has non-zero size.
3878 2000-04-01 Ken Block USG <block@zk3.dec.com>
3880 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3881 relative relocations for non-loaded sections in shared objects.
3882 (elf64_alpha_check_relocs): Similarly.
3884 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3886 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3887 BFD_RELOC_16 to switch for extended relocs.
3888 (MY_swap_ext_reloc_in): New.
3889 (MY_swap_ext_reloc_out): New.
3890 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3891 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3892 (NAME(aout,squirt_out_relocs)): Similarly use
3893 MY_swap_ext_reloc_out.
3894 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3896 2000-04-03 Kazu Hirata <kazu@hxi.com>
3898 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3899 the R_PCRWORD_B case.
3901 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3903 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3907 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3909 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3910 HOWTO references to bfd_elf_generic_reloc, that have
3911 partial_inplace == true, now use the new function. The function
3912 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3913 extends its fixes to the R_M32R_{16,24,32} relocs.
3914 The new logic in m32r_elf_lo16_reloc() has been removed, and
3915 it instead calls the new routine to obtain that functionality.
3917 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3919 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3920 elf32_avr_check_relocs, avr_final_link_relocate,
3921 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3922 elf32_avr_object_p): Add prototypes.
3923 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3924 (bfd_elf_avr_final_write_processing): Make static.
3926 2000-03-27 Denis Chertykov <denisc@overta.ru>
3928 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3929 * archures.c (bfd_architecture): Add AVR architecture.
3930 (bfd_archures_list): Add reference to AVR architecture info.
3931 * elf.c (prep_headers): Handle bfd_arch_avr.
3932 * reloc.c: Add various AVR relocation enums.
3933 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3935 * Makefile.am: Add support for AVR elf.
3936 * configure.in: Likewise.
3937 * config.bfd: Likewise.
3938 * Makefile.in: Regenerate.
3939 * configure: This too.
3940 * bfd-in2.h: And this.
3941 * libbfd.h: And this.
3943 2000-03-24 H.J. Lu <hjl@gnu.org>
3945 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3946 (elf64_alpha_find_reloc_at_ofs): Likewise.
3948 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3950 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3951 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3952 allowable range used to be -2**(n-1) to 2**n-1.
3953 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3954 "boolean overflow" with "bfd_reloc_status_type flag".
3956 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3958 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3960 2000-03-14 Kazu Hirata <kazu@hxi.com>
3962 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3963 of shrinks properly, including the last reloc.
3965 2000-03-13 Kazu Hirata <kazu@hxi.com>
3967 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3970 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3972 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3973 a format mismatch rather than an "error" from bfd_read such as
3974 bfd_error_file_truncated.
3976 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3978 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3979 sign-extension and big-endian compensation for
3980 R_MIPS_64 even in ld -r.
3982 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3984 * elf32-mips.c (mips_elf_next_relocation): Rename from
3985 mips_elf_next_lo16_relocation, and generalize to look
3986 for any relocation type.
3987 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3988 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3989 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3990 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3991 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3992 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3993 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3994 (mips_rtype_to_howto): Likewise.
3995 (mips_elf_calculate_relocation): Handle new relocs.
3996 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3997 are paired. The addend for R_MIPS_GNU_REL16_S2
3998 is shifted right two bits.
4000 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4002 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4003 comment, and ensure it doesn't happen again.
4004 (bfd_install_relocation): Same here.
4005 (_bfd_relocate_contents): Don't bother assigning unused signmask
4006 shift result. Fix typos in comments.
4007 Remove trailing whitespace throughout file.
4009 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4011 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4012 * bfd-in2.h: Rebuild.
4014 2000-03-06 Nick Clifton <nickc@cygnus.com>
4016 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4018 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4019 (SIZEOF_ILF_STRINGS): Redefine.
4020 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4021 relative reloc, as opposed to a section relative reloc.
4022 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4024 Add length of symbol's prefix to string pointer.
4025 Store a pointer to the symbol in the symbol pointer table.
4026 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4027 Initialise the symbol pointer table.
4028 Store the hint in the Hint/Name table.
4029 Make the jump reloc be symbol realtive, not section relative.
4030 Create an import symbol for imported code.
4032 2000-03-06 Catherine Moore <clm@cygnus.com>
4034 * elf.c (swap_out_syms): Check for null type_ptr.
4036 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4038 * aout-target.h (MY(write_object_contents)): Remove unused
4039 and unusable "#if CHOOSE_RELOC_SIZE".
4040 * pc532-mach.c (MY(write_object_contents)): Ditto.
4041 * netbsd.h (MY(write_object_contents)): Ditto.
4042 * hp300hpux.c (MY(write_object_contents)): Ditto.
4043 * freebsd.h (MY(write_object_contents)): Ditto.
4044 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4046 2000-02-29 H.J. Lu <hjl@gnu.org>
4048 * peicode.h (jtab): Make it static.
4050 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4051 defined and COFF_IMAGE_WITH_PE is not defined.
4052 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4053 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4055 2000-03-01 Nick Clifton <nickc@cygnus.com>
4057 * coff-arm.c (bfd_arm_process_before_allocation): Make
4058 'symndx' signed to prevent compile time warning.
4060 * coff-mcore.c: Remove unused prototype for pe_object_p.
4062 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4063 functions that are not used when COFF_IMAGE_WITH_PE is
4065 (struct sh_opcode): Change type of 'flags' field to unsigned
4066 long so that it can hold the USESAS flag.
4068 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4070 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4073 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4075 Remove unusued variables and code.
4076 (elf_backend_add_symbol_hook): Fix prototype.
4078 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4081 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4084 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4086 Remove unusued variables and code.
4087 (elf_backend_add_symbol_hook): Fix prototype.
4089 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4091 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4092 to unused function parameter.
4094 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4096 Use EMPTY_HOWTO to initialise empty howto slots.
4097 Remove unused variables.
4099 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4101 2000-03-01 H.J. Lu <hjl@gnu.org>
4103 * aoutx.h (aout_link_input_section_std): Pass "true" to
4104 the undefined_symbol callback.
4105 (aout_link_input_section_ext): Likewise.
4106 * bout.c (get_value): Likewise.
4107 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4108 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4110 (alpha_relocate_section): Likewise.
4111 * coff-arm.c (coff_arm_relocate_section): Likewise.
4112 * coff-i960.c (coff_i960_relocate_section): Likewise.
4113 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4114 * coff-mips.c (mips_relocate_section): Likewise.
4115 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4116 * coff-sh.c (sh_relocate_section): Likewise.
4117 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4118 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4119 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4120 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4121 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4122 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4123 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4124 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4125 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4126 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4127 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4128 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4129 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4130 * elflink.h (elf_link_output_extsym): Likewise.
4131 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4132 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4133 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4135 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4136 undefined_symbol callback when building shared library with
4137 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4139 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4140 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4141 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4142 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4143 (elf32_mips_get_relocated_section_content): Likewise.
4144 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4145 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4146 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4147 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4149 2000-02-28 Nick Clifton <nickc@cygnus.com>
4151 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4152 * Makefile.in: Regenerate.
4154 * configure.in: Add support for mips and sh pe vectors.
4155 * configure: regenerate.
4157 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4160 * targets.c: Add mips and sh pe vectors.
4162 * libpei.h (coff_final_link_postscript): Only define if not
4165 * coffcode.h: Add support for WinCE magic numbers.
4167 * peigen.c (pe_print_reloc): Update comment and rearrange
4168 appending of newline character.
4170 * peicode.h: Add support for Image Library Format.
4171 (pe_ILF_vars): Structure containing data used by ILF code.
4172 (pe_ILF_make_a_section): New function. Create a section based
4174 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4176 (pe_ILF_make_a_symbol): New function. Create a symbol based
4178 (pe_ILF_save_relocs): New function. Store the relocs created
4179 by pe_ILF_make_a_reloc in a section.
4180 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4182 (pe_ILF_object_p): New function. Return a bfd_target pointer
4184 (pe_bfd_object_p): If an ILF object is detected call
4185 pe_ILF_object_p on it.
4187 * coff-arm.c: Add support for WinCE relocs which are different
4188 from normal ARM COFF relocs.
4189 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4191 * coff-sh.c: Add support for sh-pe target.
4192 * pe-sh.c: New file. Support code for sh-pe target.
4193 * pei-sh.c: New file. Support code for sh-pe target.
4195 * pe-mips.c: New file. Support code for mips-pe target.
4196 * pei-mips.c: New file. Support code for mips-pe target.
4198 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4200 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4201 architecture if the object causing the bump is dynamic.
4202 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4203 and also don't it for memory ordering.
4204 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4206 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4208 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4209 calling bfd_get_section_size_before_reloc.
4210 (decode_line_info): Likewise.
4211 (_bfd_dwarf2_find_nearest_line): Likewise.
4213 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4215 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4216 name of the libtool directory.
4217 * Makefile.in: Rebuild.
4219 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4221 * som.c (SOM_HOWTO): Define.
4222 (som_hppa_howto_table): Use it.
4224 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4226 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4228 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4230 2000-02-24 Catherine Moore <clm@cygnus.com>
4232 * som.c (som_misc_symbol_info): Add field
4234 (som_bfd_derive_misc_symbol_info): Initialize
4236 (som_build_and_write_symbol_table): Keep track
4237 of secondary_def field.
4238 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4239 if secondary_def field is set.
4240 (som_bfd_ar_write_symbol_stuff): Initialize
4243 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4245 * dwarf2.c (read_address): Read 16-bits addresses.
4246 (parse_comp_unit): Accept addr_size == 2.
4248 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4250 * bfd-in.h: Update copyright date.
4252 2000-02-23 Linas Vepstas <linas@linas.org>
4254 * cpu-i370.c: New file.
4255 * elf32-i370.c: New file.
4256 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4257 (bfd_i370_arch): New.
4258 (bfd_archures_list): Add bfd_i370_arch.
4259 * elf.c (prep_headers): Add bfd_arch_i370.
4260 * Makefile.am: Add support for IBM 370 elf.
4261 * config.bfd: Likewise.
4262 * configure.in: Likewise.
4263 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4264 * reloc.c (bfd_reloc_code_type): Likewise.
4265 * targets.c: Likewise.
4267 * Makefile.in: Regenerate.
4268 * configure: Regenerate.
4269 * bfd-in2.h: Regenerate.
4271 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4273 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4274 invalid relocation types, and change them to R_386_NONE.
4276 2000-02-22 H.J. Lu <hjl@gnu.org>
4278 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4279 not defined, don't add a second ELF_VER_CHR.
4281 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4282 symbols converted to local symbols even when stripping all
4284 (elf_link_output_extsym): Process global symbols converted to
4285 local symbols even if they are being stripped.
4287 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4289 * archures.c (bfd_octets_per_byte): Return unsigned int.
4290 (bfd_arch_mach_octets_per_byte): Ditto.
4291 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4293 * section.c (bfd_get_section_size_before_reloc): Quell signed
4294 vs. unsigned comparison warning.
4295 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4296 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4297 change. What was I thinking?
4298 * bfd-in2.h: Regenerate.
4300 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4301 (elf_gc_sections): Same here.
4302 (elf_gc_common_finalize_got_offsets): And here.
4304 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4306 ELF HPPA doesn't work at present; remove it until it does.
4307 * config.bfd: Comment out setting targ_defvec to
4309 * Makefile.am: Rebuild dependencies.
4310 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4311 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4312 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4313 * Makefile.in: Rebuild.
4314 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4316 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4318 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4319 is no bfd_free(). Revert bfd_free part of previous change.
4321 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4323 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4325 (coff_compute_section_file_positions): Use bfd_free to pair
4327 (coff_write_object_contents): Likewise.
4329 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4330 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4332 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4334 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4335 (xcoff_ar_file_hdr_big): New structure.
4336 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4337 (xcoff_ar_hdr_big): New structure.
4338 (SIZEOF_AR_HDR_BIG): New macro.
4339 (xcoff_big_format_p): New macro.
4340 (xcoff_ardata_big): New macro.
4341 (arch_xhdr_big): New macro.
4342 (xcoff_slurp_armap): Handle large archives.
4343 (xcoff_archive_p): Detect large archives.
4344 (xcoff_read_ar_hdr): Handle large archives.
4345 (xcoff_openr_next_archived_file): Handle large archives.
4346 (xcoff_generic_stat_arch_elt): Handle large archives.
4347 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4348 (xcoff_write_armap_big): New function.
4349 (xcoff_write_armap): New function, dispatch to _old or _big.
4350 (xcoff_write_archive_contents_old): Rename from
4351 xcoff_write_archive_contents.
4352 (xcoff_write_archive_contents_big): New function.
4353 (xcoff_write_archive_contents): New function, dispatch to _old or
4356 2000-02-18 Richard Henderson <rth@cygnus.com>
4358 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4359 and hide_symbol members.
4360 (elf_link_hash_copy_indirect): Remove.
4361 (elf_link_hash_hide_symbol): Remove.
4362 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4363 and elf_backend_hide_symbol.
4364 (_bfd_elf_link_hash_copy_indirect): Declare.
4365 (_bfd_elf_link_hash_hide_symbol): Declare.
4366 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4367 (_bfd_elf_link_hash_hide_symbol): Likewise.
4368 (_bfd_elf_link_hash_table_init): Don't init killed members.
4369 * elflink.h (elf_link_add_object_symbols): Use the bed function
4370 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4371 (elf_link_assign_sym_version): Likewise.
4372 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4373 (elf_backend_hide_symbol): Likewise.
4374 (elfNN_bed): Update for new members.
4376 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4378 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4379 STACK_END_ADDR): Define for new core file format.
4380 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4381 for handling the vagaries of the various core file structures used
4382 by AIX over the years.
4383 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4384 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4385 core_dumpx structure.
4387 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4389 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4390 (bfd_mach_sh3_dsp): Likewise.
4391 (bfd_mach_sh4): Reinstate.
4392 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4393 * bfd-in2.h: Regenerate.
4394 * coff-sh.c (struct sh_opcode): flags is no longer short.
4395 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4396 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4397 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4398 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4399 (sh_opcodes): No longer const.
4400 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4401 (sh_insn_uses_reg): Check for USESAS and USESR8.
4402 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4403 (_bfd_sh_align_load_span): Return early for SH4.
4404 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4405 Take into account that field b of a parallel processing insn
4406 could be mistaken for a separate insn.
4407 * cpu-sh.c (arch_info_struct): New array elements for
4408 sh2, sh-dsp and sh3-dsp.
4409 Reinstate element for sh4.
4410 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4411 (SH4_NEXT): Reinstate.
4412 (SH3_NEXT, SH3E_NEXT): Adjust.
4413 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4414 * elf32-sh.c (sh_elf_set_private_flags): New function.
4415 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4416 (sh_elf_merge_private_data): New function.
4417 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4418 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4419 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4420 sh_elf_merge_private_data.
4422 2000-02-13 Richard Henderson <rth@cygnus.com>
4424 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4425 hide_symbol members.
4426 (elf_link_hash_copy_indirect): New.
4427 (elf_link_hash_hide_symbol): New.
4428 * elflink.h (elf_link_add_object_symbols): Break out copy from
4429 indirect new new symbol to elf.c.
4430 (elf_link_assign_sym_version): Break out privatization of
4431 non-exported symbol to elf.c.
4432 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4433 (_bfd_elf_link_hash_hide_symbol): New.
4434 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4436 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4438 * section.c (_bfd_strip_section_from_output): Add info parameter.
4439 If it passed as non-NULL, use it to check whether any input BFD
4440 has an input section which uses this output section. Change all
4442 * bfd-in2.h: Rebuild.
4444 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4445 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4447 * bfd-in2.h: Rebuild.
4449 2000-02-10 Timothy Wall <twall@cygnus.com>
4451 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4452 allow final modifications of swapped-in symbol.
4453 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4454 * coffcode.h (coff_write_relocs): Use macro
4455 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4456 symbol index should be set to -1.
4458 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4460 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4461 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4462 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4463 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4464 sh_insns_uses_or_sets_freg): New functions.
4465 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4466 * (sh_insns_conflict): Use new functions and new macros to
4467 detect conflicts when two instructions both set same integer registers,
4468 both set same fp register, and both set special register.
4470 2000-02-09 Timothy Wall <twall@cygnus.com>
4472 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4473 swapping in sections, so that the swapping routines have access to
4476 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4478 * coff-go32.c: Update comment. Update copyright.
4480 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4482 * syms.c (bfd_decode_symclass)
4483 Two new class characters were added - 'V' and 'v'. The
4484 meaning of 'W' is now restricted to just weak non-object
4485 symbols. This allows differentiation between, for example,
4486 weak functions vs weak objects. nm for example now dumps:
4488 'w' = weak unresolved
4489 'V' = weak global object
4490 'v' = weak unresolved object
4492 (bfd_is_undefined_symclass): New function. Return true if the
4493 given symbol class represents and undefined/unresolved symbol.
4495 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4498 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4500 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4501 STT_ARM_16BIT flag set, but it is not attached to a data object
4502 return STT_ARM_16BIT so that it will be treated as code by the
4505 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4507 * coff-i386.c (i3coff_object_p): Remove prototype.
4510 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4511 to name. Update copyright.
4513 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4514 assignment to avoid warning. Update copyright.
4516 2000-01-24 Robert Lipe (robertl@sco.com)
4518 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4519 instead of using GNU C extension.
4521 2000-01-21 Nick Clifton <nickc@cygnus.com>
4523 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4524 amount from a bfd_in_memory structure.
4525 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4528 2000-01-14 Nick Clifton <nickc@cygnus.com>
4530 * linker.c (default_indirect_link_order): oops - fix incorrectly
4531 applied patch from Tim Wall.
4533 2000-01-13 Timothy Wall (twall@tiac.net>
4535 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4536 = scnhsz, filhsz, relsz, aoutsz, etc)
4538 * coffswap.h: Ditto.
4540 2000-01-13 Nick Clifton <nickc@cygnus.com>
4542 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4543 interwork thumb to arm stub.
4545 2000-01-13 Timothy Wall (twall@tiac.net>
4547 * archures.c (bfd_octets_per_byte): New function: Return
4549 (bfd_arch_mach_octets_per_byte): New function: Return target
4552 * section.c: Distinguish between octets and bytes for usage of
4553 _cooked_size, _raw_size, and output_offset. Clarify
4554 description of bfd_set_section_contents.
4556 * bfd-in2.h: Regenerate.
4558 * coffgen.c: Indicate that the offset parameter is in bytes, not
4561 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4562 where appropriate to get the octet offset when calling
4563 bfd_set_section_contents.
4564 (bfd_coff_reloc_link_order): Ditto.
4566 * linker.c (bfd_generic_reloc_link_order): Ditto.
4567 (_bfd_default_link_order): Ditto.
4569 * reloc.c (bfd_perform_relocation): Distinguish between octets
4570 and bytes. Use octets when indexing into octet data; use bytes
4571 when calculating target addresses.
4572 (bfd_install_relocation): Ditto.
4574 * srec.c (srec_write_section): Ditto.
4576 2000-01-13 Nick Clifton <nickc@cygnus.com>
4578 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4579 3 to 2. This allows 4 byte sized sections, which is necessary for
4580 dlltool to build functioning DLLs.
4582 2000-01-10 Philip Blundell <pb@futuretv.com>
4584 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4585 (arm*-*-conix*): New target.
4587 2000-01-10 Egor Duda <deo@logos-m.ru>
4589 * config.bfd: Include elf32_i386 vector to target list for cygwin
4592 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4593 * configure.in: Test for structure win32_pstatus_t in
4595 * configure: Regenerate.
4597 * elf.c (elfcore_grok_win32pstatus): New function: process
4598 win32_pstatus_t notes in elf core file.
4599 (elfcore_grok_note): Detect win32_pstatus notes.
4601 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4603 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4605 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4606 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4608 For older changes see ChangeLog-9899
4614 version-control: never