1 2001-03-06 Nick Clifton <nickc@redhat.com>
3 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
4 of offset in BLX(1) instruction.
5 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
6 offset in BLX(1) instruction.
9 2001-03-06 Nick Clifton <nickc@redhat.com>
11 * coff-arm.c (coff_arm_reloc_type_lookup): Add
12 BFD_RELOC_THUMB_PCREL_BLX.
14 2001-03-06 Igor Shevlyakov <igor@windriver.com>
16 * archures.c (bfd_default_scan): Add Coldfire CPUs.
17 * bfd-in2.h: Regenerate.
18 * cpu-m68k.c: Add Coldfire CPUs for arch table.
19 * ieee.c (ieee_write_processor): Set proper id for
22 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
24 * configure.in: Add s390 target.
25 * configure: Regenerate.
27 2001-02-28 Andreas Jaeger <aj@suse.de>
29 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
32 2001-02-28 Philip Blundell <pb@futuretv.com>
34 * elf32-arm.h: Update mentions of renamed EF_xx constants.
35 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
37 2001-02-27 H.J. Lu <hjl@gnu.org>
39 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
40 abfd->tdata.aout_data == NULL.
42 2001-02-27 Alan Modra <alan@linuxcare.com.au>
44 * elf32-hppa.c: Correct field selector in stub comments.
45 (clobber_millicode_symbols): Formatting fix.
47 * configure.in: Bump version to 2.11.90.
48 * configure: Regenerate.
49 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
50 (CFILES): $SOURCE_CFILES + generated C files.
51 (POTFILES): Include $HFILES not $SOURCE_HFILES.
53 * Makefile.in: Regenerate.
54 * doc/Makefile.in: This too.
56 2001-02-26 Timothy Wall <twall@cygnus.com>
58 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
61 2001-02-26 Nick Clifton <nickc@redhat.com>
63 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
64 up, replacing multiple if statements with a switch.
65 (handle_COMDAT): New function.
67 2001-02-26 H.J. Lu <hjl@gnu.org>
69 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
70 a warning for section flags we do not handle instead of
73 2001-02-26 Andreas Jaeger <aj@suse.de>
75 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
77 2001-02-22 Timothy Wall <twall@cygnus.com>
79 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
80 * configure.in: Add objects for elf64_ia64_aix vectors.
81 * configure: Regenerated.
82 * configure.host: Recognize ia64-*-aix*.
83 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
84 for AIX. AIX5 requires most relocations to be dynamic (*all*
85 binaries are somewhat similar to shared libraries).
86 * targets.c: Add elf64_ia64_aix vectors.
88 2001-02-21 David Mosberger <davidm@hpl.hp.com>
90 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
91 C8 said "1" instead of "8". Clarify error string for IMM22:
92 "signed integer" instead of just "integer".
94 2001-02-20 Andreas Jaeger <aj@suse.de>
96 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
97 PLT entries that could serve as a definition for a weak symbol.
99 2001-02-19 Jakub Jelinek <jakub@redhat.com>
101 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
102 entries that could serve as a definition for a weak symbol.
103 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
105 2001-02-18 David O'Brien <obrien@FreeBSD>
107 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
108 FreeBSD/i386-CURRENT differently until I can figure out the needed
110 * configure: Regenerate.
111 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
112 FreeBSD/PowerPC, and FreeBSD/sparc64.
114 2001-02-18 lars brinkhoff <lars@nocrew.org>
116 * Makefile.am: Add PDP-11 a.out target.
117 * config.bfd: Likewise.
118 * configure.in: Likewise.
119 * targets.c: Likewise.
120 * archures.c: Likewise.
121 * bfd-in2.h: Likewise. Add PDP-11 relocations.
122 * libbfd.h: Add PDP-11 relocations.
124 * cpu-pdp11.c: New file.
127 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
128 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
129 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
130 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
131 (GET_MAGIC): New macro.
132 (PUT_MAGIC): Likewise.
133 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
135 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
137 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
140 2001-02-18 H.J. Lu <hjl@gnu.org>
142 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
145 2001-02-18 Kazu Hirata <kazu@hxi.com>
147 * vms-misc.c: Fix formatting.
149 2001-02-16 Kazu Hirata <kazu@hxi.com>
151 * vms.c: Fix formatting.
153 2001-02-14 H.J. Lu <hjl@gnu.org>
155 * elf.c (elf_find_function): New function.
156 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
157 the file name and function name.
159 2001-02-14 Nick Clifton <nickc@redhat.com>
161 * ecoff.c (bfd_debug_section): Update to initialise new fields in
164 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
165 (BFD64_BACKENDS): Add pepigen.c
166 Add rules to create peigen.c and pepigen.c from peXXigen.c.
168 * Makefile.in: Regenerate.
169 * configure: Regenerate.
170 * po/POTFILES.in: Regenerate.
171 * po/bfd.pot: Regenerate.
173 2001-02-14 H.J. Lu <hjl@gnu.org>
175 * libcoff-in.h (pe_tdata): Add members target_subsystem and
176 force_minimum_alignment.
178 2001-02-14 Bo Thorsen <bo@suse.de>
180 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
181 (elf64_86_64_size_info): Struct added to fix a problem
182 with the hashtable string entries.
183 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
184 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
185 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
186 remove the FIXME for this.
187 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
188 section. Also removed the FIXME for it.
189 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
190 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
191 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
193 2001-02-13 Richard Henderson <rth@redhat.com>
195 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
196 and not user provided.
198 2001-02-13 Kazu Hirata <kazu@hxi.com>
200 * vms.c (vms_print_symbol): Remove unreachable code.
202 * rs6000-core.c: Fix formatting.
204 2001-02-13 David Mosberger <davidm@hpl.hp.com>
206 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
207 as _bfd_XXi_only_swap_filehdr_out.
208 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
209 pe->force_minimum_alignment to TRUE.
210 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
211 PEI_TARGET_SUBSYSTEM.
212 (pe_print_private_bfd_data): Call
213 _bfd_XX_print_private_bfd_data_common() instead of
214 _bfd_pe_print_private_bfd_data_common().
215 (pe_bfd_copy_private_bfd_data): Call
216 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
217 _bfd_pe_bfd_copy_private_bfd_data_common().
218 (coff_bfd_copy_private_section_data): Define as
219 _bfd_XX_bfd_copy_private_section_data instead of
220 _bfd_pe_bfd_copy_private_section_data.
221 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
222 of a _bfd_pe_get_symbol_info.
226 * peXXigen.c: Renamed from peigen.c.
227 (COFF_WITH_XX): Define this macro (will get expanded into
228 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
229 compiled as peigen.c or pepigen.c.
230 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
231 define the canonical PEP structures and definitions.
232 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
233 effect, enforce minimum file and section alignments. If
234 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
235 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
236 so, by default, this is a no-op).
238 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
239 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
240 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
241 _bfd_pefoo if it's not defined. Use these macros to define
244 * libcoff.h (pe_tdata): Add members target_subsystem and
245 force_minimum_alignment.
247 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
249 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
251 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
254 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
255 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
258 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
259 (BFD64_BACKENDS_CFILES): Mention pepigen.c
260 (peigen.c): Add rule to generate from peXXigen.c.
262 (pepigen.lo): List dependencies for pepigen.lo.
264 2001-02-13 Alan Modra <alan@linuxcare.com.au>
266 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
267 $global$ referenced but not defined, set its value here.
269 2001-02-09 Bo Thorsen <bo@suse.de>
271 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
273 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
275 (elf64_x86_64_relocate_section): Fix formatting.
276 (elf64_x86_64_relocate_section): Fix addend for relocation of
277 R_X86_64_(8|16|32|PC8|PC16|PC32).
279 2001-02-12 Jan Hubicka <jh@suse.cz>
281 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
283 2001-02-11 H.J. Lu <hjl@gnu.org>
285 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
288 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
290 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
291 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
292 relocations against dynsym symbols.
294 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
295 the R_MIPS_26 relocation.
296 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
297 the R_MIPS_26 relocation.
298 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
300 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
301 the R_MIPS_26 relocation.
302 (mips_elf64_howto_table_rela): Likewise.
304 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
305 member to mark symbols that have non-CALL relocations against
307 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
308 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
310 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
311 non-CALL relocation against it is encountered.
312 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
313 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
314 no_fn_stub is not set.
316 * elf32-mips.c (mips_elf_output_extsym): Get the output section
317 information from the real symbol for indirect ones.
318 Check no_fn_stub to find out if a symbol has a function stub
321 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
323 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
324 * Makefile.in: Regenerate.
326 2001-02-09 David Mosberger <davidm@hpl.hp.com>
328 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
329 true if section name is an unwind table section name.
330 (elfNN_ia64_additional_program_headers): Count each unwind section
332 (elfNN_ia64_modify_segment_map): Install one unwind program header
333 for each unwind separate section. Note: normally the linker
334 script merges the unwind sections that go into a single segment,
335 so this still generates at most one unwind program header per
338 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
339 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
340 (elfNN_ia64_fake_sections): Mark sections with names that start
341 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
344 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
345 Use it to make sh_info in unwind section point to the text section
348 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
350 * Makefile.am: Add linux target for S/390.
351 * archures.c: Likewise.
352 * bfd-in2.h: Likewise.
353 * config.bfd: Likewise.
354 * configure.in: Likewise.
356 * libbfd.h: Likewise.
357 * targets.c: Likewise.
358 * cpu-s390.c: New file.
359 * elf32-s390.c: New file.
360 * elf64-s390.c: New file.
362 2001-02-09 Nick Clifton <nickc@redhat.com>
364 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
365 ImageBase. This has already been done by coff_swap_hdr_in.
367 2001-02-09 Jakub Jelinek <jakub@redhat.com>
369 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
371 2001-02-09 Jakub Jelinek <jakub@redhat.com>
373 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
374 (sparc64_elf_relocate_section): Likewise.
376 2001-02-09 Mark Kettenis <kettenis@gnu.org>
378 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
379 similar to R_SPARC_32.
380 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
382 2001-02-08 H.J. Lu <hjl@gnu.org>
384 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
385 relocation entries for weak definitions when building DSO with
388 2001-02-08 Richard Henderson <rth@redhat.com>
390 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
391 before visibility. Locally defined protected symbols are not
394 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
396 * config.bfd: Enable coff64 for rs6000-*. Patch from
397 <hzoli@austin.ibm.com>.
399 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
401 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
402 found, do not attempt to find dwarf2 info before returning.
404 2001-02-07 Jakub Jelinek <jakub@redhat.com>
406 * elflink.h (is_global_symbol_definition): Rename to
407 is_global_data_symbol_definition and have it reject function
409 (elf_link_is_defined_archive_symbol): Use renamed function.
411 2001-02-07 Todd Vierling <tv@wasabisystems.com>
413 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
414 * libbfd.h (bfd_target_vector): Likewise.
415 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
416 make static; create pointer reference named bfd_target_vector.
417 (_bfd_target_vector_entries): Calculate this based on the array
418 typed _bfd_target_vector.
420 2001-02-06 H.J. Lu <hjl@gnu.org>
422 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
423 internal symbols are not dynamic.
424 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
426 2001-02-06 Nick Clifton <nickc@redhat.com>
428 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
429 that it will not be pulled into the list of files that make up
431 * Makefile.in: Regenerate.
432 * po/bfd.pot: Regenerate.
434 2001-02-06 H.J. Lu <hjl@gnu.org>
436 * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
438 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
439 external_PEI_IMAGE_hdr.
441 2001-02-06 Kazu Hirata <kazu@hxi.com>
443 * elf-m10200.c: Fix formatting.
445 2001-02-04 Nick Clifton <nickc@redhat.com>
447 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
448 rel, it will be handled later on.
450 2001-02-02 Fred Fish <fnf@ninemoons.com>
452 * Makefile.in: Fix typo.
454 2001-02-01 Kazu Hirata <kazu@hxi.com>
456 * elf-m10300.c: Fix formatting.
458 2001-01-30 Alan Modra <alan@linuxcare.com.au>
460 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
461 (elf_backend_get_symbol_type): Define.
462 (elf64_hppa_object_p): Set architecture and machine from elf
465 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
467 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
470 2001-01-26 Richard Henderson <rth@redhat.com>
472 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
473 for non-default visibility.
474 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
475 delete ugly macro and replace with pretty function.
477 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
479 * coff-go32.c: Update copyright.
480 * coff-stgo32.c: Likewise.
481 * coff-go32.c (COFF_LONG_FILENAMES): Define.
482 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
483 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
484 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
486 2001-01-25 Kazu Hirata <kazu@hxi.com>
488 * bfd-in2.h: Rebuild.
489 * libbfd.h: Likewise.
491 2001-01-23 H.J. Lu <hjl@gnu.org>
493 * bfd-in2.h: Rebuild.
495 2001-01-23 H.J. Lu <hjl@gnu.org>
497 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
498 is NULL or PRIV(vms_rec) is outside of the buffer.
500 2001-01-23 Kazu Hirata <kazu@hxi.com>
502 * coff64-rs6000.c: Fix formatting.
503 * coff-arm.c: Likewise.
504 * coffgen.c: Likewise.
505 * cofflink.c: Likewise.
506 * coff-mcore.c: Likewise.
507 * coff-mips.c: Likewise.
508 * coff-pmac.c: Likewise.
509 * coff-ppc.c: Likewise.
510 * coff-rs6000.c: Likewise.
512 * elf32-fr30.c: Likewise.
513 * elf32-i370.c: Likewise.
514 * elf32-i860.c: Likewise.
515 * elf32-m32r.c: Likewise.
516 * elf32-m68k.c: Likewise.
517 * elf32-mcore.c: Likewise.
518 * elf32-ppc.c: Likewise.
519 * elf32-sh.c: Likewise.
520 * elf32-v850.c: Likewise.
521 * elf64-alpha.c: Likewise.
522 * elf64-sparc.c: Likewise.
523 * elflink.c: Likewise.
524 * elflink.h: Likewise.
525 * elf-m10200.c: Likewise.
526 * elf-m10300.c: Likewise.
527 * elfxx-ia64.c: Likewise.
529 * aoutx.h: Fix formatting.
531 * bfd-in2.h: Likewise.
532 * bfd-in.h: Likewise.
533 * cpu-i386.c: Likewise.
534 * cpu-m68hc11.c: Likewise.
535 * dwarf2.c: Likewise.
536 * elf64-x86-64.c: Likewise.
537 * format.c: Likewise.
538 * freebsd.h: Likewise.
540 * hp300hpux.c: Likewise.
541 * hppabsd-core.c: Likewise.
542 * hpux-core.c: Likewise.
544 2001-01-22 Bo Thorsen <bo@suse.de>
546 * elf64-x86-64.c: Added PIC support for X86-64.
547 (elf64_x86_64_link_hash_newfunc): Function added.
548 (elf64_x86_64_link_hash_table_create): Likewise.
549 (elf64_x86_64_check_relocs): Likewise.
550 (elf64_x86_64_gc_mark_hook): Likewise.
551 (elf64_x86_64_gc_sweep_hook): Likewise.
552 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
553 (elf64_x86_64_size_dynamic_sections): Likewise.
554 (elf64_x86_64_discard_copies): Likewise.
555 (elf64_x86_64_finish_dynamic_symbol): Likewise.
556 (elf64_x86_64_finish_dynamic_sections): Likewise.
557 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
559 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
561 * Makefile.am (install-data-local): Make use of $(DESTDIR).
562 * Makefile.in: Regenerate.
564 2001-01-21 Kazu Hirata <kazu@hxi.com>
566 * coff-a29k.c: Fix formatting.
568 2001-01-19 H.J. Lu <hjl@gnu.org>
570 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
571 relocation section names.
572 (elf_i386_relocate_section): Report files with bad relocation
573 section names and return false.
575 2001-01-17 Bo Thorsen <bo@suse.de>
577 * targets.c: Alphabetize list of xvecs.
579 2001-01-14 Alan Modra <alan@linuxcare.com.au>
581 * config.bfd: Add linux target variant for elfxx-hppa.
582 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
583 bfd_elf64_hppa_linux_vec.
584 * configure: Regenerate.
585 * elf64-hppa.c: Include elf64-target.h again to support linux
587 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
588 * elf32-hppa.c: Include elf32-target.h again to support linux
590 (elf32_hppa_post_process_headers): New function.
591 (elf_backend_post_process_headers): Define.
592 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
593 bfd_elf32_hppa_linux_vec.
595 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
596 and data_segment_base fields.
597 (elf32_hppa_link_hash_table_create ): Init them.
598 (elf32_hppa_check_relocs): Update comments.
599 (hppa_record_segment_addr): New function.
600 (elf32_hppa_relocate_section): Call it.
601 (final_link_relocate): Handle R_PARISC_SEGREL32.
602 (elf32_hppa_final_link): New function.
603 (bfd_elf32_bfd_final_link): Define to call it.
604 (hppa_unwind_entry_compare): New function.
605 * cache.c (bfd_open_file): Create files in write+read mode.
607 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
608 SEGREL32 and numerous other relocs. Change duplicate
609 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
611 * opncls.c (bfd_fdopenr): Add parens like the comment says around
614 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
615 .plt entries for DT_INIT and DT_FINI.
616 (elf32_hppa_finish_dynamic_sections): Remove special handling of
619 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
620 offsets for stub .plt access if wide mode. Check offset in range.
622 2001-01-13 Nick Clifton <nickc@redhat.com>
624 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
627 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
630 2001-01-12 Alan Modra <alan@linuxcare.com.au>
632 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
633 * configure: Regenerate.
635 2001-01-11 Peter Targett <peter.targett@arccores.com>
637 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
638 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
639 * cpu-arc.c (arch_info_struct): Add entries for variants.
640 (bfd_arc_arch) Set default to bfd_mach_arc_5.
641 (arc_get_mach) Don't assume machine names prefixed arc- before
643 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
645 (arc_elf_final_write_processing) Likewise.
646 (ELF_MACHINE_CODE) Use EM_ARC.
648 2001-01-10 Nick Clifton <nickc@redhat.com>
650 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
652 2001-01-07 Philip Blundell <philb@gnu.org>
654 * README: Replace `bug-gnu-utils@gnu.org' with
655 `bug-binutils@gnu.org'.
657 2001-01-04 Kazu Hirata <kazu@hxi.com>
659 * som.c: Fix formatting.
661 2001-01-03 Kazu Hirata <kazu@hxi.com>
663 * ecoffswap.h: Fix formatting.
664 * elf-bfd.h: Likewise.
665 * elfarm-nabi.c: Likewise.
666 * elfarm-oabi.c: Likewise.
667 * elfcode.h: Likewise.
668 * elfcore.h: Likewise.
669 * elflink.c: Likewise.
670 * elflink.h: Likewise.
671 * elfxx-ia64.c: Likewise.
672 * elfxx-target.h: Likewise.
674 * linker.c: Likewise.
675 * lynx-core.c: Likewise.
677 2001-01-02 Kazu Hirata <kazu@hxi.com>
679 * pc532-mach.c: Fix formatting.
680 * pe-arm.c: Likewise.
681 * pe-i386.c: Likewise.
682 * pe-mips.c: Likewise.
683 * pe-ppc.c: Likewise.
685 * pei-mips.c: Likewise.
686 * pei-sh.c: Likewise.
687 * peicode.h: Likewise.
688 * ppcboot.c: Likewise.
689 * ptrace-core.c: Likewise.
691 2001-01-01 Kazu Hirata <kazu@hxi.com>
693 * reloc.c: Fix formatting.
694 * riscix.c: Likewise.
695 * rs6000-core.c: Likewise.
696 * xcoff-target.h: Likewise.
698 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
700 * elfcode.h (elf_object_p): Also restore the bfd mach field on
701 error, by calling bfd_default_set_arch_mach with incoming
704 2000-12-26 Kazu Hirata <kazu@hxi.com>
706 * vaxnetbsd.c: Fix formatting.
707 * versados.c: Likewise.
708 * vms-gsd.c: Likewise.
709 * vms-hdr.c: Likewise.
710 * vms-misc.c: Likewise.
712 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
714 * archive.c (coff_write_armap): Don't write more than symbol_count
715 `archive_member_file_ptr's.
717 2000-12-25 Kazu Hirata <kazu@hxi.com>
719 * vms-tir.c: Fix formatting.
721 2000-12-23 Kazu Hirata <kazu@hxi.com>
723 * vms.c: Fix formatting.
726 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
728 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
730 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
732 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
735 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
737 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
739 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
741 * libbfd.c (bfd_get_bits): Added
742 (bfd_put_bits): Likewise
743 * bfd-in.h: Declared the above.
744 * bfd-in2.h: Regenerated.
746 2000-12-20 Kazu Hirata <kazu@hxi.com>
748 * targets.c: Fix formatting.
749 * tekhex.c: Likewise.
750 * trad-core.c: Likewise.
752 2000-12-19 Kazu Hirata <kazu@hxi.com>
754 * sco5-core.c: Fix formatting.
755 * section.c: Likewise.
756 * sparclinux.c: Likewise.
757 * sparclynx.c: Likewise.
758 * sparcnetbsd.c: Likewise.
761 * stab-syms.c: Likewise.
764 * sysdep.h: Likewise.
766 2000-12-18 Nick Clifton <nickc@redhat.com>
768 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
770 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
771 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
773 2000-12-18 Nick Clifton <nickc@redhat.com>
775 * vms-misc.c (_bfd_vms_get_record): Add default case to
778 2000-12-15 Miloslav Trmac <mitr@volny.cz>
780 * elfcore.h (elf_core_file_p): Move to the start of the program
781 headers before attempting to read them.
783 2000-12-14 Kazu Hirata <kazu@hxi.com>
785 * peigen.c: Fix formatting.
789 2000-12-13 Kazu Hirata <kazu@hxi.com>
791 * peigen.c: Fix formatting.
793 2000-12-12 Jim Wilson <wilson@redhat.com>
795 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
797 2000-12-08 Mark Salter <msalter@redhat.com>
799 * binary.c (binary_set_section_contents): Ignore sections
802 2000-12-12 Kazu Hirata <kazu@hxi.com>
804 * m68klinux.c: Fix formatting.
805 * m68knetbsd.c: Likewise.
806 * mipsbsd.c: Likewise.
807 * netbsd-core.c: Likewise.
808 * netbsd.h: Likewise.
809 * newsos3.c: Likewise.
810 * nlm32-alpha.c: Likewise.
811 * nlm32-i386.c: Likewise.
812 * nlm32-ppc.c: Likewise.
813 * nlm32-sparc.c: Likewise.
814 * nlmcode.h: Likewise.
815 * nlmswap.h: Likewise.
816 * nlm-target.h: Likewise.
817 * ns32knetbsd.c: Likewise.
819 2000-12-10 Fred Fish <fnf@be.com>
821 * elflink.h (elf_link_output_extsym): Don't complain about undefined
822 symbols in shared objects if allow_shlib_undefined is true.
824 2000-12-12 Nick Clifton <nickc@redhat.com>
826 * cpu-sh.c: Fix formattng.
827 * elf.c: Fix formattng.
828 * elf32-mips.c: Fix formattng.
829 * elf32-sh.c: Fix formattng.
830 * elf64-alpha.c: Fix formattng.
832 2000-12-09 Nick Clifton <nickc@redhat.com>
834 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
835 dwarf2_find_line_info as last parameter to invocation of
836 _bfd_dwarf2_find_nearest_line.
837 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
838 dwarf2_find_line_info as last parameter to invocation of
839 _bfd_dwarf2_find_nearest_line.
841 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
843 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
844 (BFD_LIBS): ...to here.
845 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
846 (BFD_LIBS_CFILES): ...to here.
847 * Makefile.in: Regenerate.
848 * configure.in: Remove dwarf.lo from the elf shell variable.
849 * configure: Regenerate.
850 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
851 * libcoff.h: Regenerate.
852 * coffgen.c (coff_find_nearest_line): Call
853 _bfd_dwarf2_find_nearest_line.
854 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
856 (read_abbrevs): Likewise
857 (decode_line_info): Likewise.
858 (parse_comp_unit): Likewise.
859 (comp_unit_find_nearest_line): Likewise.
860 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
861 * libbfd.h: Regenerate.
862 * elf.c (_bfd_elf_find_nearest_line): Update call.
863 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
864 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
865 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
866 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
867 (styp_to_sec_flags): Handle DWARF2 sections.
868 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
869 to _bfd_find_nearest_line.
870 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
871 call to _bfd_find_nearest_line.
873 2000-12-08 Kazu Hirata <kazu@hxi.com>
875 * coffgen.c: Fix formatting.
876 * elf-m10300.c: Likewise.
877 * elf32-i386.c: Likewise.
878 * elf32-i960.c: Likewise.
879 * elf32-m68k.c: Likewise.
880 * elf32-mcore.c: Likewise.
881 * elf32-ppc.c: Likewise.
882 * elf32-sh.c: Likewise.
883 * elf32-sparc.c: Likewise.
884 * elf32-v850.c: Likewise.
885 * elf64-alpha.c: Likewise.
886 * elf64-hppa.c: Likewise.
887 * elf64-mips.c: Likewise.
888 * elf64-sparc.c: Likewise.
890 2000-12-07 Kazu Hirata <kazu@hxi.com>
892 * elf32-ppc.c: Fix formatting.
893 * elf64-x86-64.c: Likewise.
895 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
897 From Ralf Baechle <ralf@gnu.org>
899 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
900 BFDs containing no sections or empty .text, .data or .bss sections
901 to be merged, regardless of their flags.
903 2000-12-06 Kazu Hirata <kazu@hxi.com>
905 * elf32-m32r.c: Fix formatting.
906 * elf32-m68hc11.c: Likewise.
907 * elf32-m68hc12.c: Likewise.
908 * elf32-m68k.c: Likewise.
909 * elf32-mcore.c: Likewise.
910 * elf32-pj.c: Likewise.
911 * elf32-ppc.c: Likewise.
913 2000-12-05 Kazu Hirata <kazu@hxi.com>
915 * elf32-fr30.c: Fix formatting.
916 * elf32-hppa.c: Likewise.
917 * elf32-i370.c: Likewise.
918 * elf32-i386.c: Likewise.
919 * elf32-i860.c: Likewise.
920 * elf32-i960.c: Likewise.
922 2000-12-03 Kazu Hirata <kazu@hxi.com>
924 * elf32-arm.h: Fix formatting.
925 * elf32-avr.c: Likewise.
926 * elf32-cris.c: Likewise.
927 * elf32-d10v.c: Likewise.
928 * elf32-d30v.c: Likewise.
929 * elf-hppa.h: Likewise.
930 * elf-m10200.c: Likewise.
931 * elf-m10300.c: Likewise.
933 2000-12-01 Chris Demetriou <cgd@sibyte.com>
935 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
936 bfd_mach_mips32_4k. Update FIXME comment.
937 * archures.c (bfd_mach_mips32): New constant.
938 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
939 the latter, renumber it.
940 * bfd-in2.h (bfd_mach_mips32): New constant.
941 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
942 the latter, renumber it.
943 * cpu-mips.c (I_mips32): New constant.
944 (I_mips4K, I_mips32_4k): Rename the former to the latter.
945 (arch_info_struct): Add bfd_mach_mips32 entry, replace
946 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
947 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
948 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
949 with E_MIPS_MACH_MIPS32_4K.
950 (_bfd_mips_elf_final_write_processing): Replace
951 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
952 bfd_mach_mips32 case.
953 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
954 comparison with support for MIPS32.
955 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
958 * aoutx.h (NAME(aout,machine_type)): Add cases for
959 bfd_mach_mips5 and bfd_mach_mips64.
960 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
961 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
962 * cpu_mips.c (I_mips5, I_mips64): New definitions.
963 (arch_info_struct): Add entries for bfd_mach_mips5 and
965 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
966 _bfd_mips_elf_print_private_bfd_data): Add cases for
967 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
968 (_bfd_mips_elf_final_write_processing): Add cases for
969 bfd_mach_mips5 and bfd_mach_mips64.
971 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
972 bfd_mach_mips_sb1 case.
973 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
974 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
975 * bfd/cpu-mips.c (I_sb1): New constant.
976 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
977 * bfd/elf32-mips.c (elf_mips_mach): Add case for
979 (_bfd_mips_elf_final_write_processing): Add case for
982 2000-12-01 Joel Sherrill <joel@OARcorp.com>
984 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
985 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
986 (sparc*-*-rtems*): Switched from a.out to ELF.
988 2000-11-30 Jan Hubicka <jh@suse.cz>
990 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
991 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
992 (elf64-x86-64.lo): Add dependencies.
993 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
994 bfd_mach_x86_64_intel_syntax.
995 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
996 * config.bfd (x86_64): Add.
997 * configure.in: Add support for bfd_elf64_x86_64_vec.
998 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
999 (bfd_i386_arch, i8086_ar): Link in.
1000 * elf64-x86-64.c: New file.
1001 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1002 * targets.c (bfd_elf64_x86_64_vec): Add.
1003 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1005 2000-11-30 Kazu Hirata <kazu@hxi.com>
1007 * xcofflink.c: Fix formatting.
1009 2000-11-28 Kazu Hirata <kazu@hxi.com>
1011 * aoutx.h: Fix formatting.
1012 * bfd-in.h: Likewise.
1013 * bfd-in2.h: Likewise.
1014 * cache.c: Likewise.
1015 * cisco-core.c: Likewise.
1016 * coff64-rs6000.c: Likewise.
1017 * coffcode.h: Likewise.
1018 * coffswap.h: Likewise.
1019 * corefile.c: Likewise.
1020 * elf32-mips.c: Likewise.
1022 2000-11-27 Kazu Hirata <kazu@hxi.com>
1024 * aout-adobe.c: Fix formatting.
1025 * coff64-rs6000.c: Likewise.
1026 * coffgen.c: Likewise.
1027 * cofflink.c: Likewise.
1029 2000-11-27 Philip Blundell <pb@futuretv.com>
1031 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1032 (obj_coff_strings_written): New accessor macro for above.
1033 * libcoff.h: Regenerate.
1034 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1036 * coffcode.h (coff_write_object_contents): No need to write out
1037 the string table if it's already been done.
1039 2000-11-22 Philip Blundell <pb@futuretv.com>
1041 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1042 weak undefined symbols.
1044 2000-11-24 Nick Clifton <nickc@redhat.com>
1046 * archures.c (bfd_mach_arm_5TE): Define.
1047 (bfd_mach_arm+XScale): Define.
1048 * bfd-in2.h: Regenerate.
1050 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1051 BFD_RELOC_ARM_PCREL_BLX.
1053 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1054 XScale machine numbers.
1056 * config.bfd (xscale-elf): Add target.
1057 (xscale-coff): Add target.
1059 * cpu-arm.c: Add xscale machine name.
1060 Add v5t, v5te and XScale machine numbers.
1062 2000-11-23 Kazu Hirata <kazu@hxi.com>
1064 * aix386-core.c: Fix formatting.
1066 2000-11-22 Jim Wilson <wilson@redhat.com>
1068 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1069 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1070 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1071 (ins_imms_scaled): Initialize sign_bit at function entry.
1072 (elf64_ia64_operands): Add missing initializers.
1073 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1074 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1075 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1076 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1077 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1079 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1080 and free_extsyms at function entry.
1081 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1082 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1083 (get_got): Delete unused local srel.
1084 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1085 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1087 2000-11-21 Kazu Hirata <kazu@hxi.com>
1089 * coff-a29k.c: Fix formatting.
1090 * coff-h8500.c: Likewise.
1091 * coff-i960.c: Likewise.
1092 * coff-ppc.c: Likewise.
1093 * coff-rs6000.c: Likewise.
1094 * coff-stgo32.c: Likewise.
1095 * coff-tic54x.c: Likewise.
1096 * coff-w65.c: Likewise.
1097 * cpu-h8500.c: Likewise.
1098 * cpu-hppa.c: Likewise.
1099 * cpu-ns32k.c: Likewise.
1100 * ecoff.c: Likewise.
1101 * ecofflink.c: Likewise.
1103 2000-11-21 Nick Clifton <nickc@redhat.com>
1105 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1106 remove possibility of infinite loop.
1108 2000-11-20 Kazu Hirata <kazu@hxi.com>
1110 * aix386-core.c: Fix formatting.
1111 * aout-adobe.c: Likewise.
1112 * aout-arm.c: Likewise.
1113 * aout-encap.c: Likewise.
1114 * aout-ns32k.c: Likewise.
1115 * aout-target.h: Likewise.
1116 * aout-tic30.c: Likewise.
1117 * aoutf1.h: Likewise.
1118 * aoutx.h: Likewise.
1119 * archive.c: Likewise.
1120 * bfd-in.h: Likewise.
1121 * bfd-in2.h: Likewise.
1125 2000-11-17 H.J. Lu <hjl@gnu.org>
1127 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1128 pltoff entries for DT_INIT and DT_FINI.
1129 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1130 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1133 2000-11-16 Richard Henderson <rth@redhat.com>
1135 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1136 (allocate_dynrel_entries): Likewise.
1137 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1138 (set_pltoff_entry): Likewise.
1139 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1140 (elfNN_ia64_reloc_type_lookup): Likewise.
1141 (elfNN_ia64_install_value): Likewise.
1142 (elfNN_ia64_relocate_section): Likewise.
1143 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1144 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1146 2000-11-16 Kazu Hirata <kazu@hxi.com>
1148 * cpu-a29k.c: Fix formatting.
1149 * cpu-alpha.c: Likewise.
1150 * cpu-arm.c: Likewise.
1151 * cpu-avr.c: Likewise.
1152 * cpu-d10v.c: Likewise.
1153 * cpu-h8500.c: Likewise.
1154 * cpu-hppa.c: Likewise.
1155 * cpu-i370.c: Likewise.
1156 * cpu-i386.c: Likewise.
1157 * cpu-i960.c: Likewise.
1158 * cpu-ia64-opc.c: Likewise.
1159 * cpu-ia64.c: Likewise.
1160 * cpu-m32r.c: Likewise.
1161 * cpu-m68hc11.c: Likewise.
1162 * cpu-m68hc12.c: Likewise.
1163 * cpu-m68k.c: Likewise.
1164 * cpu-m88k.c: Likewise.
1165 * cpu-mips.c: Likewise.
1166 * cpu-ns32k.c: Likewise.
1167 * cpu-pj.c: Likewise.
1168 * cpu-powerpc.c: Likewise.
1169 * cpu-sh.c: Likewise.
1170 * cpu-sparc.c: Likewise.
1171 * cpu-tic54x.c: Likewise.
1172 * cpu-v850.c: Likewise.
1173 * cpu-vax.c: Likewise.
1174 * cpu-w65.c: Likewise.
1175 * cpu-we32k.c: Likewise.
1176 * cpu-z8k.c: Likewise.
1177 * dwarf1.c: Likewise.
1178 * dwarf2.c: Likewise.
1180 2000-11-15 Kazu Hirata <kazu@hxi.com>
1182 * coff-arm.c: Fix formatting.
1183 * coff-ppc.c: Likewise.
1184 * coff-rs6000.c: Likewise.
1185 * coff-sh.c: Likewise.
1186 * coff-sparc.c: Likewise.
1187 * coff-tic30.c: Likewise.
1188 * coff-tic54x.c: Likewise.
1189 * coff-tic80.c: Likewise.
1190 * coff-w65.c: Likewise.
1191 * coff-we32k.c: Likewise.
1192 * coff-z8k.c: Likewise.
1194 2000-11-15 Richard Henderson <rth@redhat.com>
1196 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1197 section with the same ALLOC|LOAD flags as the source section.
1199 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1201 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1202 by STO_ALPHA constants.
1204 2000-11-14 Kazu Hirata <kazu@hxi.com>
1206 * coff-pmac.c: Fix formatting.
1207 * coff-ppc.c: Likewise.
1209 2000-11-13 H.J. Lu <hjl@gnu.org>
1211 * elflink.h (elf_link_add_object_symbols): Also add indirect
1212 symbols for common symbols with the default version.
1214 2000-11-09 Philip Blundell <pb@futuretv.com>
1216 * section.c (STD_SECTION): Set gc_mark flag.
1218 2000-11-11 Kazu Hirata <kazu@hxi.com>
1220 * coff-i960.c: Likewise.
1221 * coff-m68k.c: Likewise.
1222 * coff-m88k.c: Likewise.
1223 * coff-mcore.c: Likewise.
1224 * coff-mips.c: Likewise.
1226 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1228 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1230 2000-11-10 Kazu Hirata <kazu@hxi.com>
1232 * coff-h8300.c: Fix formatting.
1233 * coff-h8500.c: Likewise.
1234 * coff-i386.c: Likewise.
1235 * coff-i860.c: Likewise.
1236 * coff-i960.c: Likewise.
1237 * coff-ia64.c: Likewise.
1239 2000-11-09 Kazu Hirata <kazu@hxi.com>
1241 * archive.c: Fix formatting.
1242 * archures.c: Likewise.
1244 2000-11-07 Richard Henderson <rth@redhat.com>
1246 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1247 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1248 * section.c (bfd_set_section_contents): Call memcpy if
1249 section->contents set and location not equal to contents plus offset.
1251 2000-11-08 Kazu Hirata <kazu@hxi.com>
1253 * bfd-in.h: Fix formatting.
1254 * bfd-in2.h: Likewise.
1256 * binary.c: Likewise.
1258 * coff-a29k.c: Likewise.
1259 * coff-alpha.c: Likewise.
1260 * coff-apollo.c: Likewise.
1261 * coff-aux.c: Likewise.
1263 2000-11-07 Kazu Hirata <kazu@hxi.com>
1265 * aix386-core.c: Fix formatting.
1266 * aoutf1.h: Likewise.
1267 * aoutx.h: Likewise.
1268 * archures.c: Likewise.
1269 * armnetbsd.c: Likewise.
1271 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1273 * coff-h8300.c (special): Adjust reloc address.
1275 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1277 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1278 to differentiate elf32 and elf64 on ia64.
1279 * bfd-in2.h: Regenerate.
1280 * config.bfd: Add target for "ia64*-*-hpux*".
1281 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1282 * configure: Regenerate.
1283 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1284 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1286 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1287 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1288 * Makefile.in: Regnerate.
1289 * elf64-ia64.c: Deleted.
1290 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1292 2000-11-06 Kazu Hirata <kazu@hxi.com>
1294 * aout-adobe.c: Fix formatting.
1295 * aout-arm.c: Likewise.
1296 * aout-cris.c: Likewise.
1297 * aout-encap.c: Likewise.
1298 * aout-ns32k.c: Likewise.
1299 * aout-target.h: Likewise.
1300 * aout-tic30.c: Likewise.
1302 2000-11-05 Philip Blundell <philb@gnu.org>
1304 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1305 BFDs containing no sections to be merged, regardless of their flags.
1307 2000-11-04 Philip Blundell <philb@gnu.org>
1309 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1310 if a relocation for an undefined symbol also results in an
1313 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1315 * config.bfd: Add support for Sun Chorus.
1317 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1319 * configure.in: Recognize alpha-*-freebsd*.
1320 * configure: Regenerate.
1322 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1324 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1325 (Chunk): New global variable set by a parameter in objcopy.c.
1326 (S3Forced): New global variable set by a parameter in
1328 (srec_set_section_contents): If S3Forced is true, always generate
1330 (srec_write_section): Use 'Chunk' to limit maximum length of S
1333 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1335 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1336 * Makefile.in: Regenerate.
1337 * bfd-in2.h: Regenerate.
1338 * po/bfd.pot: Regenerate.
1340 2000-10-31 Philip Blundell <philb@gnu.org>
1342 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1343 EF_SOFT_FLOAT if it is defined.
1345 2000-10-27 Philip Blundell <philb@gnu.org>
1347 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1348 attempts to mix PIC code with non-PIC, just mark the output as
1349 being position dependent.
1350 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1351 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1352 all mismatches, not just the first one.
1354 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1356 * ieee.c (ieee_archive_p): Plug one of many possible
1357 memory leaks in error handling.
1359 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1361 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1362 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1364 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1365 sparc64_elf_object_p): Support v9b.
1366 * archures.c: Declare v8plusb and v9b machines.
1368 * cpu-sparc.c: Ditto.
1370 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1372 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1375 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1376 (SYMBOL_CALLS_LOCAL): New macro.
1377 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1378 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1379 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1380 (ppc_elf_relocate_section): Use flag variable to determine
1381 whether the relocation refers to a local symbol.
1382 Test whether a PLTREL24 reloc will produce a reloc by looking
1383 to see whether a PLT entry was made.
1385 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1387 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1388 entries that could serve as a definition for a weak symbol.
1390 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1392 From Ralf Baechle <ralf@gnu.org>
1394 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1395 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1396 against local symbols.
1397 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1399 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1401 * section.c (struct sec): Add kept_section.
1402 (struct bfd_comdat_info): Remove sec, we can use above.
1403 (STD_SECTION): Add initializer.
1404 (bfd_make_section_anyway): Init here too.
1406 * bfd-in2.h: Regenerate.
1408 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1410 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1411 fudge values for discarded link-once section symbols.
1413 * elf64-hppa.c: Include alloca-conf.h
1415 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1417 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1419 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1421 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1423 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1425 2000-10-10 Tom Rix <trix@redhat.com>
1427 * section.c (bfd_make_section_anyway): Release newsect ptr when
1428 newsect->symbol fails to alloc. Use bfd_release instead of free.
1430 2000-10-09 Richard Henderson <rth@cygnus.com
1432 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1433 (elf64_ia64_unwind_entry_compare): New.
1434 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1436 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1438 * elflink.h (size_dynamic_sections): Don't create various tags if
1439 .dynstr is excluded from the link. Don't set first dynsym entry
1440 if dynsymcount is zero.
1441 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1442 .dynsym excluded from the link. Don't try to write any dynamic
1443 sections excluded from the link.
1445 * elf.c (swap_out_syms): Handle global section symbols.
1447 2000-10-05 DJ Delorie <dj@redhat.com>
1449 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1450 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1451 (coff_write_relocs): write extended reloc count
1452 (coff_write_object_contents): account for extended relocs
1454 2000-10-05 Jim Wilson <wilson@cygnus.com>
1456 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1458 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1459 elf_backend_section_flags function.
1460 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1462 (elf64_ia64_section_flags): New function containing flag conversion
1464 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1465 * elfxx-target.h (elf_backend_section_flags): Define.
1466 (elfNN_bed): Initialize elf_backend_section_flags field.
1468 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1470 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1471 _bfd_elf32_gc_record_vtable. Correct a comment.
1473 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1475 From Ralf Baechle <ralf@gnu.org>
1477 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1478 produces binaries with got[1] = 0x80000001 to differenciate them
1479 for the dynamic linker from the broken binaries produced by old
1482 2000-09-30 Petr Sorfa <petrs@sco.com>
1484 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1485 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1486 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1487 * configure: Regenerate.
1489 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1491 Define two bfd_targets for absence and presence of leading
1492 underscore on symbols. Make sure to only link same kind.
1493 * elf32-cris.c (cris_elf_object_p,
1494 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1495 cris_elf_merge_private_bfd_data): New.
1496 (elf_backend_object_p, elf_backend_final_write_processing,
1497 bfd_elf32_bfd_print_private_bfd_data,
1498 bfd_elf32_bfd_merge_private_bfd_data): Define.
1499 <Target vector definition>: Include elf32-target.h twice with
1500 different macro settings:
1501 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1502 bfd_elf32_us_cris_vec.
1503 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1504 (elf_symbol_leading_char): First as 0, then '_'.
1505 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1506 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1507 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1508 * configure: Regenerate.
1509 * targets.c: Declare bfd_elf32_us_cris_vec.
1510 * po/bfd.pot: Regenerate.
1512 2000-09-29 Momchil Velikov <velco@fadata.bg>
1514 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1515 R_ARM_THM_PC22 relocations.
1517 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1519 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1521 2000-09-29 Momchil Velikov <velco@fadata.bg>
1523 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1524 is has the SEC_HAS_CONTENTS flag set.
1526 2000-09-28 Vrjan Friberg <orjanf@axis.com>
1527 Hans-Peter Nilsson <hp@axis.com>
1529 * aout-cris.c (N_TXTADDR): Define.
1531 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1533 * som.c: Include alloca-conf.h.
1534 * Makefile.am: "make dep-am"
1535 * Makefile.in: Regenerate.
1537 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1539 * elf32-hppa.c (plt_stub): New.
1540 (PLT_STUB_ENTRY): Define.
1541 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1542 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1543 (elf32_hppa_link_hash_table_create): Init to suit.
1544 (elf32_hppa_check_relocs): Set has_12bit_branch and
1545 has_17bit_branch as appropriate.
1546 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1547 non-local functions.
1548 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1549 Add space for plt_stub as needed.
1550 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1551 functions at plt_stub.
1552 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1553 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1555 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1556 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1557 of fixed size, and if negative, disable handling of input sections
1558 before stub section. Set up default stub group size depending
1559 on detected branch relocs.
1560 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1561 ensure different offsets from sym_value aren't rounded to
1562 different 2k blocks. Use lrsel and rrsel for other stubs too for
1563 consistency rather than necessity.
1564 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1565 (final_link_relocate): Likewise.
1566 (elf32_hppa_relocate_section): Likewise.
1568 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1569 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1570 (elf_hppa_final_link_relocate): Handle them.
1571 (elf_hppa_relocate_insn): Likewise.
1572 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1574 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1576 * elfcode.h (elf_object_p): Preserve and clear abfd section
1577 information. Restore at error.
1579 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1581 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1582 is empty, make sure that its rva also 0. NT loader dislikes
1585 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1587 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1590 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1592 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1593 currently unused RELATIVE_DYNAMIC_RELOCS code.
1594 (hppa_discard_copies): Likewise.
1595 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1596 comments. Don't check non-code output sections for stub grouping.
1598 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1600 * section.c (bfd_get_unique_section_name): Return NULL if
1603 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1605 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1606 instruction sequence to actually work.
1607 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1610 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1612 * elf32-sh.c (sh_elf_relocate_section): Use
1613 _bfd_final_link_relocate to apply the relocation against a section
1614 symbol, when doing relocatable links.
1616 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1618 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1620 (stub_hash_newfunc): Here too.
1621 (hppa_add_stub): And here.
1622 (elf32_hppa_link_hash_table): Remove stub_section_created,
1623 reloc_section_created, first_init_sec and first_fini_sec. Add
1625 (elf32_hppa_link_hash_table_create): Init to suit.
1626 (hppa_get_stub_entry): Add support for grouping stub sections.
1627 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1628 section code. Index stub vars by section->id.
1629 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1630 exit paths. Zap allocation of above removed vars. Refine
1633 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1634 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1635 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1636 rather than pointer to bfd_link_info.
1637 (hppa_add_stub): Likewise.
1638 (final_link_relocate): Likewise.
1640 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1642 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1645 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1647 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1648 ld/emulparams/shelf.sh.
1650 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1652 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1653 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1654 * bfd-in2.h: Regenerate.
1656 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1658 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1659 LITUSE relocations incorrectly if -relax is specified on the ld
1660 command line and the displacement field of the load or store
1661 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1663 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1665 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1666 first_fini_sec here.
1667 (elf32_hppa_size_stubs): Instead correctly find the first .init
1668 and .fini section here.
1670 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1672 * elf32-hppa.c (clobber_millicode_symbols): New function.
1673 (elf32_hppa_size_dynamic_sections): Call it.
1675 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1677 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1678 packed. Add plabel, plt_abs packed booleans.
1679 (hppa_link_hash_newfunc): Init new fields.
1680 (PLABEL_PLT_ENTRY_SIZE): Define.
1681 (hppa_stub_name): Use size_t len vars.
1682 (hppa_add_stub): Likewise.
1683 (elf32_hppa_build_stubs): Likewise.
1684 (hppa_build_one_stub): Kill some compiler warnings.
1685 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1686 if dynamic linking. Munge the local plt offsets into
1687 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1688 size_t len vars. Add assert for plabel addend.
1689 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1690 (elf32_hppa_hide_symbol): New function.
1691 (elf_backend_hide_symbol): Define.
1692 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1693 with h->plabel set. Don't make plt entries to have dynamic syms
1694 when they have been forced local. If plt entry is used by a
1695 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1696 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1697 Set up .plt offsets for local syms.
1698 (elf32_hppa_relocate_section): Initialise plt entries for local
1699 syms. Leave weak undefined plabels zero. Make global plabel
1700 relocs against function symbol, and leave the addend zero.
1701 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1702 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1703 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1704 relocs instead of SEGREL32 for dynamic got relocs.
1705 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1706 (elf_backend_got_header_size): Adjust.
1707 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1709 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1710 (hppa_type_of_stub): Use it instead of #if 0
1711 (hppa_discard_copies): Use it here too.
1712 (elf32_hppa_size_dynamic_sections): And here.
1714 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1715 (elf32_hppa_link_hash_table_create): And here.
1716 (hppa_build_one_stub): And here. Instead keep track of stub
1717 offset using _raw_size.
1718 (elf32_hppa_size_stubs): Likewise.
1719 (elf32_hppa_build_stubs): Likewise.
1720 (hppa_size_one_stub): Likewise. Resize reloc section too.
1722 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1723 first_fini_sec handling. Don't search for reloc section or set
1724 hplink->reloc_section_created here.
1725 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1726 set reloc_section_created here.
1727 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1728 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1730 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1732 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1733 with `hplink->root.'.
1734 (elf32_hppa_check_relocs): Likewise.
1735 (elf32_hppa_gc_sweep_hook): Likewise.
1736 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1737 (hppa_handle_PIC_calls): Likewise.
1738 (elf32_hppa_size_dynamic_sections): Likewise.
1739 (elf32_hppa_set_gp): Likewise.
1740 (elf32_hppa_relocate_section): Likewise.
1741 (elf32_hppa_finish_dynamic_symbol): Likewise.
1742 (elf32_hppa_finish_dynamic_sections): Likewise.
1744 From David Huggins-Daines <dhd@linuxcare.com>
1745 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1746 defined weak symbols in shared links.
1747 (final_link_relocate): Calls to defined weak symbols in shared
1748 objects must go via import stubs, as the target might not be known
1751 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1753 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1754 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1755 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1756 the original entries with EMPTY_HOWTOs, and added new ones to fill
1758 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1759 (sh_elf_relocate_section): Likewise.
1761 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1763 * cpu-mips.c (arch_info_struct): Add mips:4K
1764 * bfd-in2.h (bfd_mach_mips4K): New define.
1765 * archures.c: Add bfd_mach_mips4K to comment.
1766 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1767 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1769 2000-09-13 Marco Franzen <marcof@thyron.com>
1771 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1772 use size_t as a counter.
1773 (som_write_space_strings): Similarly.
1775 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1777 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1779 (elf32_i860_relocate_section): Invoke new function from here.
1781 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1783 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1786 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1788 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1789 target section name instead of dumping core when the target symbol is
1792 2000-09-09 Kazu Hirata <kazu@hxi.com>
1794 * riscix.c: Remove DEFUN.
1796 2000-09-08 Nick Clifton <nickc@redhat.com>
1798 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1799 initialise flags in output bfd if the input bfd is the default
1800 architecture with the default flags.
1802 2000-09-08 Kazu Hirata <kazu@hxi.com>
1804 * archive.c: Fix formatting.
1805 * coff-arm.c: Likewise.
1806 * doc/chew.c: Likewise.
1808 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1810 * section.c (bfd_get_unique_section_name): Put a dot before the
1813 2000-09-07 Kazu Hirata <kazu@hxi.com>
1815 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1816 * elf.c: Fix formatting.
1818 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1820 * config.bfd (sh-*-linux*): Added.
1821 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1822 * targets.c: Declare them.
1823 * elf32-sh-lin.c: New file.
1824 * Makefile.am: Compile it.
1825 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1826 * configure, Makefile.in: Rebuilt.
1828 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1830 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1831 pseduo-section when determining where the TOC ends.
1833 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1834 output x_tvndx as it is only two bytes wide.
1836 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1837 reloc is 26 or 32 bits wide.
1839 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1840 for relocs that don't change anything. Also look at the full
1843 2000-09-06 Philip Blundell <philb@gnu.org>
1845 * config.bfd (arm*-*-uclinux*): New target.
1847 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1849 * configure: Rebuilt with new libtool.m4.
1851 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1853 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1854 word for variable name.
1855 * bfd-in2.h: Regenerate.
1857 2000-09-05 Nick Clifton <nickc@redhat.com>
1859 * config.in: Regenerate.
1860 * libbfd.h: Regenerate.
1861 * po/bfd.pot: Regenerate.
1862 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1865 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1867 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1869 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1871 Shared library and PIC support.
1872 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1873 (GOT_ENTRY_SIZE): New.
1874 (ELF_DYNAMIC_INTERPRETER): New.
1875 (STUB_SUFFIX): Define.
1876 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1877 (RELATIVE_DYNAMIC_RELOCS): Define.
1878 (enum elf32_hppa_stub_type): New.
1879 (struct elf32_hppa_stub_hash_entry): Rename offset to
1880 stub_offset. Add a number of new fields.
1881 (struct elf32_hppa_link_hash_entry): New.
1882 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1884 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1885 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1886 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1888 (hppa_link_hash_newfunc): New function.
1889 (elf32_hppa_link_hash_table_create): Use above function. Init new
1891 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1892 instead of addend, and remove sym_name from args. Don't use
1893 symbol name for local syms, instead use sym index.
1894 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1895 stub type rather than size. Pass in hash and handle import stub
1896 case. Also pass in reloc instead of offset so we can calculate
1897 PCREL22F and PCREL12F branches properly.
1898 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1899 import and export stubs too.
1900 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1901 import and export stub sizing.
1902 (elf32_hppa_check_relocs): New function.
1903 (elf32_hppa_adjust_dynamic_symbol): New function.
1904 (hppa_discard_copies): New function.
1905 (elf32_hppa_size_dynamic_sections): New function.
1906 (elf_backend_size_dynamic_sections): Define.
1907 (elf32_hppa_finish_dynamic_symbol): New function.
1908 (elf_backend_finish_dynamic_symbol): Define.
1909 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1910 some local vars into the link hash table too. For shared links,
1911 trundle over function syms, generating export stubs. Handle
1912 PCREL22F branches. Break out stub creation code from here..
1913 (hppa_add_stub): .. to here. New function.
1914 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1915 call the bfd linker. Use elf_gp to record global pointer.
1916 Calculate a value from sections if $global$ is missing.
1917 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1918 (elf32_hppa_gc_mark_hook): New function.
1919 (elf_backend_gc_mark_hook): Define.
1920 (elf32_hppa_gc_sweep_hook): New function.
1921 (elf_backend_gc_sweep_hook): Define.
1922 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1923 Add rel to args, and remove howto, input_bfd, offset, addend,
1924 sym_name as we can recalculate these locally. Handle calls to
1925 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1926 handling of undefined weak syms. Check that stubs are in range.
1927 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1928 message on hitting a DPREL21L reloc that needs fixing. Subtract
1929 off PC for PCREL14F. Break out code that does a stub lookup from
1931 (hppa_get_stub_entry): ..to here. New function.
1932 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1933 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1935 (elf32_hppa_finish_dynamic_sections): New function.
1936 (elf_backend_finish_dynamic_sections): Define.
1937 (elf_backend_final_write_processing) Define.
1938 (hppa_handle_PIC_calls): New function.
1939 (elf32_hppa_build_stubs): Call it. Pass link_info to
1940 hppa_build_one_stub.
1941 (elf32_hppa_create_dynamic_sections): New function
1942 to create .plt and .got then set .plt flags correctly.
1943 (elf_backend_create_dynamic_sections): Define.
1944 (elf32_hppa_object_p): New function.
1945 (elf_backend_object_p): Define.
1946 (elf32_hppa_elf_get_symbol_type): New function.
1947 (elf_backend_get_symbol_type): Define.
1948 (elf_backend_can_gc_sections): Define.
1949 (elf_backend_want_got_plt): Define.
1950 (elf_backend_plt_alignment): Set to 2.
1951 (elf_backend_plt_readonly): Define.
1952 (elf_backend_want_plt_sym): Define.
1953 (elf_backend_got_header_size): Reserve one entry.
1955 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1956 (elf32_hppa_size_stubs): Pass in multi_subspace.
1957 (elf32_hppa_set_gp): Declare.
1959 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1960 (bfd_get_unique_section_name): New function.
1961 * bfd_in2.h: Regenerate.
1963 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1964 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1967 From David Huggins-Daines <dhd@linuxcare.com>
1968 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1969 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1970 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1971 been updated in finish_dynamic_symbol before modifying function
1974 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1975 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1976 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1977 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1978 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1979 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1980 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1981 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1983 From David Huggins-Daines <dhd@linuxcare.com>
1984 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1985 style of local labels as well.
1987 2000-09-03 Philip Blundell <philb@gnu.org>
1989 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1990 references to undefined symbols in debugging sections.
1992 2000-09-02 H.J. Lu <hjl@gnu.org>
1994 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1995 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1996 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1999 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2001 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2002 (elf32_i860_is_local_label_name): New function and prototype.
2004 2000-09-02 Nick Clifton <nickc@redhat.com>
2006 * configure.in: Increase version number to 2.10.91.
2007 * configure: Regenerate.
2008 * aclocal.m4: Regenerate.
2009 * config.in: Regenerate.
2010 * po/bfd.pot: Regenerate.
2012 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2014 * elf.c (_bfd_elf_make_section_from_shdr): Add
2015 .gnu.linkobce.wi. to the list of debug section names.
2017 2000-09-02 Nick Clifton <nickc@redhat.com>
2019 * dwarf2.c (find_debug_info): New function: Locate a section
2020 containing dwarf2 debug information.
2021 (bfd_dwarf2_find_nearest_line): Find all sections containing
2022 debug information and include them in the stash.
2024 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2026 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2027 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2028 (sh_reloc_map): Add new relocs.
2029 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2030 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2031 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2032 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2034 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2035 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2036 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2037 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2038 New array constants.
2039 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2041 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2042 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2043 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2044 elf_sh_plt_reloc_offset): Define.
2045 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2046 elf_sh_link_hash_table): New structs.
2047 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2048 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2050 (elf_backend_create_dynamic_sections,
2051 bfd_elf32_bfd_link_hash_table_create,
2052 elf_backend_adjust_dynamic_symbol,
2053 elf_backend_size_dynamic_sections,
2054 elf_backend_finish_dynamic_symbol,
2055 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2056 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2057 elf_backend_got_header_size, elf_backend_plt_header_size):
2059 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2060 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2062 * bfd-in2.h, libbfd.h: Rebuilt.
2064 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2066 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2069 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2071 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2072 not initialized, set them to indicate the SH1 instruction set.
2074 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2076 * acinclude.m4: Include libtool and gettext macros from the
2078 * aclocal.m4, configure: Rebuilt.
2080 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2082 * elf.c: Eliminate references to __sparcv9 macro; replace with
2083 autoconf variables HAVE_PSINFO32_T etc.
2084 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2085 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2087 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2088 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2089 * aclocal.m4: Ditto.
2090 * configure: Regenerate.
2092 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2094 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2095 for any shared link, not just shared -Bsymbolic.
2096 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2097 any shared link, and pass link info to it.
2098 (elf_i386_size_dynamic_sections): Update comment.
2099 (elf_i386_discard_copies): Modify to discard relocs for symbols
2100 that have been forced local.
2101 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2102 that have been forced local.
2104 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2106 * elflink.h (elf_link_add_object_symbols): Allow common
2107 symbols to have an alignment of 1 if explicitly requested, and
2108 not overridden by other definitions.
2110 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2112 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2113 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2115 2000-08-22 H.J. Lu <hjl@gnu.org>
2117 * elf-bfd.h (elf_link_hash_table): Add runpath.
2119 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2120 * bfd-in2.h: Rebuilt.
2122 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2123 "runpath" field to NULL.
2124 (bfd_elf_get_runpath_list): New function.
2126 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2129 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2131 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2132 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2133 explicitly. Improve validation of r_type.
2135 2000-08-21 H.J. Lu <hjl@gnu.org>
2137 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2138 dynamic allocated content space. Add a comment to remind us that
2139 one day this ought to be fixed.
2140 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2141 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2142 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2144 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2146 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2147 field with the newly relocated value instead of adding it to the
2148 existing immediate field.
2149 (elf32_i860_relocate_splitn): Likewise.
2150 (elf32_i860_relocate_highadj): Likewise.
2152 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2154 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2155 was previously just a stub).
2157 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2159 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2161 (_bfd_elf_create_dynamic_sections): Likewise.
2163 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2165 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2166 for undefined symbols to be the beginning of the section.
2168 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2169 four extra entries at the beginning of the .rela.plt section.
2170 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2171 section to account for the four reserved entries in the .plt section.
2173 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2175 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2176 to the list of NOPs we recognize after a branch-and-link.
2177 Use the ori NOP when one is needed.
2179 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2182 2000-08-14 Jim Wilson <wilson@cygnus.com>
2184 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2185 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2186 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2189 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2191 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2193 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2195 * elf32-i860.c (elf32_i860_relocate_section): New function.
2196 (i860_final_link_relocate): New function.
2197 (elf32_i860_relocate_splitn): New function.
2198 (elf32_i860_relocate_pc16): New function.
2199 (elf32_i860_relocate_highadj): New function.
2200 (elf32_i860_howto): Minor adjustments to some relocations.
2201 (elf_info_to_howto_rel): Define.
2202 (elf_backend_relocate_section): Define.
2204 2000-08-10 Nick Clifton <nickc@cygnus.com>
2206 * elf32-arm.h: Fix formatting.
2208 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2210 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2212 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2214 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2216 2000-08-07 Kazu Hirata <kazu@hxi.com>
2218 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2219 * elf64-ia64.c: Fix a typo.
2221 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2223 * elf32-i860 (elf32_i860_howto_table): New structure.
2224 (lookup_howto): New function.
2225 (elf32_i860_reloc_type_lookup): New function.
2226 (elf32_i860_info_to_howto_rela): New function.
2227 (elf_code_to_howto_index): New structure.
2228 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2229 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2230 elf32_i860_reloc_type_lookup.
2232 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2234 * som.c (struct fixup_format): Constify `format'.
2235 (som_hppa_howto_table): Use SOM_HOWTO macro.
2236 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2237 (som_bfd_reloc_type_lookup): Likewise.
2238 (compare_subspaces): Remove unused `count1', `count2'.
2239 (som_begin_writing): Remove unused `total_reloc_size'.
2240 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2241 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2242 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2243 (som_find_nearest_line): Decorate unused parameter(s).
2244 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2245 (som_bfd_link_split_section): Likewise.
2247 2000-08-03 Nick Clifton <nickc@cygnus.com>
2249 * section.c: Restore backed out code.
2250 * elf.c: Restore backed out code.
2251 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2252 binaries from working.
2253 * bfd-in2.h: Regenerate.
2255 2000-08-03 H.J. Lu <hjl@gnu.org>
2257 * section.c: Back out the change made by Nick Clifton
2258 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2260 * bfd-in2.h: Likewise.
2263 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2265 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2267 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2269 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2270 * bfd-in2.h, libbfd.h: Regenerate.
2272 2000-07-31 Nick Clifton <nickc@cygnus.com>
2274 * section.c (struct sec): Add new boolean field 'segment_mark'.
2275 (STD_SECTION): Initialise new field to zero.
2277 * bfd-in2.h: Regenerate.
2279 * elf.c (copy_private_bfd_data): Reorganise section to segment
2280 mapping to cope with moved sections requiring new segments,
2281 and overlapping segments.
2282 (SEGMENT_END): New macro: Return the end address of a segment.
2283 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2284 contains a section by comparing their VMA addresses.
2285 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2286 contains a section by comparing their LMA addresses.
2287 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2288 section should be included in a segment.
2289 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2290 follows another in memory.
2291 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2294 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2296 * cpu-i860.c: Added comments.
2298 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2299 bfd_elf32_i860_little_vec.
2300 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2301 (ELF_MAXPAGESIZE): Changed to 4096.
2303 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2305 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2307 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2308 config for little endian elf32 i860.
2309 (targ_defvec): Define for the new config above
2310 as "bfd_elf32_i860_little_vec".
2311 (targ_selvecs): Define for the new config above
2312 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2314 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2317 * configure: Regenerated.
2319 2000-07-27 H.J. Lu <hjl@gnu.org>
2321 * elflink.h (elf_merge_symbol): Take one more argument,
2322 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2323 entry. Don't overide the existing weak definition if dt_needed
2325 (elf_link_add_object_symbols): Pass dt_needed to
2326 elf_merge_symbol ().
2328 2000-07-27 Nick Clifton <nickc@cygnus.com>
2330 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2333 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2335 * configure.host (*-*-aix*): AIX has 'long long' always.
2337 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2338 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2339 (xcoff_write_archive_contents_big): Don't update the offset
2340 of the symbol table, xcoff_write_armap will do it.
2342 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2344 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2345 of dynobj for SGI_COMPAT checks.
2347 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2349 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2350 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2351 * bfd-in2.h: Regenerate.
2353 2000-07-21 Nick Clifton <nickc@cygnus.com>
2355 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2356 range symbol indices in relocs and issue an error message.
2358 2000-07-20 H.J. Lu <hjl@gnu.org>
2360 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2361 info->new_dtags when setting DT_FLAGS_1. It will only be set
2362 by the new linker options. It shouldn't break anything.
2364 2000-07-20 H.J. Lu <hjl@gnu.org>
2366 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2367 only if info->new_dtags is true.
2369 2000-07-20 H.J. Lu <hjl@gnu.org>
2371 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2372 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2374 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2376 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2377 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2378 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2379 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2380 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2381 * Makefile.in: Rebuild.
2382 * aclocal.m4: Rebuild.
2383 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2384 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2385 (bfd_cris_arch): Declare.
2386 (bfd_archures_list): Add bfd_cris_arch.
2387 * bfd-in2.h: Rebuild.
2388 * config.bfd: (cris-*-*): New target.
2389 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2390 * configure: Rebuild.
2391 * elf.c (prep_headers): Add bfd_arch_cris.
2392 * libbfd.h: Rebuild.
2393 * libaout.h (enum machine_type): Add M_CRIS.
2394 * reloc.c: Add CRIS relocations.
2395 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2396 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2397 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2398 * po/POTFILES.in, po/bfd.pot: Regenerate.
2400 2000-07-19 H.J. Lu <hjl@gnu.org>
2402 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2403 DF_TEXTREL if DT_TEXTREL is set.
2404 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2405 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2406 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2407 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2408 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2409 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2410 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2411 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2412 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2413 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2415 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2416 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2418 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2420 2000-07-19 H.J. Lu <hjl@gnu.org>
2422 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2423 * bfd-in2.h: Rebuild.
2425 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2426 (elf_dt_soname): New.
2428 * elf.c (bfd_elf_set_dt_needed_soname): New.
2430 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2431 entry if the shared object loaded by DT_NEEDED is used to
2432 resolve the reference in a regular object.
2434 2000-07-19 H.J. Lu <hjl@gnu.org>
2436 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2437 DT_DEPAUDIT and DT_AUDIT as strings.
2439 2000-07-19 Nick Clifton <nickc@cygnus.com>
2441 * format.c: Fix formatting.
2443 2000-07-19 H.J. Lu <hjl@gnu.org>
2445 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2447 2000-07-19 H.J. Lu <hjl@gnu.org>
2449 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2450 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2451 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2452 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2453 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2454 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2455 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2457 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2459 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2460 renamed functions from here...
2461 (assign_section_numbers): Use renamed functions.
2462 (prep_headers): Use renamed functions.
2464 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2465 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2466 * bfd-in2.h: Regenerate.
2468 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2470 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2471 parenthesis in if statement.
2473 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2475 Enable the support for Traditional MIPS.
2476 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2477 return ict_none appropriately for traditional mips targets.
2478 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2479 (STUB_MOVE): Conditionalize for traditonal mips.
2480 (STUB_LI16): Likewise.
2481 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2482 room for RTPROC header.
2483 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2484 the permission for the PT_DYNAMIC as read, write and execute.
2485 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2486 for traditonal mips.
2487 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2488 _DYNAMIC_LINKING for traditonal mips.
2489 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2490 in case of traditonal mips.
2491 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2492 entry is required. For a function if PLT is not required then set the
2493 corresponding hash table entry to 0.
2494 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2496 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2497 shared object set the value to 0.
2498 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2499 _DYNAMIC_LINKING for traditonal mips.
2500 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2501 for traditonal mips.
2503 2000-07-15 H.J. Lu <hjl@gnu.org>
2505 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2507 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2509 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2510 out a structure that is BFD_IN_MEMORY.
2512 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2514 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2515 bfd pointer. Print section id instead of bfd pointer for local
2516 syms. Prefix addend with `+' for global syms as well as local.
2517 Correct calculation of name component lengths.
2518 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2520 From David Huggins-Daines <dhd@linuxcare.com>
2521 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2522 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2523 (elf64_hppa_modify_segment_map): Likewise.
2525 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2527 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2528 addresses to be "naturally" sign extended. Return -1 if unknown.
2529 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2530 * bfd-in2.h: Regenerate.
2532 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2534 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2535 and ECOF_SIGNED_64 to list ways to extract an offset.
2536 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2537 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2539 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2540 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2542 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2544 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2545 bfd_get_start_address.
2546 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2547 (elf_swap_ehdr_out): Ditto.
2549 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2551 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2552 compatibility with older binutils.
2554 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2556 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2557 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2559 From Ryan Bradetich <rbradetich@uswest.net>
2560 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2561 (parse_line_table): Ditto.
2562 (_bfd_dwarf1_find_nearest_line): Ditto.
2563 * syms.c (cmpindexentry): Remove extra `*' from params.
2565 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2567 * elf32-mips.c (sort_dynamic_relocs): New Function.
2568 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2569 via qsort to sort the dynamic relocations in increasing r_symndx
2572 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2574 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2575 ATTRIBUTE_UNUSED to unused args.
2576 (get_opd): Likewise.
2577 (get_plt): Likewise.
2578 (get_dlt): Likewise.
2579 (get_stub): Likewise.
2580 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2581 (elf64_hppa_link_output_symbol_hook): Likewise.
2582 (elf64_hppa_check_relocs): Delete unused var.
2583 (elf64_hppa_size_dynamic_sections): Likewise.
2584 (elf64_hppa_finalize_opd): Likewise.
2585 (elf64_hppa_finalize_dynreloc): Likewise.
2586 (elf64_hppa_modify_segment_map): Likewise.
2587 (elf64_hppa_finish_dynamic_sections): Likewise.
2589 * elf-hppa.h (elf_hppa_final_write_processing): Add
2590 ATTRIBUTE_UNUSED to unused args.
2591 (elf_hppa_final_link_relocate): Likewise.
2592 (elf_hppa_record_segment_addrs): Add paretheses.
2593 (elf_hppa_relocate_section): Constify dyn_name.
2595 From David Huggins-Daines <dhd@linuxcare.com>
2596 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2597 rearrange case statement so that it gets preferred to 32-bit ones.
2599 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2600 asection->id instead of address of asection structure.
2601 (elf32_hppa_size_stubs): Likewise.
2603 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2604 for .init* and .fini*.
2606 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2607 and addends used in stub names to 32 bits.
2608 (elf32_hppa_size_stubs): Likewise.
2610 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2611 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2612 not bfd_put_64. Fix minor comment typo and formatting.
2614 Changes to create multiple linker stubs, positioned immediately
2615 before the section where they are required.
2616 * elf32-hppa.c: Don't include hppa_stubs.h.
2617 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2618 (elf32_hppa_stub_hash_table): Delete.
2619 (elf32_hppa_link_hash_entry): Delete.
2620 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2621 stub_hash_table, and store the struct here rather than a pointer.
2622 Delete output_symbol_count. Add offset array. Change
2623 global_value to a bfd_vma.
2624 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2625 (elf32_hppa_stub_hash_traverse): Delete.
2626 (elf32_hppa_name_of_stub): Delete.
2627 (elf32_hppa_link_hash_lookup): Delete.
2628 (elf32_hppa_link_hash_traverse): Delete.
2629 (elf32_hppa_stub_hash_table_init): Delete.
2630 (elf32_hppa_size_of_stub): Pass input section and offset rather
2631 than location and calculate location here. Don't pass name as all
2632 stubs are now the same size.
2633 (elf32_hppa_stub_hash_newfunc): Init new fields.
2634 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2636 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2637 comparing against ints. Rewrite stub handling code.
2638 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2639 Case enums to int before comparing against ints. Remove
2640 bfd_reloc_dangerous case.
2641 (elf32_hppa_build_one_stub): Rewrite.
2642 (elf32_hppa_size_one_stub): New function.
2643 (elf32_hppa_build_stubs): Rewrite.
2644 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2645 Rewrite stub-handling specific code.
2647 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2649 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2651 * hppa_stubs.h: Delete.
2652 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2653 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2654 * Makefile.in: Regenerate.
2656 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2659 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2661 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2662 and section name for bfd_reloc_notsupported error message.
2663 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2664 bfd_reloc_notsupported.
2665 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2667 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2668 undefined weak symbols for all relocs.
2669 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2670 offsets are relative to one past the delay slot.
2671 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2672 branch destination. Put addend into stub name too.
2673 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2674 adjust by 8 when deciding whether a linker stub is needed. Put
2675 addend into stub name as for above.
2677 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2678 various args and vars.
2679 (elf32_hppa_bfd_final_link_relocate): Here too.
2680 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2681 inner block var to avoid shadowing.
2683 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2685 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2686 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2687 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2689 * libhppa.h: Change practically all unsigned ints to plain ints.
2690 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2693 From Ryan Bradetich <rbradetich@uswest.net>
2694 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2695 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2697 From David Huggins-Daines <dhd@linuxcare.com>
2698 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2699 to the new OP_* ones.
2701 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2702 error exit. Bail out earlier on plabel relocs that we aren't
2703 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2704 string, and then don't free our copy.
2705 (elf32_hppa_build_one_stub): Make insn unsigned int.
2707 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2708 available with BL, not BE and BLE.
2710 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2711 code for elf arg relocs.
2712 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2713 argument with elf_link_hash_entry h. Handle undefined weak
2714 symbols. Move $global$ lookup from here...
2715 (elf32_hppa_relocate_section): ...to here. Return correct error
2716 message for non-handled relocs.
2717 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2718 wrong test was -0x3ffff to +0x40000.
2720 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2721 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2722 Handle them as such.
2723 (elf_hppa_relocate_insn): Fix a typo.
2725 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2726 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2727 assemble_17, assemble_21): Delete.
2728 Supply defines for all 64 possible opcodes.
2729 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2730 formats. Handle COMICLR.
2731 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2734 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2735 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2736 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2738 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2739 the local syms - did this code get deleted accidentally? Ignore
2740 undefined and undefweak syms.
2742 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2743 block. Use it instead of elf64_hppa_hash_table (info).
2744 (elf_hppa_final_link_relocate): Use hppa_info instead of
2745 elf64_hppa_hash_table (info).
2747 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2748 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2749 (hppa_rebuild_insn): Mask immediate bits here instead.
2750 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2752 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2754 * section.c (struct sec): Add id field. Tidy comment formatting.
2755 (bfd_make_section_anyway): Set id.
2756 (STD_SECTION): Init id too.
2757 Change CONST to const throughout.
2758 * archures.c (bfd_arch_info): Tidy comment.
2759 (bfd_arch_list): Change a CONST to const.
2760 * libbfd-in.h: Tidy comments and replace CONST with const.
2761 * elf-bfd.h: Likewise.
2762 * libbfd.h: Regenerate.
2763 * bfd-in2.h: Regenerate.
2764 * libcoff.h: Regenerate.
2766 2000-07-07 DJ Delorie <dj@redhat.com>
2768 * archive.c (_bfd_write_archive_contents): Add an informative
2771 2000-07-06 Kazu Hirata <kazu@hxi.com>
2773 * srec.c: Fix formatting.
2775 2000-06-05 DJ Delorie <dj@redhat.com>
2779 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2781 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2782 value of PC-relative offsets.
2784 2000-07-03 Jim Wilson <wilson@cygnus.com>
2786 * elf64-alpha.c (alpha_elf_size_info): New.
2787 (elf_backend_size_info): Define to alpha_elf_size_info.
2788 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2790 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2792 * elf32-mips.c: Include elf32-target.h again for the traditional
2795 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2797 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2798 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2799 (avr_info_to_howto_rela): Likewise.
2800 (elf32_avr_gc_mark_hook): Likewise.
2801 (elf32_avr_gc_sweep_hook): Likewise.
2802 (elf32_avr_relocate_section): Likewise.
2804 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2806 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2807 an external symbol for a non-shared, non-relocatable link.
2809 2000-07-03 Nick Clifton <nickc@redhat.com>
2811 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2812 is an external symbol.
2813 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2816 2000-07-03 Kazu Hirata <kazu@hxi.com>
2818 * reloc16.c: Fix formatting.
2820 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2822 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2823 to add a new target for traditional mips i.e
2824 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2825 * configure.in: Likewise.
2826 * configure: Rebuild.
2827 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2829 (bfd_elf32_tradlittlemips_vec): Likewise.
2830 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2831 to see that elfNN_bed does not get redefined even if the target file
2832 is included twice for a chip. See elf32-mips.c.
2834 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2836 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2837 (CLEANFILES): Add DEPA.
2838 * Makefile.in: Regenerate.
2840 2000-06-30 DJ Delorie <dj@cygnus.com>
2842 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2843 can't assume the PE header is at 0x80.
2845 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2847 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2849 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2851 * go32stub.h: Update stub.
2853 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2855 * archures.c (bfd_mach_avr5): Define.
2856 * bfd-in2.h (bfd_mach_avr5): Define.
2857 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2858 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2859 (compatible): Update comment. Add missing test.
2860 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2861 for avr2 and avr4. Simplify 8K wrap code.
2862 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2863 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2865 2000-06-26 Kazu Hirata <kazu@hxi.com>
2867 * coff-h8300.c: Fix formatting.
2868 * cpu-h8300.c: Likewise.
2870 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2872 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2873 for local symbols whose names are unknown.
2875 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2877 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2879 * Makefile.in: Regenerate.
2880 * doc/Makefile.in: Regenerate.
2882 2000-06-20 H.J. Lu <hjl@gnu.org>
2884 * Makefile.am: Rebuild dependency.
2885 * Makefile.in: Rebuild.
2887 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2889 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2890 (elf_backend_copy_indirect_symbol): Map to the new function.
2892 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2894 * archive.c (normalize): Correct pointer comparison when checking
2896 (bfd_bsd_truncate_arname): Likewise.
2897 (bfd_gnu_truncate_arname): Likewise.
2899 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2901 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2902 sections elf_{text,data}_{section,symbol}.
2903 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2904 (_bfd_mips_elf_hide_symbol): New function.
2905 (elf_backend_hide_symbol): Map to the new function.
2906 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2907 definitions of mips_elf_{text,data}_{section,symbol}.
2908 (mips_elf_local_relocation_p): Try to find the direct symbol
2909 based on new check_forced argument.
2910 (mips_elf_calculate_relocation): Use new version of
2911 mips_elf_local_relocation_p.
2912 (mips_elf_relocate_section): Likewise.
2913 (_bfd_mips_elf_relocate_section): Likewise.
2914 (mips_elf_sort_hash_table): Only assert that have enough GOT
2916 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2917 entry if the relocation based on the new external argument.
2918 (mips_elf_create_dynamic_relocation): Assert that we have a
2919 section contents allocated where we can swap out the dynamic
2921 (mips_elf_calculate_relocation): Find the real hash-table entry
2922 correctly by using h->root.root.type. Only create a dynamic
2923 relocation entry if the symbol is defined in a shared library.
2924 Create an external GOT entry for the GOT16 relocation if the
2925 symbol was forced local.
2926 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2927 dynamic index if the symbol was forced local.
2929 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2931 * elf32-mips.c: Fix typos in comments.
2933 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2935 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2938 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2940 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2941 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2942 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2943 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2944 (bfd_elf32_m68hc11_vec): Likewise.
2945 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2946 Supports 68hc11 & 68hc12 at the same time.
2947 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2949 (bfd_elf32_m68hc11_vec): Likewise.
2950 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2951 * archures.c (bfd_m68hc12_arch): Define and register in global list
2952 (bfd_m68hc11_arch): Likewise.
2953 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2954 BFD_RELOC_M68HC11_3B): Define.
2955 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2956 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2958 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2960 * elf_bfd.h (struct elf_backend_data): Add info argument to
2961 elf_backend_hide_symbol.
2962 (_bfd_elf_link_hash_hide_symbol): Likewise.
2963 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2964 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2965 * elflink.h (elf_link_add_object_symbols): Likewise.
2966 (elf_link_assign_sym_version): Likewise.
2968 2000-06-18 H.J. Lu <hjl@gnu.org>
2970 * coff-i386.c (coff_i386_reloc): Don't return in case of
2971 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2972 Compensate PE relocations when linking with non-PE object
2973 files to generate a non-PE executable.
2975 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2977 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2978 GOT entries if we're doing a static link or -Bsymbolic link.
2980 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2982 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2983 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2985 (elf_link_output_relocs): Likewise.
2986 (elf_reloc_link_order): Likewise.
2988 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2990 * archures.c (enum bfd_architecture): #define constants for
2991 PowerPc and RS6000 machine numbers.
2992 * bfd-in2.h: Regenerate.
2993 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2994 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2995 and RS6000 machine numbers using #defined constants from
2997 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2998 machine numbers using #defined constants from archures.c. Add
2999 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3000 64-bit words in 620 entry.
3001 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3003 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3005 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3007 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3008 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3009 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3011 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3013 * bfd-in.h (bfd_family_coff): Define.
3014 * bfd-in2.h: Regenerate.
3015 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3016 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3017 instead of bfd_target_coff_flavour.
3018 * cofflink.c (_bfd_coff_final_link): Likewise.
3019 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3020 exclude XCOFF files.
3021 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3023 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3024 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3025 * xcofflink.c (XCOFF_XVECP): Delete.
3026 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3027 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3028 bfd_xcoff_record_link_assignment,
3029 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3030 check for bfd_target_xcoff_flavour.
3032 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3034 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3036 (read_hdr): New function.
3037 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3038 of trying to extract individual registers. Set abfd->arch_info
3039 to match the architecture that created the core file.
3040 (rs6000coff_get_section_contents): Delete.
3041 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3043 2000-06-14 H.J. Lu <hjl@gnu.org>
3045 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3048 2000-06-13 H.J. Lu <hjl@gnu.org>
3050 * configure: Regenerate.
3052 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3054 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3057 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3059 * configure.in (VERSION): Update to show this is the CVS mainline.
3061 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3063 * elf32-d10v.c: Include elf/d10v.h
3064 (enum reloc_type): Delete.
3065 * elf32-d30v.c: Include elf/d30v.h
3066 (enum reloc_type): Delete.
3068 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3069 * Makefile.in: Regenerate.
3071 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3072 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3073 move HOWTOs into elf_howto_table.
3074 (R_386_standard, R_386_ext_offset): Define.
3075 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3076 (elf_i386_reloc_type_lookup): Modify calculation of index into
3077 elf_howto_table since we've removed the padding.
3078 (elf_i386_info_to_howto_rel): Likewise.
3079 (elf_i386_relocate_section): Likewise.
3081 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3083 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3085 2000-06-05 H.J. Lu <hjl@gnu.org>
3087 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3088 an error when seeing an undefined symbol with hidden/internal
3089 attribute. It is handled in *_relocate_section ().
3091 2000-06-05 H.J. Lu <hjl@gnu.org>
3093 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3094 indirect symbol for the ELF_LINK_NON_ELF bit.
3095 (elf_link_output_extsym): Don't output the indirect symbol even
3096 if the ELF_LINK_NON_ELF bit is set.
3098 2000-06-01 J.T. Conklin <jtc@redback.com>
3100 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3101 (i[3456]86-*-netbsdaout*): New target.
3102 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3103 (i[3456]86-*-openbsd*): Likewise.
3105 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3107 * trad-core.c: From hpux-core.c, include <dirent.h> or
3108 <sys/ndir.h> when possible.
3110 2000-05-31 Nick Clifton <nickc@cygnus.com>
3112 * opintl.h (_(String)): Explain why dgettext is used instead
3115 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3117 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3118 definitions. We must not assume they are sorted in the file
3119 according to their index numbers.
3121 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3123 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3124 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3125 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3127 2000-05-30 Nick Clifton <nickc@cygnus.com>
3129 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3130 80960CA, 80960MC as valid machine names.
3132 2000-05-30 H.J. Lu <hjl@gnu.org>
3134 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3135 visibility bits if the symbol is undefined. Correctly handle
3136 weak undefined symbols with hidden and internal attributes.
3138 * elflink.h (elf_link_add_object_symbols): Always turn the
3139 symbol into local if it has the hidden or internal attribute.
3141 2000-05-29 Philip Blundell <philb@gnu.org>
3143 * ppcboot.c: Add packed attribute if compiling with GCC.
3145 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3147 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3149 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3151 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3152 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3153 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3156 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3158 * Makefile.am: Update dependencies with "make dep-am"
3159 * Makefile.in: Regenerate.
3161 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3162 bindtextdomain): Replace defines with those from intl/libgettext.h
3163 to quieten gcc warnings.
3165 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3167 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3169 * archive.c (normalize, bfd_bsd_truncate_arname,
3170 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3171 file names with backslashes.
3173 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3176 * sysdep.h: Include filenames.h.
3178 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3180 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3182 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3184 * elf64-sparc.c (sparc64_elf_relax_section): New.
3185 (sparc64_elf_relocate_section): Optimize tail call into branch always
3187 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3188 (elf32_sparc_relax_section): New.
3190 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3192 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3193 Remove unusued variables.
3194 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3195 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3196 previous fix, so that shared libs really don't influence targets
3197 extension mask and memory model.
3199 2000-05-23 H.J. Lu <hjl@gnu.org>
3201 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3202 h->root.other not h->other.
3203 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3205 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3207 2000-05-23 H.J. Lu <hjl@gnu.org>
3209 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3210 undefined symbol with the non-default visibility attributes.
3211 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3212 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3213 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3214 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3215 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3216 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3217 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3218 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3219 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3220 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3221 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3223 2000-05-22 Richard Henderson <rth@cygnus.com>
3225 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3226 PCREL22, PCREL64I. Zero size of special relocs.
3227 (elf64_ia64_reloc_type_lookup): Likewise.
3228 (USE_BRL, oor_brl, oor_ip): New.
3229 (elf64_ia64_relax_section): New.
3230 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3231 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3232 (elf64_ia64_relocate_section): Likewise.
3233 (bfd_elf64_bfd_relax_section): New.
3234 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3235 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3236 * bfd-in2.h, libbfd.h: Regenerate.
3238 2000-05-22 Nick Clifton <nickc@cygnus.com>
3240 * configure.in : Add peigen.lo to MIPS PE targets.
3241 * configure: Regenerate.
3243 2000-05-22 Momchil Velikov <velco@fadata.bg>
3245 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3246 only if it is known for both input and output bfds. Separate
3247 error message strings as in some languages, it may be necessary
3248 to change more than one place in the string to change between
3251 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3252 endianess checks, call _bfd_generic_verify_endian_match() instead.
3254 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3256 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3258 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3259 endianess before checking bfd flavours.
3261 2000-05-22 H.J. Lu <hjl@gnu.org>
3263 * elflink.h (elf_link_output_extsym): Clear the visibility
3264 field for symbols not defined locally.
3266 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3268 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3269 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3270 (hppa_rebuild_insn): Mask immediate bits here instead.
3271 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3273 2000-05-18 Momchil Velikov <velco@fadata.bg>
3275 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3276 relocs for an executable, ensure that they are virtual addresses.
3278 2000-05-18 Jeffrey A Law (law@cygnus.com)
3280 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3282 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3283 Rick Gorton <gorton@scrugs.lkg.dec.com>
3285 * elflink.h: Add emitrelocations support: when enabled, relocation
3286 information and relocation sections are put into final output
3287 executables. If the emitrelocations flag is set, do the following:
3288 (elf_bfd_final_link): Emit relocation sections.
3289 (elf_link_input_bfd): Compute relocation section contents.
3290 (elf_gc_sections): Don't clean relocation sections.
3292 2000-05-16 Catherine Moore <clm@cygnus.com>
3294 * som.c (som_decode_symclass): Recognize weak symbols.
3296 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3298 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3299 read idata section only from dataoff.
3300 (pe_print_edata): Correctly check for valid eat_member.
3302 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3304 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3306 2000-05-14 Philip Blundell <philb@gnu.org>
3308 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3310 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3312 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3314 * peigen.c (pe_print_idata): Look for .idata section and print
3315 info even if data directory has zero entries. Read idata section
3316 starting from dataoff, and adjust all data offsets to suit. Cast
3317 all bfd_vma vars to unsigned long before passing to fprintf.
3318 * peigen.c (pe_print_edata): Similarly, look for .edata section
3319 and print info even if data directory has zero entries. Cast
3320 all bfd_vma vars to unsigned long before passing to fprintf.
3322 From Szabolcs Szakacsits <szaka@F-Secure.com>
3323 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3324 directory size which may be bogus.
3325 * peigen.c (pe_print_edata): Similarly.
3327 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3329 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3331 (copy_private_bfd_data): Allow for space possibly taken up by elf
3332 headers when calculating segment physical address from lma.
3334 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3336 * versados.c (versados_scan): Init stringlen and pass_2_done.
3338 * trad-core.c (trad_unix_core_file_p): Return
3339 bfd_error_wrong_format rather than bfd_error_file_truncated.
3341 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3342 add_data_entry. DataDirectory virtual address is relative.
3343 (pe_print_idata): Account for relative DataDirectory virtual
3344 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3345 (pe_print_edata): Similarly.
3347 From Szabolcs Szakacsits <szaka@F-Secure.com>
3348 * peigen.c (dir_names): Add Delay Import Directory.
3349 (pe_print_idata): Always search for bfd section containing
3350 idata address rather than looking up section name. Print this
3351 section name rather than .idata.
3352 (pe_print_edata): Similarly. Also print some fields as %08lx.
3353 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3356 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3358 * xcoff.h: Rename to xcoff-target.h
3359 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3360 * coff-rs6000.c: Ditto.
3361 * coff64-rs6000.c: Ditto.
3362 * coff-pmac.c: Ditto.
3363 * Makefile.in: Regenerate.
3365 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3367 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3368 Change U802TOC64MAGIC to U803XTOCMAGIC.
3370 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3372 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3373 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3374 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3376 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3378 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3380 2000-05-03 Martin v. Lvwis <loewis@informatik.hu-berlin.de>
3382 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3383 hidden and internal symbols.
3384 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3386 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3387 assign a PLT or GOT entry to symbols with hidden and
3388 internal visibility.
3390 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3392 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3394 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3396 2000-05-02 H.J. Lu <hjl@gnu.org>
3398 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3401 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3403 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3404 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3406 * Makefile.in: Regenerate.
3408 2000-05-01 Jim Wilson <wilson@cygnus.com>
3410 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3411 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3412 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3413 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3414 * Makefile.in: Rebuild.
3416 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3418 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3419 doesn't work very well.
3421 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3422 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3423 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3424 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3425 (elf_hppa_info_to_howto): Likewise.
3426 (elf_hppa_info_to_howto_rel): Likewise.
3427 (elf_hppa_reloc_type_lookup): Likewise.
3428 (elf_hppa_is_local_label_name): Likewise.
3429 (elf_hppa_fake_sections): Likewise.
3430 (elf_hppa_final_write_processing): Likewise.
3431 (elf_hppa_howto_table): Fully initialise all entries.
3432 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3433 (elf_hppa_info_to_howto): Likewise.
3434 (elf_hppa_info_to_howto_rel): Likewise.
3435 (elf_hppa_reloc_type_lookup): Likewise.
3436 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3437 elf_hppa_unmark_useless_dynamic_symbols,
3438 elf_hppa_remark_useless_dynamic_symbols,
3439 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3440 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3441 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3442 elf32-hppa.c mess is cleaned up.
3443 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3444 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3445 r_field then call hppa_field_adjust inline func with variable
3446 r_field arg, instead call hppa_field_adjust with fixed arg.
3447 In case R_PARISC_PCREL22F, don't set r_field.
3448 (elf_hppa_relocate_insn): Change args and return type to unsigned
3449 int. Call re_assemble_* funcs to do the work.
3451 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3454 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3456 (sign_extend): Mask first before sign extending.
3457 (low_sign_extend): Rewrite without condition expression.
3458 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3459 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3460 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3461 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3462 result as function return value rather than through pointer arg.
3463 Accept unsigned int args, and return unsigned int.
3464 (re_assemble_3): New. Combines function of dis_assemble_3 with
3465 re-assembly of opcode and immediate.
3466 (re_assemble_12): Likewise.
3467 (re_assemble_16): Likewise.
3468 (re_assemble_17): Likewise.
3469 (re_assemble_21): Likewise.
3470 (re_assemble_22): Likewise.
3471 (hppa_field_adjust): Rewrite and document, paying attention to
3472 size of types and signed/unsigned issues.
3473 (get_opcode): Shift before masking.
3474 (FDLW): Rename to FLDW.
3475 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3476 (hppa_rebuild_insn): Change args and return value to unsigned
3477 int. Make use of re_assemble_*. Correct case 11.
3479 * dep-in.sed: Handle ../opcodes/.
3480 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3481 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3482 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3483 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3484 elfarm-nabi.lo dependencies outside of auto-dependency area.
3485 Regenerate dependencies.
3486 * Makefile.in: Regenerate.
3488 * configure.in (TRAD_HEADER): Test non-null before
3490 * configure: Regenerate.
3492 * reloc.c: Fix mis-spelling in comment.
3494 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3496 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3497 * vms.c (vms_openr_next_archived_file): Return NULL.
3499 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3501 * coffcode.h Copy changes mistakenly done to libcoff.h in
3504 2000-04-29 Andreas Jaeger <aj@suse.de>
3506 * libbfd-in.h: Correctly check GCC version.
3507 * bfd-in.h: Likewise.
3508 * libhppa.h: Likewise.
3509 * libbfd.h: Regenerate.
3510 * bfd-in2.h: Regenerate.
3512 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3514 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3515 coffdu-rs6000.{lo,c}.
3516 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3518 * Makefile.in: Regenerate.
3519 * xcoff.h: New file.
3520 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3521 * coff-rs6000.c: Move all declarations and defines that are
3522 common to the xcoff backends into xcoff.h
3523 * coff64-rs6000.c: Ditto,
3525 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3527 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3528 _bfd_coff_force_symnames in strings and
3529 _bfd_coff_debug_string_prefix_length to their default values.
3530 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3532 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3534 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3535 _bfd_coff_force_symnames in strings and
3536 _bfd_coff_debug_string_prefix_length to their default values.
3538 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3540 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3541 Check local_got_refcounts before dereferencing.
3543 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3544 before deciding we don't need R_PPC_PLT32 relocation.
3545 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3548 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3550 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3552 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3553 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3554 (elf_i386_relocate_section): Allow for .plt to go missing.
3555 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3556 can use a relative reloc for got as elf_i386_relocate_section.
3557 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3559 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3561 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3563 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3565 * Makefile.am (coff64-rs6000.lo): New rule.
3566 * Makefile.in: Regenerate.
3567 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3568 xcoff_is_local_label_name, xcoff_rtype2howto,
3569 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3570 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3571 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3572 (NO_COFF_SYMBOLS): Define.
3573 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3574 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3576 (MINUS_ONE): New macro.
3577 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3579 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3580 coff_SWAP_aux_out): Map to the new functions.
3581 * coff64-rs6000.c: New file.
3582 * libcoff.h (bfd_coff_backend_data): Add new fields
3583 _bfd_coff_force_symnames_in_strings and
3584 _bfd_coff_debug_string_prefix_length.
3585 (bfd_coff_force_symnames_in_strings,
3586 bfd_coff_debug_string_prefix_length): New macros for above fields.
3587 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3588 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3589 of using coff_swap_sym_in directly.
3590 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3591 (coff_set_flags) Set magic for XCOFF64.
3592 (coff_compute_section_file_positions): Add symbol name length to
3593 string section length if bfd_coff_debug_string_prefix_length is
3595 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3596 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3597 using coff_swap_lineno_in directly.
3598 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3599 and _bfd_coff_debug_string_prefix_length fields.
3600 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3601 symbol names into strings table when
3602 bfd_coff_force_symnames_in_strings is true.
3603 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3604 SET_RELOC_VADDR): New macros.
3605 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3606 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3608 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3609 changes within RS6000COFF_C specific code.
3610 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3611 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3612 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3613 Extend existing hack on target name.
3614 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3616 * coff-tic54x.c (ticof): Keep up to date with new fields
3617 in bfd_coff_backend_data.
3618 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3619 targ_selvecs to include rs6000coff64_vec for rs6000.
3620 * configure.in: Add rs6000coff64_vec case.
3621 * cpu-powerpc.c: New bfd_arch_info_type.
3623 2000-04-24 Jeffrey A Law (law@cygnus.com)
3625 * config.bfd: Only disable elf32-hppa vectors, not all of the
3626 BSD and OSF configuration support. Provide (disabled) clauses
3628 * configure.in: Add clause for PA64 support.
3629 * configure: Rebuilt.
3631 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3632 (bfd_elf64_hppa_vec): Declare.
3634 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3635 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3636 (elf64-hppa.lo): Add dependencies.
3637 * Makefile.in: Rebuilt.
3639 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3641 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3643 * libhppa.h (dis_assemble_16): New function.
3644 (pa_arch): Added pa20w element.
3646 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3648 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3649 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3650 bfd_elf64_slurp_reloc_table.
3652 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3653 definitions to get external names.
3654 (elf_write_relocs): Renamed from write_relocs and make global.
3655 (elf_slurp_reloc_table): Make global.
3656 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3658 * archive.c (hpux_uid_gid_encode): New function.
3659 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3660 defined and the ID is greater than 99999.
3661 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3662 special uid/gid fields into 32 bit values.
3664 2000-04-21 Matthew Green <mrg@cygnus.com>
3666 * config.bfd: Add NetBSD/sparc64 support.
3668 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3669 David Mosberger <davidm@hpl.hp.com>
3670 Timothy Wall <twall@cygnus.com>
3671 Jim Wilson <wilson@cygnus.com>
3673 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3674 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3675 (BFD64_BACKENDS): Add elf64-ia64.lo.
3676 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3677 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3678 * Makefile.in: Rebuild.
3679 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3680 (bfd_ia64_arch): Declare.
3681 (bfd_archures_list): Add bfd_ia64_arch.
3682 * bfd-in2.h: Rebuild.
3683 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3684 * configure: Rebuild.
3685 * configure.host: (ia64-*-linux*): New host.
3686 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3687 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3688 * elf.c (prep_headers): Add bfd_arch_ia64.
3689 * libbfd.h: Rebuild.
3690 * reloc.c: Add IA-64 relocations.
3691 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3693 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3694 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3696 2000-04-21 Richard Henderson <rth@cygnus.com>
3698 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3699 contents when performing a partial link.
3700 (bfd_elf_d30v_reloc_21): Likewise.
3702 2000-04-20 H.J. Lu <hjl@gnu.org>
3704 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3705 patch to symbols defined by a shared object.
3706 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3708 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3711 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3712 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3714 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3716 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3717 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3718 (coff-ia64.lo): Add dependency.
3719 * Makefile.in: Regenerate.
3720 * coff-ia64.c: New file.
3721 * efi-app-ia32.c: Ditto.
3722 * efi-app-ia64.c: Ditto.
3723 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3724 (coff_set_flags): Ditto.
3725 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3726 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3727 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3728 * configure: Regenerate.
3729 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3730 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3731 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3732 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3733 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3734 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3735 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3736 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3737 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3738 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3739 (GET_PDATA_ENTRY): Ditto.
3740 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3741 data_start. Use above macros to read fields that are 64 bit wide for
3742 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3743 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3744 FileAlignment and SectionAlignment to minimum alignment if they
3746 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3747 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3748 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3749 Use above macros to write fields that are 64 bit wide for
3751 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3752 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3753 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3754 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3755 begin address, end address, and unwind info address only. Use
3756 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3758 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3759 HIGH3ADJ relocation names.
3760 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3761 * targets.c: Declare bfd_efi_app_ia32_vec and
3762 bfd_efi_app_ia64_vec.
3763 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3764 bfd_efi_app_ia64_vec.
3766 2000-04-17 Timothy Wall <twall@cygnus.com>
3768 * bfd-in2.h: Add prototypes for tic54x load page access.
3769 * bfd-in.h: Regenerate.
3770 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3771 in customized _set_arch_mach function.
3772 * coffcode.h (coff_set_alignment_hook): Set section load page if
3773 the appropriate macro is defined.
3774 (write_object_contents): Read section load page.
3776 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3778 * elf32-hppa.h: Update copyright date.
3780 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3781 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3783 * elf32-d30v.c (MAX32): Don't use LL suffix.
3784 (MIN32): Define in terms of MAX32.
3785 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3787 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3790 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3792 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3794 * dep-in.sed: Match space before file name, not after.
3795 * Makefile.am: Regenerate dependencies.
3796 * Makefile.in: Regenerate.
3798 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3799 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3800 extend without an if statement.
3802 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3804 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3806 * elf32-mips.c (gprel16_with_gp): Likewise.
3807 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3808 here using -0x40000, not (int)0xfffc0000.
3809 (elf32_hppa_size_of_stub): Likewise.
3811 2000-04-11 Timothy Wall <twall@cygnus.com>
3813 * coff-tic54x.c: Now builds with all targets.
3814 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3815 * Makefile.in: Regenerate.
3816 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3817 unitialized variable.
3819 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3821 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3822 --enable-build-warnings option.
3823 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3824 * Makefile.in, configure: Re-generate.
3826 2000-04-07 Nick Clifton <nickc@cygnus.com>
3828 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3829 BFD_RELOC_THUMB_PCREL_BLX.
3831 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3832 R_ARM_XPC25 and R_ARM_THM_PC22.
3834 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3835 R_ARM_XPC25 and R_ARM_THM_XPC22.
3836 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3837 R_ARM_[XPC25|THM_XPC22].
3839 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3840 elf/arm-oabi.h to elf/arm.h
3842 * Makefile.am: Fix dependency for elfarm-oabi.c
3843 * Makefile.in: Regenerate.
3845 * bfd-in2.h: Regenerate.
3846 * libbfd.h: Regenerate.
3848 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3850 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3851 and restore it on failure. Release newly allocated tdata on
3854 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3856 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3857 (decode_line_info): Set it. Report error if unit->line_offset is
3858 equal to or larger than it.
3860 2000-04-07 Timothy Wall <twall@cygnus.com>
3862 * targets.c: Added vecs for tic54x.
3863 * reloc.c: Added relocs for tic54x.
3864 * libbfd.h: Regenerated.
3865 * configure: Add TI COFF vecs for tic54x.
3866 * configure.in: Ditto.
3867 * config.bfd (targ_cpu): Recognize new tic54x target.
3868 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3869 * bfd-in2.h: Add tic54x target and relocations.
3870 * Makefile.am, Makefile.in: Add tic54x target.
3871 * archures.c (bfd_archures_list): Add tic54x target.
3872 * coff-tic54x.c: New.
3873 * cpu-tic54x.c: New.
3875 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3877 * elfcore.h (elf_core_file_p): call backend_object_p which
3878 thereby gets an opportunity to update the arch/machine type.
3880 2000-04-06 Timothy Wall <twall@cygnus.com>
3882 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3883 class. Handle SEC_CLINK and SEC_BLOCK flags.
3884 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3885 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3887 2000-04-06 Nick Clifton <nickc@cygnus.com>
3889 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3890 EF_INTERWORK if this is an unknown EABI.
3891 (elf32_arm_merge_private_bfd_data): Check EABI version
3892 numbers. Only check EF_xxx flags if the EABI version number
3894 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3895 if the EABI version number is unknown.
3896 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3897 if the EABI version number is unknown.
3899 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3901 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3902 BFD_RELOC_SH_LOOP_END.
3903 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3904 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3905 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3906 (sh_elf_reloc_loop): New function.
3907 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3909 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3910 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3911 * bfd-in2.h, libbfd.h: Regenerate.
3913 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3915 * po/bfd.pot: Regenerate.
3917 * Makefile.am: Remove extraneous mkdep comment.
3918 (MKDEP): Use gcc -MM rather than mkdep.
3919 (DEP): Quote when passing vars to sub-make. Add warning
3921 (DEP1): Rewrite for "gcc -MM".
3922 (CLEANFILES): Add DEP2.
3923 Update dependencies.
3924 * Makefile.in: Regenerate.
3926 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3928 * configure.in: Added corefile support for AIX 4.3. In particular,
3929 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3930 compiling rs6000-core.c.
3931 * configure: Regenerated.
3933 2000-04-03 H.J. Lu <hjl@gnu.org>
3935 * cache.c (bfd_open_file): Unlink the output file only if
3936 it has non-zero size.
3938 2000-04-01 Ken Block USG <block@zk3.dec.com>
3940 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3941 relative relocations for non-loaded sections in shared objects.
3942 (elf64_alpha_check_relocs): Similarly.
3944 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3946 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3947 BFD_RELOC_16 to switch for extended relocs.
3948 (MY_swap_ext_reloc_in): New.
3949 (MY_swap_ext_reloc_out): New.
3950 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3951 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3952 (NAME(aout,squirt_out_relocs)): Similarly use
3953 MY_swap_ext_reloc_out.
3954 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3956 2000-04-03 Kazu Hirata <kazu@hxi.com>
3958 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3959 the R_PCRWORD_B case.
3961 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3963 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3967 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3969 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3970 HOWTO references to bfd_elf_generic_reloc, that have
3971 partial_inplace == true, now use the new function. The function
3972 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3973 extends its fixes to the R_M32R_{16,24,32} relocs.
3974 The new logic in m32r_elf_lo16_reloc() has been removed, and
3975 it instead calls the new routine to obtain that functionality.
3977 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3979 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3980 elf32_avr_check_relocs, avr_final_link_relocate,
3981 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3982 elf32_avr_object_p): Add prototypes.
3983 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3984 (bfd_elf_avr_final_write_processing): Make static.
3986 2000-03-27 Denis Chertykov <denisc@overta.ru>
3988 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3989 * archures.c (bfd_architecture): Add AVR architecture.
3990 (bfd_archures_list): Add reference to AVR architecture info.
3991 * elf.c (prep_headers): Handle bfd_arch_avr.
3992 * reloc.c: Add various AVR relocation enums.
3993 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3995 * Makefile.am: Add support for AVR elf.
3996 * configure.in: Likewise.
3997 * config.bfd: Likewise.
3998 * Makefile.in: Regenerate.
3999 * configure: This too.
4000 * bfd-in2.h: And this.
4001 * libbfd.h: And this.
4003 2000-03-24 H.J. Lu <hjl@gnu.org>
4005 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4006 (elf64_alpha_find_reloc_at_ofs): Likewise.
4008 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4010 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4011 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4012 allowable range used to be -2**(n-1) to 2**n-1.
4013 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4014 "boolean overflow" with "bfd_reloc_status_type flag".
4016 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4018 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4020 2000-03-14 Kazu Hirata <kazu@hxi.com>
4022 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4023 of shrinks properly, including the last reloc.
4025 2000-03-13 Kazu Hirata <kazu@hxi.com>
4027 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4030 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4032 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4033 a format mismatch rather than an "error" from bfd_read such as
4034 bfd_error_file_truncated.
4036 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4038 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4039 sign-extension and big-endian compensation for
4040 R_MIPS_64 even in ld -r.
4042 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4044 * elf32-mips.c (mips_elf_next_relocation): Rename from
4045 mips_elf_next_lo16_relocation, and generalize to look
4046 for any relocation type.
4047 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4048 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4049 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4050 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4051 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4052 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4053 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4054 (mips_rtype_to_howto): Likewise.
4055 (mips_elf_calculate_relocation): Handle new relocs.
4056 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4057 are paired. The addend for R_MIPS_GNU_REL16_S2
4058 is shifted right two bits.
4060 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4062 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4063 comment, and ensure it doesn't happen again.
4064 (bfd_install_relocation): Same here.
4065 (_bfd_relocate_contents): Don't bother assigning unused signmask
4066 shift result. Fix typos in comments.
4067 Remove trailing whitespace throughout file.
4069 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4071 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4072 * bfd-in2.h: Rebuild.
4074 2000-03-06 Nick Clifton <nickc@cygnus.com>
4076 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4078 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4079 (SIZEOF_ILF_STRINGS): Redefine.
4080 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4081 relative reloc, as opposed to a section relative reloc.
4082 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4084 Add length of symbol's prefix to string pointer.
4085 Store a pointer to the symbol in the symbol pointer table.
4086 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4087 Initialise the symbol pointer table.
4088 Store the hint in the Hint/Name table.
4089 Make the jump reloc be symbol realtive, not section relative.
4090 Create an import symbol for imported code.
4092 2000-03-06 Catherine Moore <clm@cygnus.com>
4094 * elf.c (swap_out_syms): Check for null type_ptr.
4096 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4098 * aout-target.h (MY(write_object_contents)): Remove unused
4099 and unusable "#if CHOOSE_RELOC_SIZE".
4100 * pc532-mach.c (MY(write_object_contents)): Ditto.
4101 * netbsd.h (MY(write_object_contents)): Ditto.
4102 * hp300hpux.c (MY(write_object_contents)): Ditto.
4103 * freebsd.h (MY(write_object_contents)): Ditto.
4104 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4106 2000-02-29 H.J. Lu <hjl@gnu.org>
4108 * peicode.h (jtab): Make it static.
4110 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4111 defined and COFF_IMAGE_WITH_PE is not defined.
4112 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4113 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4115 2000-03-01 Nick Clifton <nickc@cygnus.com>
4117 * coff-arm.c (bfd_arm_process_before_allocation): Make
4118 'symndx' signed to prevent compile time warning.
4120 * coff-mcore.c: Remove unused prototype for pe_object_p.
4122 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4123 functions that are not used when COFF_IMAGE_WITH_PE is
4125 (struct sh_opcode): Change type of 'flags' field to unsigned
4126 long so that it can hold the USESAS flag.
4128 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4130 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4133 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4135 Remove unusued variables and code.
4136 (elf_backend_add_symbol_hook): Fix prototype.
4138 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4141 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4144 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4146 Remove unusued variables and code.
4147 (elf_backend_add_symbol_hook): Fix prototype.
4149 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4151 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4152 to unused function parameter.
4154 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4156 Use EMPTY_HOWTO to initialise empty howto slots.
4157 Remove unused variables.
4159 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4161 2000-03-01 H.J. Lu <hjl@gnu.org>
4163 * aoutx.h (aout_link_input_section_std): Pass "true" to
4164 the undefined_symbol callback.
4165 (aout_link_input_section_ext): Likewise.
4166 * bout.c (get_value): Likewise.
4167 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4168 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4170 (alpha_relocate_section): Likewise.
4171 * coff-arm.c (coff_arm_relocate_section): Likewise.
4172 * coff-i960.c (coff_i960_relocate_section): Likewise.
4173 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4174 * coff-mips.c (mips_relocate_section): Likewise.
4175 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4176 * coff-sh.c (sh_relocate_section): Likewise.
4177 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4178 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4179 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4180 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4181 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4182 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4183 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4184 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4185 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4186 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4187 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4188 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4189 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4190 * elflink.h (elf_link_output_extsym): Likewise.
4191 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4192 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4193 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4195 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4196 undefined_symbol callback when building shared library with
4197 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4199 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4200 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4201 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4202 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4203 (elf32_mips_get_relocated_section_content): Likewise.
4204 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4205 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4206 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4207 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4209 2000-02-28 Nick Clifton <nickc@cygnus.com>
4211 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4212 * Makefile.in: Regenerate.
4214 * configure.in: Add support for mips and sh pe vectors.
4215 * configure: regenerate.
4217 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4220 * targets.c: Add mips and sh pe vectors.
4222 * libpei.h (coff_final_link_postscript): Only define if not
4225 * coffcode.h: Add support for WinCE magic numbers.
4227 * peigen.c (pe_print_reloc): Update comment and rearrange
4228 appending of newline character.
4230 * peicode.h: Add support for Image Library Format.
4231 (pe_ILF_vars): Structure containing data used by ILF code.
4232 (pe_ILF_make_a_section): New function. Create a section based
4234 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4236 (pe_ILF_make_a_symbol): New function. Create a symbol based
4238 (pe_ILF_save_relocs): New function. Store the relocs created
4239 by pe_ILF_make_a_reloc in a section.
4240 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4242 (pe_ILF_object_p): New function. Return a bfd_target pointer
4244 (pe_bfd_object_p): If an ILF object is detected call
4245 pe_ILF_object_p on it.
4247 * coff-arm.c: Add support for WinCE relocs which are different
4248 from normal ARM COFF relocs.
4249 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4251 * coff-sh.c: Add support for sh-pe target.
4252 * pe-sh.c: New file. Support code for sh-pe target.
4253 * pei-sh.c: New file. Support code for sh-pe target.
4255 * pe-mips.c: New file. Support code for mips-pe target.
4256 * pei-mips.c: New file. Support code for mips-pe target.
4258 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4260 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4261 architecture if the object causing the bump is dynamic.
4262 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4263 and also don't it for memory ordering.
4264 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4266 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4268 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4269 calling bfd_get_section_size_before_reloc.
4270 (decode_line_info): Likewise.
4271 (_bfd_dwarf2_find_nearest_line): Likewise.
4273 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4275 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4276 name of the libtool directory.
4277 * Makefile.in: Rebuild.
4279 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4281 * som.c (SOM_HOWTO): Define.
4282 (som_hppa_howto_table): Use it.
4284 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4286 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4288 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4290 2000-02-24 Catherine Moore <clm@cygnus.com>
4292 * som.c (som_misc_symbol_info): Add field
4294 (som_bfd_derive_misc_symbol_info): Initialize
4296 (som_build_and_write_symbol_table): Keep track
4297 of secondary_def field.
4298 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4299 if secondary_def field is set.
4300 (som_bfd_ar_write_symbol_stuff): Initialize
4303 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4305 * dwarf2.c (read_address): Read 16-bits addresses.
4306 (parse_comp_unit): Accept addr_size == 2.
4308 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4310 * bfd-in.h: Update copyright date.
4312 2000-02-23 Linas Vepstas <linas@linas.org>
4314 * cpu-i370.c: New file.
4315 * elf32-i370.c: New file.
4316 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4317 (bfd_i370_arch): New.
4318 (bfd_archures_list): Add bfd_i370_arch.
4319 * elf.c (prep_headers): Add bfd_arch_i370.
4320 * Makefile.am: Add support for IBM 370 elf.
4321 * config.bfd: Likewise.
4322 * configure.in: Likewise.
4323 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4324 * reloc.c (bfd_reloc_code_type): Likewise.
4325 * targets.c: Likewise.
4327 * Makefile.in: Regenerate.
4328 * configure: Regenerate.
4329 * bfd-in2.h: Regenerate.
4331 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4333 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4334 invalid relocation types, and change them to R_386_NONE.
4336 2000-02-22 H.J. Lu <hjl@gnu.org>
4338 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4339 not defined, don't add a second ELF_VER_CHR.
4341 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4342 symbols converted to local symbols even when stripping all
4344 (elf_link_output_extsym): Process global symbols converted to
4345 local symbols even if they are being stripped.
4347 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4349 * archures.c (bfd_octets_per_byte): Return unsigned int.
4350 (bfd_arch_mach_octets_per_byte): Ditto.
4351 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4353 * section.c (bfd_get_section_size_before_reloc): Quell signed
4354 vs. unsigned comparison warning.
4355 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4356 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4357 change. What was I thinking?
4358 * bfd-in2.h: Regenerate.
4360 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4361 (elf_gc_sections): Same here.
4362 (elf_gc_common_finalize_got_offsets): And here.
4364 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4366 ELF HPPA doesn't work at present; remove it until it does.
4367 * config.bfd: Comment out setting targ_defvec to
4369 * Makefile.am: Rebuild dependencies.
4370 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4371 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4372 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4373 * Makefile.in: Rebuild.
4374 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4376 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4378 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4379 is no bfd_free(). Revert bfd_free part of previous change.
4381 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4383 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4385 (coff_compute_section_file_positions): Use bfd_free to pair
4387 (coff_write_object_contents): Likewise.
4389 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4390 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4392 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4394 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4395 (xcoff_ar_file_hdr_big): New structure.
4396 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4397 (xcoff_ar_hdr_big): New structure.
4398 (SIZEOF_AR_HDR_BIG): New macro.
4399 (xcoff_big_format_p): New macro.
4400 (xcoff_ardata_big): New macro.
4401 (arch_xhdr_big): New macro.
4402 (xcoff_slurp_armap): Handle large archives.
4403 (xcoff_archive_p): Detect large archives.
4404 (xcoff_read_ar_hdr): Handle large archives.
4405 (xcoff_openr_next_archived_file): Handle large archives.
4406 (xcoff_generic_stat_arch_elt): Handle large archives.
4407 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4408 (xcoff_write_armap_big): New function.
4409 (xcoff_write_armap): New function, dispatch to _old or _big.
4410 (xcoff_write_archive_contents_old): Rename from
4411 xcoff_write_archive_contents.
4412 (xcoff_write_archive_contents_big): New function.
4413 (xcoff_write_archive_contents): New function, dispatch to _old or
4416 2000-02-18 Richard Henderson <rth@cygnus.com>
4418 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4419 and hide_symbol members.
4420 (elf_link_hash_copy_indirect): Remove.
4421 (elf_link_hash_hide_symbol): Remove.
4422 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4423 and elf_backend_hide_symbol.
4424 (_bfd_elf_link_hash_copy_indirect): Declare.
4425 (_bfd_elf_link_hash_hide_symbol): Declare.
4426 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4427 (_bfd_elf_link_hash_hide_symbol): Likewise.
4428 (_bfd_elf_link_hash_table_init): Don't init killed members.
4429 * elflink.h (elf_link_add_object_symbols): Use the bed function
4430 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4431 (elf_link_assign_sym_version): Likewise.
4432 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4433 (elf_backend_hide_symbol): Likewise.
4434 (elfNN_bed): Update for new members.
4436 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4438 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4439 STACK_END_ADDR): Define for new core file format.
4440 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4441 for handling the vagaries of the various core file structures used
4442 by AIX over the years.
4443 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4444 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4445 core_dumpx structure.
4447 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4449 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4450 (bfd_mach_sh3_dsp): Likewise.
4451 (bfd_mach_sh4): Reinstate.
4452 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4453 * bfd-in2.h: Regenerate.
4454 * coff-sh.c (struct sh_opcode): flags is no longer short.
4455 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4456 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4457 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4458 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4459 (sh_opcodes): No longer const.
4460 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4461 (sh_insn_uses_reg): Check for USESAS and USESR8.
4462 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4463 (_bfd_sh_align_load_span): Return early for SH4.
4464 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4465 Take into account that field b of a parallel processing insn
4466 could be mistaken for a separate insn.
4467 * cpu-sh.c (arch_info_struct): New array elements for
4468 sh2, sh-dsp and sh3-dsp.
4469 Reinstate element for sh4.
4470 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4471 (SH4_NEXT): Reinstate.
4472 (SH3_NEXT, SH3E_NEXT): Adjust.
4473 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4474 * elf32-sh.c (sh_elf_set_private_flags): New function.
4475 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4476 (sh_elf_merge_private_data): New function.
4477 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4478 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4479 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4480 sh_elf_merge_private_data.
4482 2000-02-13 Richard Henderson <rth@cygnus.com>
4484 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4485 hide_symbol members.
4486 (elf_link_hash_copy_indirect): New.
4487 (elf_link_hash_hide_symbol): New.
4488 * elflink.h (elf_link_add_object_symbols): Break out copy from
4489 indirect new new symbol to elf.c.
4490 (elf_link_assign_sym_version): Break out privatization of
4491 non-exported symbol to elf.c.
4492 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4493 (_bfd_elf_link_hash_hide_symbol): New.
4494 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4496 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4498 * section.c (_bfd_strip_section_from_output): Add info parameter.
4499 If it passed as non-NULL, use it to check whether any input BFD
4500 has an input section which uses this output section. Change all
4502 * bfd-in2.h: Rebuild.
4504 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4505 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4507 * bfd-in2.h: Rebuild.
4509 2000-02-10 Timothy Wall <twall@cygnus.com>
4511 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4512 allow final modifications of swapped-in symbol.
4513 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4514 * coffcode.h (coff_write_relocs): Use macro
4515 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4516 symbol index should be set to -1.
4518 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4520 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4521 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4522 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4523 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4524 sh_insns_uses_or_sets_freg): New functions.
4525 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4526 * (sh_insns_conflict): Use new functions and new macros to
4527 detect conflicts when two instructions both set same integer registers,
4528 both set same fp register, and both set special register.
4530 2000-02-09 Timothy Wall <twall@cygnus.com>
4532 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4533 swapping in sections, so that the swapping routines have access to
4536 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4538 * coff-go32.c: Update comment. Update copyright.
4540 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4542 * syms.c (bfd_decode_symclass)
4543 Two new class characters were added - 'V' and 'v'. The
4544 meaning of 'W' is now restricted to just weak non-object
4545 symbols. This allows differentiation between, for example,
4546 weak functions vs weak objects. nm for example now dumps:
4548 'w' = weak unresolved
4549 'V' = weak global object
4550 'v' = weak unresolved object
4552 (bfd_is_undefined_symclass): New function. Return true if the
4553 given symbol class represents and undefined/unresolved symbol.
4555 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4558 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4560 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4561 STT_ARM_16BIT flag set, but it is not attached to a data object
4562 return STT_ARM_16BIT so that it will be treated as code by the
4565 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4567 * coff-i386.c (i3coff_object_p): Remove prototype.
4570 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4571 to name. Update copyright.
4573 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4574 assignment to avoid warning. Update copyright.
4576 2000-01-24 Robert Lipe (robertl@sco.com)
4578 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4579 instead of using GNU C extension.
4581 2000-01-21 Nick Clifton <nickc@cygnus.com>
4583 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4584 amount from a bfd_in_memory structure.
4585 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4588 2000-01-14 Nick Clifton <nickc@cygnus.com>
4590 * linker.c (default_indirect_link_order): oops - fix incorrectly
4591 applied patch from Tim Wall.
4593 2000-01-13 Timothy Wall (twall@tiac.net>
4595 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4596 = scnhsz, filhsz, relsz, aoutsz, etc)
4598 * coffswap.h: Ditto.
4600 2000-01-13 Nick Clifton <nickc@cygnus.com>
4602 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4603 interwork thumb to arm stub.
4605 2000-01-13 Timothy Wall (twall@tiac.net>
4607 * archures.c (bfd_octets_per_byte): New function: Return
4609 (bfd_arch_mach_octets_per_byte): New function: Return target
4612 * section.c: Distinguish between octets and bytes for usage of
4613 _cooked_size, _raw_size, and output_offset. Clarify
4614 description of bfd_set_section_contents.
4616 * bfd-in2.h: Regenerate.
4618 * coffgen.c: Indicate that the offset parameter is in bytes, not
4621 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4622 where appropriate to get the octet offset when calling
4623 bfd_set_section_contents.
4624 (bfd_coff_reloc_link_order): Ditto.
4626 * linker.c (bfd_generic_reloc_link_order): Ditto.
4627 (_bfd_default_link_order): Ditto.
4629 * reloc.c (bfd_perform_relocation): Distinguish between octets
4630 and bytes. Use octets when indexing into octet data; use bytes
4631 when calculating target addresses.
4632 (bfd_install_relocation): Ditto.
4634 * srec.c (srec_write_section): Ditto.
4636 2000-01-13 Nick Clifton <nickc@cygnus.com>
4638 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4639 3 to 2. This allows 4 byte sized sections, which is necessary for
4640 dlltool to build functioning DLLs.
4642 2000-01-10 Philip Blundell <pb@futuretv.com>
4644 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4645 (arm*-*-conix*): New target.
4647 2000-01-10 Egor Duda <deo@logos-m.ru>
4649 * config.bfd: Include elf32_i386 vector to target list for cygwin
4652 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4653 * configure.in: Test for structure win32_pstatus_t in
4655 * configure: Regenerate.
4657 * elf.c (elfcore_grok_win32pstatus): New function: process
4658 win32_pstatus_t notes in elf core file.
4659 (elfcore_grok_note): Detect win32_pstatus notes.
4661 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4663 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4665 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4666 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4668 For older changes see ChangeLog-9899
4674 version-control: never