1 2001-03-12 DJ Delorie <dj@redhat.com>
3 * elf32-sh.c (sh_elf_relocate_section): Only relocation
4 R_SH_DIR8WP* relocs if they're against external symbols, else
5 they're just for relaxing. Validate the reloc values.
7 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
9 * binary.c (bfd_external_binary_architecture): Declare.
10 (binary_object_p): If bfd_external_binary_architecture is defined,
11 set the architecture to this string.
13 2001-03-11 Philip Blundell <philb@gnu.org>
15 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
16 entries that could serve as a definition for a weak symbol.
18 2001-03-08 Nick Clifton <nickc@redhat.com>
20 * Most files: Update copyright notices using Perl script created
21 by Kevin Buettner <kevinb@redhat.com>.
23 2001-03-07 Nick Clifton <nickc@redhat.com>
25 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
26 prior patch on ! defined OLD_ARM_ABI.
28 2001-03-07 Andreas Jaeger <aj@suse.de>
30 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
31 some relocation values.
33 2001-03-06 Nick Clifton <nickc@redhat.com>
35 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
36 of offset in BLX(1) instruction.
37 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
38 offset in BLX(1) instruction.
41 2001-03-06 Nick Clifton <nickc@redhat.com>
43 * coff-arm.c (coff_arm_reloc_type_lookup): Add
44 BFD_RELOC_THUMB_PCREL_BLX.
46 2001-03-06 Igor Shevlyakov <igor@windriver.com>
48 * archures.c (bfd_default_scan): Add Coldfire CPUs.
49 * bfd-in2.h: Regenerate.
50 * cpu-m68k.c: Add Coldfire CPUs for arch table.
51 * ieee.c (ieee_write_processor): Set proper id for
54 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
56 * configure.in: Add s390 target.
57 * configure: Regenerate.
59 2001-02-28 Andreas Jaeger <aj@suse.de>
61 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
64 2001-02-28 Philip Blundell <pb@futuretv.com>
66 * elf32-arm.h: Update mentions of renamed EF_xx constants.
67 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
69 2001-02-27 H.J. Lu <hjl@gnu.org>
71 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
72 abfd->tdata.aout_data == NULL.
74 2001-02-27 Alan Modra <alan@linuxcare.com.au>
76 * elf32-hppa.c: Correct field selector in stub comments.
77 (clobber_millicode_symbols): Formatting fix.
79 * configure.in: Bump version to 2.11.90.
80 * configure: Regenerate.
81 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
82 (CFILES): $SOURCE_CFILES + generated C files.
83 (POTFILES): Include $HFILES not $SOURCE_HFILES.
85 * Makefile.in: Regenerate.
86 * doc/Makefile.in: This too.
88 2001-02-26 Timothy Wall <twall@cygnus.com>
90 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
93 2001-02-26 Nick Clifton <nickc@redhat.com>
95 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
96 up, replacing multiple if statements with a switch.
97 (handle_COMDAT): New function.
99 2001-02-26 H.J. Lu <hjl@gnu.org>
101 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
102 a warning for section flags we do not handle instead of
105 2001-02-26 Andreas Jaeger <aj@suse.de>
107 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
109 2001-02-22 Timothy Wall <twall@cygnus.com>
111 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
112 * configure.in: Add objects for elf64_ia64_aix vectors.
113 * configure: Regenerated.
114 * configure.host: Recognize ia64-*-aix*.
115 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
116 for AIX. AIX5 requires most relocations to be dynamic (*all*
117 binaries are somewhat similar to shared libraries).
118 * targets.c: Add elf64_ia64_aix vectors.
120 2001-02-21 David Mosberger <davidm@hpl.hp.com>
122 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
123 C8 said "1" instead of "8". Clarify error string for IMM22:
124 "signed integer" instead of just "integer".
126 2001-02-20 Andreas Jaeger <aj@suse.de>
128 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
129 PLT entries that could serve as a definition for a weak symbol.
131 2001-02-19 Jakub Jelinek <jakub@redhat.com>
133 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
134 entries that could serve as a definition for a weak symbol.
135 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
137 2001-02-18 David O'Brien <obrien@FreeBSD>
139 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
140 FreeBSD/i386-CURRENT differently until I can figure out the needed
142 * configure: Regenerate.
143 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
144 FreeBSD/PowerPC, and FreeBSD/sparc64.
146 2001-02-18 lars brinkhoff <lars@nocrew.org>
148 * Makefile.am: Add PDP-11 a.out target.
149 * config.bfd: Likewise.
150 * configure.in: Likewise.
151 * targets.c: Likewise.
152 * archures.c: Likewise.
153 * bfd-in2.h: Likewise. Add PDP-11 relocations.
154 * libbfd.h: Add PDP-11 relocations.
156 * cpu-pdp11.c: New file.
159 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
160 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
161 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
162 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
163 (GET_MAGIC): New macro.
164 (PUT_MAGIC): Likewise.
165 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
167 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
169 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
172 2001-02-18 H.J. Lu <hjl@gnu.org>
174 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
177 2001-02-18 Kazu Hirata <kazu@hxi.com>
179 * vms-misc.c: Fix formatting.
181 2001-02-16 Kazu Hirata <kazu@hxi.com>
183 * vms.c: Fix formatting.
185 2001-02-14 H.J. Lu <hjl@gnu.org>
187 * elf.c (elf_find_function): New function.
188 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
189 the file name and function name.
191 2001-02-14 Nick Clifton <nickc@redhat.com>
193 * ecoff.c (bfd_debug_section): Update to initialise new fields in
196 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
197 (BFD64_BACKENDS): Add pepigen.c
198 Add rules to create peigen.c and pepigen.c from peXXigen.c.
200 * Makefile.in: Regenerate.
201 * configure: Regenerate.
202 * po/POTFILES.in: Regenerate.
203 * po/bfd.pot: Regenerate.
205 2001-02-14 H.J. Lu <hjl@gnu.org>
207 * libcoff-in.h (pe_tdata): Add members target_subsystem and
208 force_minimum_alignment.
210 2001-02-14 Bo Thorsen <bo@suse.de>
212 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
213 (elf64_86_64_size_info): Struct added to fix a problem
214 with the hashtable string entries.
215 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
216 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
217 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
218 remove the FIXME for this.
219 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
220 section. Also removed the FIXME for it.
221 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
222 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
223 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
225 2001-02-13 Richard Henderson <rth@redhat.com>
227 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
228 and not user provided.
230 2001-02-13 Kazu Hirata <kazu@hxi.com>
232 * vms.c (vms_print_symbol): Remove unreachable code.
234 * rs6000-core.c: Fix formatting.
236 2001-02-13 David Mosberger <davidm@hpl.hp.com>
238 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
239 as _bfd_XXi_only_swap_filehdr_out.
240 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
241 pe->force_minimum_alignment to TRUE.
242 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
243 PEI_TARGET_SUBSYSTEM.
244 (pe_print_private_bfd_data): Call
245 _bfd_XX_print_private_bfd_data_common() instead of
246 _bfd_pe_print_private_bfd_data_common().
247 (pe_bfd_copy_private_bfd_data): Call
248 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
249 _bfd_pe_bfd_copy_private_bfd_data_common().
250 (coff_bfd_copy_private_section_data): Define as
251 _bfd_XX_bfd_copy_private_section_data instead of
252 _bfd_pe_bfd_copy_private_section_data.
253 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
254 of a _bfd_pe_get_symbol_info.
258 * peXXigen.c: Renamed from peigen.c.
259 (COFF_WITH_XX): Define this macro (will get expanded into
260 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
261 compiled as peigen.c or pepigen.c.
262 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
263 define the canonical PEP structures and definitions.
264 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
265 effect, enforce minimum file and section alignments. If
266 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
267 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
268 so, by default, this is a no-op).
270 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
271 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
272 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
273 _bfd_pefoo if it's not defined. Use these macros to define
276 * libcoff.h (pe_tdata): Add members target_subsystem and
277 force_minimum_alignment.
279 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
281 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
283 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
286 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
287 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
290 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
291 (BFD64_BACKENDS_CFILES): Mention pepigen.c
292 (peigen.c): Add rule to generate from peXXigen.c.
294 (pepigen.lo): List dependencies for pepigen.lo.
296 2001-02-13 Alan Modra <alan@linuxcare.com.au>
298 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
299 $global$ referenced but not defined, set its value here.
301 2001-02-09 Bo Thorsen <bo@suse.de>
303 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
305 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
307 (elf64_x86_64_relocate_section): Fix formatting.
308 (elf64_x86_64_relocate_section): Fix addend for relocation of
309 R_X86_64_(8|16|32|PC8|PC16|PC32).
311 2001-02-12 Jan Hubicka <jh@suse.cz>
313 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
315 2001-02-11 H.J. Lu <hjl@gnu.org>
317 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
320 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
322 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
323 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
324 relocations against dynsym symbols.
326 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
327 the R_MIPS_26 relocation.
328 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
329 the R_MIPS_26 relocation.
330 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
332 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
333 the R_MIPS_26 relocation.
334 (mips_elf64_howto_table_rela): Likewise.
336 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
337 member to mark symbols that have non-CALL relocations against
339 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
340 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
342 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
343 non-CALL relocation against it is encountered.
344 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
345 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
346 no_fn_stub is not set.
348 * elf32-mips.c (mips_elf_output_extsym): Get the output section
349 information from the real symbol for indirect ones.
350 Check no_fn_stub to find out if a symbol has a function stub
353 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
355 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
356 * Makefile.in: Regenerate.
358 2001-02-09 David Mosberger <davidm@hpl.hp.com>
360 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
361 true if section name is an unwind table section name.
362 (elfNN_ia64_additional_program_headers): Count each unwind section
364 (elfNN_ia64_modify_segment_map): Install one unwind program header
365 for each unwind separate section. Note: normally the linker
366 script merges the unwind sections that go into a single segment,
367 so this still generates at most one unwind program header per
370 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
371 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
372 (elfNN_ia64_fake_sections): Mark sections with names that start
373 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
376 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
377 Use it to make sh_info in unwind section point to the text section
380 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
382 * Makefile.am: Add linux target for S/390.
383 * archures.c: Likewise.
384 * bfd-in2.h: Likewise.
385 * config.bfd: Likewise.
386 * configure.in: Likewise.
388 * libbfd.h: Likewise.
389 * targets.c: Likewise.
390 * cpu-s390.c: New file.
391 * elf32-s390.c: New file.
392 * elf64-s390.c: New file.
394 2001-02-09 Nick Clifton <nickc@redhat.com>
396 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
397 ImageBase. This has already been done by coff_swap_hdr_in.
399 2001-02-09 Jakub Jelinek <jakub@redhat.com>
401 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
403 2001-02-09 Jakub Jelinek <jakub@redhat.com>
405 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
406 (sparc64_elf_relocate_section): Likewise.
408 2001-02-09 Mark Kettenis <kettenis@gnu.org>
410 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
411 similar to R_SPARC_32.
412 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
414 2001-02-08 H.J. Lu <hjl@gnu.org>
416 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
417 relocation entries for weak definitions when building DSO with
420 2001-02-08 Richard Henderson <rth@redhat.com>
422 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
423 before visibility. Locally defined protected symbols are not
426 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
428 * config.bfd: Enable coff64 for rs6000-*. Patch from
429 <hzoli@austin.ibm.com>.
431 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
433 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
434 found, do not attempt to find dwarf2 info before returning.
436 2001-02-07 Jakub Jelinek <jakub@redhat.com>
438 * elflink.h (is_global_symbol_definition): Rename to
439 is_global_data_symbol_definition and have it reject function
441 (elf_link_is_defined_archive_symbol): Use renamed function.
443 2001-02-07 Todd Vierling <tv@wasabisystems.com>
445 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
446 * libbfd.h (bfd_target_vector): Likewise.
447 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
448 make static; create pointer reference named bfd_target_vector.
449 (_bfd_target_vector_entries): Calculate this based on the array
450 typed _bfd_target_vector.
452 2001-02-06 H.J. Lu <hjl@gnu.org>
454 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
455 internal symbols are not dynamic.
456 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
458 2001-02-06 Nick Clifton <nickc@redhat.com>
460 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
461 that it will not be pulled into the list of files that make up
463 * Makefile.in: Regenerate.
464 * po/bfd.pot: Regenerate.
466 2001-02-06 H.J. Lu <hjl@gnu.org>
468 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
470 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
471 external_PEI_IMAGE_hdr.
473 2001-02-06 Kazu Hirata <kazu@hxi.com>
475 * elf-m10200.c: Fix formatting.
477 2001-02-04 Nick Clifton <nickc@redhat.com>
479 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
480 rel, it will be handled later on.
482 2001-02-02 Fred Fish <fnf@ninemoons.com>
484 * Makefile.in: Fix typo.
486 2001-02-01 Kazu Hirata <kazu@hxi.com>
488 * elf-m10300.c: Fix formatting.
490 2001-01-30 Alan Modra <alan@linuxcare.com.au>
492 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
493 (elf_backend_get_symbol_type): Define.
494 (elf64_hppa_object_p): Set architecture and machine from elf
497 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
499 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
502 2001-01-26 Richard Henderson <rth@redhat.com>
504 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
505 for non-default visibility.
506 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
507 delete ugly macro and replace with pretty function.
509 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
511 * coff-go32.c: Update copyright.
512 * coff-stgo32.c: Likewise.
513 * coff-go32.c (COFF_LONG_FILENAMES): Define.
514 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
515 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
516 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
518 2001-01-25 Kazu Hirata <kazu@hxi.com>
520 * bfd-in2.h: Rebuild.
521 * libbfd.h: Likewise.
523 2001-01-23 H.J. Lu <hjl@gnu.org>
525 * bfd-in2.h: Rebuild.
527 2001-01-23 H.J. Lu <hjl@gnu.org>
529 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
530 is NULL or PRIV(vms_rec) is outside of the buffer.
532 2001-01-23 Kazu Hirata <kazu@hxi.com>
534 * coff64-rs6000.c: Fix formatting.
535 * coff-arm.c: Likewise.
536 * coffgen.c: Likewise.
537 * cofflink.c: Likewise.
538 * coff-mcore.c: Likewise.
539 * coff-mips.c: Likewise.
540 * coff-pmac.c: Likewise.
541 * coff-ppc.c: Likewise.
542 * coff-rs6000.c: Likewise.
544 * elf32-fr30.c: Likewise.
545 * elf32-i370.c: Likewise.
546 * elf32-i860.c: Likewise.
547 * elf32-m32r.c: Likewise.
548 * elf32-m68k.c: Likewise.
549 * elf32-mcore.c: Likewise.
550 * elf32-ppc.c: Likewise.
551 * elf32-sh.c: Likewise.
552 * elf32-v850.c: Likewise.
553 * elf64-alpha.c: Likewise.
554 * elf64-sparc.c: Likewise.
555 * elflink.c: Likewise.
556 * elflink.h: Likewise.
557 * elf-m10200.c: Likewise.
558 * elf-m10300.c: Likewise.
559 * elfxx-ia64.c: Likewise.
561 * aoutx.h: Fix formatting.
563 * bfd-in2.h: Likewise.
564 * bfd-in.h: Likewise.
565 * cpu-i386.c: Likewise.
566 * cpu-m68hc11.c: Likewise.
567 * dwarf2.c: Likewise.
568 * elf64-x86-64.c: Likewise.
569 * format.c: Likewise.
570 * freebsd.h: Likewise.
572 * hp300hpux.c: Likewise.
573 * hppabsd-core.c: Likewise.
574 * hpux-core.c: Likewise.
576 2001-01-22 Bo Thorsen <bo@suse.de>
578 * elf64-x86-64.c: Added PIC support for X86-64.
579 (elf64_x86_64_link_hash_newfunc): Function added.
580 (elf64_x86_64_link_hash_table_create): Likewise.
581 (elf64_x86_64_check_relocs): Likewise.
582 (elf64_x86_64_gc_mark_hook): Likewise.
583 (elf64_x86_64_gc_sweep_hook): Likewise.
584 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
585 (elf64_x86_64_size_dynamic_sections): Likewise.
586 (elf64_x86_64_discard_copies): Likewise.
587 (elf64_x86_64_finish_dynamic_symbol): Likewise.
588 (elf64_x86_64_finish_dynamic_sections): Likewise.
589 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
591 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
593 * Makefile.am (install-data-local): Make use of $(DESTDIR).
594 * Makefile.in: Regenerate.
596 2001-01-21 Kazu Hirata <kazu@hxi.com>
598 * coff-a29k.c: Fix formatting.
600 2001-01-19 H.J. Lu <hjl@gnu.org>
602 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
603 relocation section names.
604 (elf_i386_relocate_section): Report files with bad relocation
605 section names and return false.
607 2001-01-17 Bo Thorsen <bo@suse.de>
609 * targets.c: Alphabetize list of xvecs.
611 2001-01-14 Alan Modra <alan@linuxcare.com.au>
613 * config.bfd: Add linux target variant for elfxx-hppa.
614 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
615 bfd_elf64_hppa_linux_vec.
616 * configure: Regenerate.
617 * elf64-hppa.c: Include elf64-target.h again to support linux
619 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
620 * elf32-hppa.c: Include elf32-target.h again to support linux
622 (elf32_hppa_post_process_headers): New function.
623 (elf_backend_post_process_headers): Define.
624 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
625 bfd_elf32_hppa_linux_vec.
627 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
628 and data_segment_base fields.
629 (elf32_hppa_link_hash_table_create ): Init them.
630 (elf32_hppa_check_relocs): Update comments.
631 (hppa_record_segment_addr): New function.
632 (elf32_hppa_relocate_section): Call it.
633 (final_link_relocate): Handle R_PARISC_SEGREL32.
634 (elf32_hppa_final_link): New function.
635 (bfd_elf32_bfd_final_link): Define to call it.
636 (hppa_unwind_entry_compare): New function.
637 * cache.c (bfd_open_file): Create files in write+read mode.
639 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
640 SEGREL32 and numerous other relocs. Change duplicate
641 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
643 * opncls.c (bfd_fdopenr): Add parens like the comment says around
646 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
647 .plt entries for DT_INIT and DT_FINI.
648 (elf32_hppa_finish_dynamic_sections): Remove special handling of
651 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
652 offsets for stub .plt access if wide mode. Check offset in range.
654 2001-01-13 Nick Clifton <nickc@redhat.com>
656 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
659 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
662 2001-01-12 Alan Modra <alan@linuxcare.com.au>
664 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
665 * configure: Regenerate.
667 2001-01-11 Peter Targett <peter.targett@arccores.com>
669 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
670 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
671 * cpu-arc.c (arch_info_struct): Add entries for variants.
672 (bfd_arc_arch) Set default to bfd_mach_arc_5.
673 (arc_get_mach) Don't assume machine names prefixed arc- before
675 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
677 (arc_elf_final_write_processing) Likewise.
678 (ELF_MACHINE_CODE) Use EM_ARC.
680 2001-01-10 Nick Clifton <nickc@redhat.com>
682 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
684 2001-01-07 Philip Blundell <philb@gnu.org>
686 * README: Replace `bug-gnu-utils@gnu.org' with
687 `bug-binutils@gnu.org'.
689 2001-01-04 Kazu Hirata <kazu@hxi.com>
691 * som.c: Fix formatting.
693 2001-01-03 Kazu Hirata <kazu@hxi.com>
695 * ecoffswap.h: Fix formatting.
696 * elf-bfd.h: Likewise.
697 * elfarm-nabi.c: Likewise.
698 * elfarm-oabi.c: Likewise.
699 * elfcode.h: Likewise.
700 * elfcore.h: Likewise.
701 * elflink.c: Likewise.
702 * elflink.h: Likewise.
703 * elfxx-ia64.c: Likewise.
704 * elfxx-target.h: Likewise.
706 * linker.c: Likewise.
707 * lynx-core.c: Likewise.
709 2001-01-02 Kazu Hirata <kazu@hxi.com>
711 * pc532-mach.c: Fix formatting.
712 * pe-arm.c: Likewise.
713 * pe-i386.c: Likewise.
714 * pe-mips.c: Likewise.
715 * pe-ppc.c: Likewise.
717 * pei-mips.c: Likewise.
718 * pei-sh.c: Likewise.
719 * peicode.h: Likewise.
720 * ppcboot.c: Likewise.
721 * ptrace-core.c: Likewise.
723 2001-01-01 Kazu Hirata <kazu@hxi.com>
725 * reloc.c: Fix formatting.
726 * riscix.c: Likewise.
727 * rs6000-core.c: Likewise.
728 * xcoff-target.h: Likewise.
730 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
732 * elfcode.h (elf_object_p): Also restore the bfd mach field on
733 error, by calling bfd_default_set_arch_mach with incoming
736 2000-12-26 Kazu Hirata <kazu@hxi.com>
738 * vaxnetbsd.c: Fix formatting.
739 * versados.c: Likewise.
740 * vms-gsd.c: Likewise.
741 * vms-hdr.c: Likewise.
742 * vms-misc.c: Likewise.
744 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
746 * archive.c (coff_write_armap): Don't write more than symbol_count
747 `archive_member_file_ptr's.
749 2000-12-25 Kazu Hirata <kazu@hxi.com>
751 * vms-tir.c: Fix formatting.
753 2000-12-23 Kazu Hirata <kazu@hxi.com>
755 * vms.c: Fix formatting.
758 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
760 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
762 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
764 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
767 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
769 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
771 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
773 * libbfd.c (bfd_get_bits): Added
774 (bfd_put_bits): Likewise
775 * bfd-in.h: Declared the above.
776 * bfd-in2.h: Regenerated.
778 2000-12-20 Kazu Hirata <kazu@hxi.com>
780 * targets.c: Fix formatting.
781 * tekhex.c: Likewise.
782 * trad-core.c: Likewise.
784 2000-12-19 Kazu Hirata <kazu@hxi.com>
786 * sco5-core.c: Fix formatting.
787 * section.c: Likewise.
788 * sparclinux.c: Likewise.
789 * sparclynx.c: Likewise.
790 * sparcnetbsd.c: Likewise.
793 * stab-syms.c: Likewise.
796 * sysdep.h: Likewise.
798 2000-12-18 Nick Clifton <nickc@redhat.com>
800 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
802 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
803 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
805 2000-12-18 Nick Clifton <nickc@redhat.com>
807 * vms-misc.c (_bfd_vms_get_record): Add default case to
810 2000-12-15 Miloslav Trmac <mitr@volny.cz>
812 * elfcore.h (elf_core_file_p): Move to the start of the program
813 headers before attempting to read them.
815 2000-12-14 Kazu Hirata <kazu@hxi.com>
817 * peigen.c: Fix formatting.
821 2000-12-13 Kazu Hirata <kazu@hxi.com>
823 * peigen.c: Fix formatting.
825 2000-12-12 Jim Wilson <wilson@redhat.com>
827 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
829 2000-12-08 Mark Salter <msalter@redhat.com>
831 * binary.c (binary_set_section_contents): Ignore sections
834 2000-12-12 Kazu Hirata <kazu@hxi.com>
836 * m68klinux.c: Fix formatting.
837 * m68knetbsd.c: Likewise.
838 * mipsbsd.c: Likewise.
839 * netbsd-core.c: Likewise.
840 * netbsd.h: Likewise.
841 * newsos3.c: Likewise.
842 * nlm32-alpha.c: Likewise.
843 * nlm32-i386.c: Likewise.
844 * nlm32-ppc.c: Likewise.
845 * nlm32-sparc.c: Likewise.
846 * nlmcode.h: Likewise.
847 * nlmswap.h: Likewise.
848 * nlm-target.h: Likewise.
849 * ns32knetbsd.c: Likewise.
851 2000-12-10 Fred Fish <fnf@be.com>
853 * elflink.h (elf_link_output_extsym): Don't complain about undefined
854 symbols in shared objects if allow_shlib_undefined is true.
856 2000-12-12 Nick Clifton <nickc@redhat.com>
858 * cpu-sh.c: Fix formattng.
859 * elf.c: Fix formattng.
860 * elf32-mips.c: Fix formattng.
861 * elf32-sh.c: Fix formattng.
862 * elf64-alpha.c: Fix formattng.
864 2000-12-09 Nick Clifton <nickc@redhat.com>
866 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
867 dwarf2_find_line_info as last parameter to invocation of
868 _bfd_dwarf2_find_nearest_line.
869 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
870 dwarf2_find_line_info as last parameter to invocation of
871 _bfd_dwarf2_find_nearest_line.
873 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
875 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
876 (BFD_LIBS): ...to here.
877 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
878 (BFD_LIBS_CFILES): ...to here.
879 * Makefile.in: Regenerate.
880 * configure.in: Remove dwarf.lo from the elf shell variable.
881 * configure: Regenerate.
882 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
883 * libcoff.h: Regenerate.
884 * coffgen.c (coff_find_nearest_line): Call
885 _bfd_dwarf2_find_nearest_line.
886 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
888 (read_abbrevs): Likewise
889 (decode_line_info): Likewise.
890 (parse_comp_unit): Likewise.
891 (comp_unit_find_nearest_line): Likewise.
892 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
893 * libbfd.h: Regenerate.
894 * elf.c (_bfd_elf_find_nearest_line): Update call.
895 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
896 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
897 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
898 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
899 (styp_to_sec_flags): Handle DWARF2 sections.
900 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
901 to _bfd_find_nearest_line.
902 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
903 call to _bfd_find_nearest_line.
905 2000-12-08 Kazu Hirata <kazu@hxi.com>
907 * coffgen.c: Fix formatting.
908 * elf-m10300.c: Likewise.
909 * elf32-i386.c: Likewise.
910 * elf32-i960.c: Likewise.
911 * elf32-m68k.c: Likewise.
912 * elf32-mcore.c: Likewise.
913 * elf32-ppc.c: Likewise.
914 * elf32-sh.c: Likewise.
915 * elf32-sparc.c: Likewise.
916 * elf32-v850.c: Likewise.
917 * elf64-alpha.c: Likewise.
918 * elf64-hppa.c: Likewise.
919 * elf64-mips.c: Likewise.
920 * elf64-sparc.c: Likewise.
922 2000-12-07 Kazu Hirata <kazu@hxi.com>
924 * elf32-ppc.c: Fix formatting.
925 * elf64-x86-64.c: Likewise.
927 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
929 From Ralf Baechle <ralf@gnu.org>
931 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
932 BFDs containing no sections or empty .text, .data or .bss sections
933 to be merged, regardless of their flags.
935 2000-12-06 Kazu Hirata <kazu@hxi.com>
937 * elf32-m32r.c: Fix formatting.
938 * elf32-m68hc11.c: Likewise.
939 * elf32-m68hc12.c: Likewise.
940 * elf32-m68k.c: Likewise.
941 * elf32-mcore.c: Likewise.
942 * elf32-pj.c: Likewise.
943 * elf32-ppc.c: Likewise.
945 2000-12-05 Kazu Hirata <kazu@hxi.com>
947 * elf32-fr30.c: Fix formatting.
948 * elf32-hppa.c: Likewise.
949 * elf32-i370.c: Likewise.
950 * elf32-i386.c: Likewise.
951 * elf32-i860.c: Likewise.
952 * elf32-i960.c: Likewise.
954 2000-12-03 Kazu Hirata <kazu@hxi.com>
956 * elf32-arm.h: Fix formatting.
957 * elf32-avr.c: Likewise.
958 * elf32-cris.c: Likewise.
959 * elf32-d10v.c: Likewise.
960 * elf32-d30v.c: Likewise.
961 * elf-hppa.h: Likewise.
962 * elf-m10200.c: Likewise.
963 * elf-m10300.c: Likewise.
965 2000-12-01 Chris Demetriou <cgd@sibyte.com>
967 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
968 bfd_mach_mips32_4k. Update FIXME comment.
969 * archures.c (bfd_mach_mips32): New constant.
970 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
971 the latter, renumber it.
972 * bfd-in2.h (bfd_mach_mips32): New constant.
973 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
974 the latter, renumber it.
975 * cpu-mips.c (I_mips32): New constant.
976 (I_mips4K, I_mips32_4k): Rename the former to the latter.
977 (arch_info_struct): Add bfd_mach_mips32 entry, replace
978 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
979 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
980 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
981 with E_MIPS_MACH_MIPS32_4K.
982 (_bfd_mips_elf_final_write_processing): Replace
983 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
984 bfd_mach_mips32 case.
985 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
986 comparison with support for MIPS32.
987 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
990 * aoutx.h (NAME(aout,machine_type)): Add cases for
991 bfd_mach_mips5 and bfd_mach_mips64.
992 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
993 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
994 * cpu_mips.c (I_mips5, I_mips64): New definitions.
995 (arch_info_struct): Add entries for bfd_mach_mips5 and
997 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
998 _bfd_mips_elf_print_private_bfd_data): Add cases for
999 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1000 (_bfd_mips_elf_final_write_processing): Add cases for
1001 bfd_mach_mips5 and bfd_mach_mips64.
1003 * aoutx.h (NAME(aout,machine_type)): Add a
1004 bfd_mach_mips_sb1 case.
1005 * archures.c (bfd_mach_mips_sb1): New constant.
1006 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1007 * cpu-mips.c (I_sb1): New constant.
1008 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1009 * elf32-mips.c (elf_mips_mach): Add case for
1011 (_bfd_mips_elf_final_write_processing): Add case for
1014 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1016 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1017 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1018 (sparc*-*-rtems*): Switched from a.out to ELF.
1020 2000-11-30 Jan Hubicka <jh@suse.cz>
1022 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1023 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1024 (elf64-x86-64.lo): Add dependencies.
1025 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1026 bfd_mach_x86_64_intel_syntax.
1027 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1028 * config.bfd (x86_64): Add.
1029 * configure.in: Add support for bfd_elf64_x86_64_vec.
1030 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1031 (bfd_i386_arch, i8086_ar): Link in.
1032 * elf64-x86-64.c: New file.
1033 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1034 * targets.c (bfd_elf64_x86_64_vec): Add.
1035 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1037 2000-11-30 Kazu Hirata <kazu@hxi.com>
1039 * xcofflink.c: Fix formatting.
1041 2000-11-28 Kazu Hirata <kazu@hxi.com>
1043 * aoutx.h: Fix formatting.
1044 * bfd-in.h: Likewise.
1045 * bfd-in2.h: Likewise.
1046 * cache.c: Likewise.
1047 * cisco-core.c: Likewise.
1048 * coff64-rs6000.c: Likewise.
1049 * coffcode.h: Likewise.
1050 * coffswap.h: Likewise.
1051 * corefile.c: Likewise.
1052 * elf32-mips.c: Likewise.
1054 2000-11-27 Kazu Hirata <kazu@hxi.com>
1056 * aout-adobe.c: Fix formatting.
1057 * coff64-rs6000.c: Likewise.
1058 * coffgen.c: Likewise.
1059 * cofflink.c: Likewise.
1061 2000-11-27 Philip Blundell <pb@futuretv.com>
1063 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1064 (obj_coff_strings_written): New accessor macro for above.
1065 * libcoff.h: Regenerate.
1066 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1068 * coffcode.h (coff_write_object_contents): No need to write out
1069 the string table if it's already been done.
1071 2000-11-22 Philip Blundell <pb@futuretv.com>
1073 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1074 weak undefined symbols.
1076 2000-11-24 Nick Clifton <nickc@redhat.com>
1078 * archures.c (bfd_mach_arm_5TE): Define.
1079 (bfd_mach_arm+XScale): Define.
1080 * bfd-in2.h: Regenerate.
1082 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1083 BFD_RELOC_ARM_PCREL_BLX.
1085 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1086 XScale machine numbers.
1088 * config.bfd (xscale-elf): Add target.
1089 (xscale-coff): Add target.
1091 * cpu-arm.c: Add xscale machine name.
1092 Add v5t, v5te and XScale machine numbers.
1094 2000-11-23 Kazu Hirata <kazu@hxi.com>
1096 * aix386-core.c: Fix formatting.
1098 2000-11-22 Jim Wilson <wilson@redhat.com>
1100 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1101 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1102 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1103 (ins_imms_scaled): Initialize sign_bit at function entry.
1104 (elf64_ia64_operands): Add missing initializers.
1105 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1106 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1107 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1108 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1109 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1111 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1112 and free_extsyms at function entry.
1113 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1114 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1115 (get_got): Delete unused local srel.
1116 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1117 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1119 2000-11-21 Kazu Hirata <kazu@hxi.com>
1121 * coff-a29k.c: Fix formatting.
1122 * coff-h8500.c: Likewise.
1123 * coff-i960.c: Likewise.
1124 * coff-ppc.c: Likewise.
1125 * coff-rs6000.c: Likewise.
1126 * coff-stgo32.c: Likewise.
1127 * coff-tic54x.c: Likewise.
1128 * coff-w65.c: Likewise.
1129 * cpu-h8500.c: Likewise.
1130 * cpu-hppa.c: Likewise.
1131 * cpu-ns32k.c: Likewise.
1132 * ecoff.c: Likewise.
1133 * ecofflink.c: Likewise.
1135 2000-11-21 Nick Clifton <nickc@redhat.com>
1137 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1138 remove possibility of infinite loop.
1140 2000-11-20 Kazu Hirata <kazu@hxi.com>
1142 * aix386-core.c: Fix formatting.
1143 * aout-adobe.c: Likewise.
1144 * aout-arm.c: Likewise.
1145 * aout-encap.c: Likewise.
1146 * aout-ns32k.c: Likewise.
1147 * aout-target.h: Likewise.
1148 * aout-tic30.c: Likewise.
1149 * aoutf1.h: Likewise.
1150 * aoutx.h: Likewise.
1151 * archive.c: Likewise.
1152 * bfd-in.h: Likewise.
1153 * bfd-in2.h: Likewise.
1157 2000-11-17 H.J. Lu <hjl@gnu.org>
1159 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1160 pltoff entries for DT_INIT and DT_FINI.
1161 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1162 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1165 2000-11-16 Richard Henderson <rth@redhat.com>
1167 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1168 (allocate_dynrel_entries): Likewise.
1169 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1170 (set_pltoff_entry): Likewise.
1171 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1172 (elfNN_ia64_reloc_type_lookup): Likewise.
1173 (elfNN_ia64_install_value): Likewise.
1174 (elfNN_ia64_relocate_section): Likewise.
1175 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1176 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1178 2000-11-16 Kazu Hirata <kazu@hxi.com>
1180 * cpu-a29k.c: Fix formatting.
1181 * cpu-alpha.c: Likewise.
1182 * cpu-arm.c: Likewise.
1183 * cpu-avr.c: Likewise.
1184 * cpu-d10v.c: Likewise.
1185 * cpu-h8500.c: Likewise.
1186 * cpu-hppa.c: Likewise.
1187 * cpu-i370.c: Likewise.
1188 * cpu-i386.c: Likewise.
1189 * cpu-i960.c: Likewise.
1190 * cpu-ia64-opc.c: Likewise.
1191 * cpu-ia64.c: Likewise.
1192 * cpu-m32r.c: Likewise.
1193 * cpu-m68hc11.c: Likewise.
1194 * cpu-m68hc12.c: Likewise.
1195 * cpu-m68k.c: Likewise.
1196 * cpu-m88k.c: Likewise.
1197 * cpu-mips.c: Likewise.
1198 * cpu-ns32k.c: Likewise.
1199 * cpu-pj.c: Likewise.
1200 * cpu-powerpc.c: Likewise.
1201 * cpu-sh.c: Likewise.
1202 * cpu-sparc.c: Likewise.
1203 * cpu-tic54x.c: Likewise.
1204 * cpu-v850.c: Likewise.
1205 * cpu-vax.c: Likewise.
1206 * cpu-w65.c: Likewise.
1207 * cpu-we32k.c: Likewise.
1208 * cpu-z8k.c: Likewise.
1209 * dwarf1.c: Likewise.
1210 * dwarf2.c: Likewise.
1212 2000-11-15 Kazu Hirata <kazu@hxi.com>
1214 * coff-arm.c: Fix formatting.
1215 * coff-ppc.c: Likewise.
1216 * coff-rs6000.c: Likewise.
1217 * coff-sh.c: Likewise.
1218 * coff-sparc.c: Likewise.
1219 * coff-tic30.c: Likewise.
1220 * coff-tic54x.c: Likewise.
1221 * coff-tic80.c: Likewise.
1222 * coff-w65.c: Likewise.
1223 * coff-we32k.c: Likewise.
1224 * coff-z8k.c: Likewise.
1226 2000-11-15 Richard Henderson <rth@redhat.com>
1228 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1229 section with the same ALLOC|LOAD flags as the source section.
1231 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1233 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1234 by STO_ALPHA constants.
1236 2000-11-14 Kazu Hirata <kazu@hxi.com>
1238 * coff-pmac.c: Fix formatting.
1239 * coff-ppc.c: Likewise.
1241 2000-11-13 H.J. Lu <hjl@gnu.org>
1243 * elflink.h (elf_link_add_object_symbols): Also add indirect
1244 symbols for common symbols with the default version.
1246 2000-11-09 Philip Blundell <pb@futuretv.com>
1248 * section.c (STD_SECTION): Set gc_mark flag.
1250 2000-11-11 Kazu Hirata <kazu@hxi.com>
1252 * coff-i960.c: Likewise.
1253 * coff-m68k.c: Likewise.
1254 * coff-m88k.c: Likewise.
1255 * coff-mcore.c: Likewise.
1256 * coff-mips.c: Likewise.
1258 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1260 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1262 2000-11-10 Kazu Hirata <kazu@hxi.com>
1264 * coff-h8300.c: Fix formatting.
1265 * coff-h8500.c: Likewise.
1266 * coff-i386.c: Likewise.
1267 * coff-i860.c: Likewise.
1268 * coff-i960.c: Likewise.
1269 * coff-ia64.c: Likewise.
1271 2000-11-09 Kazu Hirata <kazu@hxi.com>
1273 * archive.c: Fix formatting.
1274 * archures.c: Likewise.
1276 2000-11-07 Richard Henderson <rth@redhat.com>
1278 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1279 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1280 * section.c (bfd_set_section_contents): Call memcpy if
1281 section->contents set and location not equal to contents plus offset.
1283 2000-11-08 Kazu Hirata <kazu@hxi.com>
1285 * bfd-in.h: Fix formatting.
1286 * bfd-in2.h: Likewise.
1288 * binary.c: Likewise.
1290 * coff-a29k.c: Likewise.
1291 * coff-alpha.c: Likewise.
1292 * coff-apollo.c: Likewise.
1293 * coff-aux.c: Likewise.
1295 2000-11-07 Kazu Hirata <kazu@hxi.com>
1297 * aix386-core.c: Fix formatting.
1298 * aoutf1.h: Likewise.
1299 * aoutx.h: Likewise.
1300 * archures.c: Likewise.
1301 * armnetbsd.c: Likewise.
1303 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1305 * coff-h8300.c (special): Adjust reloc address.
1307 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1309 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1310 to differentiate elf32 and elf64 on ia64.
1311 * bfd-in2.h: Regenerate.
1312 * config.bfd: Add target for "ia64*-*-hpux*".
1313 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1314 * configure: Regenerate.
1315 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1316 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1318 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1319 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1320 * Makefile.in: Regnerate.
1321 * elf64-ia64.c: Deleted.
1322 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1324 2000-11-06 Kazu Hirata <kazu@hxi.com>
1326 * aout-adobe.c: Fix formatting.
1327 * aout-arm.c: Likewise.
1328 * aout-cris.c: Likewise.
1329 * aout-encap.c: Likewise.
1330 * aout-ns32k.c: Likewise.
1331 * aout-target.h: Likewise.
1332 * aout-tic30.c: Likewise.
1334 2000-11-05 Philip Blundell <philb@gnu.org>
1336 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1337 BFDs containing no sections to be merged, regardless of their flags.
1339 2000-11-04 Philip Blundell <philb@gnu.org>
1341 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1342 if a relocation for an undefined symbol also results in an
1345 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1347 * config.bfd: Add support for Sun Chorus.
1349 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1351 * configure.in: Recognize alpha-*-freebsd*.
1352 * configure: Regenerate.
1354 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1356 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1357 (Chunk): New global variable set by a parameter in objcopy.c.
1358 (S3Forced): New global variable set by a parameter in
1360 (srec_set_section_contents): If S3Forced is true, always generate
1362 (srec_write_section): Use 'Chunk' to limit maximum length of S
1365 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1367 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1368 * Makefile.in: Regenerate.
1369 * bfd-in2.h: Regenerate.
1370 * po/bfd.pot: Regenerate.
1372 2000-10-31 Philip Blundell <philb@gnu.org>
1374 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1375 EF_SOFT_FLOAT if it is defined.
1377 2000-10-27 Philip Blundell <philb@gnu.org>
1379 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1380 attempts to mix PIC code with non-PIC, just mark the output as
1381 being position dependent.
1382 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1383 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1384 all mismatches, not just the first one.
1386 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1388 * ieee.c (ieee_archive_p): Plug one of many possible
1389 memory leaks in error handling.
1391 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1393 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1394 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1396 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1397 sparc64_elf_object_p): Support v9b.
1398 * archures.c: Declare v8plusb and v9b machines.
1400 * cpu-sparc.c: Ditto.
1402 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1404 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1407 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1408 (SYMBOL_CALLS_LOCAL): New macro.
1409 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1410 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1411 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1412 (ppc_elf_relocate_section): Use flag variable to determine
1413 whether the relocation refers to a local symbol.
1414 Test whether a PLTREL24 reloc will produce a reloc by looking
1415 to see whether a PLT entry was made.
1417 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1419 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1420 entries that could serve as a definition for a weak symbol.
1422 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1424 From Ralf Baechle <ralf@gnu.org>
1426 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1427 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1428 against local symbols.
1429 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1431 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1433 * section.c (struct sec): Add kept_section.
1434 (struct bfd_comdat_info): Remove sec, we can use above.
1435 (STD_SECTION): Add initializer.
1436 (bfd_make_section_anyway): Init here too.
1438 * bfd-in2.h: Regenerate.
1440 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1442 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1443 fudge values for discarded link-once section symbols.
1445 * elf64-hppa.c: Include alloca-conf.h
1447 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1449 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1451 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1453 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1455 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1457 2000-10-10 Tom Rix <trix@redhat.com>
1459 * section.c (bfd_make_section_anyway): Release newsect ptr when
1460 newsect->symbol fails to alloc. Use bfd_release instead of free.
1462 2000-10-09 Richard Henderson <rth@cygnus.com
1464 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1465 (elf64_ia64_unwind_entry_compare): New.
1466 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1468 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1470 * elflink.h (size_dynamic_sections): Don't create various tags if
1471 .dynstr is excluded from the link. Don't set first dynsym entry
1472 if dynsymcount is zero.
1473 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1474 .dynsym excluded from the link. Don't try to write any dynamic
1475 sections excluded from the link.
1477 * elf.c (swap_out_syms): Handle global section symbols.
1479 2000-10-05 DJ Delorie <dj@redhat.com>
1481 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1482 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1483 (coff_write_relocs): write extended reloc count
1484 (coff_write_object_contents): account for extended relocs
1486 2000-10-05 Jim Wilson <wilson@cygnus.com>
1488 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1490 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1491 elf_backend_section_flags function.
1492 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1494 (elf64_ia64_section_flags): New function containing flag conversion
1496 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1497 * elfxx-target.h (elf_backend_section_flags): Define.
1498 (elfNN_bed): Initialize elf_backend_section_flags field.
1500 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1502 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1503 _bfd_elf32_gc_record_vtable. Correct a comment.
1505 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1507 From Ralf Baechle <ralf@gnu.org>
1509 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1510 produces binaries with got[1] = 0x80000001 to differenciate them
1511 for the dynamic linker from the broken binaries produced by old
1514 2000-09-30 Petr Sorfa <petrs@sco.com>
1516 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1517 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1518 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1519 * configure: Regenerate.
1521 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1523 Define two bfd_targets for absence and presence of leading
1524 underscore on symbols. Make sure to only link same kind.
1525 * elf32-cris.c (cris_elf_object_p,
1526 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1527 cris_elf_merge_private_bfd_data): New.
1528 (elf_backend_object_p, elf_backend_final_write_processing,
1529 bfd_elf32_bfd_print_private_bfd_data,
1530 bfd_elf32_bfd_merge_private_bfd_data): Define.
1531 <Target vector definition>: Include elf32-target.h twice with
1532 different macro settings:
1533 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1534 bfd_elf32_us_cris_vec.
1535 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1536 (elf_symbol_leading_char): First as 0, then '_'.
1537 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1538 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1539 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1540 * configure: Regenerate.
1541 * targets.c: Declare bfd_elf32_us_cris_vec.
1542 * po/bfd.pot: Regenerate.
1544 2000-09-29 Momchil Velikov <velco@fadata.bg>
1546 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1547 R_ARM_THM_PC22 relocations.
1549 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1551 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1553 2000-09-29 Momchil Velikov <velco@fadata.bg>
1555 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1556 is has the SEC_HAS_CONTENTS flag set.
1558 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1559 Hans-Peter Nilsson <hp@axis.com>
1561 * aout-cris.c (N_TXTADDR): Define.
1563 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1565 * som.c: Include alloca-conf.h.
1566 * Makefile.am: "make dep-am"
1567 * Makefile.in: Regenerate.
1569 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1571 * elf32-hppa.c (plt_stub): New.
1572 (PLT_STUB_ENTRY): Define.
1573 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1574 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1575 (elf32_hppa_link_hash_table_create): Init to suit.
1576 (elf32_hppa_check_relocs): Set has_12bit_branch and
1577 has_17bit_branch as appropriate.
1578 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1579 non-local functions.
1580 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1581 Add space for plt_stub as needed.
1582 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1583 functions at plt_stub.
1584 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1585 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1587 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1588 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1589 of fixed size, and if negative, disable handling of input sections
1590 before stub section. Set up default stub group size depending
1591 on detected branch relocs.
1592 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1593 ensure different offsets from sym_value aren't rounded to
1594 different 2k blocks. Use lrsel and rrsel for other stubs too for
1595 consistency rather than necessity.
1596 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1597 (final_link_relocate): Likewise.
1598 (elf32_hppa_relocate_section): Likewise.
1600 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1601 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1602 (elf_hppa_final_link_relocate): Handle them.
1603 (elf_hppa_relocate_insn): Likewise.
1604 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1606 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1608 * elfcode.h (elf_object_p): Preserve and clear abfd section
1609 information. Restore at error.
1611 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1613 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1614 is empty, make sure that its rva also 0. NT loader dislikes
1617 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1619 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1622 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1624 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1625 currently unused RELATIVE_DYNAMIC_RELOCS code.
1626 (hppa_discard_copies): Likewise.
1627 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1628 comments. Don't check non-code output sections for stub grouping.
1630 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1632 * section.c (bfd_get_unique_section_name): Return NULL if
1635 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1637 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1638 instruction sequence to actually work.
1639 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1642 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1644 * elf32-sh.c (sh_elf_relocate_section): Use
1645 _bfd_final_link_relocate to apply the relocation against a section
1646 symbol, when doing relocatable links.
1648 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1650 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1652 (stub_hash_newfunc): Here too.
1653 (hppa_add_stub): And here.
1654 (elf32_hppa_link_hash_table): Remove stub_section_created,
1655 reloc_section_created, first_init_sec and first_fini_sec. Add
1657 (elf32_hppa_link_hash_table_create): Init to suit.
1658 (hppa_get_stub_entry): Add support for grouping stub sections.
1659 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1660 section code. Index stub vars by section->id.
1661 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1662 exit paths. Zap allocation of above removed vars. Refine
1665 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1666 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1667 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1668 rather than pointer to bfd_link_info.
1669 (hppa_add_stub): Likewise.
1670 (final_link_relocate): Likewise.
1672 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1674 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1677 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1679 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1680 ld/emulparams/shelf.sh.
1682 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1684 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1685 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1686 * bfd-in2.h: Regenerate.
1688 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1690 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1691 LITUSE relocations incorrectly if -relax is specified on the ld
1692 command line and the displacement field of the load or store
1693 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1695 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1697 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1698 first_fini_sec here.
1699 (elf32_hppa_size_stubs): Instead correctly find the first .init
1700 and .fini section here.
1702 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1704 * elf32-hppa.c (clobber_millicode_symbols): New function.
1705 (elf32_hppa_size_dynamic_sections): Call it.
1707 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1709 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1710 packed. Add plabel, plt_abs packed booleans.
1711 (hppa_link_hash_newfunc): Init new fields.
1712 (PLABEL_PLT_ENTRY_SIZE): Define.
1713 (hppa_stub_name): Use size_t len vars.
1714 (hppa_add_stub): Likewise.
1715 (elf32_hppa_build_stubs): Likewise.
1716 (hppa_build_one_stub): Kill some compiler warnings.
1717 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1718 if dynamic linking. Munge the local plt offsets into
1719 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1720 size_t len vars. Add assert for plabel addend.
1721 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1722 (elf32_hppa_hide_symbol): New function.
1723 (elf_backend_hide_symbol): Define.
1724 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1725 with h->plabel set. Don't make plt entries to have dynamic syms
1726 when they have been forced local. If plt entry is used by a
1727 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1728 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1729 Set up .plt offsets for local syms.
1730 (elf32_hppa_relocate_section): Initialise plt entries for local
1731 syms. Leave weak undefined plabels zero. Make global plabel
1732 relocs against function symbol, and leave the addend zero.
1733 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1734 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1735 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1736 relocs instead of SEGREL32 for dynamic got relocs.
1737 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1738 (elf_backend_got_header_size): Adjust.
1739 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1741 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1742 (hppa_type_of_stub): Use it instead of #if 0
1743 (hppa_discard_copies): Use it here too.
1744 (elf32_hppa_size_dynamic_sections): And here.
1746 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1747 (elf32_hppa_link_hash_table_create): And here.
1748 (hppa_build_one_stub): And here. Instead keep track of stub
1749 offset using _raw_size.
1750 (elf32_hppa_size_stubs): Likewise.
1751 (elf32_hppa_build_stubs): Likewise.
1752 (hppa_size_one_stub): Likewise. Resize reloc section too.
1754 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1755 first_fini_sec handling. Don't search for reloc section or set
1756 hplink->reloc_section_created here.
1757 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1758 set reloc_section_created here.
1759 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1760 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1762 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1764 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1765 with `hplink->root.'.
1766 (elf32_hppa_check_relocs): Likewise.
1767 (elf32_hppa_gc_sweep_hook): Likewise.
1768 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1769 (hppa_handle_PIC_calls): Likewise.
1770 (elf32_hppa_size_dynamic_sections): Likewise.
1771 (elf32_hppa_set_gp): Likewise.
1772 (elf32_hppa_relocate_section): Likewise.
1773 (elf32_hppa_finish_dynamic_symbol): Likewise.
1774 (elf32_hppa_finish_dynamic_sections): Likewise.
1776 From David Huggins-Daines <dhd@linuxcare.com>
1777 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1778 defined weak symbols in shared links.
1779 (final_link_relocate): Calls to defined weak symbols in shared
1780 objects must go via import stubs, as the target might not be known
1783 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1785 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1786 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1787 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1788 the original entries with EMPTY_HOWTOs, and added new ones to fill
1790 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1791 (sh_elf_relocate_section): Likewise.
1793 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1795 * cpu-mips.c (arch_info_struct): Add mips:4K
1796 * bfd-in2.h (bfd_mach_mips4K): New define.
1797 * archures.c: Add bfd_mach_mips4K to comment.
1798 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1799 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1801 2000-09-13 Marco Franzen <marcof@thyron.com>
1803 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1804 use size_t as a counter.
1805 (som_write_space_strings): Similarly.
1807 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1809 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1811 (elf32_i860_relocate_section): Invoke new function from here.
1813 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1815 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1818 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1820 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1821 target section name instead of dumping core when the target symbol is
1824 2000-09-09 Kazu Hirata <kazu@hxi.com>
1826 * riscix.c: Remove DEFUN.
1828 2000-09-08 Nick Clifton <nickc@redhat.com>
1830 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1831 initialise flags in output bfd if the input bfd is the default
1832 architecture with the default flags.
1834 2000-09-08 Kazu Hirata <kazu@hxi.com>
1836 * archive.c: Fix formatting.
1837 * coff-arm.c: Likewise.
1838 * doc/chew.c: Likewise.
1840 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1842 * section.c (bfd_get_unique_section_name): Put a dot before the
1845 2000-09-07 Kazu Hirata <kazu@hxi.com>
1847 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1848 * elf.c: Fix formatting.
1850 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1852 * config.bfd (sh-*-linux*): Added.
1853 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1854 * targets.c: Declare them.
1855 * elf32-sh-lin.c: New file.
1856 * Makefile.am: Compile it.
1857 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1858 * configure, Makefile.in: Rebuilt.
1860 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1862 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1863 pseduo-section when determining where the TOC ends.
1865 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1866 output x_tvndx as it is only two bytes wide.
1868 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1869 reloc is 26 or 32 bits wide.
1871 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1872 for relocs that don't change anything. Also look at the full
1875 2000-09-06 Philip Blundell <philb@gnu.org>
1877 * config.bfd (arm*-*-uclinux*): New target.
1879 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1881 * configure: Rebuilt with new libtool.m4.
1883 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1885 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1886 word for variable name.
1887 * bfd-in2.h: Regenerate.
1889 2000-09-05 Nick Clifton <nickc@redhat.com>
1891 * config.in: Regenerate.
1892 * libbfd.h: Regenerate.
1893 * po/bfd.pot: Regenerate.
1894 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1897 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1899 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1901 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1903 Shared library and PIC support.
1904 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1905 (GOT_ENTRY_SIZE): New.
1906 (ELF_DYNAMIC_INTERPRETER): New.
1907 (STUB_SUFFIX): Define.
1908 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1909 (RELATIVE_DYNAMIC_RELOCS): Define.
1910 (enum elf32_hppa_stub_type): New.
1911 (struct elf32_hppa_stub_hash_entry): Rename offset to
1912 stub_offset. Add a number of new fields.
1913 (struct elf32_hppa_link_hash_entry): New.
1914 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1916 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1917 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1918 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1920 (hppa_link_hash_newfunc): New function.
1921 (elf32_hppa_link_hash_table_create): Use above function. Init new
1923 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1924 instead of addend, and remove sym_name from args. Don't use
1925 symbol name for local syms, instead use sym index.
1926 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1927 stub type rather than size. Pass in hash and handle import stub
1928 case. Also pass in reloc instead of offset so we can calculate
1929 PCREL22F and PCREL12F branches properly.
1930 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1931 import and export stubs too.
1932 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1933 import and export stub sizing.
1934 (elf32_hppa_check_relocs): New function.
1935 (elf32_hppa_adjust_dynamic_symbol): New function.
1936 (hppa_discard_copies): New function.
1937 (elf32_hppa_size_dynamic_sections): New function.
1938 (elf_backend_size_dynamic_sections): Define.
1939 (elf32_hppa_finish_dynamic_symbol): New function.
1940 (elf_backend_finish_dynamic_symbol): Define.
1941 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1942 some local vars into the link hash table too. For shared links,
1943 trundle over function syms, generating export stubs. Handle
1944 PCREL22F branches. Break out stub creation code from here..
1945 (hppa_add_stub): .. to here. New function.
1946 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1947 call the bfd linker. Use elf_gp to record global pointer.
1948 Calculate a value from sections if $global$ is missing.
1949 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1950 (elf32_hppa_gc_mark_hook): New function.
1951 (elf_backend_gc_mark_hook): Define.
1952 (elf32_hppa_gc_sweep_hook): New function.
1953 (elf_backend_gc_sweep_hook): Define.
1954 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1955 Add rel to args, and remove howto, input_bfd, offset, addend,
1956 sym_name as we can recalculate these locally. Handle calls to
1957 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1958 handling of undefined weak syms. Check that stubs are in range.
1959 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1960 message on hitting a DPREL21L reloc that needs fixing. Subtract
1961 off PC for PCREL14F. Break out code that does a stub lookup from
1963 (hppa_get_stub_entry): ..to here. New function.
1964 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1965 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1967 (elf32_hppa_finish_dynamic_sections): New function.
1968 (elf_backend_finish_dynamic_sections): Define.
1969 (elf_backend_final_write_processing) Define.
1970 (hppa_handle_PIC_calls): New function.
1971 (elf32_hppa_build_stubs): Call it. Pass link_info to
1972 hppa_build_one_stub.
1973 (elf32_hppa_create_dynamic_sections): New function
1974 to create .plt and .got then set .plt flags correctly.
1975 (elf_backend_create_dynamic_sections): Define.
1976 (elf32_hppa_object_p): New function.
1977 (elf_backend_object_p): Define.
1978 (elf32_hppa_elf_get_symbol_type): New function.
1979 (elf_backend_get_symbol_type): Define.
1980 (elf_backend_can_gc_sections): Define.
1981 (elf_backend_want_got_plt): Define.
1982 (elf_backend_plt_alignment): Set to 2.
1983 (elf_backend_plt_readonly): Define.
1984 (elf_backend_want_plt_sym): Define.
1985 (elf_backend_got_header_size): Reserve one entry.
1987 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1988 (elf32_hppa_size_stubs): Pass in multi_subspace.
1989 (elf32_hppa_set_gp): Declare.
1991 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1992 (bfd_get_unique_section_name): New function.
1993 * bfd-in2.h: Regenerate.
1995 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1996 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1999 From David Huggins-Daines <dhd@linuxcare.com>
2000 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2001 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2002 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2003 been updated in finish_dynamic_symbol before modifying function
2006 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2007 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2008 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2009 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2010 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2011 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2012 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2013 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2015 From David Huggins-Daines <dhd@linuxcare.com>
2016 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2017 style of local labels as well.
2019 2000-09-03 Philip Blundell <philb@gnu.org>
2021 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2022 references to undefined symbols in debugging sections.
2024 2000-09-02 H.J. Lu <hjl@gnu.org>
2026 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2027 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2028 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2031 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2033 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2034 (elf32_i860_is_local_label_name): New function and prototype.
2036 2000-09-02 Nick Clifton <nickc@redhat.com>
2038 * configure.in: Increase version number to 2.10.91.
2039 * configure: Regenerate.
2040 * aclocal.m4: Regenerate.
2041 * config.in: Regenerate.
2042 * po/bfd.pot: Regenerate.
2044 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2046 * elf.c (_bfd_elf_make_section_from_shdr): Add
2047 .gnu.linkobce.wi. to the list of debug section names.
2049 2000-09-02 Nick Clifton <nickc@redhat.com>
2051 * dwarf2.c (find_debug_info): New function: Locate a section
2052 containing dwarf2 debug information.
2053 (bfd_dwarf2_find_nearest_line): Find all sections containing
2054 debug information and include them in the stash.
2056 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2058 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2059 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2060 (sh_reloc_map): Add new relocs.
2061 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2062 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2063 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2064 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2066 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2067 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2068 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2069 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2070 New array constants.
2071 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2073 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2074 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2075 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2076 elf_sh_plt_reloc_offset): Define.
2077 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2078 elf_sh_link_hash_table): New structs.
2079 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2080 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2082 (elf_backend_create_dynamic_sections,
2083 bfd_elf32_bfd_link_hash_table_create,
2084 elf_backend_adjust_dynamic_symbol,
2085 elf_backend_size_dynamic_sections,
2086 elf_backend_finish_dynamic_symbol,
2087 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2088 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2089 elf_backend_got_header_size, elf_backend_plt_header_size):
2091 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2092 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2094 * bfd-in2.h, libbfd.h: Rebuilt.
2096 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2098 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2101 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2103 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2104 not initialized, set them to indicate the SH1 instruction set.
2106 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2108 * acinclude.m4: Include libtool and gettext macros from the
2110 * aclocal.m4, configure: Rebuilt.
2112 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2114 * elf.c: Eliminate references to __sparcv9 macro; replace with
2115 autoconf variables HAVE_PSINFO32_T etc.
2116 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2117 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2119 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2120 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2121 * aclocal.m4: Ditto.
2122 * configure: Regenerate.
2124 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2126 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2127 for any shared link, not just shared -Bsymbolic.
2128 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2129 any shared link, and pass link info to it.
2130 (elf_i386_size_dynamic_sections): Update comment.
2131 (elf_i386_discard_copies): Modify to discard relocs for symbols
2132 that have been forced local.
2133 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2134 that have been forced local.
2136 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2138 * elflink.h (elf_link_add_object_symbols): Allow common
2139 symbols to have an alignment of 1 if explicitly requested, and
2140 not overridden by other definitions.
2142 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2144 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2145 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2147 2000-08-22 H.J. Lu <hjl@gnu.org>
2149 * elf-bfd.h (elf_link_hash_table): Add runpath.
2151 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2152 * bfd-in2.h: Rebuilt.
2154 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2155 "runpath" field to NULL.
2156 (bfd_elf_get_runpath_list): New function.
2158 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2161 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2163 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2164 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2165 explicitly. Improve validation of r_type.
2167 2000-08-21 H.J. Lu <hjl@gnu.org>
2169 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2170 dynamic allocated content space. Add a comment to remind us that
2171 one day this ought to be fixed.
2172 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2173 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2174 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2176 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2178 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2179 field with the newly relocated value instead of adding it to the
2180 existing immediate field.
2181 (elf32_i860_relocate_splitn): Likewise.
2182 (elf32_i860_relocate_highadj): Likewise.
2184 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2186 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2187 was previously just a stub).
2189 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2191 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2193 (_bfd_elf_create_dynamic_sections): Likewise.
2195 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2197 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2198 for undefined symbols to be the beginning of the section.
2200 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2201 four extra entries at the beginning of the .rela.plt section.
2202 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2203 section to account for the four reserved entries in the .plt section.
2205 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2207 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2208 to the list of NOPs we recognize after a branch-and-link.
2209 Use the ori NOP when one is needed.
2211 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2214 2000-08-14 Jim Wilson <wilson@cygnus.com>
2216 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2217 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2218 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2221 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2223 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2225 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2227 * elf32-i860.c (elf32_i860_relocate_section): New function.
2228 (i860_final_link_relocate): New function.
2229 (elf32_i860_relocate_splitn): New function.
2230 (elf32_i860_relocate_pc16): New function.
2231 (elf32_i860_relocate_highadj): New function.
2232 (elf32_i860_howto): Minor adjustments to some relocations.
2233 (elf_info_to_howto_rel): Define.
2234 (elf_backend_relocate_section): Define.
2236 2000-08-10 Nick Clifton <nickc@cygnus.com>
2238 * elf32-arm.h: Fix formatting.
2240 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2242 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2244 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2246 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2248 2000-08-07 Kazu Hirata <kazu@hxi.com>
2250 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2251 * elf64-ia64.c: Fix a typo.
2253 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2255 * elf32-i860.c (elf32_i860_howto_table): New structure.
2256 (lookup_howto): New function.
2257 (elf32_i860_reloc_type_lookup): New function.
2258 (elf32_i860_info_to_howto_rela): New function.
2259 (elf_code_to_howto_index): New structure.
2260 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2261 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2262 elf32_i860_reloc_type_lookup.
2264 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2266 * som.c (struct fixup_format): Constify `format'.
2267 (som_hppa_howto_table): Use SOM_HOWTO macro.
2268 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2269 (som_bfd_reloc_type_lookup): Likewise.
2270 (compare_subspaces): Remove unused `count1', `count2'.
2271 (som_begin_writing): Remove unused `total_reloc_size'.
2272 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2273 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2274 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2275 (som_find_nearest_line): Decorate unused parameter(s).
2276 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2277 (som_bfd_link_split_section): Likewise.
2279 2000-08-03 Nick Clifton <nickc@cygnus.com>
2281 * section.c: Restore backed out code.
2282 * elf.c: Restore backed out code.
2283 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2284 binaries from working.
2285 * bfd-in2.h: Regenerate.
2287 2000-08-03 H.J. Lu <hjl@gnu.org>
2289 * section.c: Back out the change made by Nick Clifton
2290 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2292 * bfd-in2.h: Likewise.
2295 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2297 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2299 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2301 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2302 * bfd-in2.h, libbfd.h: Regenerate.
2304 2000-07-31 Nick Clifton <nickc@cygnus.com>
2306 * section.c (struct sec): Add new boolean field 'segment_mark'.
2307 (STD_SECTION): Initialise new field to zero.
2309 * bfd-in2.h: Regenerate.
2311 * elf.c (copy_private_bfd_data): Reorganise section to segment
2312 mapping to cope with moved sections requiring new segments,
2313 and overlapping segments.
2314 (SEGMENT_END): New macro: Return the end address of a segment.
2315 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2316 contains a section by comparing their VMA addresses.
2317 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2318 contains a section by comparing their LMA addresses.
2319 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2320 section should be included in a segment.
2321 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2322 follows another in memory.
2323 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2326 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2328 * cpu-i860.c: Added comments.
2330 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2331 bfd_elf32_i860_little_vec.
2332 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2333 (ELF_MAXPAGESIZE): Changed to 4096.
2335 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2337 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2339 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2340 config for little endian elf32 i860.
2341 (targ_defvec): Define for the new config above
2342 as "bfd_elf32_i860_little_vec".
2343 (targ_selvecs): Define for the new config above
2344 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2346 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2349 * configure: Regenerated.
2351 2000-07-27 H.J. Lu <hjl@gnu.org>
2353 * elflink.h (elf_merge_symbol): Take one more argument,
2354 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2355 entry. Don't overide the existing weak definition if dt_needed
2357 (elf_link_add_object_symbols): Pass dt_needed to
2358 elf_merge_symbol ().
2360 2000-07-27 Nick Clifton <nickc@cygnus.com>
2362 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2365 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2367 * configure.host (*-*-aix*): AIX has 'long long' always.
2369 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2370 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2371 (xcoff_write_archive_contents_big): Don't update the offset
2372 of the symbol table, xcoff_write_armap will do it.
2374 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2376 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2377 of dynobj for SGI_COMPAT checks.
2379 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2381 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2382 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2383 * bfd-in2.h: Regenerate.
2385 2000-07-21 Nick Clifton <nickc@cygnus.com>
2387 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2388 range symbol indices in relocs and issue an error message.
2390 2000-07-20 H.J. Lu <hjl@gnu.org>
2392 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2393 info->new_dtags when setting DT_FLAGS_1. It will only be set
2394 by the new linker options. It shouldn't break anything.
2396 2000-07-20 H.J. Lu <hjl@gnu.org>
2398 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2399 only if info->new_dtags is true.
2401 2000-07-20 H.J. Lu <hjl@gnu.org>
2403 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2404 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2406 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2408 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2409 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2410 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2411 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2412 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2413 * Makefile.in: Rebuild.
2414 * aclocal.m4: Rebuild.
2415 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2416 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2417 (bfd_cris_arch): Declare.
2418 (bfd_archures_list): Add bfd_cris_arch.
2419 * bfd-in2.h: Rebuild.
2420 * config.bfd: (cris-*-*): New target.
2421 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2422 * configure: Rebuild.
2423 * elf.c (prep_headers): Add bfd_arch_cris.
2424 * libbfd.h: Rebuild.
2425 * libaout.h (enum machine_type): Add M_CRIS.
2426 * reloc.c: Add CRIS relocations.
2427 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2428 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2429 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2430 * po/POTFILES.in, po/bfd.pot: Regenerate.
2432 2000-07-19 H.J. Lu <hjl@gnu.org>
2434 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2435 DF_TEXTREL if DT_TEXTREL is set.
2436 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2437 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2438 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2439 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2440 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2441 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2442 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2443 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2444 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2445 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2447 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2448 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2450 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2452 2000-07-19 H.J. Lu <hjl@gnu.org>
2454 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2455 * bfd-in2.h: Rebuild.
2457 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2458 (elf_dt_soname): New.
2460 * elf.c (bfd_elf_set_dt_needed_soname): New.
2462 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2463 entry if the shared object loaded by DT_NEEDED is used to
2464 resolve the reference in a regular object.
2466 2000-07-19 H.J. Lu <hjl@gnu.org>
2468 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2469 DT_DEPAUDIT and DT_AUDIT as strings.
2471 2000-07-19 Nick Clifton <nickc@cygnus.com>
2473 * format.c: Fix formatting.
2475 2000-07-19 H.J. Lu <hjl@gnu.org>
2477 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2479 2000-07-19 H.J. Lu <hjl@gnu.org>
2481 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2482 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2483 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2484 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2485 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2486 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2487 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2489 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2491 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2492 renamed functions from here...
2493 (assign_section_numbers): Use renamed functions.
2494 (prep_headers): Use renamed functions.
2496 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2497 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2498 * bfd-in2.h: Regenerate.
2500 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2502 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2503 parenthesis in if statement.
2505 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2507 Enable the support for Traditional MIPS.
2508 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2509 return ict_none appropriately for traditional mips targets.
2510 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2511 (STUB_MOVE): Conditionalize for traditonal mips.
2512 (STUB_LI16): Likewise.
2513 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2514 room for RTPROC header.
2515 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2516 the permission for the PT_DYNAMIC as read, write and execute.
2517 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2518 for traditonal mips.
2519 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2520 _DYNAMIC_LINKING for traditonal mips.
2521 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2522 in case of traditonal mips.
2523 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2524 entry is required. For a function if PLT is not required then set the
2525 corresponding hash table entry to 0.
2526 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2528 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2529 shared object set the value to 0.
2530 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2531 _DYNAMIC_LINKING for traditonal mips.
2532 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2533 for traditonal mips.
2535 2000-07-15 H.J. Lu <hjl@gnu.org>
2537 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2539 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2541 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2542 out a structure that is BFD_IN_MEMORY.
2544 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2546 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2547 bfd pointer. Print section id instead of bfd pointer for local
2548 syms. Prefix addend with `+' for global syms as well as local.
2549 Correct calculation of name component lengths.
2550 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2552 From David Huggins-Daines <dhd@linuxcare.com>
2553 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2554 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2555 (elf64_hppa_modify_segment_map): Likewise.
2557 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2559 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2560 addresses to be "naturally" sign extended. Return -1 if unknown.
2561 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2562 * bfd-in2.h: Regenerate.
2564 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2566 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2567 and ECOF_SIGNED_64 to list ways to extract an offset.
2568 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2569 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2571 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2572 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2574 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2576 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2577 bfd_get_start_address.
2578 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2579 (elf_swap_ehdr_out): Ditto.
2581 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2583 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2584 compatibility with older binutils.
2586 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2588 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2589 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2591 From Ryan Bradetich <rbradetich@uswest.net>
2592 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2593 (parse_line_table): Ditto.
2594 (_bfd_dwarf1_find_nearest_line): Ditto.
2595 * syms.c (cmpindexentry): Remove extra `*' from params.
2597 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2599 * elf32-mips.c (sort_dynamic_relocs): New Function.
2600 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2601 via qsort to sort the dynamic relocations in increasing r_symndx
2604 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2606 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2607 ATTRIBUTE_UNUSED to unused args.
2608 (get_opd): Likewise.
2609 (get_plt): Likewise.
2610 (get_dlt): Likewise.
2611 (get_stub): Likewise.
2612 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2613 (elf64_hppa_link_output_symbol_hook): Likewise.
2614 (elf64_hppa_check_relocs): Delete unused var.
2615 (elf64_hppa_size_dynamic_sections): Likewise.
2616 (elf64_hppa_finalize_opd): Likewise.
2617 (elf64_hppa_finalize_dynreloc): Likewise.
2618 (elf64_hppa_modify_segment_map): Likewise.
2619 (elf64_hppa_finish_dynamic_sections): Likewise.
2621 * elf-hppa.h (elf_hppa_final_write_processing): Add
2622 ATTRIBUTE_UNUSED to unused args.
2623 (elf_hppa_final_link_relocate): Likewise.
2624 (elf_hppa_record_segment_addrs): Add paretheses.
2625 (elf_hppa_relocate_section): Constify dyn_name.
2627 From David Huggins-Daines <dhd@linuxcare.com>
2628 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2629 rearrange case statement so that it gets preferred to 32-bit ones.
2631 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2632 asection->id instead of address of asection structure.
2633 (elf32_hppa_size_stubs): Likewise.
2635 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2636 for .init* and .fini*.
2638 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2639 and addends used in stub names to 32 bits.
2640 (elf32_hppa_size_stubs): Likewise.
2642 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2643 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2644 not bfd_put_64. Fix minor comment typo and formatting.
2646 Changes to create multiple linker stubs, positioned immediately
2647 before the section where they are required.
2648 * elf32-hppa.c: Don't include hppa_stubs.h.
2649 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2650 (elf32_hppa_stub_hash_table): Delete.
2651 (elf32_hppa_link_hash_entry): Delete.
2652 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2653 stub_hash_table, and store the struct here rather than a pointer.
2654 Delete output_symbol_count. Add offset array. Change
2655 global_value to a bfd_vma.
2656 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2657 (elf32_hppa_stub_hash_traverse): Delete.
2658 (elf32_hppa_name_of_stub): Delete.
2659 (elf32_hppa_link_hash_lookup): Delete.
2660 (elf32_hppa_link_hash_traverse): Delete.
2661 (elf32_hppa_stub_hash_table_init): Delete.
2662 (elf32_hppa_size_of_stub): Pass input section and offset rather
2663 than location and calculate location here. Don't pass name as all
2664 stubs are now the same size.
2665 (elf32_hppa_stub_hash_newfunc): Init new fields.
2666 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2668 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2669 comparing against ints. Rewrite stub handling code.
2670 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2671 Case enums to int before comparing against ints. Remove
2672 bfd_reloc_dangerous case.
2673 (elf32_hppa_build_one_stub): Rewrite.
2674 (elf32_hppa_size_one_stub): New function.
2675 (elf32_hppa_build_stubs): Rewrite.
2676 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2677 Rewrite stub-handling specific code.
2679 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2681 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2683 * hppa_stubs.h: Delete.
2684 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2685 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2686 * Makefile.in: Regenerate.
2688 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2691 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2693 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2694 and section name for bfd_reloc_notsupported error message.
2695 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2696 bfd_reloc_notsupported.
2697 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2699 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2700 undefined weak symbols for all relocs.
2701 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2702 offsets are relative to one past the delay slot.
2703 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2704 branch destination. Put addend into stub name too.
2705 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2706 adjust by 8 when deciding whether a linker stub is needed. Put
2707 addend into stub name as for above.
2709 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2710 various args and vars.
2711 (elf32_hppa_bfd_final_link_relocate): Here too.
2712 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2713 inner block var to avoid shadowing.
2715 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2717 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2718 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2719 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2721 * libhppa.h: Change practically all unsigned ints to plain ints.
2722 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2725 From Ryan Bradetich <rbradetich@uswest.net>
2726 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2727 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2729 From David Huggins-Daines <dhd@linuxcare.com>
2730 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2731 to the new OP_* ones.
2733 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2734 error exit. Bail out earlier on plabel relocs that we aren't
2735 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2736 string, and then don't free our copy.
2737 (elf32_hppa_build_one_stub): Make insn unsigned int.
2739 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2740 available with BL, not BE and BLE.
2742 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2743 code for elf arg relocs.
2744 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2745 argument with elf_link_hash_entry h. Handle undefined weak
2746 symbols. Move $global$ lookup from here...
2747 (elf32_hppa_relocate_section): ...to here. Return correct error
2748 message for non-handled relocs.
2749 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2750 wrong test was -0x3ffff to +0x40000.
2752 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2753 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2754 Handle them as such.
2755 (elf_hppa_relocate_insn): Fix a typo.
2757 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2758 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2759 assemble_17, assemble_21): Delete.
2760 Supply defines for all 64 possible opcodes.
2761 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2762 formats. Handle COMICLR.
2763 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2766 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2767 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2768 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2770 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2771 the local syms - did this code get deleted accidentally? Ignore
2772 undefined and undefweak syms.
2774 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2775 block. Use it instead of elf64_hppa_hash_table (info).
2776 (elf_hppa_final_link_relocate): Use hppa_info instead of
2777 elf64_hppa_hash_table (info).
2779 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2780 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2781 (hppa_rebuild_insn): Mask immediate bits here instead.
2782 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2784 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2786 * section.c (struct sec): Add id field. Tidy comment formatting.
2787 (bfd_make_section_anyway): Set id.
2788 (STD_SECTION): Init id too.
2789 Change CONST to const throughout.
2790 * archures.c (bfd_arch_info): Tidy comment.
2791 (bfd_arch_list): Change a CONST to const.
2792 * libbfd-in.h: Tidy comments and replace CONST with const.
2793 * elf-bfd.h: Likewise.
2794 * libbfd.h: Regenerate.
2795 * bfd-in2.h: Regenerate.
2796 * libcoff.h: Regenerate.
2798 2000-07-07 DJ Delorie <dj@redhat.com>
2800 * archive.c (_bfd_write_archive_contents): Add an informative
2803 2000-07-06 Kazu Hirata <kazu@hxi.com>
2805 * srec.c: Fix formatting.
2807 2000-06-05 DJ Delorie <dj@redhat.com>
2811 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2813 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2814 value of PC-relative offsets.
2816 2000-07-03 Jim Wilson <wilson@cygnus.com>
2818 * elf64-alpha.c (alpha_elf_size_info): New.
2819 (elf_backend_size_info): Define to alpha_elf_size_info.
2820 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2822 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2824 * elf32-mips.c: Include elf32-target.h again for the traditional
2827 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2829 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2830 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2831 (avr_info_to_howto_rela): Likewise.
2832 (elf32_avr_gc_mark_hook): Likewise.
2833 (elf32_avr_gc_sweep_hook): Likewise.
2834 (elf32_avr_relocate_section): Likewise.
2836 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2838 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2839 an external symbol for a non-shared, non-relocatable link.
2841 2000-07-03 Nick Clifton <nickc@redhat.com>
2843 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2844 is an external symbol.
2845 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2848 2000-07-03 Kazu Hirata <kazu@hxi.com>
2850 * reloc16.c: Fix formatting.
2852 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2854 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2855 to add a new target for traditional mips i.e
2856 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2857 * configure.in: Likewise.
2858 * configure: Rebuild.
2859 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2861 (bfd_elf32_tradlittlemips_vec): Likewise.
2862 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2863 to see that elfNN_bed does not get redefined even if the target file
2864 is included twice for a chip. See elf32-mips.c.
2866 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2868 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2869 (CLEANFILES): Add DEPA.
2870 * Makefile.in: Regenerate.
2872 2000-06-30 DJ Delorie <dj@cygnus.com>
2874 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2875 can't assume the PE header is at 0x80.
2877 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2879 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2881 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2883 * go32stub.h: Update stub.
2885 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2887 * archures.c (bfd_mach_avr5): Define.
2888 * bfd-in2.h (bfd_mach_avr5): Define.
2889 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2890 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2891 (compatible): Update comment. Add missing test.
2892 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2893 for avr2 and avr4. Simplify 8K wrap code.
2894 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2895 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2897 2000-06-26 Kazu Hirata <kazu@hxi.com>
2899 * coff-h8300.c: Fix formatting.
2900 * cpu-h8300.c: Likewise.
2902 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2904 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2905 for local symbols whose names are unknown.
2907 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2909 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2911 * Makefile.in: Regenerate.
2912 * doc/Makefile.in: Regenerate.
2914 2000-06-20 H.J. Lu <hjl@gnu.org>
2916 * Makefile.am: Rebuild dependency.
2917 * Makefile.in: Rebuild.
2919 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2921 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2922 (elf_backend_copy_indirect_symbol): Map to the new function.
2924 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2926 * archive.c (normalize): Correct pointer comparison when checking
2928 (bfd_bsd_truncate_arname): Likewise.
2929 (bfd_gnu_truncate_arname): Likewise.
2931 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2933 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2934 sections elf_{text,data}_{section,symbol}.
2935 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2936 (_bfd_mips_elf_hide_symbol): New function.
2937 (elf_backend_hide_symbol): Map to the new function.
2938 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2939 definitions of mips_elf_{text,data}_{section,symbol}.
2940 (mips_elf_local_relocation_p): Try to find the direct symbol
2941 based on new check_forced argument.
2942 (mips_elf_calculate_relocation): Use new version of
2943 mips_elf_local_relocation_p.
2944 (mips_elf_relocate_section): Likewise.
2945 (_bfd_mips_elf_relocate_section): Likewise.
2946 (mips_elf_sort_hash_table): Only assert that have enough GOT
2948 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2949 entry if the relocation based on the new external argument.
2950 (mips_elf_create_dynamic_relocation): Assert that we have a
2951 section contents allocated where we can swap out the dynamic
2953 (mips_elf_calculate_relocation): Find the real hash-table entry
2954 correctly by using h->root.root.type. Only create a dynamic
2955 relocation entry if the symbol is defined in a shared library.
2956 Create an external GOT entry for the GOT16 relocation if the
2957 symbol was forced local.
2958 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2959 dynamic index if the symbol was forced local.
2961 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2963 * elf32-mips.c: Fix typos in comments.
2965 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2967 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2970 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2972 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2973 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2974 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2975 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2976 (bfd_elf32_m68hc11_vec): Likewise.
2977 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2978 Supports 68hc11 & 68hc12 at the same time.
2979 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2981 (bfd_elf32_m68hc11_vec): Likewise.
2982 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2983 * archures.c (bfd_m68hc12_arch): Define and register in global list
2984 (bfd_m68hc11_arch): Likewise.
2985 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2986 BFD_RELOC_M68HC11_3B): Define.
2987 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2988 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2990 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2992 * elf_bfd.h (struct elf_backend_data): Add info argument to
2993 elf_backend_hide_symbol.
2994 (_bfd_elf_link_hash_hide_symbol): Likewise.
2995 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2996 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2997 * elflink.h (elf_link_add_object_symbols): Likewise.
2998 (elf_link_assign_sym_version): Likewise.
3000 2000-06-18 H.J. Lu <hjl@gnu.org>
3002 * coff-i386.c (coff_i386_reloc): Don't return in case of
3003 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3004 Compensate PE relocations when linking with non-PE object
3005 files to generate a non-PE executable.
3007 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3009 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3010 GOT entries if we're doing a static link or -Bsymbolic link.
3012 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3014 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3015 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3017 (elf_link_output_relocs): Likewise.
3018 (elf_reloc_link_order): Likewise.
3020 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3022 * archures.c (enum bfd_architecture): #define constants for
3023 PowerPc and RS6000 machine numbers.
3024 * bfd-in2.h: Regenerate.
3025 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3026 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3027 and RS6000 machine numbers using #defined constants from
3029 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3030 machine numbers using #defined constants from archures.c. Add
3031 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3032 64-bit words in 620 entry.
3033 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3035 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3037 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3039 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3040 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3041 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3043 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3045 * bfd-in.h (bfd_family_coff): Define.
3046 * bfd-in2.h: Regenerate.
3047 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3048 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3049 instead of bfd_target_coff_flavour.
3050 * cofflink.c (_bfd_coff_final_link): Likewise.
3051 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3052 exclude XCOFF files.
3053 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3055 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3056 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3057 * xcofflink.c (XCOFF_XVECP): Delete.
3058 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3059 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3060 bfd_xcoff_record_link_assignment,
3061 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3062 check for bfd_target_xcoff_flavour.
3064 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3066 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3068 (read_hdr): New function.
3069 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3070 of trying to extract individual registers. Set abfd->arch_info
3071 to match the architecture that created the core file.
3072 (rs6000coff_get_section_contents): Delete.
3073 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3075 2000-06-14 H.J. Lu <hjl@gnu.org>
3077 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3080 2000-06-13 H.J. Lu <hjl@gnu.org>
3082 * configure: Regenerate.
3084 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3086 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3089 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3091 * configure.in (VERSION): Update to show this is the CVS mainline.
3093 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3095 * elf32-d10v.c: Include elf/d10v.h
3096 (enum reloc_type): Delete.
3097 * elf32-d30v.c: Include elf/d30v.h
3098 (enum reloc_type): Delete.
3100 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3101 * Makefile.in: Regenerate.
3103 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3104 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3105 move HOWTOs into elf_howto_table.
3106 (R_386_standard, R_386_ext_offset): Define.
3107 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3108 (elf_i386_reloc_type_lookup): Modify calculation of index into
3109 elf_howto_table since we've removed the padding.
3110 (elf_i386_info_to_howto_rel): Likewise.
3111 (elf_i386_relocate_section): Likewise.
3113 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3115 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3117 2000-06-05 H.J. Lu <hjl@gnu.org>
3119 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3120 an error when seeing an undefined symbol with hidden/internal
3121 attribute. It is handled in *_relocate_section ().
3123 2000-06-05 H.J. Lu <hjl@gnu.org>
3125 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3126 indirect symbol for the ELF_LINK_NON_ELF bit.
3127 (elf_link_output_extsym): Don't output the indirect symbol even
3128 if the ELF_LINK_NON_ELF bit is set.
3130 2000-06-01 J.T. Conklin <jtc@redback.com>
3132 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3133 (i[3456]86-*-netbsdaout*): New target.
3134 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3135 (i[3456]86-*-openbsd*): Likewise.
3137 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3139 * trad-core.c: From hpux-core.c, include <dirent.h> or
3140 <sys/ndir.h> when possible.
3142 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3144 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3145 definitions. We must not assume they are sorted in the file
3146 according to their index numbers.
3148 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3150 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3151 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3152 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3154 2000-05-30 Nick Clifton <nickc@cygnus.com>
3156 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3157 80960CA, 80960MC as valid machine names.
3159 2000-05-30 H.J. Lu <hjl@gnu.org>
3161 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3162 visibility bits if the symbol is undefined. Correctly handle
3163 weak undefined symbols with hidden and internal attributes.
3165 * elflink.h (elf_link_add_object_symbols): Always turn the
3166 symbol into local if it has the hidden or internal attribute.
3168 2000-05-29 Philip Blundell <philb@gnu.org>
3170 * ppcboot.c: Add packed attribute if compiling with GCC.
3172 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3174 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3176 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3178 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3179 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3180 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3183 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3185 * Makefile.am: Update dependencies with "make dep-am"
3186 * Makefile.in: Regenerate.
3188 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3189 bindtextdomain): Replace defines with those from intl/libgettext.h
3190 to quieten gcc warnings.
3192 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3194 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3196 * archive.c (normalize, bfd_bsd_truncate_arname,
3197 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3198 file names with backslashes.
3200 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3203 * sysdep.h: Include filenames.h.
3205 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3207 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3209 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3211 * elf64-sparc.c (sparc64_elf_relax_section): New.
3212 (sparc64_elf_relocate_section): Optimize tail call into branch always
3214 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3215 (elf32_sparc_relax_section): New.
3217 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3219 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3220 Remove unusued variables.
3221 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3222 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3223 previous fix, so that shared libs really don't influence targets
3224 extension mask and memory model.
3226 2000-05-23 H.J. Lu <hjl@gnu.org>
3228 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3229 h->root.other not h->other.
3230 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3232 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3234 2000-05-23 H.J. Lu <hjl@gnu.org>
3236 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3237 undefined symbol with the non-default visibility attributes.
3238 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3239 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3240 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3241 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3242 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3243 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3244 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3245 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3246 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3247 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3248 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3250 2000-05-22 Richard Henderson <rth@cygnus.com>
3252 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3253 PCREL22, PCREL64I. Zero size of special relocs.
3254 (elf64_ia64_reloc_type_lookup): Likewise.
3255 (USE_BRL, oor_brl, oor_ip): New.
3256 (elf64_ia64_relax_section): New.
3257 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3258 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3259 (elf64_ia64_relocate_section): Likewise.
3260 (bfd_elf64_bfd_relax_section): New.
3261 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3262 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3263 * bfd-in2.h, libbfd.h: Regenerate.
3265 2000-05-22 Nick Clifton <nickc@cygnus.com>
3267 * configure.in : Add peigen.lo to MIPS PE targets.
3268 * configure: Regenerate.
3270 2000-05-22 Momchil Velikov <velco@fadata.bg>
3272 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3273 only if it is known for both input and output bfds. Separate
3274 error message strings as in some languages, it may be necessary
3275 to change more than one place in the string to change between
3278 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3279 endianess checks, call _bfd_generic_verify_endian_match() instead.
3281 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3283 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3285 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3286 endianess before checking bfd flavours.
3288 2000-05-22 H.J. Lu <hjl@gnu.org>
3290 * elflink.h (elf_link_output_extsym): Clear the visibility
3291 field for symbols not defined locally.
3293 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3295 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3296 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3297 (hppa_rebuild_insn): Mask immediate bits here instead.
3298 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3300 2000-05-18 Momchil Velikov <velco@fadata.bg>
3302 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3303 relocs for an executable, ensure that they are virtual addresses.
3305 2000-05-18 Jeffrey A Law (law@cygnus.com)
3307 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3309 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3310 Rick Gorton <gorton@scrugs.lkg.dec.com>
3312 * elflink.h: Add emitrelocations support: when enabled, relocation
3313 information and relocation sections are put into final output
3314 executables. If the emitrelocations flag is set, do the following:
3315 (elf_bfd_final_link): Emit relocation sections.
3316 (elf_link_input_bfd): Compute relocation section contents.
3317 (elf_gc_sections): Don't clean relocation sections.
3319 2000-05-16 Catherine Moore <clm@cygnus.com>
3321 * som.c (som_decode_symclass): Recognize weak symbols.
3323 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3325 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3326 read idata section only from dataoff.
3327 (pe_print_edata): Correctly check for valid eat_member.
3329 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3331 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3333 2000-05-14 Philip Blundell <philb@gnu.org>
3335 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3337 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3339 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3341 * peigen.c (pe_print_idata): Look for .idata section and print
3342 info even if data directory has zero entries. Read idata section
3343 starting from dataoff, and adjust all data offsets to suit. Cast
3344 all bfd_vma vars to unsigned long before passing to fprintf.
3345 * peigen.c (pe_print_edata): Similarly, look for .edata section
3346 and print info even if data directory has zero entries. Cast
3347 all bfd_vma vars to unsigned long before passing to fprintf.
3349 From Szabolcs Szakacsits <szaka@F-Secure.com>
3350 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3351 directory size which may be bogus.
3352 * peigen.c (pe_print_edata): Similarly.
3354 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3356 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3358 (copy_private_bfd_data): Allow for space possibly taken up by elf
3359 headers when calculating segment physical address from lma.
3361 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3363 * versados.c (versados_scan): Init stringlen and pass_2_done.
3365 * trad-core.c (trad_unix_core_file_p): Return
3366 bfd_error_wrong_format rather than bfd_error_file_truncated.
3368 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3369 add_data_entry. DataDirectory virtual address is relative.
3370 (pe_print_idata): Account for relative DataDirectory virtual
3371 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3372 (pe_print_edata): Similarly.
3374 From Szabolcs Szakacsits <szaka@F-Secure.com>
3375 * peigen.c (dir_names): Add Delay Import Directory.
3376 (pe_print_idata): Always search for bfd section containing
3377 idata address rather than looking up section name. Print this
3378 section name rather than .idata.
3379 (pe_print_edata): Similarly. Also print some fields as %08lx.
3380 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3383 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3385 * xcoff.h: Rename to xcoff-target.h
3386 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3387 * coff-rs6000.c: Ditto.
3388 * coff64-rs6000.c: Ditto.
3389 * coff-pmac.c: Ditto.
3390 * Makefile.in: Regenerate.
3392 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3394 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3395 Change U802TOC64MAGIC to U803XTOCMAGIC.
3397 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3399 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3400 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3401 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3403 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3405 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3407 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3409 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3410 hidden and internal symbols.
3411 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3413 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3414 assign a PLT or GOT entry to symbols with hidden and
3415 internal visibility.
3417 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3419 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3421 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3423 2000-05-02 H.J. Lu <hjl@gnu.org>
3425 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3428 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3430 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3431 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3433 * Makefile.in: Regenerate.
3435 2000-05-01 Jim Wilson <wilson@cygnus.com>
3437 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3438 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3439 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3440 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3441 * Makefile.in: Rebuild.
3443 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3445 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3446 doesn't work very well.
3448 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3449 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3450 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3451 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3452 (elf_hppa_info_to_howto): Likewise.
3453 (elf_hppa_info_to_howto_rel): Likewise.
3454 (elf_hppa_reloc_type_lookup): Likewise.
3455 (elf_hppa_is_local_label_name): Likewise.
3456 (elf_hppa_fake_sections): Likewise.
3457 (elf_hppa_final_write_processing): Likewise.
3458 (elf_hppa_howto_table): Fully initialise all entries.
3459 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3460 (elf_hppa_info_to_howto): Likewise.
3461 (elf_hppa_info_to_howto_rel): Likewise.
3462 (elf_hppa_reloc_type_lookup): Likewise.
3463 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3464 elf_hppa_unmark_useless_dynamic_symbols,
3465 elf_hppa_remark_useless_dynamic_symbols,
3466 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3467 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3468 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3469 elf32-hppa.c mess is cleaned up.
3470 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3471 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3472 r_field then call hppa_field_adjust inline func with variable
3473 r_field arg, instead call hppa_field_adjust with fixed arg.
3474 In case R_PARISC_PCREL22F, don't set r_field.
3475 (elf_hppa_relocate_insn): Change args and return type to unsigned
3476 int. Call re_assemble_* funcs to do the work.
3478 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3481 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3483 (sign_extend): Mask first before sign extending.
3484 (low_sign_extend): Rewrite without condition expression.
3485 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3486 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3487 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3488 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3489 result as function return value rather than through pointer arg.
3490 Accept unsigned int args, and return unsigned int.
3491 (re_assemble_3): New. Combines function of dis_assemble_3 with
3492 re-assembly of opcode and immediate.
3493 (re_assemble_12): Likewise.
3494 (re_assemble_16): Likewise.
3495 (re_assemble_17): Likewise.
3496 (re_assemble_21): Likewise.
3497 (re_assemble_22): Likewise.
3498 (hppa_field_adjust): Rewrite and document, paying attention to
3499 size of types and signed/unsigned issues.
3500 (get_opcode): Shift before masking.
3501 (FDLW): Rename to FLDW.
3502 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3503 (hppa_rebuild_insn): Change args and return value to unsigned
3504 int. Make use of re_assemble_*. Correct case 11.
3506 * dep-in.sed: Handle ../opcodes/.
3507 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3508 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3509 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3510 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3511 elfarm-nabi.lo dependencies outside of auto-dependency area.
3512 Regenerate dependencies.
3513 * Makefile.in: Regenerate.
3515 * configure.in (TRAD_HEADER): Test non-null before
3517 * configure: Regenerate.
3519 * reloc.c: Fix mis-spelling in comment.
3521 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3523 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3524 * vms.c (vms_openr_next_archived_file): Return NULL.
3526 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3528 * coffcode.h Copy changes mistakenly done to libcoff.h in
3531 2000-04-29 Andreas Jaeger <aj@suse.de>
3533 * libbfd-in.h: Correctly check GCC version.
3534 * bfd-in.h: Likewise.
3535 * libhppa.h: Likewise.
3536 * libbfd.h: Regenerate.
3537 * bfd-in2.h: Regenerate.
3539 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3541 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3542 coffdu-rs6000.{lo,c}.
3543 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3545 * Makefile.in: Regenerate.
3546 * xcoff.h: New file.
3547 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3548 * coff-rs6000.c: Move all declarations and defines that are
3549 common to the xcoff backends into xcoff.h
3550 * coff64-rs6000.c: Ditto,
3552 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3554 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3555 _bfd_coff_force_symnames in strings and
3556 _bfd_coff_debug_string_prefix_length to their default values.
3557 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3559 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3561 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3562 _bfd_coff_force_symnames in strings and
3563 _bfd_coff_debug_string_prefix_length to their default values.
3565 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3567 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3568 Check local_got_refcounts before dereferencing.
3570 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3571 before deciding we don't need R_PPC_PLT32 relocation.
3572 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3575 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3577 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3579 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3580 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3581 (elf_i386_relocate_section): Allow for .plt to go missing.
3582 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3583 can use a relative reloc for got as elf_i386_relocate_section.
3584 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3586 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3588 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3590 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3592 * Makefile.am (coff64-rs6000.lo): New rule.
3593 * Makefile.in: Regenerate.
3594 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3595 xcoff_is_local_label_name, xcoff_rtype2howto,
3596 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3597 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3598 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3599 (NO_COFF_SYMBOLS): Define.
3600 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3601 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3603 (MINUS_ONE): New macro.
3604 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3606 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3607 coff_SWAP_aux_out): Map to the new functions.
3608 * coff64-rs6000.c: New file.
3609 * libcoff.h (bfd_coff_backend_data): Add new fields
3610 _bfd_coff_force_symnames_in_strings and
3611 _bfd_coff_debug_string_prefix_length.
3612 (bfd_coff_force_symnames_in_strings,
3613 bfd_coff_debug_string_prefix_length): New macros for above fields.
3614 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3615 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3616 of using coff_swap_sym_in directly.
3617 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3618 (coff_set_flags) Set magic for XCOFF64.
3619 (coff_compute_section_file_positions): Add symbol name length to
3620 string section length if bfd_coff_debug_string_prefix_length is
3622 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3623 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3624 using coff_swap_lineno_in directly.
3625 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3626 and _bfd_coff_debug_string_prefix_length fields.
3627 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3628 symbol names into strings table when
3629 bfd_coff_force_symnames_in_strings is true.
3630 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3631 SET_RELOC_VADDR): New macros.
3632 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3633 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3635 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3636 changes within RS6000COFF_C specific code.
3637 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3638 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3639 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3640 Extend existing hack on target name.
3641 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3643 * coff-tic54x.c (ticof): Keep up to date with new fields
3644 in bfd_coff_backend_data.
3645 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3646 targ_selvecs to include rs6000coff64_vec for rs6000.
3647 * configure.in: Add rs6000coff64_vec case.
3648 * cpu-powerpc.c: New bfd_arch_info_type.
3650 2000-04-24 Jeffrey A Law (law@cygnus.com)
3652 * config.bfd: Only disable elf32-hppa vectors, not all of the
3653 BSD and OSF configuration support. Provide (disabled) clauses
3655 * configure.in: Add clause for PA64 support.
3656 * configure: Rebuilt.
3658 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3659 (bfd_elf64_hppa_vec): Declare.
3661 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3662 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3663 (elf64-hppa.lo): Add dependencies.
3664 * Makefile.in: Rebuilt.
3666 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3668 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3670 * libhppa.h (dis_assemble_16): New function.
3671 (pa_arch): Added pa20w element.
3673 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3675 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3676 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3677 bfd_elf64_slurp_reloc_table.
3679 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3680 definitions to get external names.
3681 (elf_write_relocs): Renamed from write_relocs and make global.
3682 (elf_slurp_reloc_table): Make global.
3683 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3685 * archive.c (hpux_uid_gid_encode): New function.
3686 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3687 defined and the ID is greater than 99999.
3688 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3689 special uid/gid fields into 32 bit values.
3691 2000-04-21 Matthew Green <mrg@cygnus.com>
3693 * config.bfd: Add NetBSD/sparc64 support.
3695 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3696 David Mosberger <davidm@hpl.hp.com>
3697 Timothy Wall <twall@cygnus.com>
3698 Jim Wilson <wilson@cygnus.com>
3700 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3701 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3702 (BFD64_BACKENDS): Add elf64-ia64.lo.
3703 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3704 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3705 * Makefile.in: Rebuild.
3706 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3707 (bfd_ia64_arch): Declare.
3708 (bfd_archures_list): Add bfd_ia64_arch.
3709 * bfd-in2.h: Rebuild.
3710 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3711 * configure: Rebuild.
3712 * configure.host: (ia64-*-linux*): New host.
3713 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3714 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3715 * elf.c (prep_headers): Add bfd_arch_ia64.
3716 * libbfd.h: Rebuild.
3717 * reloc.c: Add IA-64 relocations.
3718 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3720 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3721 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3723 2000-04-21 Richard Henderson <rth@cygnus.com>
3725 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3726 contents when performing a partial link.
3727 (bfd_elf_d30v_reloc_21): Likewise.
3729 2000-04-20 H.J. Lu <hjl@gnu.org>
3731 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3732 patch to symbols defined by a shared object.
3733 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3735 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3738 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3739 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3741 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3743 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3744 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3745 (coff-ia64.lo): Add dependency.
3746 * Makefile.in: Regenerate.
3747 * coff-ia64.c: New file.
3748 * efi-app-ia32.c: Ditto.
3749 * efi-app-ia64.c: Ditto.
3750 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3751 (coff_set_flags): Ditto.
3752 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3753 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3754 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3755 * configure: Regenerate.
3756 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3757 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3758 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3759 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3760 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3761 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3762 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3763 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3764 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3765 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3766 (GET_PDATA_ENTRY): Ditto.
3767 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3768 data_start. Use above macros to read fields that are 64 bit wide for
3769 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3770 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3771 FileAlignment and SectionAlignment to minimum alignment if they
3773 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3774 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3775 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3776 Use above macros to write fields that are 64 bit wide for
3778 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3779 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3780 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3781 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3782 begin address, end address, and unwind info address only. Use
3783 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3785 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3786 HIGH3ADJ relocation names.
3787 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3788 * targets.c: Declare bfd_efi_app_ia32_vec and
3789 bfd_efi_app_ia64_vec.
3790 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3791 bfd_efi_app_ia64_vec.
3793 2000-04-17 Timothy Wall <twall@cygnus.com>
3795 * bfd-in2.h: Add prototypes for tic54x load page access.
3796 * bfd-in.h: Regenerate.
3797 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3798 in customized _set_arch_mach function.
3799 * coffcode.h (coff_set_alignment_hook): Set section load page if
3800 the appropriate macro is defined.
3801 (write_object_contents): Read section load page.
3803 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3805 * elf32-hppa.h: Update copyright date.
3807 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3808 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3810 * elf32-d30v.c (MAX32): Don't use LL suffix.
3811 (MIN32): Define in terms of MAX32.
3812 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3814 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3817 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3819 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3821 * dep-in.sed: Match space before file name, not after.
3822 * Makefile.am: Regenerate dependencies.
3823 * Makefile.in: Regenerate.
3825 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3826 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3827 extend without an if statement.
3829 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3831 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3833 * elf32-mips.c (gprel16_with_gp): Likewise.
3834 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3835 here using -0x40000, not (int)0xfffc0000.
3836 (elf32_hppa_size_of_stub): Likewise.
3838 2000-04-11 Timothy Wall <twall@cygnus.com>
3840 * coff-tic54x.c: Now builds with all targets.
3841 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3842 * Makefile.in: Regenerate.
3843 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3844 unitialized variable.
3846 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3848 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3849 --enable-build-warnings option.
3850 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3851 * Makefile.in, configure: Re-generate.
3853 2000-04-07 Nick Clifton <nickc@cygnus.com>
3855 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3856 BFD_RELOC_THUMB_PCREL_BLX.
3858 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3859 R_ARM_XPC25 and R_ARM_THM_PC22.
3861 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3862 R_ARM_XPC25 and R_ARM_THM_XPC22.
3863 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3864 R_ARM_[XPC25|THM_XPC22].
3866 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3867 elf/arm-oabi.h to elf/arm.h
3869 * Makefile.am: Fix dependency for elfarm-oabi.c
3870 * Makefile.in: Regenerate.
3872 * bfd-in2.h: Regenerate.
3873 * libbfd.h: Regenerate.
3875 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3877 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3878 and restore it on failure. Release newly allocated tdata on
3881 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3883 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3884 (decode_line_info): Set it. Report error if unit->line_offset is
3885 equal to or larger than it.
3887 2000-04-07 Timothy Wall <twall@cygnus.com>
3889 * targets.c: Added vecs for tic54x.
3890 * reloc.c: Added relocs for tic54x.
3891 * libbfd.h: Regenerated.
3892 * configure: Add TI COFF vecs for tic54x.
3893 * configure.in: Ditto.
3894 * config.bfd (targ_cpu): Recognize new tic54x target.
3895 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3896 * bfd-in2.h: Add tic54x target and relocations.
3897 * Makefile.am, Makefile.in: Add tic54x target.
3898 * archures.c (bfd_archures_list): Add tic54x target.
3899 * coff-tic54x.c: New.
3900 * cpu-tic54x.c: New.
3902 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3904 * elfcore.h (elf_core_file_p): call backend_object_p which
3905 thereby gets an opportunity to update the arch/machine type.
3907 2000-04-06 Timothy Wall <twall@cygnus.com>
3909 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3910 class. Handle SEC_CLINK and SEC_BLOCK flags.
3911 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3912 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3914 2000-04-06 Nick Clifton <nickc@cygnus.com>
3916 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3917 EF_INTERWORK if this is an unknown EABI.
3918 (elf32_arm_merge_private_bfd_data): Check EABI version
3919 numbers. Only check EF_xxx flags if the EABI version number
3921 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3922 if the EABI version number is unknown.
3923 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3924 if the EABI version number is unknown.
3926 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3928 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3929 BFD_RELOC_SH_LOOP_END.
3930 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3931 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3932 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3933 (sh_elf_reloc_loop): New function.
3934 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3936 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3937 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3938 * bfd-in2.h, libbfd.h: Regenerate.
3940 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3942 * po/bfd.pot: Regenerate.
3944 * Makefile.am: Remove extraneous mkdep comment.
3945 (MKDEP): Use gcc -MM rather than mkdep.
3946 (DEP): Quote when passing vars to sub-make. Add warning
3948 (DEP1): Rewrite for "gcc -MM".
3949 (CLEANFILES): Add DEP2.
3950 Update dependencies.
3951 * Makefile.in: Regenerate.
3953 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3955 * configure.in: Added corefile support for AIX 4.3. In particular,
3956 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3957 compiling rs6000-core.c.
3958 * configure: Regenerated.
3960 2000-04-03 H.J. Lu <hjl@gnu.org>
3962 * cache.c (bfd_open_file): Unlink the output file only if
3963 it has non-zero size.
3965 2000-04-01 Ken Block USG <block@zk3.dec.com>
3967 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3968 relative relocations for non-loaded sections in shared objects.
3969 (elf64_alpha_check_relocs): Similarly.
3971 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3973 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3974 BFD_RELOC_16 to switch for extended relocs.
3975 (MY_swap_ext_reloc_in): New.
3976 (MY_swap_ext_reloc_out): New.
3977 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3978 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3979 (NAME(aout,squirt_out_relocs)): Similarly use
3980 MY_swap_ext_reloc_out.
3981 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3983 2000-04-03 Kazu Hirata <kazu@hxi.com>
3985 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3986 the R_PCRWORD_B case.
3988 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3990 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3994 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3996 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3997 HOWTO references to bfd_elf_generic_reloc, that have
3998 partial_inplace == true, now use the new function. The function
3999 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4000 extends its fixes to the R_M32R_{16,24,32} relocs.
4001 The new logic in m32r_elf_lo16_reloc() has been removed, and
4002 it instead calls the new routine to obtain that functionality.
4004 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4006 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4007 elf32_avr_check_relocs, avr_final_link_relocate,
4008 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4009 elf32_avr_object_p): Add prototypes.
4010 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4011 (bfd_elf_avr_final_write_processing): Make static.
4013 2000-03-27 Denis Chertykov <denisc@overta.ru>
4015 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4016 * archures.c (bfd_architecture): Add AVR architecture.
4017 (bfd_archures_list): Add reference to AVR architecture info.
4018 * elf.c (prep_headers): Handle bfd_arch_avr.
4019 * reloc.c: Add various AVR relocation enums.
4020 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4022 * Makefile.am: Add support for AVR elf.
4023 * configure.in: Likewise.
4024 * config.bfd: Likewise.
4025 * Makefile.in: Regenerate.
4026 * configure: This too.
4027 * bfd-in2.h: And this.
4028 * libbfd.h: And this.
4030 2000-03-24 H.J. Lu <hjl@gnu.org>
4032 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4033 (elf64_alpha_find_reloc_at_ofs): Likewise.
4035 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4037 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4038 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4039 allowable range used to be -2**(n-1) to 2**n-1.
4040 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4041 "boolean overflow" with "bfd_reloc_status_type flag".
4043 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4045 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4047 2000-03-14 Kazu Hirata <kazu@hxi.com>
4049 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4050 of shrinks properly, including the last reloc.
4052 2000-03-13 Kazu Hirata <kazu@hxi.com>
4054 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4057 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4059 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4060 a format mismatch rather than an "error" from bfd_read such as
4061 bfd_error_file_truncated.
4063 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4065 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4066 sign-extension and big-endian compensation for
4067 R_MIPS_64 even in ld -r.
4069 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4071 * elf32-mips.c (mips_elf_next_relocation): Rename from
4072 mips_elf_next_lo16_relocation, and generalize to look
4073 for any relocation type.
4074 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4075 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4076 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4077 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4078 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4079 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4080 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4081 (mips_rtype_to_howto): Likewise.
4082 (mips_elf_calculate_relocation): Handle new relocs.
4083 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4084 are paired. The addend for R_MIPS_GNU_REL16_S2
4085 is shifted right two bits.
4087 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4089 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4090 comment, and ensure it doesn't happen again.
4091 (bfd_install_relocation): Same here.
4092 (_bfd_relocate_contents): Don't bother assigning unused signmask
4093 shift result. Fix typos in comments.
4094 Remove trailing whitespace throughout file.
4096 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4098 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4099 * bfd-in2.h: Rebuild.
4101 2000-03-06 Nick Clifton <nickc@cygnus.com>
4103 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4105 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4106 (SIZEOF_ILF_STRINGS): Redefine.
4107 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4108 relative reloc, as opposed to a section relative reloc.
4109 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4111 Add length of symbol's prefix to string pointer.
4112 Store a pointer to the symbol in the symbol pointer table.
4113 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4114 Initialise the symbol pointer table.
4115 Store the hint in the Hint/Name table.
4116 Make the jump reloc be symbol realtive, not section relative.
4117 Create an import symbol for imported code.
4119 2000-03-06 Catherine Moore <clm@cygnus.com>
4121 * elf.c (swap_out_syms): Check for null type_ptr.
4123 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4125 * aout-target.h (MY(write_object_contents)): Remove unused
4126 and unusable "#if CHOOSE_RELOC_SIZE".
4127 * pc532-mach.c (MY(write_object_contents)): Ditto.
4128 * netbsd.h (MY(write_object_contents)): Ditto.
4129 * hp300hpux.c (MY(write_object_contents)): Ditto.
4130 * freebsd.h (MY(write_object_contents)): Ditto.
4131 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4133 2000-02-29 H.J. Lu <hjl@gnu.org>
4135 * peicode.h (jtab): Make it static.
4137 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4138 defined and COFF_IMAGE_WITH_PE is not defined.
4139 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4140 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4142 2000-03-01 Nick Clifton <nickc@cygnus.com>
4144 * coff-arm.c (bfd_arm_process_before_allocation): Make
4145 'symndx' signed to prevent compile time warning.
4147 * coff-mcore.c: Remove unused prototype for pe_object_p.
4149 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4150 functions that are not used when COFF_IMAGE_WITH_PE is
4152 (struct sh_opcode): Change type of 'flags' field to unsigned
4153 long so that it can hold the USESAS flag.
4155 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4157 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4160 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4162 Remove unusued variables and code.
4163 (elf_backend_add_symbol_hook): Fix prototype.
4165 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4168 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4171 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4173 Remove unusued variables and code.
4174 (elf_backend_add_symbol_hook): Fix prototype.
4176 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4178 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4179 to unused function parameter.
4181 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4183 Use EMPTY_HOWTO to initialise empty howto slots.
4184 Remove unused variables.
4186 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4188 2000-03-01 H.J. Lu <hjl@gnu.org>
4190 * aoutx.h (aout_link_input_section_std): Pass "true" to
4191 the undefined_symbol callback.
4192 (aout_link_input_section_ext): Likewise.
4193 * bout.c (get_value): Likewise.
4194 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4195 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4197 (alpha_relocate_section): Likewise.
4198 * coff-arm.c (coff_arm_relocate_section): Likewise.
4199 * coff-i960.c (coff_i960_relocate_section): Likewise.
4200 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4201 * coff-mips.c (mips_relocate_section): Likewise.
4202 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4203 * coff-sh.c (sh_relocate_section): Likewise.
4204 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4205 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4206 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4207 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4208 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4209 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4210 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4211 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4212 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4213 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4214 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4215 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4216 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4217 * elflink.h (elf_link_output_extsym): Likewise.
4218 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4219 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4220 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4222 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4223 undefined_symbol callback when building shared library with
4224 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4226 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4227 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4228 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4229 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4230 (elf32_mips_get_relocated_section_content): Likewise.
4231 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4232 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4233 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4234 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4236 2000-02-28 Nick Clifton <nickc@cygnus.com>
4238 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4239 * Makefile.in: Regenerate.
4241 * configure.in: Add support for mips and sh pe vectors.
4242 * configure: regenerate.
4244 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4247 * targets.c: Add mips and sh pe vectors.
4249 * libpei.h (coff_final_link_postscript): Only define if not
4252 * coffcode.h: Add support for WinCE magic numbers.
4254 * peigen.c (pe_print_reloc): Update comment and rearrange
4255 appending of newline character.
4257 * peicode.h: Add support for Image Library Format.
4258 (pe_ILF_vars): Structure containing data used by ILF code.
4259 (pe_ILF_make_a_section): New function. Create a section based
4261 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4263 (pe_ILF_make_a_symbol): New function. Create a symbol based
4265 (pe_ILF_save_relocs): New function. Store the relocs created
4266 by pe_ILF_make_a_reloc in a section.
4267 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4269 (pe_ILF_object_p): New function. Return a bfd_target pointer
4271 (pe_bfd_object_p): If an ILF object is detected call
4272 pe_ILF_object_p on it.
4274 * coff-arm.c: Add support for WinCE relocs which are different
4275 from normal ARM COFF relocs.
4276 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4278 * coff-sh.c: Add support for sh-pe target.
4279 * pe-sh.c: New file. Support code for sh-pe target.
4280 * pei-sh.c: New file. Support code for sh-pe target.
4282 * pe-mips.c: New file. Support code for mips-pe target.
4283 * pei-mips.c: New file. Support code for mips-pe target.
4285 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4287 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4288 architecture if the object causing the bump is dynamic.
4289 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4290 and also don't it for memory ordering.
4291 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4293 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4295 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4296 calling bfd_get_section_size_before_reloc.
4297 (decode_line_info): Likewise.
4298 (_bfd_dwarf2_find_nearest_line): Likewise.
4300 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4302 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4303 name of the libtool directory.
4304 * Makefile.in: Rebuild.
4306 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4308 * som.c (SOM_HOWTO): Define.
4309 (som_hppa_howto_table): Use it.
4311 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4313 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4315 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4317 2000-02-24 Catherine Moore <clm@cygnus.com>
4319 * som.c (som_misc_symbol_info): Add field
4321 (som_bfd_derive_misc_symbol_info): Initialize
4323 (som_build_and_write_symbol_table): Keep track
4324 of secondary_def field.
4325 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4326 if secondary_def field is set.
4327 (som_bfd_ar_write_symbol_stuff): Initialize
4330 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4332 * dwarf2.c (read_address): Read 16-bits addresses.
4333 (parse_comp_unit): Accept addr_size == 2.
4335 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4337 * bfd-in.h: Update copyright date.
4339 2000-02-23 Linas Vepstas <linas@linas.org>
4341 * cpu-i370.c: New file.
4342 * elf32-i370.c: New file.
4343 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4344 (bfd_i370_arch): New.
4345 (bfd_archures_list): Add bfd_i370_arch.
4346 * elf.c (prep_headers): Add bfd_arch_i370.
4347 * Makefile.am: Add support for IBM 370 elf.
4348 * config.bfd: Likewise.
4349 * configure.in: Likewise.
4350 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4351 * reloc.c (bfd_reloc_code_type): Likewise.
4352 * targets.c: Likewise.
4354 * Makefile.in: Regenerate.
4355 * configure: Regenerate.
4356 * bfd-in2.h: Regenerate.
4358 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4360 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4361 invalid relocation types, and change them to R_386_NONE.
4363 2000-02-22 H.J. Lu <hjl@gnu.org>
4365 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4366 not defined, don't add a second ELF_VER_CHR.
4368 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4369 symbols converted to local symbols even when stripping all
4371 (elf_link_output_extsym): Process global symbols converted to
4372 local symbols even if they are being stripped.
4374 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4376 * archures.c (bfd_octets_per_byte): Return unsigned int.
4377 (bfd_arch_mach_octets_per_byte): Ditto.
4378 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4380 * section.c (bfd_get_section_size_before_reloc): Quell signed
4381 vs. unsigned comparison warning.
4382 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4383 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4384 change. What was I thinking?
4385 * bfd-in2.h: Regenerate.
4387 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4388 (elf_gc_sections): Same here.
4389 (elf_gc_common_finalize_got_offsets): And here.
4391 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4393 ELF HPPA doesn't work at present; remove it until it does.
4394 * config.bfd: Comment out setting targ_defvec to
4396 * Makefile.am: Rebuild dependencies.
4397 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4398 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4399 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4400 * Makefile.in: Rebuild.
4401 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4403 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4405 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4406 is no bfd_free(). Revert bfd_free part of previous change.
4408 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4410 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4412 (coff_compute_section_file_positions): Use bfd_free to pair
4414 (coff_write_object_contents): Likewise.
4416 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4417 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4419 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4421 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4422 (xcoff_ar_file_hdr_big): New structure.
4423 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4424 (xcoff_ar_hdr_big): New structure.
4425 (SIZEOF_AR_HDR_BIG): New macro.
4426 (xcoff_big_format_p): New macro.
4427 (xcoff_ardata_big): New macro.
4428 (arch_xhdr_big): New macro.
4429 (xcoff_slurp_armap): Handle large archives.
4430 (xcoff_archive_p): Detect large archives.
4431 (xcoff_read_ar_hdr): Handle large archives.
4432 (xcoff_openr_next_archived_file): Handle large archives.
4433 (xcoff_generic_stat_arch_elt): Handle large archives.
4434 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4435 (xcoff_write_armap_big): New function.
4436 (xcoff_write_armap): New function, dispatch to _old or _big.
4437 (xcoff_write_archive_contents_old): Rename from
4438 xcoff_write_archive_contents.
4439 (xcoff_write_archive_contents_big): New function.
4440 (xcoff_write_archive_contents): New function, dispatch to _old or
4443 2000-02-18 Richard Henderson <rth@cygnus.com>
4445 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4446 and hide_symbol members.
4447 (elf_link_hash_copy_indirect): Remove.
4448 (elf_link_hash_hide_symbol): Remove.
4449 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4450 and elf_backend_hide_symbol.
4451 (_bfd_elf_link_hash_copy_indirect): Declare.
4452 (_bfd_elf_link_hash_hide_symbol): Declare.
4453 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4454 (_bfd_elf_link_hash_hide_symbol): Likewise.
4455 (_bfd_elf_link_hash_table_init): Don't init killed members.
4456 * elflink.h (elf_link_add_object_symbols): Use the bed function
4457 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4458 (elf_link_assign_sym_version): Likewise.
4459 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4460 (elf_backend_hide_symbol): Likewise.
4461 (elfNN_bed): Update for new members.
4463 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4465 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4466 STACK_END_ADDR): Define for new core file format.
4467 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4468 for handling the vagaries of the various core file structures used
4469 by AIX over the years.
4470 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4471 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4472 core_dumpx structure.
4474 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4476 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4477 (bfd_mach_sh3_dsp): Likewise.
4478 (bfd_mach_sh4): Reinstate.
4479 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4480 * bfd-in2.h: Regenerate.
4481 * coff-sh.c (struct sh_opcode): flags is no longer short.
4482 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4483 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4484 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4485 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4486 (sh_opcodes): No longer const.
4487 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4488 (sh_insn_uses_reg): Check for USESAS and USESR8.
4489 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4490 (_bfd_sh_align_load_span): Return early for SH4.
4491 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4492 Take into account that field b of a parallel processing insn
4493 could be mistaken for a separate insn.
4494 * cpu-sh.c (arch_info_struct): New array elements for
4495 sh2, sh-dsp and sh3-dsp.
4496 Reinstate element for sh4.
4497 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4498 (SH4_NEXT): Reinstate.
4499 (SH3_NEXT, SH3E_NEXT): Adjust.
4500 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4501 * elf32-sh.c (sh_elf_set_private_flags): New function.
4502 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4503 (sh_elf_merge_private_data): New function.
4504 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4505 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4506 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4507 sh_elf_merge_private_data.
4509 2000-02-13 Richard Henderson <rth@cygnus.com>
4511 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4512 hide_symbol members.
4513 (elf_link_hash_copy_indirect): New.
4514 (elf_link_hash_hide_symbol): New.
4515 * elflink.h (elf_link_add_object_symbols): Break out copy from
4516 indirect new new symbol to elf.c.
4517 (elf_link_assign_sym_version): Break out privatization of
4518 non-exported symbol to elf.c.
4519 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4520 (_bfd_elf_link_hash_hide_symbol): New.
4521 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4523 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4525 * section.c (_bfd_strip_section_from_output): Add info parameter.
4526 If it passed as non-NULL, use it to check whether any input BFD
4527 has an input section which uses this output section. Change all
4529 * bfd-in2.h: Rebuild.
4531 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4532 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4534 * bfd-in2.h: Rebuild.
4536 2000-02-10 Timothy Wall <twall@cygnus.com>
4538 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4539 allow final modifications of swapped-in symbol.
4540 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4541 * coffcode.h (coff_write_relocs): Use macro
4542 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4543 symbol index should be set to -1.
4545 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4547 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4548 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4549 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4550 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4551 sh_insns_uses_or_sets_freg): New functions.
4552 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4553 * (sh_insns_conflict): Use new functions and new macros to
4554 detect conflicts when two instructions both set same integer registers,
4555 both set same fp register, and both set special register.
4557 2000-02-09 Timothy Wall <twall@cygnus.com>
4559 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4560 swapping in sections, so that the swapping routines have access to
4563 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4565 * coff-go32.c: Update comment. Update copyright.
4567 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4569 * syms.c (bfd_decode_symclass)
4570 Two new class characters were added - 'V' and 'v'. The
4571 meaning of 'W' is now restricted to just weak non-object
4572 symbols. This allows differentiation between, for example,
4573 weak functions vs weak objects. nm for example now dumps:
4575 'w' = weak unresolved
4576 'V' = weak global object
4577 'v' = weak unresolved object
4579 (bfd_is_undefined_symclass): New function. Return true if the
4580 given symbol class represents and undefined/unresolved symbol.
4582 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4585 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4587 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4588 STT_ARM_16BIT flag set, but it is not attached to a data object
4589 return STT_ARM_16BIT so that it will be treated as code by the
4592 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4594 * coff-i386.c (i3coff_object_p): Remove prototype.
4597 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4598 to name. Update copyright.
4600 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4601 assignment to avoid warning. Update copyright.
4603 2000-01-24 Robert Lipe (robertl@sco.com)
4605 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4606 instead of using GNU C extension.
4608 2000-01-21 Nick Clifton <nickc@cygnus.com>
4610 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4611 amount from a bfd_in_memory structure.
4612 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4615 2000-01-14 Nick Clifton <nickc@cygnus.com>
4617 * linker.c (default_indirect_link_order): oops - fix incorrectly
4618 applied patch from Tim Wall.
4620 2000-01-13 Timothy Wall (twall@tiac.net>
4622 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4623 = scnhsz, filhsz, relsz, aoutsz, etc)
4625 * coffswap.h: Ditto.
4627 2000-01-13 Nick Clifton <nickc@cygnus.com>
4629 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4630 interwork thumb to arm stub.
4632 2000-01-13 Timothy Wall (twall@tiac.net>
4634 * archures.c (bfd_octets_per_byte): New function: Return
4636 (bfd_arch_mach_octets_per_byte): New function: Return target
4639 * section.c: Distinguish between octets and bytes for usage of
4640 _cooked_size, _raw_size, and output_offset. Clarify
4641 description of bfd_set_section_contents.
4643 * bfd-in2.h: Regenerate.
4645 * coffgen.c: Indicate that the offset parameter is in bytes, not
4648 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4649 where appropriate to get the octet offset when calling
4650 bfd_set_section_contents.
4651 (bfd_coff_reloc_link_order): Ditto.
4653 * linker.c (bfd_generic_reloc_link_order): Ditto.
4654 (_bfd_default_link_order): Ditto.
4656 * reloc.c (bfd_perform_relocation): Distinguish between octets
4657 and bytes. Use octets when indexing into octet data; use bytes
4658 when calculating target addresses.
4659 (bfd_install_relocation): Ditto.
4661 * srec.c (srec_write_section): Ditto.
4663 2000-01-13 Nick Clifton <nickc@cygnus.com>
4665 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4666 3 to 2. This allows 4 byte sized sections, which is necessary for
4667 dlltool to build functioning DLLs.
4669 2000-01-10 Philip Blundell <pb@futuretv.com>
4671 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4672 (arm*-*-conix*): New target.
4674 2000-01-10 Egor Duda <deo@logos-m.ru>
4676 * config.bfd: Include elf32_i386 vector to target list for cygwin
4679 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4680 * configure.in: Test for structure win32_pstatus_t in
4682 * configure: Regenerate.
4684 * elf.c (elfcore_grok_win32pstatus): New function: process
4685 win32_pstatus_t notes in elf core file.
4686 (elfcore_grok_note): Detect win32_pstatus notes.
4688 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4690 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4692 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4693 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4695 For older changes see ChangeLog-9899
4701 version-control: never