1 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3 * binary.c (bfd_external_binary_architecture): Declare.
4 (binary_object_p): If bfd_external_binary_architecture is defined,
5 set the architecture to this string.
7 2001-03-11 Philip Blundell <philb@gnu.org>
9 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
10 entries that could serve as a definition for a weak symbol.
12 2001-03-08 Nick Clifton <nickc@redhat.com>
14 * Most files: Update copyright notices using Perl script created
15 by Kevin Buettner <kevinb@redhat.com>.
17 2001-03-07 Nick Clifton <nickc@redhat.com>
19 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
20 prior patch on ! defined OLD_ARM_ABI.
22 2001-03-07 Andreas Jaeger <aj@suse.de>
24 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
25 some relocation values.
27 2001-03-06 Nick Clifton <nickc@redhat.com>
29 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
30 of offset in BLX(1) instruction.
31 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
32 offset in BLX(1) instruction.
35 2001-03-06 Nick Clifton <nickc@redhat.com>
37 * coff-arm.c (coff_arm_reloc_type_lookup): Add
38 BFD_RELOC_THUMB_PCREL_BLX.
40 2001-03-06 Igor Shevlyakov <igor@windriver.com>
42 * archures.c (bfd_default_scan): Add Coldfire CPUs.
43 * bfd-in2.h: Regenerate.
44 * cpu-m68k.c: Add Coldfire CPUs for arch table.
45 * ieee.c (ieee_write_processor): Set proper id for
48 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
50 * configure.in: Add s390 target.
51 * configure: Regenerate.
53 2001-02-28 Andreas Jaeger <aj@suse.de>
55 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
58 2001-02-28 Philip Blundell <pb@futuretv.com>
60 * elf32-arm.h: Update mentions of renamed EF_xx constants.
61 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
63 2001-02-27 H.J. Lu <hjl@gnu.org>
65 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
66 abfd->tdata.aout_data == NULL.
68 2001-02-27 Alan Modra <alan@linuxcare.com.au>
70 * elf32-hppa.c: Correct field selector in stub comments.
71 (clobber_millicode_symbols): Formatting fix.
73 * configure.in: Bump version to 2.11.90.
74 * configure: Regenerate.
75 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
76 (CFILES): $SOURCE_CFILES + generated C files.
77 (POTFILES): Include $HFILES not $SOURCE_HFILES.
79 * Makefile.in: Regenerate.
80 * doc/Makefile.in: This too.
82 2001-02-26 Timothy Wall <twall@cygnus.com>
84 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
87 2001-02-26 Nick Clifton <nickc@redhat.com>
89 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
90 up, replacing multiple if statements with a switch.
91 (handle_COMDAT): New function.
93 2001-02-26 H.J. Lu <hjl@gnu.org>
95 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
96 a warning for section flags we do not handle instead of
99 2001-02-26 Andreas Jaeger <aj@suse.de>
101 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
103 2001-02-22 Timothy Wall <twall@cygnus.com>
105 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
106 * configure.in: Add objects for elf64_ia64_aix vectors.
107 * configure: Regenerated.
108 * configure.host: Recognize ia64-*-aix*.
109 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
110 for AIX. AIX5 requires most relocations to be dynamic (*all*
111 binaries are somewhat similar to shared libraries).
112 * targets.c: Add elf64_ia64_aix vectors.
114 2001-02-21 David Mosberger <davidm@hpl.hp.com>
116 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
117 C8 said "1" instead of "8". Clarify error string for IMM22:
118 "signed integer" instead of just "integer".
120 2001-02-20 Andreas Jaeger <aj@suse.de>
122 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
123 PLT entries that could serve as a definition for a weak symbol.
125 2001-02-19 Jakub Jelinek <jakub@redhat.com>
127 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
128 entries that could serve as a definition for a weak symbol.
129 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
131 2001-02-18 David O'Brien <obrien@FreeBSD>
133 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
134 FreeBSD/i386-CURRENT differently until I can figure out the needed
136 * configure: Regenerate.
137 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
138 FreeBSD/PowerPC, and FreeBSD/sparc64.
140 2001-02-18 lars brinkhoff <lars@nocrew.org>
142 * Makefile.am: Add PDP-11 a.out target.
143 * config.bfd: Likewise.
144 * configure.in: Likewise.
145 * targets.c: Likewise.
146 * archures.c: Likewise.
147 * bfd-in2.h: Likewise. Add PDP-11 relocations.
148 * libbfd.h: Add PDP-11 relocations.
150 * cpu-pdp11.c: New file.
153 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
154 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
155 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
156 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
157 (GET_MAGIC): New macro.
158 (PUT_MAGIC): Likewise.
159 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
161 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
163 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
166 2001-02-18 H.J. Lu <hjl@gnu.org>
168 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
171 2001-02-18 Kazu Hirata <kazu@hxi.com>
173 * vms-misc.c: Fix formatting.
175 2001-02-16 Kazu Hirata <kazu@hxi.com>
177 * vms.c: Fix formatting.
179 2001-02-14 H.J. Lu <hjl@gnu.org>
181 * elf.c (elf_find_function): New function.
182 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
183 the file name and function name.
185 2001-02-14 Nick Clifton <nickc@redhat.com>
187 * ecoff.c (bfd_debug_section): Update to initialise new fields in
190 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
191 (BFD64_BACKENDS): Add pepigen.c
192 Add rules to create peigen.c and pepigen.c from peXXigen.c.
194 * Makefile.in: Regenerate.
195 * configure: Regenerate.
196 * po/POTFILES.in: Regenerate.
197 * po/bfd.pot: Regenerate.
199 2001-02-14 H.J. Lu <hjl@gnu.org>
201 * libcoff-in.h (pe_tdata): Add members target_subsystem and
202 force_minimum_alignment.
204 2001-02-14 Bo Thorsen <bo@suse.de>
206 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
207 (elf64_86_64_size_info): Struct added to fix a problem
208 with the hashtable string entries.
209 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
210 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
211 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
212 remove the FIXME for this.
213 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
214 section. Also removed the FIXME for it.
215 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
216 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
217 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
219 2001-02-13 Richard Henderson <rth@redhat.com>
221 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
222 and not user provided.
224 2001-02-13 Kazu Hirata <kazu@hxi.com>
226 * vms.c (vms_print_symbol): Remove unreachable code.
228 * rs6000-core.c: Fix formatting.
230 2001-02-13 David Mosberger <davidm@hpl.hp.com>
232 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
233 as _bfd_XXi_only_swap_filehdr_out.
234 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
235 pe->force_minimum_alignment to TRUE.
236 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
237 PEI_TARGET_SUBSYSTEM.
238 (pe_print_private_bfd_data): Call
239 _bfd_XX_print_private_bfd_data_common() instead of
240 _bfd_pe_print_private_bfd_data_common().
241 (pe_bfd_copy_private_bfd_data): Call
242 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
243 _bfd_pe_bfd_copy_private_bfd_data_common().
244 (coff_bfd_copy_private_section_data): Define as
245 _bfd_XX_bfd_copy_private_section_data instead of
246 _bfd_pe_bfd_copy_private_section_data.
247 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
248 of a _bfd_pe_get_symbol_info.
252 * peXXigen.c: Renamed from peigen.c.
253 (COFF_WITH_XX): Define this macro (will get expanded into
254 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
255 compiled as peigen.c or pepigen.c.
256 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
257 define the canonical PEP structures and definitions.
258 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
259 effect, enforce minimum file and section alignments. If
260 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
261 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
262 so, by default, this is a no-op).
264 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
265 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
266 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
267 _bfd_pefoo if it's not defined. Use these macros to define
270 * libcoff.h (pe_tdata): Add members target_subsystem and
271 force_minimum_alignment.
273 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
275 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
277 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
280 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
281 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
284 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
285 (BFD64_BACKENDS_CFILES): Mention pepigen.c
286 (peigen.c): Add rule to generate from peXXigen.c.
288 (pepigen.lo): List dependencies for pepigen.lo.
290 2001-02-13 Alan Modra <alan@linuxcare.com.au>
292 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
293 $global$ referenced but not defined, set its value here.
295 2001-02-09 Bo Thorsen <bo@suse.de>
297 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
299 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
301 (elf64_x86_64_relocate_section): Fix formatting.
302 (elf64_x86_64_relocate_section): Fix addend for relocation of
303 R_X86_64_(8|16|32|PC8|PC16|PC32).
305 2001-02-12 Jan Hubicka <jh@suse.cz>
307 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
309 2001-02-11 H.J. Lu <hjl@gnu.org>
311 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
314 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
316 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
317 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
318 relocations against dynsym symbols.
320 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
321 the R_MIPS_26 relocation.
322 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
323 the R_MIPS_26 relocation.
324 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
326 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
327 the R_MIPS_26 relocation.
328 (mips_elf64_howto_table_rela): Likewise.
330 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
331 member to mark symbols that have non-CALL relocations against
333 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
334 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
336 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
337 non-CALL relocation against it is encountered.
338 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
339 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
340 no_fn_stub is not set.
342 * elf32-mips.c (mips_elf_output_extsym): Get the output section
343 information from the real symbol for indirect ones.
344 Check no_fn_stub to find out if a symbol has a function stub
347 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
349 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
350 * Makefile.in: Regenerate.
352 2001-02-09 David Mosberger <davidm@hpl.hp.com>
354 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
355 true if section name is an unwind table section name.
356 (elfNN_ia64_additional_program_headers): Count each unwind section
358 (elfNN_ia64_modify_segment_map): Install one unwind program header
359 for each unwind separate section. Note: normally the linker
360 script merges the unwind sections that go into a single segment,
361 so this still generates at most one unwind program header per
364 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
365 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
366 (elfNN_ia64_fake_sections): Mark sections with names that start
367 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
370 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
371 Use it to make sh_info in unwind section point to the text section
374 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
376 * Makefile.am: Add linux target for S/390.
377 * archures.c: Likewise.
378 * bfd-in2.h: Likewise.
379 * config.bfd: Likewise.
380 * configure.in: Likewise.
382 * libbfd.h: Likewise.
383 * targets.c: Likewise.
384 * cpu-s390.c: New file.
385 * elf32-s390.c: New file.
386 * elf64-s390.c: New file.
388 2001-02-09 Nick Clifton <nickc@redhat.com>
390 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
391 ImageBase. This has already been done by coff_swap_hdr_in.
393 2001-02-09 Jakub Jelinek <jakub@redhat.com>
395 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
397 2001-02-09 Jakub Jelinek <jakub@redhat.com>
399 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
400 (sparc64_elf_relocate_section): Likewise.
402 2001-02-09 Mark Kettenis <kettenis@gnu.org>
404 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
405 similar to R_SPARC_32.
406 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
408 2001-02-08 H.J. Lu <hjl@gnu.org>
410 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
411 relocation entries for weak definitions when building DSO with
414 2001-02-08 Richard Henderson <rth@redhat.com>
416 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
417 before visibility. Locally defined protected symbols are not
420 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
422 * config.bfd: Enable coff64 for rs6000-*. Patch from
423 <hzoli@austin.ibm.com>.
425 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
427 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
428 found, do not attempt to find dwarf2 info before returning.
430 2001-02-07 Jakub Jelinek <jakub@redhat.com>
432 * elflink.h (is_global_symbol_definition): Rename to
433 is_global_data_symbol_definition and have it reject function
435 (elf_link_is_defined_archive_symbol): Use renamed function.
437 2001-02-07 Todd Vierling <tv@wasabisystems.com>
439 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
440 * libbfd.h (bfd_target_vector): Likewise.
441 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
442 make static; create pointer reference named bfd_target_vector.
443 (_bfd_target_vector_entries): Calculate this based on the array
444 typed _bfd_target_vector.
446 2001-02-06 H.J. Lu <hjl@gnu.org>
448 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
449 internal symbols are not dynamic.
450 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
452 2001-02-06 Nick Clifton <nickc@redhat.com>
454 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
455 that it will not be pulled into the list of files that make up
457 * Makefile.in: Regenerate.
458 * po/bfd.pot: Regenerate.
460 2001-02-06 H.J. Lu <hjl@gnu.org>
462 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
464 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
465 external_PEI_IMAGE_hdr.
467 2001-02-06 Kazu Hirata <kazu@hxi.com>
469 * elf-m10200.c: Fix formatting.
471 2001-02-04 Nick Clifton <nickc@redhat.com>
473 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
474 rel, it will be handled later on.
476 2001-02-02 Fred Fish <fnf@ninemoons.com>
478 * Makefile.in: Fix typo.
480 2001-02-01 Kazu Hirata <kazu@hxi.com>
482 * elf-m10300.c: Fix formatting.
484 2001-01-30 Alan Modra <alan@linuxcare.com.au>
486 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
487 (elf_backend_get_symbol_type): Define.
488 (elf64_hppa_object_p): Set architecture and machine from elf
491 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
493 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
496 2001-01-26 Richard Henderson <rth@redhat.com>
498 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
499 for non-default visibility.
500 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
501 delete ugly macro and replace with pretty function.
503 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
505 * coff-go32.c: Update copyright.
506 * coff-stgo32.c: Likewise.
507 * coff-go32.c (COFF_LONG_FILENAMES): Define.
508 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
509 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
510 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
512 2001-01-25 Kazu Hirata <kazu@hxi.com>
514 * bfd-in2.h: Rebuild.
515 * libbfd.h: Likewise.
517 2001-01-23 H.J. Lu <hjl@gnu.org>
519 * bfd-in2.h: Rebuild.
521 2001-01-23 H.J. Lu <hjl@gnu.org>
523 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
524 is NULL or PRIV(vms_rec) is outside of the buffer.
526 2001-01-23 Kazu Hirata <kazu@hxi.com>
528 * coff64-rs6000.c: Fix formatting.
529 * coff-arm.c: Likewise.
530 * coffgen.c: Likewise.
531 * cofflink.c: Likewise.
532 * coff-mcore.c: Likewise.
533 * coff-mips.c: Likewise.
534 * coff-pmac.c: Likewise.
535 * coff-ppc.c: Likewise.
536 * coff-rs6000.c: Likewise.
538 * elf32-fr30.c: Likewise.
539 * elf32-i370.c: Likewise.
540 * elf32-i860.c: Likewise.
541 * elf32-m32r.c: Likewise.
542 * elf32-m68k.c: Likewise.
543 * elf32-mcore.c: Likewise.
544 * elf32-ppc.c: Likewise.
545 * elf32-sh.c: Likewise.
546 * elf32-v850.c: Likewise.
547 * elf64-alpha.c: Likewise.
548 * elf64-sparc.c: Likewise.
549 * elflink.c: Likewise.
550 * elflink.h: Likewise.
551 * elf-m10200.c: Likewise.
552 * elf-m10300.c: Likewise.
553 * elfxx-ia64.c: Likewise.
555 * aoutx.h: Fix formatting.
557 * bfd-in2.h: Likewise.
558 * bfd-in.h: Likewise.
559 * cpu-i386.c: Likewise.
560 * cpu-m68hc11.c: Likewise.
561 * dwarf2.c: Likewise.
562 * elf64-x86-64.c: Likewise.
563 * format.c: Likewise.
564 * freebsd.h: Likewise.
566 * hp300hpux.c: Likewise.
567 * hppabsd-core.c: Likewise.
568 * hpux-core.c: Likewise.
570 2001-01-22 Bo Thorsen <bo@suse.de>
572 * elf64-x86-64.c: Added PIC support for X86-64.
573 (elf64_x86_64_link_hash_newfunc): Function added.
574 (elf64_x86_64_link_hash_table_create): Likewise.
575 (elf64_x86_64_check_relocs): Likewise.
576 (elf64_x86_64_gc_mark_hook): Likewise.
577 (elf64_x86_64_gc_sweep_hook): Likewise.
578 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
579 (elf64_x86_64_size_dynamic_sections): Likewise.
580 (elf64_x86_64_discard_copies): Likewise.
581 (elf64_x86_64_finish_dynamic_symbol): Likewise.
582 (elf64_x86_64_finish_dynamic_sections): Likewise.
583 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
585 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
587 * Makefile.am (install-data-local): Make use of $(DESTDIR).
588 * Makefile.in: Regenerate.
590 2001-01-21 Kazu Hirata <kazu@hxi.com>
592 * coff-a29k.c: Fix formatting.
594 2001-01-19 H.J. Lu <hjl@gnu.org>
596 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
597 relocation section names.
598 (elf_i386_relocate_section): Report files with bad relocation
599 section names and return false.
601 2001-01-17 Bo Thorsen <bo@suse.de>
603 * targets.c: Alphabetize list of xvecs.
605 2001-01-14 Alan Modra <alan@linuxcare.com.au>
607 * config.bfd: Add linux target variant for elfxx-hppa.
608 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
609 bfd_elf64_hppa_linux_vec.
610 * configure: Regenerate.
611 * elf64-hppa.c: Include elf64-target.h again to support linux
613 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
614 * elf32-hppa.c: Include elf32-target.h again to support linux
616 (elf32_hppa_post_process_headers): New function.
617 (elf_backend_post_process_headers): Define.
618 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
619 bfd_elf32_hppa_linux_vec.
621 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
622 and data_segment_base fields.
623 (elf32_hppa_link_hash_table_create ): Init them.
624 (elf32_hppa_check_relocs): Update comments.
625 (hppa_record_segment_addr): New function.
626 (elf32_hppa_relocate_section): Call it.
627 (final_link_relocate): Handle R_PARISC_SEGREL32.
628 (elf32_hppa_final_link): New function.
629 (bfd_elf32_bfd_final_link): Define to call it.
630 (hppa_unwind_entry_compare): New function.
631 * cache.c (bfd_open_file): Create files in write+read mode.
633 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
634 SEGREL32 and numerous other relocs. Change duplicate
635 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
637 * opncls.c (bfd_fdopenr): Add parens like the comment says around
640 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
641 .plt entries for DT_INIT and DT_FINI.
642 (elf32_hppa_finish_dynamic_sections): Remove special handling of
645 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
646 offsets for stub .plt access if wide mode. Check offset in range.
648 2001-01-13 Nick Clifton <nickc@redhat.com>
650 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
653 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
656 2001-01-12 Alan Modra <alan@linuxcare.com.au>
658 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
659 * configure: Regenerate.
661 2001-01-11 Peter Targett <peter.targett@arccores.com>
663 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
664 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
665 * cpu-arc.c (arch_info_struct): Add entries for variants.
666 (bfd_arc_arch) Set default to bfd_mach_arc_5.
667 (arc_get_mach) Don't assume machine names prefixed arc- before
669 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
671 (arc_elf_final_write_processing) Likewise.
672 (ELF_MACHINE_CODE) Use EM_ARC.
674 2001-01-10 Nick Clifton <nickc@redhat.com>
676 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
678 2001-01-07 Philip Blundell <philb@gnu.org>
680 * README: Replace `bug-gnu-utils@gnu.org' with
681 `bug-binutils@gnu.org'.
683 2001-01-04 Kazu Hirata <kazu@hxi.com>
685 * som.c: Fix formatting.
687 2001-01-03 Kazu Hirata <kazu@hxi.com>
689 * ecoffswap.h: Fix formatting.
690 * elf-bfd.h: Likewise.
691 * elfarm-nabi.c: Likewise.
692 * elfarm-oabi.c: Likewise.
693 * elfcode.h: Likewise.
694 * elfcore.h: Likewise.
695 * elflink.c: Likewise.
696 * elflink.h: Likewise.
697 * elfxx-ia64.c: Likewise.
698 * elfxx-target.h: Likewise.
700 * linker.c: Likewise.
701 * lynx-core.c: Likewise.
703 2001-01-02 Kazu Hirata <kazu@hxi.com>
705 * pc532-mach.c: Fix formatting.
706 * pe-arm.c: Likewise.
707 * pe-i386.c: Likewise.
708 * pe-mips.c: Likewise.
709 * pe-ppc.c: Likewise.
711 * pei-mips.c: Likewise.
712 * pei-sh.c: Likewise.
713 * peicode.h: Likewise.
714 * ppcboot.c: Likewise.
715 * ptrace-core.c: Likewise.
717 2001-01-01 Kazu Hirata <kazu@hxi.com>
719 * reloc.c: Fix formatting.
720 * riscix.c: Likewise.
721 * rs6000-core.c: Likewise.
722 * xcoff-target.h: Likewise.
724 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
726 * elfcode.h (elf_object_p): Also restore the bfd mach field on
727 error, by calling bfd_default_set_arch_mach with incoming
730 2000-12-26 Kazu Hirata <kazu@hxi.com>
732 * vaxnetbsd.c: Fix formatting.
733 * versados.c: Likewise.
734 * vms-gsd.c: Likewise.
735 * vms-hdr.c: Likewise.
736 * vms-misc.c: Likewise.
738 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
740 * archive.c (coff_write_armap): Don't write more than symbol_count
741 `archive_member_file_ptr's.
743 2000-12-25 Kazu Hirata <kazu@hxi.com>
745 * vms-tir.c: Fix formatting.
747 2000-12-23 Kazu Hirata <kazu@hxi.com>
749 * vms.c: Fix formatting.
752 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
754 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
756 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
758 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
761 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
763 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
765 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
767 * libbfd.c (bfd_get_bits): Added
768 (bfd_put_bits): Likewise
769 * bfd-in.h: Declared the above.
770 * bfd-in2.h: Regenerated.
772 2000-12-20 Kazu Hirata <kazu@hxi.com>
774 * targets.c: Fix formatting.
775 * tekhex.c: Likewise.
776 * trad-core.c: Likewise.
778 2000-12-19 Kazu Hirata <kazu@hxi.com>
780 * sco5-core.c: Fix formatting.
781 * section.c: Likewise.
782 * sparclinux.c: Likewise.
783 * sparclynx.c: Likewise.
784 * sparcnetbsd.c: Likewise.
787 * stab-syms.c: Likewise.
790 * sysdep.h: Likewise.
792 2000-12-18 Nick Clifton <nickc@redhat.com>
794 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
796 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
797 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
799 2000-12-18 Nick Clifton <nickc@redhat.com>
801 * vms-misc.c (_bfd_vms_get_record): Add default case to
804 2000-12-15 Miloslav Trmac <mitr@volny.cz>
806 * elfcore.h (elf_core_file_p): Move to the start of the program
807 headers before attempting to read them.
809 2000-12-14 Kazu Hirata <kazu@hxi.com>
811 * peigen.c: Fix formatting.
815 2000-12-13 Kazu Hirata <kazu@hxi.com>
817 * peigen.c: Fix formatting.
819 2000-12-12 Jim Wilson <wilson@redhat.com>
821 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
823 2000-12-08 Mark Salter <msalter@redhat.com>
825 * binary.c (binary_set_section_contents): Ignore sections
828 2000-12-12 Kazu Hirata <kazu@hxi.com>
830 * m68klinux.c: Fix formatting.
831 * m68knetbsd.c: Likewise.
832 * mipsbsd.c: Likewise.
833 * netbsd-core.c: Likewise.
834 * netbsd.h: Likewise.
835 * newsos3.c: Likewise.
836 * nlm32-alpha.c: Likewise.
837 * nlm32-i386.c: Likewise.
838 * nlm32-ppc.c: Likewise.
839 * nlm32-sparc.c: Likewise.
840 * nlmcode.h: Likewise.
841 * nlmswap.h: Likewise.
842 * nlm-target.h: Likewise.
843 * ns32knetbsd.c: Likewise.
845 2000-12-10 Fred Fish <fnf@be.com>
847 * elflink.h (elf_link_output_extsym): Don't complain about undefined
848 symbols in shared objects if allow_shlib_undefined is true.
850 2000-12-12 Nick Clifton <nickc@redhat.com>
852 * cpu-sh.c: Fix formattng.
853 * elf.c: Fix formattng.
854 * elf32-mips.c: Fix formattng.
855 * elf32-sh.c: Fix formattng.
856 * elf64-alpha.c: Fix formattng.
858 2000-12-09 Nick Clifton <nickc@redhat.com>
860 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
861 dwarf2_find_line_info as last parameter to invocation of
862 _bfd_dwarf2_find_nearest_line.
863 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
864 dwarf2_find_line_info as last parameter to invocation of
865 _bfd_dwarf2_find_nearest_line.
867 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
869 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
870 (BFD_LIBS): ...to here.
871 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
872 (BFD_LIBS_CFILES): ...to here.
873 * Makefile.in: Regenerate.
874 * configure.in: Remove dwarf.lo from the elf shell variable.
875 * configure: Regenerate.
876 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
877 * libcoff.h: Regenerate.
878 * coffgen.c (coff_find_nearest_line): Call
879 _bfd_dwarf2_find_nearest_line.
880 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
882 (read_abbrevs): Likewise
883 (decode_line_info): Likewise.
884 (parse_comp_unit): Likewise.
885 (comp_unit_find_nearest_line): Likewise.
886 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
887 * libbfd.h: Regenerate.
888 * elf.c (_bfd_elf_find_nearest_line): Update call.
889 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
890 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
891 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
892 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
893 (styp_to_sec_flags): Handle DWARF2 sections.
894 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
895 to _bfd_find_nearest_line.
896 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
897 call to _bfd_find_nearest_line.
899 2000-12-08 Kazu Hirata <kazu@hxi.com>
901 * coffgen.c: Fix formatting.
902 * elf-m10300.c: Likewise.
903 * elf32-i386.c: Likewise.
904 * elf32-i960.c: Likewise.
905 * elf32-m68k.c: Likewise.
906 * elf32-mcore.c: Likewise.
907 * elf32-ppc.c: Likewise.
908 * elf32-sh.c: Likewise.
909 * elf32-sparc.c: Likewise.
910 * elf32-v850.c: Likewise.
911 * elf64-alpha.c: Likewise.
912 * elf64-hppa.c: Likewise.
913 * elf64-mips.c: Likewise.
914 * elf64-sparc.c: Likewise.
916 2000-12-07 Kazu Hirata <kazu@hxi.com>
918 * elf32-ppc.c: Fix formatting.
919 * elf64-x86-64.c: Likewise.
921 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
923 From Ralf Baechle <ralf@gnu.org>
925 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
926 BFDs containing no sections or empty .text, .data or .bss sections
927 to be merged, regardless of their flags.
929 2000-12-06 Kazu Hirata <kazu@hxi.com>
931 * elf32-m32r.c: Fix formatting.
932 * elf32-m68hc11.c: Likewise.
933 * elf32-m68hc12.c: Likewise.
934 * elf32-m68k.c: Likewise.
935 * elf32-mcore.c: Likewise.
936 * elf32-pj.c: Likewise.
937 * elf32-ppc.c: Likewise.
939 2000-12-05 Kazu Hirata <kazu@hxi.com>
941 * elf32-fr30.c: Fix formatting.
942 * elf32-hppa.c: Likewise.
943 * elf32-i370.c: Likewise.
944 * elf32-i386.c: Likewise.
945 * elf32-i860.c: Likewise.
946 * elf32-i960.c: Likewise.
948 2000-12-03 Kazu Hirata <kazu@hxi.com>
950 * elf32-arm.h: Fix formatting.
951 * elf32-avr.c: Likewise.
952 * elf32-cris.c: Likewise.
953 * elf32-d10v.c: Likewise.
954 * elf32-d30v.c: Likewise.
955 * elf-hppa.h: Likewise.
956 * elf-m10200.c: Likewise.
957 * elf-m10300.c: Likewise.
959 2000-12-01 Chris Demetriou <cgd@sibyte.com>
961 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
962 bfd_mach_mips32_4k. Update FIXME comment.
963 * archures.c (bfd_mach_mips32): New constant.
964 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
965 the latter, renumber it.
966 * bfd-in2.h (bfd_mach_mips32): New constant.
967 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
968 the latter, renumber it.
969 * cpu-mips.c (I_mips32): New constant.
970 (I_mips4K, I_mips32_4k): Rename the former to the latter.
971 (arch_info_struct): Add bfd_mach_mips32 entry, replace
972 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
973 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
974 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
975 with E_MIPS_MACH_MIPS32_4K.
976 (_bfd_mips_elf_final_write_processing): Replace
977 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
978 bfd_mach_mips32 case.
979 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
980 comparison with support for MIPS32.
981 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
984 * aoutx.h (NAME(aout,machine_type)): Add cases for
985 bfd_mach_mips5 and bfd_mach_mips64.
986 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
987 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
988 * cpu_mips.c (I_mips5, I_mips64): New definitions.
989 (arch_info_struct): Add entries for bfd_mach_mips5 and
991 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
992 _bfd_mips_elf_print_private_bfd_data): Add cases for
993 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
994 (_bfd_mips_elf_final_write_processing): Add cases for
995 bfd_mach_mips5 and bfd_mach_mips64.
997 * aoutx.h (NAME(aout,machine_type)): Add a
998 bfd_mach_mips_sb1 case.
999 * archures.c (bfd_mach_mips_sb1): New constant.
1000 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1001 * cpu-mips.c (I_sb1): New constant.
1002 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1003 * elf32-mips.c (elf_mips_mach): Add case for
1005 (_bfd_mips_elf_final_write_processing): Add case for
1008 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1010 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1011 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1012 (sparc*-*-rtems*): Switched from a.out to ELF.
1014 2000-11-30 Jan Hubicka <jh@suse.cz>
1016 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1017 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1018 (elf64-x86-64.lo): Add dependencies.
1019 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1020 bfd_mach_x86_64_intel_syntax.
1021 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1022 * config.bfd (x86_64): Add.
1023 * configure.in: Add support for bfd_elf64_x86_64_vec.
1024 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1025 (bfd_i386_arch, i8086_ar): Link in.
1026 * elf64-x86-64.c: New file.
1027 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1028 * targets.c (bfd_elf64_x86_64_vec): Add.
1029 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1031 2000-11-30 Kazu Hirata <kazu@hxi.com>
1033 * xcofflink.c: Fix formatting.
1035 2000-11-28 Kazu Hirata <kazu@hxi.com>
1037 * aoutx.h: Fix formatting.
1038 * bfd-in.h: Likewise.
1039 * bfd-in2.h: Likewise.
1040 * cache.c: Likewise.
1041 * cisco-core.c: Likewise.
1042 * coff64-rs6000.c: Likewise.
1043 * coffcode.h: Likewise.
1044 * coffswap.h: Likewise.
1045 * corefile.c: Likewise.
1046 * elf32-mips.c: Likewise.
1048 2000-11-27 Kazu Hirata <kazu@hxi.com>
1050 * aout-adobe.c: Fix formatting.
1051 * coff64-rs6000.c: Likewise.
1052 * coffgen.c: Likewise.
1053 * cofflink.c: Likewise.
1055 2000-11-27 Philip Blundell <pb@futuretv.com>
1057 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1058 (obj_coff_strings_written): New accessor macro for above.
1059 * libcoff.h: Regenerate.
1060 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1062 * coffcode.h (coff_write_object_contents): No need to write out
1063 the string table if it's already been done.
1065 2000-11-22 Philip Blundell <pb@futuretv.com>
1067 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1068 weak undefined symbols.
1070 2000-11-24 Nick Clifton <nickc@redhat.com>
1072 * archures.c (bfd_mach_arm_5TE): Define.
1073 (bfd_mach_arm+XScale): Define.
1074 * bfd-in2.h: Regenerate.
1076 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1077 BFD_RELOC_ARM_PCREL_BLX.
1079 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1080 XScale machine numbers.
1082 * config.bfd (xscale-elf): Add target.
1083 (xscale-coff): Add target.
1085 * cpu-arm.c: Add xscale machine name.
1086 Add v5t, v5te and XScale machine numbers.
1088 2000-11-23 Kazu Hirata <kazu@hxi.com>
1090 * aix386-core.c: Fix formatting.
1092 2000-11-22 Jim Wilson <wilson@redhat.com>
1094 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1095 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1096 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1097 (ins_imms_scaled): Initialize sign_bit at function entry.
1098 (elf64_ia64_operands): Add missing initializers.
1099 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1100 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1101 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1102 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1103 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1105 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1106 and free_extsyms at function entry.
1107 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1108 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1109 (get_got): Delete unused local srel.
1110 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1111 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1113 2000-11-21 Kazu Hirata <kazu@hxi.com>
1115 * coff-a29k.c: Fix formatting.
1116 * coff-h8500.c: Likewise.
1117 * coff-i960.c: Likewise.
1118 * coff-ppc.c: Likewise.
1119 * coff-rs6000.c: Likewise.
1120 * coff-stgo32.c: Likewise.
1121 * coff-tic54x.c: Likewise.
1122 * coff-w65.c: Likewise.
1123 * cpu-h8500.c: Likewise.
1124 * cpu-hppa.c: Likewise.
1125 * cpu-ns32k.c: Likewise.
1126 * ecoff.c: Likewise.
1127 * ecofflink.c: Likewise.
1129 2000-11-21 Nick Clifton <nickc@redhat.com>
1131 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1132 remove possibility of infinite loop.
1134 2000-11-20 Kazu Hirata <kazu@hxi.com>
1136 * aix386-core.c: Fix formatting.
1137 * aout-adobe.c: Likewise.
1138 * aout-arm.c: Likewise.
1139 * aout-encap.c: Likewise.
1140 * aout-ns32k.c: Likewise.
1141 * aout-target.h: Likewise.
1142 * aout-tic30.c: Likewise.
1143 * aoutf1.h: Likewise.
1144 * aoutx.h: Likewise.
1145 * archive.c: Likewise.
1146 * bfd-in.h: Likewise.
1147 * bfd-in2.h: Likewise.
1151 2000-11-17 H.J. Lu <hjl@gnu.org>
1153 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1154 pltoff entries for DT_INIT and DT_FINI.
1155 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1156 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1159 2000-11-16 Richard Henderson <rth@redhat.com>
1161 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1162 (allocate_dynrel_entries): Likewise.
1163 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1164 (set_pltoff_entry): Likewise.
1165 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1166 (elfNN_ia64_reloc_type_lookup): Likewise.
1167 (elfNN_ia64_install_value): Likewise.
1168 (elfNN_ia64_relocate_section): Likewise.
1169 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1170 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1172 2000-11-16 Kazu Hirata <kazu@hxi.com>
1174 * cpu-a29k.c: Fix formatting.
1175 * cpu-alpha.c: Likewise.
1176 * cpu-arm.c: Likewise.
1177 * cpu-avr.c: Likewise.
1178 * cpu-d10v.c: Likewise.
1179 * cpu-h8500.c: Likewise.
1180 * cpu-hppa.c: Likewise.
1181 * cpu-i370.c: Likewise.
1182 * cpu-i386.c: Likewise.
1183 * cpu-i960.c: Likewise.
1184 * cpu-ia64-opc.c: Likewise.
1185 * cpu-ia64.c: Likewise.
1186 * cpu-m32r.c: Likewise.
1187 * cpu-m68hc11.c: Likewise.
1188 * cpu-m68hc12.c: Likewise.
1189 * cpu-m68k.c: Likewise.
1190 * cpu-m88k.c: Likewise.
1191 * cpu-mips.c: Likewise.
1192 * cpu-ns32k.c: Likewise.
1193 * cpu-pj.c: Likewise.
1194 * cpu-powerpc.c: Likewise.
1195 * cpu-sh.c: Likewise.
1196 * cpu-sparc.c: Likewise.
1197 * cpu-tic54x.c: Likewise.
1198 * cpu-v850.c: Likewise.
1199 * cpu-vax.c: Likewise.
1200 * cpu-w65.c: Likewise.
1201 * cpu-we32k.c: Likewise.
1202 * cpu-z8k.c: Likewise.
1203 * dwarf1.c: Likewise.
1204 * dwarf2.c: Likewise.
1206 2000-11-15 Kazu Hirata <kazu@hxi.com>
1208 * coff-arm.c: Fix formatting.
1209 * coff-ppc.c: Likewise.
1210 * coff-rs6000.c: Likewise.
1211 * coff-sh.c: Likewise.
1212 * coff-sparc.c: Likewise.
1213 * coff-tic30.c: Likewise.
1214 * coff-tic54x.c: Likewise.
1215 * coff-tic80.c: Likewise.
1216 * coff-w65.c: Likewise.
1217 * coff-we32k.c: Likewise.
1218 * coff-z8k.c: Likewise.
1220 2000-11-15 Richard Henderson <rth@redhat.com>
1222 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1223 section with the same ALLOC|LOAD flags as the source section.
1225 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1227 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1228 by STO_ALPHA constants.
1230 2000-11-14 Kazu Hirata <kazu@hxi.com>
1232 * coff-pmac.c: Fix formatting.
1233 * coff-ppc.c: Likewise.
1235 2000-11-13 H.J. Lu <hjl@gnu.org>
1237 * elflink.h (elf_link_add_object_symbols): Also add indirect
1238 symbols for common symbols with the default version.
1240 2000-11-09 Philip Blundell <pb@futuretv.com>
1242 * section.c (STD_SECTION): Set gc_mark flag.
1244 2000-11-11 Kazu Hirata <kazu@hxi.com>
1246 * coff-i960.c: Likewise.
1247 * coff-m68k.c: Likewise.
1248 * coff-m88k.c: Likewise.
1249 * coff-mcore.c: Likewise.
1250 * coff-mips.c: Likewise.
1252 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1254 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1256 2000-11-10 Kazu Hirata <kazu@hxi.com>
1258 * coff-h8300.c: Fix formatting.
1259 * coff-h8500.c: Likewise.
1260 * coff-i386.c: Likewise.
1261 * coff-i860.c: Likewise.
1262 * coff-i960.c: Likewise.
1263 * coff-ia64.c: Likewise.
1265 2000-11-09 Kazu Hirata <kazu@hxi.com>
1267 * archive.c: Fix formatting.
1268 * archures.c: Likewise.
1270 2000-11-07 Richard Henderson <rth@redhat.com>
1272 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1273 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1274 * section.c (bfd_set_section_contents): Call memcpy if
1275 section->contents set and location not equal to contents plus offset.
1277 2000-11-08 Kazu Hirata <kazu@hxi.com>
1279 * bfd-in.h: Fix formatting.
1280 * bfd-in2.h: Likewise.
1282 * binary.c: Likewise.
1284 * coff-a29k.c: Likewise.
1285 * coff-alpha.c: Likewise.
1286 * coff-apollo.c: Likewise.
1287 * coff-aux.c: Likewise.
1289 2000-11-07 Kazu Hirata <kazu@hxi.com>
1291 * aix386-core.c: Fix formatting.
1292 * aoutf1.h: Likewise.
1293 * aoutx.h: Likewise.
1294 * archures.c: Likewise.
1295 * armnetbsd.c: Likewise.
1297 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1299 * coff-h8300.c (special): Adjust reloc address.
1301 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1303 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1304 to differentiate elf32 and elf64 on ia64.
1305 * bfd-in2.h: Regenerate.
1306 * config.bfd: Add target for "ia64*-*-hpux*".
1307 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1308 * configure: Regenerate.
1309 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1310 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1312 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1313 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1314 * Makefile.in: Regnerate.
1315 * elf64-ia64.c: Deleted.
1316 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1318 2000-11-06 Kazu Hirata <kazu@hxi.com>
1320 * aout-adobe.c: Fix formatting.
1321 * aout-arm.c: Likewise.
1322 * aout-cris.c: Likewise.
1323 * aout-encap.c: Likewise.
1324 * aout-ns32k.c: Likewise.
1325 * aout-target.h: Likewise.
1326 * aout-tic30.c: Likewise.
1328 2000-11-05 Philip Blundell <philb@gnu.org>
1330 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1331 BFDs containing no sections to be merged, regardless of their flags.
1333 2000-11-04 Philip Blundell <philb@gnu.org>
1335 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1336 if a relocation for an undefined symbol also results in an
1339 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1341 * config.bfd: Add support for Sun Chorus.
1343 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1345 * configure.in: Recognize alpha-*-freebsd*.
1346 * configure: Regenerate.
1348 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1350 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1351 (Chunk): New global variable set by a parameter in objcopy.c.
1352 (S3Forced): New global variable set by a parameter in
1354 (srec_set_section_contents): If S3Forced is true, always generate
1356 (srec_write_section): Use 'Chunk' to limit maximum length of S
1359 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1361 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1362 * Makefile.in: Regenerate.
1363 * bfd-in2.h: Regenerate.
1364 * po/bfd.pot: Regenerate.
1366 2000-10-31 Philip Blundell <philb@gnu.org>
1368 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1369 EF_SOFT_FLOAT if it is defined.
1371 2000-10-27 Philip Blundell <philb@gnu.org>
1373 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1374 attempts to mix PIC code with non-PIC, just mark the output as
1375 being position dependent.
1376 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1377 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1378 all mismatches, not just the first one.
1380 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1382 * ieee.c (ieee_archive_p): Plug one of many possible
1383 memory leaks in error handling.
1385 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1387 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1388 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1390 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1391 sparc64_elf_object_p): Support v9b.
1392 * archures.c: Declare v8plusb and v9b machines.
1394 * cpu-sparc.c: Ditto.
1396 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1398 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1401 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1402 (SYMBOL_CALLS_LOCAL): New macro.
1403 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1404 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1405 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1406 (ppc_elf_relocate_section): Use flag variable to determine
1407 whether the relocation refers to a local symbol.
1408 Test whether a PLTREL24 reloc will produce a reloc by looking
1409 to see whether a PLT entry was made.
1411 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1413 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1414 entries that could serve as a definition for a weak symbol.
1416 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1418 From Ralf Baechle <ralf@gnu.org>
1420 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1421 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1422 against local symbols.
1423 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1425 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1427 * section.c (struct sec): Add kept_section.
1428 (struct bfd_comdat_info): Remove sec, we can use above.
1429 (STD_SECTION): Add initializer.
1430 (bfd_make_section_anyway): Init here too.
1432 * bfd-in2.h: Regenerate.
1434 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1436 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1437 fudge values for discarded link-once section symbols.
1439 * elf64-hppa.c: Include alloca-conf.h
1441 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1443 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1445 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1447 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1449 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1451 2000-10-10 Tom Rix <trix@redhat.com>
1453 * section.c (bfd_make_section_anyway): Release newsect ptr when
1454 newsect->symbol fails to alloc. Use bfd_release instead of free.
1456 2000-10-09 Richard Henderson <rth@cygnus.com
1458 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1459 (elf64_ia64_unwind_entry_compare): New.
1460 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1462 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1464 * elflink.h (size_dynamic_sections): Don't create various tags if
1465 .dynstr is excluded from the link. Don't set first dynsym entry
1466 if dynsymcount is zero.
1467 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1468 .dynsym excluded from the link. Don't try to write any dynamic
1469 sections excluded from the link.
1471 * elf.c (swap_out_syms): Handle global section symbols.
1473 2000-10-05 DJ Delorie <dj@redhat.com>
1475 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1476 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1477 (coff_write_relocs): write extended reloc count
1478 (coff_write_object_contents): account for extended relocs
1480 2000-10-05 Jim Wilson <wilson@cygnus.com>
1482 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1484 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1485 elf_backend_section_flags function.
1486 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1488 (elf64_ia64_section_flags): New function containing flag conversion
1490 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1491 * elfxx-target.h (elf_backend_section_flags): Define.
1492 (elfNN_bed): Initialize elf_backend_section_flags field.
1494 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1496 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1497 _bfd_elf32_gc_record_vtable. Correct a comment.
1499 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1501 From Ralf Baechle <ralf@gnu.org>
1503 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1504 produces binaries with got[1] = 0x80000001 to differenciate them
1505 for the dynamic linker from the broken binaries produced by old
1508 2000-09-30 Petr Sorfa <petrs@sco.com>
1510 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1511 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1512 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1513 * configure: Regenerate.
1515 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1517 Define two bfd_targets for absence and presence of leading
1518 underscore on symbols. Make sure to only link same kind.
1519 * elf32-cris.c (cris_elf_object_p,
1520 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1521 cris_elf_merge_private_bfd_data): New.
1522 (elf_backend_object_p, elf_backend_final_write_processing,
1523 bfd_elf32_bfd_print_private_bfd_data,
1524 bfd_elf32_bfd_merge_private_bfd_data): Define.
1525 <Target vector definition>: Include elf32-target.h twice with
1526 different macro settings:
1527 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1528 bfd_elf32_us_cris_vec.
1529 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1530 (elf_symbol_leading_char): First as 0, then '_'.
1531 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1532 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1533 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1534 * configure: Regenerate.
1535 * targets.c: Declare bfd_elf32_us_cris_vec.
1536 * po/bfd.pot: Regenerate.
1538 2000-09-29 Momchil Velikov <velco@fadata.bg>
1540 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1541 R_ARM_THM_PC22 relocations.
1543 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1545 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1547 2000-09-29 Momchil Velikov <velco@fadata.bg>
1549 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1550 is has the SEC_HAS_CONTENTS flag set.
1552 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1553 Hans-Peter Nilsson <hp@axis.com>
1555 * aout-cris.c (N_TXTADDR): Define.
1557 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1559 * som.c: Include alloca-conf.h.
1560 * Makefile.am: "make dep-am"
1561 * Makefile.in: Regenerate.
1563 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1565 * elf32-hppa.c (plt_stub): New.
1566 (PLT_STUB_ENTRY): Define.
1567 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1568 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1569 (elf32_hppa_link_hash_table_create): Init to suit.
1570 (elf32_hppa_check_relocs): Set has_12bit_branch and
1571 has_17bit_branch as appropriate.
1572 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1573 non-local functions.
1574 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1575 Add space for plt_stub as needed.
1576 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1577 functions at plt_stub.
1578 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1579 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1581 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1582 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1583 of fixed size, and if negative, disable handling of input sections
1584 before stub section. Set up default stub group size depending
1585 on detected branch relocs.
1586 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1587 ensure different offsets from sym_value aren't rounded to
1588 different 2k blocks. Use lrsel and rrsel for other stubs too for
1589 consistency rather than necessity.
1590 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1591 (final_link_relocate): Likewise.
1592 (elf32_hppa_relocate_section): Likewise.
1594 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1595 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1596 (elf_hppa_final_link_relocate): Handle them.
1597 (elf_hppa_relocate_insn): Likewise.
1598 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1600 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1602 * elfcode.h (elf_object_p): Preserve and clear abfd section
1603 information. Restore at error.
1605 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1607 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1608 is empty, make sure that its rva also 0. NT loader dislikes
1611 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1613 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1616 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1618 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1619 currently unused RELATIVE_DYNAMIC_RELOCS code.
1620 (hppa_discard_copies): Likewise.
1621 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1622 comments. Don't check non-code output sections for stub grouping.
1624 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1626 * section.c (bfd_get_unique_section_name): Return NULL if
1629 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1631 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1632 instruction sequence to actually work.
1633 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1636 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1638 * elf32-sh.c (sh_elf_relocate_section): Use
1639 _bfd_final_link_relocate to apply the relocation against a section
1640 symbol, when doing relocatable links.
1642 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1644 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1646 (stub_hash_newfunc): Here too.
1647 (hppa_add_stub): And here.
1648 (elf32_hppa_link_hash_table): Remove stub_section_created,
1649 reloc_section_created, first_init_sec and first_fini_sec. Add
1651 (elf32_hppa_link_hash_table_create): Init to suit.
1652 (hppa_get_stub_entry): Add support for grouping stub sections.
1653 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1654 section code. Index stub vars by section->id.
1655 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1656 exit paths. Zap allocation of above removed vars. Refine
1659 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1660 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1661 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1662 rather than pointer to bfd_link_info.
1663 (hppa_add_stub): Likewise.
1664 (final_link_relocate): Likewise.
1666 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1668 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1671 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1673 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1674 ld/emulparams/shelf.sh.
1676 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1678 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1679 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1680 * bfd-in2.h: Regenerate.
1682 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1684 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1685 LITUSE relocations incorrectly if -relax is specified on the ld
1686 command line and the displacement field of the load or store
1687 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1689 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1691 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1692 first_fini_sec here.
1693 (elf32_hppa_size_stubs): Instead correctly find the first .init
1694 and .fini section here.
1696 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1698 * elf32-hppa.c (clobber_millicode_symbols): New function.
1699 (elf32_hppa_size_dynamic_sections): Call it.
1701 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1703 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1704 packed. Add plabel, plt_abs packed booleans.
1705 (hppa_link_hash_newfunc): Init new fields.
1706 (PLABEL_PLT_ENTRY_SIZE): Define.
1707 (hppa_stub_name): Use size_t len vars.
1708 (hppa_add_stub): Likewise.
1709 (elf32_hppa_build_stubs): Likewise.
1710 (hppa_build_one_stub): Kill some compiler warnings.
1711 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1712 if dynamic linking. Munge the local plt offsets into
1713 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1714 size_t len vars. Add assert for plabel addend.
1715 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1716 (elf32_hppa_hide_symbol): New function.
1717 (elf_backend_hide_symbol): Define.
1718 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1719 with h->plabel set. Don't make plt entries to have dynamic syms
1720 when they have been forced local. If plt entry is used by a
1721 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1722 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1723 Set up .plt offsets for local syms.
1724 (elf32_hppa_relocate_section): Initialise plt entries for local
1725 syms. Leave weak undefined plabels zero. Make global plabel
1726 relocs against function symbol, and leave the addend zero.
1727 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1728 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1729 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1730 relocs instead of SEGREL32 for dynamic got relocs.
1731 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1732 (elf_backend_got_header_size): Adjust.
1733 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1735 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1736 (hppa_type_of_stub): Use it instead of #if 0
1737 (hppa_discard_copies): Use it here too.
1738 (elf32_hppa_size_dynamic_sections): And here.
1740 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1741 (elf32_hppa_link_hash_table_create): And here.
1742 (hppa_build_one_stub): And here. Instead keep track of stub
1743 offset using _raw_size.
1744 (elf32_hppa_size_stubs): Likewise.
1745 (elf32_hppa_build_stubs): Likewise.
1746 (hppa_size_one_stub): Likewise. Resize reloc section too.
1748 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1749 first_fini_sec handling. Don't search for reloc section or set
1750 hplink->reloc_section_created here.
1751 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1752 set reloc_section_created here.
1753 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1754 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1756 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1758 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1759 with `hplink->root.'.
1760 (elf32_hppa_check_relocs): Likewise.
1761 (elf32_hppa_gc_sweep_hook): Likewise.
1762 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1763 (hppa_handle_PIC_calls): Likewise.
1764 (elf32_hppa_size_dynamic_sections): Likewise.
1765 (elf32_hppa_set_gp): Likewise.
1766 (elf32_hppa_relocate_section): Likewise.
1767 (elf32_hppa_finish_dynamic_symbol): Likewise.
1768 (elf32_hppa_finish_dynamic_sections): Likewise.
1770 From David Huggins-Daines <dhd@linuxcare.com>
1771 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1772 defined weak symbols in shared links.
1773 (final_link_relocate): Calls to defined weak symbols in shared
1774 objects must go via import stubs, as the target might not be known
1777 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1779 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1780 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1781 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1782 the original entries with EMPTY_HOWTOs, and added new ones to fill
1784 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1785 (sh_elf_relocate_section): Likewise.
1787 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1789 * cpu-mips.c (arch_info_struct): Add mips:4K
1790 * bfd-in2.h (bfd_mach_mips4K): New define.
1791 * archures.c: Add bfd_mach_mips4K to comment.
1792 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1793 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1795 2000-09-13 Marco Franzen <marcof@thyron.com>
1797 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1798 use size_t as a counter.
1799 (som_write_space_strings): Similarly.
1801 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1803 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1805 (elf32_i860_relocate_section): Invoke new function from here.
1807 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1809 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1812 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1814 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1815 target section name instead of dumping core when the target symbol is
1818 2000-09-09 Kazu Hirata <kazu@hxi.com>
1820 * riscix.c: Remove DEFUN.
1822 2000-09-08 Nick Clifton <nickc@redhat.com>
1824 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1825 initialise flags in output bfd if the input bfd is the default
1826 architecture with the default flags.
1828 2000-09-08 Kazu Hirata <kazu@hxi.com>
1830 * archive.c: Fix formatting.
1831 * coff-arm.c: Likewise.
1832 * doc/chew.c: Likewise.
1834 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1836 * section.c (bfd_get_unique_section_name): Put a dot before the
1839 2000-09-07 Kazu Hirata <kazu@hxi.com>
1841 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1842 * elf.c: Fix formatting.
1844 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1846 * config.bfd (sh-*-linux*): Added.
1847 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1848 * targets.c: Declare them.
1849 * elf32-sh-lin.c: New file.
1850 * Makefile.am: Compile it.
1851 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1852 * configure, Makefile.in: Rebuilt.
1854 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1856 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1857 pseduo-section when determining where the TOC ends.
1859 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1860 output x_tvndx as it is only two bytes wide.
1862 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1863 reloc is 26 or 32 bits wide.
1865 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1866 for relocs that don't change anything. Also look at the full
1869 2000-09-06 Philip Blundell <philb@gnu.org>
1871 * config.bfd (arm*-*-uclinux*): New target.
1873 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1875 * configure: Rebuilt with new libtool.m4.
1877 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1879 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1880 word for variable name.
1881 * bfd-in2.h: Regenerate.
1883 2000-09-05 Nick Clifton <nickc@redhat.com>
1885 * config.in: Regenerate.
1886 * libbfd.h: Regenerate.
1887 * po/bfd.pot: Regenerate.
1888 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1891 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1893 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1895 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1897 Shared library and PIC support.
1898 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1899 (GOT_ENTRY_SIZE): New.
1900 (ELF_DYNAMIC_INTERPRETER): New.
1901 (STUB_SUFFIX): Define.
1902 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1903 (RELATIVE_DYNAMIC_RELOCS): Define.
1904 (enum elf32_hppa_stub_type): New.
1905 (struct elf32_hppa_stub_hash_entry): Rename offset to
1906 stub_offset. Add a number of new fields.
1907 (struct elf32_hppa_link_hash_entry): New.
1908 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1910 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1911 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1912 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1914 (hppa_link_hash_newfunc): New function.
1915 (elf32_hppa_link_hash_table_create): Use above function. Init new
1917 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1918 instead of addend, and remove sym_name from args. Don't use
1919 symbol name for local syms, instead use sym index.
1920 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1921 stub type rather than size. Pass in hash and handle import stub
1922 case. Also pass in reloc instead of offset so we can calculate
1923 PCREL22F and PCREL12F branches properly.
1924 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1925 import and export stubs too.
1926 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1927 import and export stub sizing.
1928 (elf32_hppa_check_relocs): New function.
1929 (elf32_hppa_adjust_dynamic_symbol): New function.
1930 (hppa_discard_copies): New function.
1931 (elf32_hppa_size_dynamic_sections): New function.
1932 (elf_backend_size_dynamic_sections): Define.
1933 (elf32_hppa_finish_dynamic_symbol): New function.
1934 (elf_backend_finish_dynamic_symbol): Define.
1935 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1936 some local vars into the link hash table too. For shared links,
1937 trundle over function syms, generating export stubs. Handle
1938 PCREL22F branches. Break out stub creation code from here..
1939 (hppa_add_stub): .. to here. New function.
1940 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1941 call the bfd linker. Use elf_gp to record global pointer.
1942 Calculate a value from sections if $global$ is missing.
1943 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1944 (elf32_hppa_gc_mark_hook): New function.
1945 (elf_backend_gc_mark_hook): Define.
1946 (elf32_hppa_gc_sweep_hook): New function.
1947 (elf_backend_gc_sweep_hook): Define.
1948 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1949 Add rel to args, and remove howto, input_bfd, offset, addend,
1950 sym_name as we can recalculate these locally. Handle calls to
1951 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1952 handling of undefined weak syms. Check that stubs are in range.
1953 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1954 message on hitting a DPREL21L reloc that needs fixing. Subtract
1955 off PC for PCREL14F. Break out code that does a stub lookup from
1957 (hppa_get_stub_entry): ..to here. New function.
1958 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1959 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1961 (elf32_hppa_finish_dynamic_sections): New function.
1962 (elf_backend_finish_dynamic_sections): Define.
1963 (elf_backend_final_write_processing) Define.
1964 (hppa_handle_PIC_calls): New function.
1965 (elf32_hppa_build_stubs): Call it. Pass link_info to
1966 hppa_build_one_stub.
1967 (elf32_hppa_create_dynamic_sections): New function
1968 to create .plt and .got then set .plt flags correctly.
1969 (elf_backend_create_dynamic_sections): Define.
1970 (elf32_hppa_object_p): New function.
1971 (elf_backend_object_p): Define.
1972 (elf32_hppa_elf_get_symbol_type): New function.
1973 (elf_backend_get_symbol_type): Define.
1974 (elf_backend_can_gc_sections): Define.
1975 (elf_backend_want_got_plt): Define.
1976 (elf_backend_plt_alignment): Set to 2.
1977 (elf_backend_plt_readonly): Define.
1978 (elf_backend_want_plt_sym): Define.
1979 (elf_backend_got_header_size): Reserve one entry.
1981 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1982 (elf32_hppa_size_stubs): Pass in multi_subspace.
1983 (elf32_hppa_set_gp): Declare.
1985 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1986 (bfd_get_unique_section_name): New function.
1987 * bfd-in2.h: Regenerate.
1989 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1990 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1993 From David Huggins-Daines <dhd@linuxcare.com>
1994 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1995 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1996 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1997 been updated in finish_dynamic_symbol before modifying function
2000 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2001 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2002 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2003 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2004 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2005 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2006 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2007 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2009 From David Huggins-Daines <dhd@linuxcare.com>
2010 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2011 style of local labels as well.
2013 2000-09-03 Philip Blundell <philb@gnu.org>
2015 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2016 references to undefined symbols in debugging sections.
2018 2000-09-02 H.J. Lu <hjl@gnu.org>
2020 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2021 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2022 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2025 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2027 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2028 (elf32_i860_is_local_label_name): New function and prototype.
2030 2000-09-02 Nick Clifton <nickc@redhat.com>
2032 * configure.in: Increase version number to 2.10.91.
2033 * configure: Regenerate.
2034 * aclocal.m4: Regenerate.
2035 * config.in: Regenerate.
2036 * po/bfd.pot: Regenerate.
2038 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2040 * elf.c (_bfd_elf_make_section_from_shdr): Add
2041 .gnu.linkobce.wi. to the list of debug section names.
2043 2000-09-02 Nick Clifton <nickc@redhat.com>
2045 * dwarf2.c (find_debug_info): New function: Locate a section
2046 containing dwarf2 debug information.
2047 (bfd_dwarf2_find_nearest_line): Find all sections containing
2048 debug information and include them in the stash.
2050 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2052 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2053 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2054 (sh_reloc_map): Add new relocs.
2055 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2056 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2057 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2058 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2060 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2061 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2062 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2063 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2064 New array constants.
2065 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2067 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2068 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2069 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2070 elf_sh_plt_reloc_offset): Define.
2071 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2072 elf_sh_link_hash_table): New structs.
2073 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2074 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2076 (elf_backend_create_dynamic_sections,
2077 bfd_elf32_bfd_link_hash_table_create,
2078 elf_backend_adjust_dynamic_symbol,
2079 elf_backend_size_dynamic_sections,
2080 elf_backend_finish_dynamic_symbol,
2081 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2082 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2083 elf_backend_got_header_size, elf_backend_plt_header_size):
2085 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2086 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2088 * bfd-in2.h, libbfd.h: Rebuilt.
2090 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2092 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2095 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2097 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2098 not initialized, set them to indicate the SH1 instruction set.
2100 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2102 * acinclude.m4: Include libtool and gettext macros from the
2104 * aclocal.m4, configure: Rebuilt.
2106 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2108 * elf.c: Eliminate references to __sparcv9 macro; replace with
2109 autoconf variables HAVE_PSINFO32_T etc.
2110 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2111 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2113 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2114 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2115 * aclocal.m4: Ditto.
2116 * configure: Regenerate.
2118 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2120 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2121 for any shared link, not just shared -Bsymbolic.
2122 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2123 any shared link, and pass link info to it.
2124 (elf_i386_size_dynamic_sections): Update comment.
2125 (elf_i386_discard_copies): Modify to discard relocs for symbols
2126 that have been forced local.
2127 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2128 that have been forced local.
2130 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2132 * elflink.h (elf_link_add_object_symbols): Allow common
2133 symbols to have an alignment of 1 if explicitly requested, and
2134 not overridden by other definitions.
2136 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2138 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2139 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2141 2000-08-22 H.J. Lu <hjl@gnu.org>
2143 * elf-bfd.h (elf_link_hash_table): Add runpath.
2145 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2146 * bfd-in2.h: Rebuilt.
2148 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2149 "runpath" field to NULL.
2150 (bfd_elf_get_runpath_list): New function.
2152 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2155 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2157 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2158 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2159 explicitly. Improve validation of r_type.
2161 2000-08-21 H.J. Lu <hjl@gnu.org>
2163 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2164 dynamic allocated content space. Add a comment to remind us that
2165 one day this ought to be fixed.
2166 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2167 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2168 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2170 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2172 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2173 field with the newly relocated value instead of adding it to the
2174 existing immediate field.
2175 (elf32_i860_relocate_splitn): Likewise.
2176 (elf32_i860_relocate_highadj): Likewise.
2178 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2180 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2181 was previously just a stub).
2183 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2185 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2187 (_bfd_elf_create_dynamic_sections): Likewise.
2189 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2191 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2192 for undefined symbols to be the beginning of the section.
2194 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2195 four extra entries at the beginning of the .rela.plt section.
2196 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2197 section to account for the four reserved entries in the .plt section.
2199 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2201 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2202 to the list of NOPs we recognize after a branch-and-link.
2203 Use the ori NOP when one is needed.
2205 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2208 2000-08-14 Jim Wilson <wilson@cygnus.com>
2210 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2211 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2212 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2215 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2217 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2219 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2221 * elf32-i860.c (elf32_i860_relocate_section): New function.
2222 (i860_final_link_relocate): New function.
2223 (elf32_i860_relocate_splitn): New function.
2224 (elf32_i860_relocate_pc16): New function.
2225 (elf32_i860_relocate_highadj): New function.
2226 (elf32_i860_howto): Minor adjustments to some relocations.
2227 (elf_info_to_howto_rel): Define.
2228 (elf_backend_relocate_section): Define.
2230 2000-08-10 Nick Clifton <nickc@cygnus.com>
2232 * elf32-arm.h: Fix formatting.
2234 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2236 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2238 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2240 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2242 2000-08-07 Kazu Hirata <kazu@hxi.com>
2244 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2245 * elf64-ia64.c: Fix a typo.
2247 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2249 * elf32-i860.c (elf32_i860_howto_table): New structure.
2250 (lookup_howto): New function.
2251 (elf32_i860_reloc_type_lookup): New function.
2252 (elf32_i860_info_to_howto_rela): New function.
2253 (elf_code_to_howto_index): New structure.
2254 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2255 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2256 elf32_i860_reloc_type_lookup.
2258 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2260 * som.c (struct fixup_format): Constify `format'.
2261 (som_hppa_howto_table): Use SOM_HOWTO macro.
2262 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2263 (som_bfd_reloc_type_lookup): Likewise.
2264 (compare_subspaces): Remove unused `count1', `count2'.
2265 (som_begin_writing): Remove unused `total_reloc_size'.
2266 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2267 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2268 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2269 (som_find_nearest_line): Decorate unused parameter(s).
2270 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2271 (som_bfd_link_split_section): Likewise.
2273 2000-08-03 Nick Clifton <nickc@cygnus.com>
2275 * section.c: Restore backed out code.
2276 * elf.c: Restore backed out code.
2277 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2278 binaries from working.
2279 * bfd-in2.h: Regenerate.
2281 2000-08-03 H.J. Lu <hjl@gnu.org>
2283 * section.c: Back out the change made by Nick Clifton
2284 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2286 * bfd-in2.h: Likewise.
2289 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2291 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2293 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2295 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2296 * bfd-in2.h, libbfd.h: Regenerate.
2298 2000-07-31 Nick Clifton <nickc@cygnus.com>
2300 * section.c (struct sec): Add new boolean field 'segment_mark'.
2301 (STD_SECTION): Initialise new field to zero.
2303 * bfd-in2.h: Regenerate.
2305 * elf.c (copy_private_bfd_data): Reorganise section to segment
2306 mapping to cope with moved sections requiring new segments,
2307 and overlapping segments.
2308 (SEGMENT_END): New macro: Return the end address of a segment.
2309 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2310 contains a section by comparing their VMA addresses.
2311 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2312 contains a section by comparing their LMA addresses.
2313 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2314 section should be included in a segment.
2315 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2316 follows another in memory.
2317 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2320 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2322 * cpu-i860.c: Added comments.
2324 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2325 bfd_elf32_i860_little_vec.
2326 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2327 (ELF_MAXPAGESIZE): Changed to 4096.
2329 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2331 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2333 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2334 config for little endian elf32 i860.
2335 (targ_defvec): Define for the new config above
2336 as "bfd_elf32_i860_little_vec".
2337 (targ_selvecs): Define for the new config above
2338 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2340 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2343 * configure: Regenerated.
2345 2000-07-27 H.J. Lu <hjl@gnu.org>
2347 * elflink.h (elf_merge_symbol): Take one more argument,
2348 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2349 entry. Don't overide the existing weak definition if dt_needed
2351 (elf_link_add_object_symbols): Pass dt_needed to
2352 elf_merge_symbol ().
2354 2000-07-27 Nick Clifton <nickc@cygnus.com>
2356 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2359 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2361 * configure.host (*-*-aix*): AIX has 'long long' always.
2363 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2364 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2365 (xcoff_write_archive_contents_big): Don't update the offset
2366 of the symbol table, xcoff_write_armap will do it.
2368 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2370 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2371 of dynobj for SGI_COMPAT checks.
2373 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2375 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2376 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2377 * bfd-in2.h: Regenerate.
2379 2000-07-21 Nick Clifton <nickc@cygnus.com>
2381 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2382 range symbol indices in relocs and issue an error message.
2384 2000-07-20 H.J. Lu <hjl@gnu.org>
2386 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2387 info->new_dtags when setting DT_FLAGS_1. It will only be set
2388 by the new linker options. It shouldn't break anything.
2390 2000-07-20 H.J. Lu <hjl@gnu.org>
2392 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2393 only if info->new_dtags is true.
2395 2000-07-20 H.J. Lu <hjl@gnu.org>
2397 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2398 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2400 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2402 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2403 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2404 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2405 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2406 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2407 * Makefile.in: Rebuild.
2408 * aclocal.m4: Rebuild.
2409 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2410 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2411 (bfd_cris_arch): Declare.
2412 (bfd_archures_list): Add bfd_cris_arch.
2413 * bfd-in2.h: Rebuild.
2414 * config.bfd: (cris-*-*): New target.
2415 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2416 * configure: Rebuild.
2417 * elf.c (prep_headers): Add bfd_arch_cris.
2418 * libbfd.h: Rebuild.
2419 * libaout.h (enum machine_type): Add M_CRIS.
2420 * reloc.c: Add CRIS relocations.
2421 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2422 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2423 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2424 * po/POTFILES.in, po/bfd.pot: Regenerate.
2426 2000-07-19 H.J. Lu <hjl@gnu.org>
2428 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2429 DF_TEXTREL if DT_TEXTREL is set.
2430 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2431 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2432 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2433 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2434 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2435 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2436 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2437 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2438 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2439 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2441 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2442 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2444 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2446 2000-07-19 H.J. Lu <hjl@gnu.org>
2448 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2449 * bfd-in2.h: Rebuild.
2451 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2452 (elf_dt_soname): New.
2454 * elf.c (bfd_elf_set_dt_needed_soname): New.
2456 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2457 entry if the shared object loaded by DT_NEEDED is used to
2458 resolve the reference in a regular object.
2460 2000-07-19 H.J. Lu <hjl@gnu.org>
2462 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2463 DT_DEPAUDIT and DT_AUDIT as strings.
2465 2000-07-19 Nick Clifton <nickc@cygnus.com>
2467 * format.c: Fix formatting.
2469 2000-07-19 H.J. Lu <hjl@gnu.org>
2471 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2473 2000-07-19 H.J. Lu <hjl@gnu.org>
2475 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2476 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2477 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2478 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2479 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2480 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2481 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2483 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2485 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2486 renamed functions from here...
2487 (assign_section_numbers): Use renamed functions.
2488 (prep_headers): Use renamed functions.
2490 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2491 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2492 * bfd-in2.h: Regenerate.
2494 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2496 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2497 parenthesis in if statement.
2499 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2501 Enable the support for Traditional MIPS.
2502 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2503 return ict_none appropriately for traditional mips targets.
2504 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2505 (STUB_MOVE): Conditionalize for traditonal mips.
2506 (STUB_LI16): Likewise.
2507 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2508 room for RTPROC header.
2509 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2510 the permission for the PT_DYNAMIC as read, write and execute.
2511 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2512 for traditonal mips.
2513 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2514 _DYNAMIC_LINKING for traditonal mips.
2515 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2516 in case of traditonal mips.
2517 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2518 entry is required. For a function if PLT is not required then set the
2519 corresponding hash table entry to 0.
2520 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2522 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2523 shared object set the value to 0.
2524 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2525 _DYNAMIC_LINKING for traditonal mips.
2526 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2527 for traditonal mips.
2529 2000-07-15 H.J. Lu <hjl@gnu.org>
2531 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2533 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2535 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2536 out a structure that is BFD_IN_MEMORY.
2538 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2540 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2541 bfd pointer. Print section id instead of bfd pointer for local
2542 syms. Prefix addend with `+' for global syms as well as local.
2543 Correct calculation of name component lengths.
2544 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2546 From David Huggins-Daines <dhd@linuxcare.com>
2547 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2548 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2549 (elf64_hppa_modify_segment_map): Likewise.
2551 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2553 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2554 addresses to be "naturally" sign extended. Return -1 if unknown.
2555 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2556 * bfd-in2.h: Regenerate.
2558 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2560 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2561 and ECOF_SIGNED_64 to list ways to extract an offset.
2562 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2563 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2565 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2566 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2568 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2570 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2571 bfd_get_start_address.
2572 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2573 (elf_swap_ehdr_out): Ditto.
2575 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2577 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2578 compatibility with older binutils.
2580 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2582 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2583 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2585 From Ryan Bradetich <rbradetich@uswest.net>
2586 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2587 (parse_line_table): Ditto.
2588 (_bfd_dwarf1_find_nearest_line): Ditto.
2589 * syms.c (cmpindexentry): Remove extra `*' from params.
2591 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2593 * elf32-mips.c (sort_dynamic_relocs): New Function.
2594 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2595 via qsort to sort the dynamic relocations in increasing r_symndx
2598 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2600 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2601 ATTRIBUTE_UNUSED to unused args.
2602 (get_opd): Likewise.
2603 (get_plt): Likewise.
2604 (get_dlt): Likewise.
2605 (get_stub): Likewise.
2606 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2607 (elf64_hppa_link_output_symbol_hook): Likewise.
2608 (elf64_hppa_check_relocs): Delete unused var.
2609 (elf64_hppa_size_dynamic_sections): Likewise.
2610 (elf64_hppa_finalize_opd): Likewise.
2611 (elf64_hppa_finalize_dynreloc): Likewise.
2612 (elf64_hppa_modify_segment_map): Likewise.
2613 (elf64_hppa_finish_dynamic_sections): Likewise.
2615 * elf-hppa.h (elf_hppa_final_write_processing): Add
2616 ATTRIBUTE_UNUSED to unused args.
2617 (elf_hppa_final_link_relocate): Likewise.
2618 (elf_hppa_record_segment_addrs): Add paretheses.
2619 (elf_hppa_relocate_section): Constify dyn_name.
2621 From David Huggins-Daines <dhd@linuxcare.com>
2622 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2623 rearrange case statement so that it gets preferred to 32-bit ones.
2625 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2626 asection->id instead of address of asection structure.
2627 (elf32_hppa_size_stubs): Likewise.
2629 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2630 for .init* and .fini*.
2632 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2633 and addends used in stub names to 32 bits.
2634 (elf32_hppa_size_stubs): Likewise.
2636 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2637 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2638 not bfd_put_64. Fix minor comment typo and formatting.
2640 Changes to create multiple linker stubs, positioned immediately
2641 before the section where they are required.
2642 * elf32-hppa.c: Don't include hppa_stubs.h.
2643 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2644 (elf32_hppa_stub_hash_table): Delete.
2645 (elf32_hppa_link_hash_entry): Delete.
2646 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2647 stub_hash_table, and store the struct here rather than a pointer.
2648 Delete output_symbol_count. Add offset array. Change
2649 global_value to a bfd_vma.
2650 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2651 (elf32_hppa_stub_hash_traverse): Delete.
2652 (elf32_hppa_name_of_stub): Delete.
2653 (elf32_hppa_link_hash_lookup): Delete.
2654 (elf32_hppa_link_hash_traverse): Delete.
2655 (elf32_hppa_stub_hash_table_init): Delete.
2656 (elf32_hppa_size_of_stub): Pass input section and offset rather
2657 than location and calculate location here. Don't pass name as all
2658 stubs are now the same size.
2659 (elf32_hppa_stub_hash_newfunc): Init new fields.
2660 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2662 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2663 comparing against ints. Rewrite stub handling code.
2664 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2665 Case enums to int before comparing against ints. Remove
2666 bfd_reloc_dangerous case.
2667 (elf32_hppa_build_one_stub): Rewrite.
2668 (elf32_hppa_size_one_stub): New function.
2669 (elf32_hppa_build_stubs): Rewrite.
2670 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2671 Rewrite stub-handling specific code.
2673 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2675 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2677 * hppa_stubs.h: Delete.
2678 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2679 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2680 * Makefile.in: Regenerate.
2682 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2685 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2687 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2688 and section name for bfd_reloc_notsupported error message.
2689 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2690 bfd_reloc_notsupported.
2691 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2693 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2694 undefined weak symbols for all relocs.
2695 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2696 offsets are relative to one past the delay slot.
2697 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2698 branch destination. Put addend into stub name too.
2699 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2700 adjust by 8 when deciding whether a linker stub is needed. Put
2701 addend into stub name as for above.
2703 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2704 various args and vars.
2705 (elf32_hppa_bfd_final_link_relocate): Here too.
2706 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2707 inner block var to avoid shadowing.
2709 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2711 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2712 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2713 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2715 * libhppa.h: Change practically all unsigned ints to plain ints.
2716 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2719 From Ryan Bradetich <rbradetich@uswest.net>
2720 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2721 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2723 From David Huggins-Daines <dhd@linuxcare.com>
2724 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2725 to the new OP_* ones.
2727 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2728 error exit. Bail out earlier on plabel relocs that we aren't
2729 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2730 string, and then don't free our copy.
2731 (elf32_hppa_build_one_stub): Make insn unsigned int.
2733 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2734 available with BL, not BE and BLE.
2736 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2737 code for elf arg relocs.
2738 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2739 argument with elf_link_hash_entry h. Handle undefined weak
2740 symbols. Move $global$ lookup from here...
2741 (elf32_hppa_relocate_section): ...to here. Return correct error
2742 message for non-handled relocs.
2743 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2744 wrong test was -0x3ffff to +0x40000.
2746 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2747 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2748 Handle them as such.
2749 (elf_hppa_relocate_insn): Fix a typo.
2751 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2752 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2753 assemble_17, assemble_21): Delete.
2754 Supply defines for all 64 possible opcodes.
2755 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2756 formats. Handle COMICLR.
2757 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2760 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2761 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2762 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2764 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2765 the local syms - did this code get deleted accidentally? Ignore
2766 undefined and undefweak syms.
2768 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2769 block. Use it instead of elf64_hppa_hash_table (info).
2770 (elf_hppa_final_link_relocate): Use hppa_info instead of
2771 elf64_hppa_hash_table (info).
2773 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2774 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2775 (hppa_rebuild_insn): Mask immediate bits here instead.
2776 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2778 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2780 * section.c (struct sec): Add id field. Tidy comment formatting.
2781 (bfd_make_section_anyway): Set id.
2782 (STD_SECTION): Init id too.
2783 Change CONST to const throughout.
2784 * archures.c (bfd_arch_info): Tidy comment.
2785 (bfd_arch_list): Change a CONST to const.
2786 * libbfd-in.h: Tidy comments and replace CONST with const.
2787 * elf-bfd.h: Likewise.
2788 * libbfd.h: Regenerate.
2789 * bfd-in2.h: Regenerate.
2790 * libcoff.h: Regenerate.
2792 2000-07-07 DJ Delorie <dj@redhat.com>
2794 * archive.c (_bfd_write_archive_contents): Add an informative
2797 2000-07-06 Kazu Hirata <kazu@hxi.com>
2799 * srec.c: Fix formatting.
2801 2000-06-05 DJ Delorie <dj@redhat.com>
2805 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2807 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2808 value of PC-relative offsets.
2810 2000-07-03 Jim Wilson <wilson@cygnus.com>
2812 * elf64-alpha.c (alpha_elf_size_info): New.
2813 (elf_backend_size_info): Define to alpha_elf_size_info.
2814 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2816 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2818 * elf32-mips.c: Include elf32-target.h again for the traditional
2821 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2823 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2824 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2825 (avr_info_to_howto_rela): Likewise.
2826 (elf32_avr_gc_mark_hook): Likewise.
2827 (elf32_avr_gc_sweep_hook): Likewise.
2828 (elf32_avr_relocate_section): Likewise.
2830 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2832 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2833 an external symbol for a non-shared, non-relocatable link.
2835 2000-07-03 Nick Clifton <nickc@redhat.com>
2837 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2838 is an external symbol.
2839 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2842 2000-07-03 Kazu Hirata <kazu@hxi.com>
2844 * reloc16.c: Fix formatting.
2846 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2848 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2849 to add a new target for traditional mips i.e
2850 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2851 * configure.in: Likewise.
2852 * configure: Rebuild.
2853 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2855 (bfd_elf32_tradlittlemips_vec): Likewise.
2856 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2857 to see that elfNN_bed does not get redefined even if the target file
2858 is included twice for a chip. See elf32-mips.c.
2860 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2862 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2863 (CLEANFILES): Add DEPA.
2864 * Makefile.in: Regenerate.
2866 2000-06-30 DJ Delorie <dj@cygnus.com>
2868 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2869 can't assume the PE header is at 0x80.
2871 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2873 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2875 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2877 * go32stub.h: Update stub.
2879 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2881 * archures.c (bfd_mach_avr5): Define.
2882 * bfd-in2.h (bfd_mach_avr5): Define.
2883 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2884 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2885 (compatible): Update comment. Add missing test.
2886 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2887 for avr2 and avr4. Simplify 8K wrap code.
2888 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2889 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2891 2000-06-26 Kazu Hirata <kazu@hxi.com>
2893 * coff-h8300.c: Fix formatting.
2894 * cpu-h8300.c: Likewise.
2896 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2898 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2899 for local symbols whose names are unknown.
2901 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2903 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2905 * Makefile.in: Regenerate.
2906 * doc/Makefile.in: Regenerate.
2908 2000-06-20 H.J. Lu <hjl@gnu.org>
2910 * Makefile.am: Rebuild dependency.
2911 * Makefile.in: Rebuild.
2913 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2915 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2916 (elf_backend_copy_indirect_symbol): Map to the new function.
2918 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2920 * archive.c (normalize): Correct pointer comparison when checking
2922 (bfd_bsd_truncate_arname): Likewise.
2923 (bfd_gnu_truncate_arname): Likewise.
2925 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2927 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2928 sections elf_{text,data}_{section,symbol}.
2929 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2930 (_bfd_mips_elf_hide_symbol): New function.
2931 (elf_backend_hide_symbol): Map to the new function.
2932 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2933 definitions of mips_elf_{text,data}_{section,symbol}.
2934 (mips_elf_local_relocation_p): Try to find the direct symbol
2935 based on new check_forced argument.
2936 (mips_elf_calculate_relocation): Use new version of
2937 mips_elf_local_relocation_p.
2938 (mips_elf_relocate_section): Likewise.
2939 (_bfd_mips_elf_relocate_section): Likewise.
2940 (mips_elf_sort_hash_table): Only assert that have enough GOT
2942 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2943 entry if the relocation based on the new external argument.
2944 (mips_elf_create_dynamic_relocation): Assert that we have a
2945 section contents allocated where we can swap out the dynamic
2947 (mips_elf_calculate_relocation): Find the real hash-table entry
2948 correctly by using h->root.root.type. Only create a dynamic
2949 relocation entry if the symbol is defined in a shared library.
2950 Create an external GOT entry for the GOT16 relocation if the
2951 symbol was forced local.
2952 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2953 dynamic index if the symbol was forced local.
2955 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2957 * elf32-mips.c: Fix typos in comments.
2959 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2961 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2964 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2966 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2967 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2968 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2969 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2970 (bfd_elf32_m68hc11_vec): Likewise.
2971 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2972 Supports 68hc11 & 68hc12 at the same time.
2973 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2975 (bfd_elf32_m68hc11_vec): Likewise.
2976 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2977 * archures.c (bfd_m68hc12_arch): Define and register in global list
2978 (bfd_m68hc11_arch): Likewise.
2979 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2980 BFD_RELOC_M68HC11_3B): Define.
2981 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2982 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2984 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2986 * elf_bfd.h (struct elf_backend_data): Add info argument to
2987 elf_backend_hide_symbol.
2988 (_bfd_elf_link_hash_hide_symbol): Likewise.
2989 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2990 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2991 * elflink.h (elf_link_add_object_symbols): Likewise.
2992 (elf_link_assign_sym_version): Likewise.
2994 2000-06-18 H.J. Lu <hjl@gnu.org>
2996 * coff-i386.c (coff_i386_reloc): Don't return in case of
2997 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2998 Compensate PE relocations when linking with non-PE object
2999 files to generate a non-PE executable.
3001 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3003 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3004 GOT entries if we're doing a static link or -Bsymbolic link.
3006 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3008 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3009 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3011 (elf_link_output_relocs): Likewise.
3012 (elf_reloc_link_order): Likewise.
3014 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3016 * archures.c (enum bfd_architecture): #define constants for
3017 PowerPc and RS6000 machine numbers.
3018 * bfd-in2.h: Regenerate.
3019 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3020 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3021 and RS6000 machine numbers using #defined constants from
3023 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3024 machine numbers using #defined constants from archures.c. Add
3025 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3026 64-bit words in 620 entry.
3027 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3029 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3031 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3033 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3034 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3035 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3037 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3039 * bfd-in.h (bfd_family_coff): Define.
3040 * bfd-in2.h: Regenerate.
3041 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3042 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3043 instead of bfd_target_coff_flavour.
3044 * cofflink.c (_bfd_coff_final_link): Likewise.
3045 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3046 exclude XCOFF files.
3047 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3049 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3050 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3051 * xcofflink.c (XCOFF_XVECP): Delete.
3052 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3053 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3054 bfd_xcoff_record_link_assignment,
3055 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3056 check for bfd_target_xcoff_flavour.
3058 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3060 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3062 (read_hdr): New function.
3063 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3064 of trying to extract individual registers. Set abfd->arch_info
3065 to match the architecture that created the core file.
3066 (rs6000coff_get_section_contents): Delete.
3067 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3069 2000-06-14 H.J. Lu <hjl@gnu.org>
3071 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3074 2000-06-13 H.J. Lu <hjl@gnu.org>
3076 * configure: Regenerate.
3078 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3080 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3083 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3085 * configure.in (VERSION): Update to show this is the CVS mainline.
3087 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3089 * elf32-d10v.c: Include elf/d10v.h
3090 (enum reloc_type): Delete.
3091 * elf32-d30v.c: Include elf/d30v.h
3092 (enum reloc_type): Delete.
3094 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3095 * Makefile.in: Regenerate.
3097 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3098 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3099 move HOWTOs into elf_howto_table.
3100 (R_386_standard, R_386_ext_offset): Define.
3101 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3102 (elf_i386_reloc_type_lookup): Modify calculation of index into
3103 elf_howto_table since we've removed the padding.
3104 (elf_i386_info_to_howto_rel): Likewise.
3105 (elf_i386_relocate_section): Likewise.
3107 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3109 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3111 2000-06-05 H.J. Lu <hjl@gnu.org>
3113 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3114 an error when seeing an undefined symbol with hidden/internal
3115 attribute. It is handled in *_relocate_section ().
3117 2000-06-05 H.J. Lu <hjl@gnu.org>
3119 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3120 indirect symbol for the ELF_LINK_NON_ELF bit.
3121 (elf_link_output_extsym): Don't output the indirect symbol even
3122 if the ELF_LINK_NON_ELF bit is set.
3124 2000-06-01 J.T. Conklin <jtc@redback.com>
3126 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3127 (i[3456]86-*-netbsdaout*): New target.
3128 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3129 (i[3456]86-*-openbsd*): Likewise.
3131 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3133 * trad-core.c: From hpux-core.c, include <dirent.h> or
3134 <sys/ndir.h> when possible.
3136 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3138 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3139 definitions. We must not assume they are sorted in the file
3140 according to their index numbers.
3142 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3144 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3145 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3146 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3148 2000-05-30 Nick Clifton <nickc@cygnus.com>
3150 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3151 80960CA, 80960MC as valid machine names.
3153 2000-05-30 H.J. Lu <hjl@gnu.org>
3155 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3156 visibility bits if the symbol is undefined. Correctly handle
3157 weak undefined symbols with hidden and internal attributes.
3159 * elflink.h (elf_link_add_object_symbols): Always turn the
3160 symbol into local if it has the hidden or internal attribute.
3162 2000-05-29 Philip Blundell <philb@gnu.org>
3164 * ppcboot.c: Add packed attribute if compiling with GCC.
3166 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3168 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3170 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3172 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3173 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3174 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3177 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3179 * Makefile.am: Update dependencies with "make dep-am"
3180 * Makefile.in: Regenerate.
3182 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3183 bindtextdomain): Replace defines with those from intl/libgettext.h
3184 to quieten gcc warnings.
3186 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3188 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3190 * archive.c (normalize, bfd_bsd_truncate_arname,
3191 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3192 file names with backslashes.
3194 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3197 * sysdep.h: Include filenames.h.
3199 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3201 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3203 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3205 * elf64-sparc.c (sparc64_elf_relax_section): New.
3206 (sparc64_elf_relocate_section): Optimize tail call into branch always
3208 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3209 (elf32_sparc_relax_section): New.
3211 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3213 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3214 Remove unusued variables.
3215 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3216 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3217 previous fix, so that shared libs really don't influence targets
3218 extension mask and memory model.
3220 2000-05-23 H.J. Lu <hjl@gnu.org>
3222 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3223 h->root.other not h->other.
3224 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3226 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3228 2000-05-23 H.J. Lu <hjl@gnu.org>
3230 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3231 undefined symbol with the non-default visibility attributes.
3232 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3233 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3234 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3235 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3236 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3237 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3238 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3239 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3240 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3241 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3242 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3244 2000-05-22 Richard Henderson <rth@cygnus.com>
3246 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3247 PCREL22, PCREL64I. Zero size of special relocs.
3248 (elf64_ia64_reloc_type_lookup): Likewise.
3249 (USE_BRL, oor_brl, oor_ip): New.
3250 (elf64_ia64_relax_section): New.
3251 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3252 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3253 (elf64_ia64_relocate_section): Likewise.
3254 (bfd_elf64_bfd_relax_section): New.
3255 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3256 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3257 * bfd-in2.h, libbfd.h: Regenerate.
3259 2000-05-22 Nick Clifton <nickc@cygnus.com>
3261 * configure.in : Add peigen.lo to MIPS PE targets.
3262 * configure: Regenerate.
3264 2000-05-22 Momchil Velikov <velco@fadata.bg>
3266 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3267 only if it is known for both input and output bfds. Separate
3268 error message strings as in some languages, it may be necessary
3269 to change more than one place in the string to change between
3272 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3273 endianess checks, call _bfd_generic_verify_endian_match() instead.
3275 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3277 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3279 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3280 endianess before checking bfd flavours.
3282 2000-05-22 H.J. Lu <hjl@gnu.org>
3284 * elflink.h (elf_link_output_extsym): Clear the visibility
3285 field for symbols not defined locally.
3287 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3289 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3290 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3291 (hppa_rebuild_insn): Mask immediate bits here instead.
3292 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3294 2000-05-18 Momchil Velikov <velco@fadata.bg>
3296 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3297 relocs for an executable, ensure that they are virtual addresses.
3299 2000-05-18 Jeffrey A Law (law@cygnus.com)
3301 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3303 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3304 Rick Gorton <gorton@scrugs.lkg.dec.com>
3306 * elflink.h: Add emitrelocations support: when enabled, relocation
3307 information and relocation sections are put into final output
3308 executables. If the emitrelocations flag is set, do the following:
3309 (elf_bfd_final_link): Emit relocation sections.
3310 (elf_link_input_bfd): Compute relocation section contents.
3311 (elf_gc_sections): Don't clean relocation sections.
3313 2000-05-16 Catherine Moore <clm@cygnus.com>
3315 * som.c (som_decode_symclass): Recognize weak symbols.
3317 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3319 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3320 read idata section only from dataoff.
3321 (pe_print_edata): Correctly check for valid eat_member.
3323 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3325 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3327 2000-05-14 Philip Blundell <philb@gnu.org>
3329 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3331 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3333 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3335 * peigen.c (pe_print_idata): Look for .idata section and print
3336 info even if data directory has zero entries. Read idata section
3337 starting from dataoff, and adjust all data offsets to suit. Cast
3338 all bfd_vma vars to unsigned long before passing to fprintf.
3339 * peigen.c (pe_print_edata): Similarly, look for .edata section
3340 and print info even if data directory has zero entries. Cast
3341 all bfd_vma vars to unsigned long before passing to fprintf.
3343 From Szabolcs Szakacsits <szaka@F-Secure.com>
3344 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3345 directory size which may be bogus.
3346 * peigen.c (pe_print_edata): Similarly.
3348 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3350 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3352 (copy_private_bfd_data): Allow for space possibly taken up by elf
3353 headers when calculating segment physical address from lma.
3355 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3357 * versados.c (versados_scan): Init stringlen and pass_2_done.
3359 * trad-core.c (trad_unix_core_file_p): Return
3360 bfd_error_wrong_format rather than bfd_error_file_truncated.
3362 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3363 add_data_entry. DataDirectory virtual address is relative.
3364 (pe_print_idata): Account for relative DataDirectory virtual
3365 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3366 (pe_print_edata): Similarly.
3368 From Szabolcs Szakacsits <szaka@F-Secure.com>
3369 * peigen.c (dir_names): Add Delay Import Directory.
3370 (pe_print_idata): Always search for bfd section containing
3371 idata address rather than looking up section name. Print this
3372 section name rather than .idata.
3373 (pe_print_edata): Similarly. Also print some fields as %08lx.
3374 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3377 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3379 * xcoff.h: Rename to xcoff-target.h
3380 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3381 * coff-rs6000.c: Ditto.
3382 * coff64-rs6000.c: Ditto.
3383 * coff-pmac.c: Ditto.
3384 * Makefile.in: Regenerate.
3386 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3388 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3389 Change U802TOC64MAGIC to U803XTOCMAGIC.
3391 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3393 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3394 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3395 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3397 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3399 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3401 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3403 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3404 hidden and internal symbols.
3405 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3407 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3408 assign a PLT or GOT entry to symbols with hidden and
3409 internal visibility.
3411 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3413 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3415 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3417 2000-05-02 H.J. Lu <hjl@gnu.org>
3419 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3422 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3424 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3425 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3427 * Makefile.in: Regenerate.
3429 2000-05-01 Jim Wilson <wilson@cygnus.com>
3431 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3432 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3433 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3434 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3435 * Makefile.in: Rebuild.
3437 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3439 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3440 doesn't work very well.
3442 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3443 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3444 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3445 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3446 (elf_hppa_info_to_howto): Likewise.
3447 (elf_hppa_info_to_howto_rel): Likewise.
3448 (elf_hppa_reloc_type_lookup): Likewise.
3449 (elf_hppa_is_local_label_name): Likewise.
3450 (elf_hppa_fake_sections): Likewise.
3451 (elf_hppa_final_write_processing): Likewise.
3452 (elf_hppa_howto_table): Fully initialise all entries.
3453 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3454 (elf_hppa_info_to_howto): Likewise.
3455 (elf_hppa_info_to_howto_rel): Likewise.
3456 (elf_hppa_reloc_type_lookup): Likewise.
3457 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3458 elf_hppa_unmark_useless_dynamic_symbols,
3459 elf_hppa_remark_useless_dynamic_symbols,
3460 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3461 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3462 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3463 elf32-hppa.c mess is cleaned up.
3464 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3465 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3466 r_field then call hppa_field_adjust inline func with variable
3467 r_field arg, instead call hppa_field_adjust with fixed arg.
3468 In case R_PARISC_PCREL22F, don't set r_field.
3469 (elf_hppa_relocate_insn): Change args and return type to unsigned
3470 int. Call re_assemble_* funcs to do the work.
3472 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3475 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3477 (sign_extend): Mask first before sign extending.
3478 (low_sign_extend): Rewrite without condition expression.
3479 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3480 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3481 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3482 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3483 result as function return value rather than through pointer arg.
3484 Accept unsigned int args, and return unsigned int.
3485 (re_assemble_3): New. Combines function of dis_assemble_3 with
3486 re-assembly of opcode and immediate.
3487 (re_assemble_12): Likewise.
3488 (re_assemble_16): Likewise.
3489 (re_assemble_17): Likewise.
3490 (re_assemble_21): Likewise.
3491 (re_assemble_22): Likewise.
3492 (hppa_field_adjust): Rewrite and document, paying attention to
3493 size of types and signed/unsigned issues.
3494 (get_opcode): Shift before masking.
3495 (FDLW): Rename to FLDW.
3496 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3497 (hppa_rebuild_insn): Change args and return value to unsigned
3498 int. Make use of re_assemble_*. Correct case 11.
3500 * dep-in.sed: Handle ../opcodes/.
3501 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3502 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3503 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3504 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3505 elfarm-nabi.lo dependencies outside of auto-dependency area.
3506 Regenerate dependencies.
3507 * Makefile.in: Regenerate.
3509 * configure.in (TRAD_HEADER): Test non-null before
3511 * configure: Regenerate.
3513 * reloc.c: Fix mis-spelling in comment.
3515 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3517 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3518 * vms.c (vms_openr_next_archived_file): Return NULL.
3520 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3522 * coffcode.h Copy changes mistakenly done to libcoff.h in
3525 2000-04-29 Andreas Jaeger <aj@suse.de>
3527 * libbfd-in.h: Correctly check GCC version.
3528 * bfd-in.h: Likewise.
3529 * libhppa.h: Likewise.
3530 * libbfd.h: Regenerate.
3531 * bfd-in2.h: Regenerate.
3533 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3535 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3536 coffdu-rs6000.{lo,c}.
3537 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3539 * Makefile.in: Regenerate.
3540 * xcoff.h: New file.
3541 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3542 * coff-rs6000.c: Move all declarations and defines that are
3543 common to the xcoff backends into xcoff.h
3544 * coff64-rs6000.c: Ditto,
3546 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3548 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3549 _bfd_coff_force_symnames in strings and
3550 _bfd_coff_debug_string_prefix_length to their default values.
3551 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3553 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3555 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3556 _bfd_coff_force_symnames in strings and
3557 _bfd_coff_debug_string_prefix_length to their default values.
3559 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3561 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3562 Check local_got_refcounts before dereferencing.
3564 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3565 before deciding we don't need R_PPC_PLT32 relocation.
3566 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3569 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3571 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3573 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3574 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3575 (elf_i386_relocate_section): Allow for .plt to go missing.
3576 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3577 can use a relative reloc for got as elf_i386_relocate_section.
3578 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3580 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3582 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3584 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3586 * Makefile.am (coff64-rs6000.lo): New rule.
3587 * Makefile.in: Regenerate.
3588 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3589 xcoff_is_local_label_name, xcoff_rtype2howto,
3590 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3591 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3592 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3593 (NO_COFF_SYMBOLS): Define.
3594 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3595 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3597 (MINUS_ONE): New macro.
3598 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3600 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3601 coff_SWAP_aux_out): Map to the new functions.
3602 * coff64-rs6000.c: New file.
3603 * libcoff.h (bfd_coff_backend_data): Add new fields
3604 _bfd_coff_force_symnames_in_strings and
3605 _bfd_coff_debug_string_prefix_length.
3606 (bfd_coff_force_symnames_in_strings,
3607 bfd_coff_debug_string_prefix_length): New macros for above fields.
3608 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3609 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3610 of using coff_swap_sym_in directly.
3611 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3612 (coff_set_flags) Set magic for XCOFF64.
3613 (coff_compute_section_file_positions): Add symbol name length to
3614 string section length if bfd_coff_debug_string_prefix_length is
3616 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3617 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3618 using coff_swap_lineno_in directly.
3619 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3620 and _bfd_coff_debug_string_prefix_length fields.
3621 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3622 symbol names into strings table when
3623 bfd_coff_force_symnames_in_strings is true.
3624 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3625 SET_RELOC_VADDR): New macros.
3626 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3627 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3629 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3630 changes within RS6000COFF_C specific code.
3631 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3632 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3633 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3634 Extend existing hack on target name.
3635 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3637 * coff-tic54x.c (ticof): Keep up to date with new fields
3638 in bfd_coff_backend_data.
3639 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3640 targ_selvecs to include rs6000coff64_vec for rs6000.
3641 * configure.in: Add rs6000coff64_vec case.
3642 * cpu-powerpc.c: New bfd_arch_info_type.
3644 2000-04-24 Jeffrey A Law (law@cygnus.com)
3646 * config.bfd: Only disable elf32-hppa vectors, not all of the
3647 BSD and OSF configuration support. Provide (disabled) clauses
3649 * configure.in: Add clause for PA64 support.
3650 * configure: Rebuilt.
3652 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3653 (bfd_elf64_hppa_vec): Declare.
3655 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3656 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3657 (elf64-hppa.lo): Add dependencies.
3658 * Makefile.in: Rebuilt.
3660 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3662 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3664 * libhppa.h (dis_assemble_16): New function.
3665 (pa_arch): Added pa20w element.
3667 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3669 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3670 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3671 bfd_elf64_slurp_reloc_table.
3673 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3674 definitions to get external names.
3675 (elf_write_relocs): Renamed from write_relocs and make global.
3676 (elf_slurp_reloc_table): Make global.
3677 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3679 * archive.c (hpux_uid_gid_encode): New function.
3680 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3681 defined and the ID is greater than 99999.
3682 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3683 special uid/gid fields into 32 bit values.
3685 2000-04-21 Matthew Green <mrg@cygnus.com>
3687 * config.bfd: Add NetBSD/sparc64 support.
3689 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3690 David Mosberger <davidm@hpl.hp.com>
3691 Timothy Wall <twall@cygnus.com>
3692 Jim Wilson <wilson@cygnus.com>
3694 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3695 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3696 (BFD64_BACKENDS): Add elf64-ia64.lo.
3697 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3698 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3699 * Makefile.in: Rebuild.
3700 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3701 (bfd_ia64_arch): Declare.
3702 (bfd_archures_list): Add bfd_ia64_arch.
3703 * bfd-in2.h: Rebuild.
3704 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3705 * configure: Rebuild.
3706 * configure.host: (ia64-*-linux*): New host.
3707 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3708 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3709 * elf.c (prep_headers): Add bfd_arch_ia64.
3710 * libbfd.h: Rebuild.
3711 * reloc.c: Add IA-64 relocations.
3712 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3714 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3715 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3717 2000-04-21 Richard Henderson <rth@cygnus.com>
3719 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3720 contents when performing a partial link.
3721 (bfd_elf_d30v_reloc_21): Likewise.
3723 2000-04-20 H.J. Lu <hjl@gnu.org>
3725 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3726 patch to symbols defined by a shared object.
3727 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3729 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3732 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3733 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3735 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3737 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3738 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3739 (coff-ia64.lo): Add dependency.
3740 * Makefile.in: Regenerate.
3741 * coff-ia64.c: New file.
3742 * efi-app-ia32.c: Ditto.
3743 * efi-app-ia64.c: Ditto.
3744 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3745 (coff_set_flags): Ditto.
3746 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3747 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3748 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3749 * configure: Regenerate.
3750 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3751 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3752 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3753 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3754 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3755 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3756 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3757 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3758 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3759 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3760 (GET_PDATA_ENTRY): Ditto.
3761 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3762 data_start. Use above macros to read fields that are 64 bit wide for
3763 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3764 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3765 FileAlignment and SectionAlignment to minimum alignment if they
3767 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3768 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3769 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3770 Use above macros to write fields that are 64 bit wide for
3772 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3773 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3774 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3775 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3776 begin address, end address, and unwind info address only. Use
3777 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3779 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3780 HIGH3ADJ relocation names.
3781 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3782 * targets.c: Declare bfd_efi_app_ia32_vec and
3783 bfd_efi_app_ia64_vec.
3784 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3785 bfd_efi_app_ia64_vec.
3787 2000-04-17 Timothy Wall <twall@cygnus.com>
3789 * bfd-in2.h: Add prototypes for tic54x load page access.
3790 * bfd-in.h: Regenerate.
3791 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3792 in customized _set_arch_mach function.
3793 * coffcode.h (coff_set_alignment_hook): Set section load page if
3794 the appropriate macro is defined.
3795 (write_object_contents): Read section load page.
3797 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3799 * elf32-hppa.h: Update copyright date.
3801 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3802 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3804 * elf32-d30v.c (MAX32): Don't use LL suffix.
3805 (MIN32): Define in terms of MAX32.
3806 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3808 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3811 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3813 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3815 * dep-in.sed: Match space before file name, not after.
3816 * Makefile.am: Regenerate dependencies.
3817 * Makefile.in: Regenerate.
3819 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3820 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3821 extend without an if statement.
3823 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3825 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3827 * elf32-mips.c (gprel16_with_gp): Likewise.
3828 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3829 here using -0x40000, not (int)0xfffc0000.
3830 (elf32_hppa_size_of_stub): Likewise.
3832 2000-04-11 Timothy Wall <twall@cygnus.com>
3834 * coff-tic54x.c: Now builds with all targets.
3835 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3836 * Makefile.in: Regenerate.
3837 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3838 unitialized variable.
3840 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3842 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3843 --enable-build-warnings option.
3844 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3845 * Makefile.in, configure: Re-generate.
3847 2000-04-07 Nick Clifton <nickc@cygnus.com>
3849 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3850 BFD_RELOC_THUMB_PCREL_BLX.
3852 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3853 R_ARM_XPC25 and R_ARM_THM_PC22.
3855 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3856 R_ARM_XPC25 and R_ARM_THM_XPC22.
3857 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3858 R_ARM_[XPC25|THM_XPC22].
3860 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3861 elf/arm-oabi.h to elf/arm.h
3863 * Makefile.am: Fix dependency for elfarm-oabi.c
3864 * Makefile.in: Regenerate.
3866 * bfd-in2.h: Regenerate.
3867 * libbfd.h: Regenerate.
3869 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3871 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3872 and restore it on failure. Release newly allocated tdata on
3875 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3877 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3878 (decode_line_info): Set it. Report error if unit->line_offset is
3879 equal to or larger than it.
3881 2000-04-07 Timothy Wall <twall@cygnus.com>
3883 * targets.c: Added vecs for tic54x.
3884 * reloc.c: Added relocs for tic54x.
3885 * libbfd.h: Regenerated.
3886 * configure: Add TI COFF vecs for tic54x.
3887 * configure.in: Ditto.
3888 * config.bfd (targ_cpu): Recognize new tic54x target.
3889 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3890 * bfd-in2.h: Add tic54x target and relocations.
3891 * Makefile.am, Makefile.in: Add tic54x target.
3892 * archures.c (bfd_archures_list): Add tic54x target.
3893 * coff-tic54x.c: New.
3894 * cpu-tic54x.c: New.
3896 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3898 * elfcore.h (elf_core_file_p): call backend_object_p which
3899 thereby gets an opportunity to update the arch/machine type.
3901 2000-04-06 Timothy Wall <twall@cygnus.com>
3903 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3904 class. Handle SEC_CLINK and SEC_BLOCK flags.
3905 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3906 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3908 2000-04-06 Nick Clifton <nickc@cygnus.com>
3910 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3911 EF_INTERWORK if this is an unknown EABI.
3912 (elf32_arm_merge_private_bfd_data): Check EABI version
3913 numbers. Only check EF_xxx flags if the EABI version number
3915 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3916 if the EABI version number is unknown.
3917 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3918 if the EABI version number is unknown.
3920 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3922 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3923 BFD_RELOC_SH_LOOP_END.
3924 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3925 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3926 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3927 (sh_elf_reloc_loop): New function.
3928 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3930 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3931 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3932 * bfd-in2.h, libbfd.h: Regenerate.
3934 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3936 * po/bfd.pot: Regenerate.
3938 * Makefile.am: Remove extraneous mkdep comment.
3939 (MKDEP): Use gcc -MM rather than mkdep.
3940 (DEP): Quote when passing vars to sub-make. Add warning
3942 (DEP1): Rewrite for "gcc -MM".
3943 (CLEANFILES): Add DEP2.
3944 Update dependencies.
3945 * Makefile.in: Regenerate.
3947 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3949 * configure.in: Added corefile support for AIX 4.3. In particular,
3950 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3951 compiling rs6000-core.c.
3952 * configure: Regenerated.
3954 2000-04-03 H.J. Lu <hjl@gnu.org>
3956 * cache.c (bfd_open_file): Unlink the output file only if
3957 it has non-zero size.
3959 2000-04-01 Ken Block USG <block@zk3.dec.com>
3961 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3962 relative relocations for non-loaded sections in shared objects.
3963 (elf64_alpha_check_relocs): Similarly.
3965 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3967 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3968 BFD_RELOC_16 to switch for extended relocs.
3969 (MY_swap_ext_reloc_in): New.
3970 (MY_swap_ext_reloc_out): New.
3971 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3972 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3973 (NAME(aout,squirt_out_relocs)): Similarly use
3974 MY_swap_ext_reloc_out.
3975 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3977 2000-04-03 Kazu Hirata <kazu@hxi.com>
3979 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3980 the R_PCRWORD_B case.
3982 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3984 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3988 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3990 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3991 HOWTO references to bfd_elf_generic_reloc, that have
3992 partial_inplace == true, now use the new function. The function
3993 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3994 extends its fixes to the R_M32R_{16,24,32} relocs.
3995 The new logic in m32r_elf_lo16_reloc() has been removed, and
3996 it instead calls the new routine to obtain that functionality.
3998 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4000 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4001 elf32_avr_check_relocs, avr_final_link_relocate,
4002 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4003 elf32_avr_object_p): Add prototypes.
4004 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4005 (bfd_elf_avr_final_write_processing): Make static.
4007 2000-03-27 Denis Chertykov <denisc@overta.ru>
4009 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4010 * archures.c (bfd_architecture): Add AVR architecture.
4011 (bfd_archures_list): Add reference to AVR architecture info.
4012 * elf.c (prep_headers): Handle bfd_arch_avr.
4013 * reloc.c: Add various AVR relocation enums.
4014 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4016 * Makefile.am: Add support for AVR elf.
4017 * configure.in: Likewise.
4018 * config.bfd: Likewise.
4019 * Makefile.in: Regenerate.
4020 * configure: This too.
4021 * bfd-in2.h: And this.
4022 * libbfd.h: And this.
4024 2000-03-24 H.J. Lu <hjl@gnu.org>
4026 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4027 (elf64_alpha_find_reloc_at_ofs): Likewise.
4029 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4031 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4032 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4033 allowable range used to be -2**(n-1) to 2**n-1.
4034 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4035 "boolean overflow" with "bfd_reloc_status_type flag".
4037 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4039 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4041 2000-03-14 Kazu Hirata <kazu@hxi.com>
4043 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4044 of shrinks properly, including the last reloc.
4046 2000-03-13 Kazu Hirata <kazu@hxi.com>
4048 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4051 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4053 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4054 a format mismatch rather than an "error" from bfd_read such as
4055 bfd_error_file_truncated.
4057 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4059 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4060 sign-extension and big-endian compensation for
4061 R_MIPS_64 even in ld -r.
4063 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4065 * elf32-mips.c (mips_elf_next_relocation): Rename from
4066 mips_elf_next_lo16_relocation, and generalize to look
4067 for any relocation type.
4068 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4069 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4070 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4071 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4072 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4073 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4074 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4075 (mips_rtype_to_howto): Likewise.
4076 (mips_elf_calculate_relocation): Handle new relocs.
4077 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4078 are paired. The addend for R_MIPS_GNU_REL16_S2
4079 is shifted right two bits.
4081 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4083 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4084 comment, and ensure it doesn't happen again.
4085 (bfd_install_relocation): Same here.
4086 (_bfd_relocate_contents): Don't bother assigning unused signmask
4087 shift result. Fix typos in comments.
4088 Remove trailing whitespace throughout file.
4090 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4092 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4093 * bfd-in2.h: Rebuild.
4095 2000-03-06 Nick Clifton <nickc@cygnus.com>
4097 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4099 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4100 (SIZEOF_ILF_STRINGS): Redefine.
4101 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4102 relative reloc, as opposed to a section relative reloc.
4103 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4105 Add length of symbol's prefix to string pointer.
4106 Store a pointer to the symbol in the symbol pointer table.
4107 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4108 Initialise the symbol pointer table.
4109 Store the hint in the Hint/Name table.
4110 Make the jump reloc be symbol realtive, not section relative.
4111 Create an import symbol for imported code.
4113 2000-03-06 Catherine Moore <clm@cygnus.com>
4115 * elf.c (swap_out_syms): Check for null type_ptr.
4117 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4119 * aout-target.h (MY(write_object_contents)): Remove unused
4120 and unusable "#if CHOOSE_RELOC_SIZE".
4121 * pc532-mach.c (MY(write_object_contents)): Ditto.
4122 * netbsd.h (MY(write_object_contents)): Ditto.
4123 * hp300hpux.c (MY(write_object_contents)): Ditto.
4124 * freebsd.h (MY(write_object_contents)): Ditto.
4125 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4127 2000-02-29 H.J. Lu <hjl@gnu.org>
4129 * peicode.h (jtab): Make it static.
4131 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4132 defined and COFF_IMAGE_WITH_PE is not defined.
4133 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4134 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4136 2000-03-01 Nick Clifton <nickc@cygnus.com>
4138 * coff-arm.c (bfd_arm_process_before_allocation): Make
4139 'symndx' signed to prevent compile time warning.
4141 * coff-mcore.c: Remove unused prototype for pe_object_p.
4143 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4144 functions that are not used when COFF_IMAGE_WITH_PE is
4146 (struct sh_opcode): Change type of 'flags' field to unsigned
4147 long so that it can hold the USESAS flag.
4149 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4151 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4154 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4156 Remove unusued variables and code.
4157 (elf_backend_add_symbol_hook): Fix prototype.
4159 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4162 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4165 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4167 Remove unusued variables and code.
4168 (elf_backend_add_symbol_hook): Fix prototype.
4170 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4172 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4173 to unused function parameter.
4175 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4177 Use EMPTY_HOWTO to initialise empty howto slots.
4178 Remove unused variables.
4180 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4182 2000-03-01 H.J. Lu <hjl@gnu.org>
4184 * aoutx.h (aout_link_input_section_std): Pass "true" to
4185 the undefined_symbol callback.
4186 (aout_link_input_section_ext): Likewise.
4187 * bout.c (get_value): Likewise.
4188 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4189 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4191 (alpha_relocate_section): Likewise.
4192 * coff-arm.c (coff_arm_relocate_section): Likewise.
4193 * coff-i960.c (coff_i960_relocate_section): Likewise.
4194 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4195 * coff-mips.c (mips_relocate_section): Likewise.
4196 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4197 * coff-sh.c (sh_relocate_section): Likewise.
4198 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4199 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4200 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4201 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4202 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4203 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4204 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4205 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4206 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4207 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4208 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4209 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4210 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4211 * elflink.h (elf_link_output_extsym): Likewise.
4212 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4213 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4214 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4216 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4217 undefined_symbol callback when building shared library with
4218 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4220 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4221 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4222 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4223 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4224 (elf32_mips_get_relocated_section_content): Likewise.
4225 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4226 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4227 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4228 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4230 2000-02-28 Nick Clifton <nickc@cygnus.com>
4232 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4233 * Makefile.in: Regenerate.
4235 * configure.in: Add support for mips and sh pe vectors.
4236 * configure: regenerate.
4238 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4241 * targets.c: Add mips and sh pe vectors.
4243 * libpei.h (coff_final_link_postscript): Only define if not
4246 * coffcode.h: Add support for WinCE magic numbers.
4248 * peigen.c (pe_print_reloc): Update comment and rearrange
4249 appending of newline character.
4251 * peicode.h: Add support for Image Library Format.
4252 (pe_ILF_vars): Structure containing data used by ILF code.
4253 (pe_ILF_make_a_section): New function. Create a section based
4255 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4257 (pe_ILF_make_a_symbol): New function. Create a symbol based
4259 (pe_ILF_save_relocs): New function. Store the relocs created
4260 by pe_ILF_make_a_reloc in a section.
4261 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4263 (pe_ILF_object_p): New function. Return a bfd_target pointer
4265 (pe_bfd_object_p): If an ILF object is detected call
4266 pe_ILF_object_p on it.
4268 * coff-arm.c: Add support for WinCE relocs which are different
4269 from normal ARM COFF relocs.
4270 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4272 * coff-sh.c: Add support for sh-pe target.
4273 * pe-sh.c: New file. Support code for sh-pe target.
4274 * pei-sh.c: New file. Support code for sh-pe target.
4276 * pe-mips.c: New file. Support code for mips-pe target.
4277 * pei-mips.c: New file. Support code for mips-pe target.
4279 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4281 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4282 architecture if the object causing the bump is dynamic.
4283 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4284 and also don't it for memory ordering.
4285 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4287 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4289 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4290 calling bfd_get_section_size_before_reloc.
4291 (decode_line_info): Likewise.
4292 (_bfd_dwarf2_find_nearest_line): Likewise.
4294 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4296 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4297 name of the libtool directory.
4298 * Makefile.in: Rebuild.
4300 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4302 * som.c (SOM_HOWTO): Define.
4303 (som_hppa_howto_table): Use it.
4305 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4307 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4309 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4311 2000-02-24 Catherine Moore <clm@cygnus.com>
4313 * som.c (som_misc_symbol_info): Add field
4315 (som_bfd_derive_misc_symbol_info): Initialize
4317 (som_build_and_write_symbol_table): Keep track
4318 of secondary_def field.
4319 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4320 if secondary_def field is set.
4321 (som_bfd_ar_write_symbol_stuff): Initialize
4324 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4326 * dwarf2.c (read_address): Read 16-bits addresses.
4327 (parse_comp_unit): Accept addr_size == 2.
4329 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4331 * bfd-in.h: Update copyright date.
4333 2000-02-23 Linas Vepstas <linas@linas.org>
4335 * cpu-i370.c: New file.
4336 * elf32-i370.c: New file.
4337 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4338 (bfd_i370_arch): New.
4339 (bfd_archures_list): Add bfd_i370_arch.
4340 * elf.c (prep_headers): Add bfd_arch_i370.
4341 * Makefile.am: Add support for IBM 370 elf.
4342 * config.bfd: Likewise.
4343 * configure.in: Likewise.
4344 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4345 * reloc.c (bfd_reloc_code_type): Likewise.
4346 * targets.c: Likewise.
4348 * Makefile.in: Regenerate.
4349 * configure: Regenerate.
4350 * bfd-in2.h: Regenerate.
4352 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4354 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4355 invalid relocation types, and change them to R_386_NONE.
4357 2000-02-22 H.J. Lu <hjl@gnu.org>
4359 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4360 not defined, don't add a second ELF_VER_CHR.
4362 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4363 symbols converted to local symbols even when stripping all
4365 (elf_link_output_extsym): Process global symbols converted to
4366 local symbols even if they are being stripped.
4368 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4370 * archures.c (bfd_octets_per_byte): Return unsigned int.
4371 (bfd_arch_mach_octets_per_byte): Ditto.
4372 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4374 * section.c (bfd_get_section_size_before_reloc): Quell signed
4375 vs. unsigned comparison warning.
4376 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4377 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4378 change. What was I thinking?
4379 * bfd-in2.h: Regenerate.
4381 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4382 (elf_gc_sections): Same here.
4383 (elf_gc_common_finalize_got_offsets): And here.
4385 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4387 ELF HPPA doesn't work at present; remove it until it does.
4388 * config.bfd: Comment out setting targ_defvec to
4390 * Makefile.am: Rebuild dependencies.
4391 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4392 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4393 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4394 * Makefile.in: Rebuild.
4395 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4397 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4399 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4400 is no bfd_free(). Revert bfd_free part of previous change.
4402 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4404 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4406 (coff_compute_section_file_positions): Use bfd_free to pair
4408 (coff_write_object_contents): Likewise.
4410 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4411 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4413 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4415 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4416 (xcoff_ar_file_hdr_big): New structure.
4417 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4418 (xcoff_ar_hdr_big): New structure.
4419 (SIZEOF_AR_HDR_BIG): New macro.
4420 (xcoff_big_format_p): New macro.
4421 (xcoff_ardata_big): New macro.
4422 (arch_xhdr_big): New macro.
4423 (xcoff_slurp_armap): Handle large archives.
4424 (xcoff_archive_p): Detect large archives.
4425 (xcoff_read_ar_hdr): Handle large archives.
4426 (xcoff_openr_next_archived_file): Handle large archives.
4427 (xcoff_generic_stat_arch_elt): Handle large archives.
4428 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4429 (xcoff_write_armap_big): New function.
4430 (xcoff_write_armap): New function, dispatch to _old or _big.
4431 (xcoff_write_archive_contents_old): Rename from
4432 xcoff_write_archive_contents.
4433 (xcoff_write_archive_contents_big): New function.
4434 (xcoff_write_archive_contents): New function, dispatch to _old or
4437 2000-02-18 Richard Henderson <rth@cygnus.com>
4439 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4440 and hide_symbol members.
4441 (elf_link_hash_copy_indirect): Remove.
4442 (elf_link_hash_hide_symbol): Remove.
4443 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4444 and elf_backend_hide_symbol.
4445 (_bfd_elf_link_hash_copy_indirect): Declare.
4446 (_bfd_elf_link_hash_hide_symbol): Declare.
4447 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4448 (_bfd_elf_link_hash_hide_symbol): Likewise.
4449 (_bfd_elf_link_hash_table_init): Don't init killed members.
4450 * elflink.h (elf_link_add_object_symbols): Use the bed function
4451 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4452 (elf_link_assign_sym_version): Likewise.
4453 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4454 (elf_backend_hide_symbol): Likewise.
4455 (elfNN_bed): Update for new members.
4457 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4459 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4460 STACK_END_ADDR): Define for new core file format.
4461 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4462 for handling the vagaries of the various core file structures used
4463 by AIX over the years.
4464 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4465 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4466 core_dumpx structure.
4468 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4470 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4471 (bfd_mach_sh3_dsp): Likewise.
4472 (bfd_mach_sh4): Reinstate.
4473 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4474 * bfd-in2.h: Regenerate.
4475 * coff-sh.c (struct sh_opcode): flags is no longer short.
4476 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4477 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4478 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4479 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4480 (sh_opcodes): No longer const.
4481 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4482 (sh_insn_uses_reg): Check for USESAS and USESR8.
4483 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4484 (_bfd_sh_align_load_span): Return early for SH4.
4485 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4486 Take into account that field b of a parallel processing insn
4487 could be mistaken for a separate insn.
4488 * cpu-sh.c (arch_info_struct): New array elements for
4489 sh2, sh-dsp and sh3-dsp.
4490 Reinstate element for sh4.
4491 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4492 (SH4_NEXT): Reinstate.
4493 (SH3_NEXT, SH3E_NEXT): Adjust.
4494 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4495 * elf32-sh.c (sh_elf_set_private_flags): New function.
4496 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4497 (sh_elf_merge_private_data): New function.
4498 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4499 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4500 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4501 sh_elf_merge_private_data.
4503 2000-02-13 Richard Henderson <rth@cygnus.com>
4505 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4506 hide_symbol members.
4507 (elf_link_hash_copy_indirect): New.
4508 (elf_link_hash_hide_symbol): New.
4509 * elflink.h (elf_link_add_object_symbols): Break out copy from
4510 indirect new new symbol to elf.c.
4511 (elf_link_assign_sym_version): Break out privatization of
4512 non-exported symbol to elf.c.
4513 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4514 (_bfd_elf_link_hash_hide_symbol): New.
4515 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4517 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4519 * section.c (_bfd_strip_section_from_output): Add info parameter.
4520 If it passed as non-NULL, use it to check whether any input BFD
4521 has an input section which uses this output section. Change all
4523 * bfd-in2.h: Rebuild.
4525 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4526 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4528 * bfd-in2.h: Rebuild.
4530 2000-02-10 Timothy Wall <twall@cygnus.com>
4532 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4533 allow final modifications of swapped-in symbol.
4534 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4535 * coffcode.h (coff_write_relocs): Use macro
4536 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4537 symbol index should be set to -1.
4539 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4541 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4542 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4543 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4544 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4545 sh_insns_uses_or_sets_freg): New functions.
4546 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4547 * (sh_insns_conflict): Use new functions and new macros to
4548 detect conflicts when two instructions both set same integer registers,
4549 both set same fp register, and both set special register.
4551 2000-02-09 Timothy Wall <twall@cygnus.com>
4553 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4554 swapping in sections, so that the swapping routines have access to
4557 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4559 * coff-go32.c: Update comment. Update copyright.
4561 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4563 * syms.c (bfd_decode_symclass)
4564 Two new class characters were added - 'V' and 'v'. The
4565 meaning of 'W' is now restricted to just weak non-object
4566 symbols. This allows differentiation between, for example,
4567 weak functions vs weak objects. nm for example now dumps:
4569 'w' = weak unresolved
4570 'V' = weak global object
4571 'v' = weak unresolved object
4573 (bfd_is_undefined_symclass): New function. Return true if the
4574 given symbol class represents and undefined/unresolved symbol.
4576 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4579 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4581 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4582 STT_ARM_16BIT flag set, but it is not attached to a data object
4583 return STT_ARM_16BIT so that it will be treated as code by the
4586 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4588 * coff-i386.c (i3coff_object_p): Remove prototype.
4591 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4592 to name. Update copyright.
4594 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4595 assignment to avoid warning. Update copyright.
4597 2000-01-24 Robert Lipe (robertl@sco.com)
4599 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4600 instead of using GNU C extension.
4602 2000-01-21 Nick Clifton <nickc@cygnus.com>
4604 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4605 amount from a bfd_in_memory structure.
4606 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4609 2000-01-14 Nick Clifton <nickc@cygnus.com>
4611 * linker.c (default_indirect_link_order): oops - fix incorrectly
4612 applied patch from Tim Wall.
4614 2000-01-13 Timothy Wall (twall@tiac.net>
4616 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4617 = scnhsz, filhsz, relsz, aoutsz, etc)
4619 * coffswap.h: Ditto.
4621 2000-01-13 Nick Clifton <nickc@cygnus.com>
4623 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4624 interwork thumb to arm stub.
4626 2000-01-13 Timothy Wall (twall@tiac.net>
4628 * archures.c (bfd_octets_per_byte): New function: Return
4630 (bfd_arch_mach_octets_per_byte): New function: Return target
4633 * section.c: Distinguish between octets and bytes for usage of
4634 _cooked_size, _raw_size, and output_offset. Clarify
4635 description of bfd_set_section_contents.
4637 * bfd-in2.h: Regenerate.
4639 * coffgen.c: Indicate that the offset parameter is in bytes, not
4642 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4643 where appropriate to get the octet offset when calling
4644 bfd_set_section_contents.
4645 (bfd_coff_reloc_link_order): Ditto.
4647 * linker.c (bfd_generic_reloc_link_order): Ditto.
4648 (_bfd_default_link_order): Ditto.
4650 * reloc.c (bfd_perform_relocation): Distinguish between octets
4651 and bytes. Use octets when indexing into octet data; use bytes
4652 when calculating target addresses.
4653 (bfd_install_relocation): Ditto.
4655 * srec.c (srec_write_section): Ditto.
4657 2000-01-13 Nick Clifton <nickc@cygnus.com>
4659 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4660 3 to 2. This allows 4 byte sized sections, which is necessary for
4661 dlltool to build functioning DLLs.
4663 2000-01-10 Philip Blundell <pb@futuretv.com>
4665 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4666 (arm*-*-conix*): New target.
4668 2000-01-10 Egor Duda <deo@logos-m.ru>
4670 * config.bfd: Include elf32_i386 vector to target list for cygwin
4673 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4674 * configure.in: Test for structure win32_pstatus_t in
4676 * configure: Regenerate.
4678 * elf.c (elfcore_grok_win32pstatus): New function: process
4679 win32_pstatus_t notes in elf core file.
4680 (elfcore_grok_note): Detect win32_pstatus notes.
4682 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4684 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4686 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4687 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4689 For older changes see ChangeLog-9899
4695 version-control: never