1 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
4 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
5 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
6 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
7 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
8 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
10 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
11 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
12 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
13 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
14 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
15 New HOWTO members for new relocs.
16 (cris_reloc_map): Map new relocs.
17 (ELF_DYNAMIC_INTERPRETER): Define.
18 (PLT_ENTRY_SIZE): Define.
19 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
20 elf_cris_pic_plt_entry): New, PLT templates.
21 (struct elf_cris_pcrel_relocs_copied, struct
22 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
23 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
24 (cris_final_link_relocate): Check that 16-bit GOT relocs have
25 positive values. Adjust PCREL relocs to be relative to location
27 (cris_elf_relocate_section): Handle relocations to dynamic
28 objects. Handle new relocations. Call error handler when seeing
29 non-PIC relocation for read-only sections while generating shared
31 (cris_elf_check_relocs): Set reference counts for GOT and PLT
33 (bfd_elf32_bfd_link_hash_table_create,
34 elf_backend_adjust_dynamic_symbol,
35 elf_backend_size_dynamic_sections,
36 elf_backend_finish_dynamic_symbol,
37 elf_backend_finish_dynamic_sections,
38 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
39 elf_backend_hide_symbol, elf_backend_want_got_plt,
40 elf_backend_plt_readonly, elf_backend_want_plt_sym,
41 elf_backend_got_header_size, elf_backend_plt_header_size):
44 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
45 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
46 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
47 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
48 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
49 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
50 * bfd-in2.h, libbfd.h: Regenerate.
52 2001-03-21 Diego Novillo <dnovillo@redhat.com>
54 (_bfd_mips_elf_relocate_section): Give a better error message when
55 a relocation is not recognized.
57 2001-03-21 Alan Modra <alan@linuxcare.com.au>
59 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
60 non-NULL before attempting to dereference.
62 2001-03-20 H.J. Lu <hjl@gnu.org>
64 * configure.in: Remove the redundent AC_ARG_PROGRAM.
67 2001-03-20 Andreas Schwab <schwab@suse.de>
69 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
70 relocation value when resolving a reference from a debugging
73 2001-03-16 Scott Thomason <SThomaso@hii.com>
75 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
76 (xcoff64_swap_sym_out): Fix syntax errors.
78 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
80 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
82 2001-03-15 Alan Modra <alan@linuxcare.com.au>
84 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
85 (hppa_link_hash_newfunc): Init it.
86 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
87 section appears to be non-PIC.
88 (final_link_relocate): Likewise.
89 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
90 possible candidate function, and set pic_call for those that will
91 only have a .plt entry for the PIC call stub.
92 (hppa_handle_PIC_calls): Set maybe_pic_call.
94 2001-03-12 DJ Delorie <dj@redhat.com>
96 * elf32-sh.c (sh_elf_relocate_section): Only relocation
97 R_SH_DIR8WP* relocs if they're against external symbols, else
98 they're just for relaxing. Validate the reloc values.
100 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
102 * binary.c (bfd_external_binary_architecture): Declare.
103 (binary_object_p): If bfd_external_binary_architecture is defined,
104 set the architecture to this string.
106 2001-03-11 Philip Blundell <philb@gnu.org>
108 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
109 entries that could serve as a definition for a weak symbol.
111 2001-03-08 Nick Clifton <nickc@redhat.com>
113 * Most files: Update copyright notices using Perl script created
114 by Kevin Buettner <kevinb@redhat.com>.
116 2001-03-07 Nick Clifton <nickc@redhat.com>
118 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
119 prior patch on ! defined OLD_ARM_ABI.
121 2001-03-07 Andreas Jaeger <aj@suse.de>
123 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
124 some relocation values.
126 2001-03-06 Nick Clifton <nickc@redhat.com>
128 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
129 of offset in BLX(1) instruction.
130 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
131 offset in BLX(1) instruction.
134 2001-03-06 Nick Clifton <nickc@redhat.com>
136 * coff-arm.c (coff_arm_reloc_type_lookup): Add
137 BFD_RELOC_THUMB_PCREL_BLX.
139 2001-03-06 Igor Shevlyakov <igor@windriver.com>
141 * archures.c (bfd_default_scan): Add Coldfire CPUs.
142 * bfd-in2.h: Regenerate.
143 * cpu-m68k.c: Add Coldfire CPUs for arch table.
144 * ieee.c (ieee_write_processor): Set proper id for
147 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
149 * configure.in: Add s390 target.
150 * configure: Regenerate.
152 2001-02-28 Andreas Jaeger <aj@suse.de>
154 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
157 2001-02-28 Philip Blundell <pb@futuretv.com>
159 * elf32-arm.h: Update mentions of renamed EF_xx constants.
160 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
162 2001-02-27 H.J. Lu <hjl@gnu.org>
164 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
165 abfd->tdata.aout_data == NULL.
167 2001-02-27 Alan Modra <alan@linuxcare.com.au>
169 * elf32-hppa.c: Correct field selector in stub comments.
170 (clobber_millicode_symbols): Formatting fix.
172 * configure.in: Bump version to 2.11.90.
173 * configure: Regenerate.
174 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
175 (CFILES): $SOURCE_CFILES + generated C files.
176 (POTFILES): Include $HFILES not $SOURCE_HFILES.
178 * Makefile.in: Regenerate.
179 * doc/Makefile.in: This too.
181 2001-02-26 Timothy Wall <twall@cygnus.com>
183 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
186 2001-02-26 Nick Clifton <nickc@redhat.com>
188 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
189 up, replacing multiple if statements with a switch.
190 (handle_COMDAT): New function.
192 2001-02-26 H.J. Lu <hjl@gnu.org>
194 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
195 a warning for section flags we do not handle instead of
198 2001-02-26 Andreas Jaeger <aj@suse.de>
200 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
202 2001-02-22 Timothy Wall <twall@cygnus.com>
204 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
205 * configure.in: Add objects for elf64_ia64_aix vectors.
206 * configure: Regenerated.
207 * configure.host: Recognize ia64-*-aix*.
208 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
209 for AIX. AIX5 requires most relocations to be dynamic (*all*
210 binaries are somewhat similar to shared libraries).
211 * targets.c: Add elf64_ia64_aix vectors.
213 2001-02-21 David Mosberger <davidm@hpl.hp.com>
215 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
216 C8 said "1" instead of "8". Clarify error string for IMM22:
217 "signed integer" instead of just "integer".
219 2001-02-20 Andreas Jaeger <aj@suse.de>
221 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
222 PLT entries that could serve as a definition for a weak symbol.
224 2001-02-19 Jakub Jelinek <jakub@redhat.com>
226 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
227 entries that could serve as a definition for a weak symbol.
228 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
230 2001-02-18 David O'Brien <obrien@FreeBSD>
232 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
233 FreeBSD/i386-CURRENT differently until I can figure out the needed
235 * configure: Regenerate.
236 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
237 FreeBSD/PowerPC, and FreeBSD/sparc64.
239 2001-02-18 lars brinkhoff <lars@nocrew.org>
241 * Makefile.am: Add PDP-11 a.out target.
242 * config.bfd: Likewise.
243 * configure.in: Likewise.
244 * targets.c: Likewise.
245 * archures.c: Likewise.
246 * bfd-in2.h: Likewise. Add PDP-11 relocations.
247 * libbfd.h: Add PDP-11 relocations.
249 * cpu-pdp11.c: New file.
252 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
253 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
254 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
255 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
256 (GET_MAGIC): New macro.
257 (PUT_MAGIC): Likewise.
258 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
260 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
262 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
265 2001-02-18 H.J. Lu <hjl@gnu.org>
267 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
270 2001-02-18 Kazu Hirata <kazu@hxi.com>
272 * vms-misc.c: Fix formatting.
274 2001-02-16 Kazu Hirata <kazu@hxi.com>
276 * vms.c: Fix formatting.
278 2001-02-14 H.J. Lu <hjl@gnu.org>
280 * elf.c (elf_find_function): New function.
281 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
282 the file name and function name.
284 2001-02-14 Nick Clifton <nickc@redhat.com>
286 * ecoff.c (bfd_debug_section): Update to initialise new fields in
289 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
290 (BFD64_BACKENDS): Add pepigen.c
291 Add rules to create peigen.c and pepigen.c from peXXigen.c.
293 * Makefile.in: Regenerate.
294 * configure: Regenerate.
295 * po/POTFILES.in: Regenerate.
296 * po/bfd.pot: Regenerate.
298 2001-02-14 H.J. Lu <hjl@gnu.org>
300 * libcoff-in.h (pe_tdata): Add members target_subsystem and
301 force_minimum_alignment.
303 2001-02-14 Bo Thorsen <bo@suse.de>
305 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
306 (elf64_86_64_size_info): Struct added to fix a problem
307 with the hashtable string entries.
308 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
309 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
310 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
311 remove the FIXME for this.
312 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
313 section. Also removed the FIXME for it.
314 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
315 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
316 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
318 2001-02-13 Richard Henderson <rth@redhat.com>
320 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
321 and not user provided.
323 2001-02-13 Kazu Hirata <kazu@hxi.com>
325 * vms.c (vms_print_symbol): Remove unreachable code.
327 * rs6000-core.c: Fix formatting.
329 2001-02-13 David Mosberger <davidm@hpl.hp.com>
331 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
332 as _bfd_XXi_only_swap_filehdr_out.
333 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
334 pe->force_minimum_alignment to TRUE.
335 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
336 PEI_TARGET_SUBSYSTEM.
337 (pe_print_private_bfd_data): Call
338 _bfd_XX_print_private_bfd_data_common() instead of
339 _bfd_pe_print_private_bfd_data_common().
340 (pe_bfd_copy_private_bfd_data): Call
341 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
342 _bfd_pe_bfd_copy_private_bfd_data_common().
343 (coff_bfd_copy_private_section_data): Define as
344 _bfd_XX_bfd_copy_private_section_data instead of
345 _bfd_pe_bfd_copy_private_section_data.
346 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
347 of a _bfd_pe_get_symbol_info.
351 * peXXigen.c: Renamed from peigen.c.
352 (COFF_WITH_XX): Define this macro (will get expanded into
353 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
354 compiled as peigen.c or pepigen.c.
355 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
356 define the canonical PEP structures and definitions.
357 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
358 effect, enforce minimum file and section alignments. If
359 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
360 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
361 so, by default, this is a no-op).
363 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
364 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
365 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
366 _bfd_pefoo if it's not defined. Use these macros to define
369 * libcoff.h (pe_tdata): Add members target_subsystem and
370 force_minimum_alignment.
372 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
374 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
376 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
379 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
380 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
383 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
384 (BFD64_BACKENDS_CFILES): Mention pepigen.c
385 (peigen.c): Add rule to generate from peXXigen.c.
387 (pepigen.lo): List dependencies for pepigen.lo.
389 2001-02-13 Alan Modra <alan@linuxcare.com.au>
391 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
392 $global$ referenced but not defined, set its value here.
394 2001-02-09 Bo Thorsen <bo@suse.de>
396 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
398 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
400 (elf64_x86_64_relocate_section): Fix formatting.
401 (elf64_x86_64_relocate_section): Fix addend for relocation of
402 R_X86_64_(8|16|32|PC8|PC16|PC32).
404 2001-02-12 Jan Hubicka <jh@suse.cz>
406 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
408 2001-02-11 H.J. Lu <hjl@gnu.org>
410 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
413 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
415 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
416 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
417 relocations against dynsym symbols.
419 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
420 the R_MIPS_26 relocation.
421 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
422 the R_MIPS_26 relocation.
423 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
425 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
426 the R_MIPS_26 relocation.
427 (mips_elf64_howto_table_rela): Likewise.
429 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
430 member to mark symbols that have non-CALL relocations against
432 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
433 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
435 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
436 non-CALL relocation against it is encountered.
437 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
438 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
439 no_fn_stub is not set.
441 * elf32-mips.c (mips_elf_output_extsym): Get the output section
442 information from the real symbol for indirect ones.
443 Check no_fn_stub to find out if a symbol has a function stub
446 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
448 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
449 * Makefile.in: Regenerate.
451 2001-02-09 David Mosberger <davidm@hpl.hp.com>
453 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
454 true if section name is an unwind table section name.
455 (elfNN_ia64_additional_program_headers): Count each unwind section
457 (elfNN_ia64_modify_segment_map): Install one unwind program header
458 for each unwind separate section. Note: normally the linker
459 script merges the unwind sections that go into a single segment,
460 so this still generates at most one unwind program header per
463 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
464 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
465 (elfNN_ia64_fake_sections): Mark sections with names that start
466 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
469 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
470 Use it to make sh_info in unwind section point to the text section
473 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
475 * Makefile.am: Add linux target for S/390.
476 * archures.c: Likewise.
477 * bfd-in2.h: Likewise.
478 * config.bfd: Likewise.
479 * configure.in: Likewise.
481 * libbfd.h: Likewise.
482 * targets.c: Likewise.
483 * cpu-s390.c: New file.
484 * elf32-s390.c: New file.
485 * elf64-s390.c: New file.
487 2001-02-09 Nick Clifton <nickc@redhat.com>
489 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
490 ImageBase. This has already been done by coff_swap_hdr_in.
492 2001-02-09 Jakub Jelinek <jakub@redhat.com>
494 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
496 2001-02-09 Jakub Jelinek <jakub@redhat.com>
498 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
499 (sparc64_elf_relocate_section): Likewise.
501 2001-02-09 Mark Kettenis <kettenis@gnu.org>
503 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
504 similar to R_SPARC_32.
505 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
507 2001-02-08 H.J. Lu <hjl@gnu.org>
509 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
510 relocation entries for weak definitions when building DSO with
513 2001-02-08 Richard Henderson <rth@redhat.com>
515 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
516 before visibility. Locally defined protected symbols are not
519 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
521 * config.bfd: Enable coff64 for rs6000-*. Patch from
522 <hzoli@austin.ibm.com>.
524 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
526 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
527 found, do not attempt to find dwarf2 info before returning.
529 2001-02-07 Jakub Jelinek <jakub@redhat.com>
531 * elflink.h (is_global_symbol_definition): Rename to
532 is_global_data_symbol_definition and have it reject function
534 (elf_link_is_defined_archive_symbol): Use renamed function.
536 2001-02-07 Todd Vierling <tv@wasabisystems.com>
538 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
539 * libbfd.h (bfd_target_vector): Likewise.
540 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
541 make static; create pointer reference named bfd_target_vector.
542 (_bfd_target_vector_entries): Calculate this based on the array
543 typed _bfd_target_vector.
545 2001-02-06 H.J. Lu <hjl@gnu.org>
547 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
548 internal symbols are not dynamic.
549 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
551 2001-02-06 Nick Clifton <nickc@redhat.com>
553 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
554 that it will not be pulled into the list of files that make up
556 * Makefile.in: Regenerate.
557 * po/bfd.pot: Regenerate.
559 2001-02-06 H.J. Lu <hjl@gnu.org>
561 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
563 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
564 external_PEI_IMAGE_hdr.
566 2001-02-06 Kazu Hirata <kazu@hxi.com>
568 * elf-m10200.c: Fix formatting.
570 2001-02-04 Nick Clifton <nickc@redhat.com>
572 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
573 rel, it will be handled later on.
575 2001-02-02 Fred Fish <fnf@ninemoons.com>
577 * Makefile.in: Fix typo.
579 2001-02-01 Kazu Hirata <kazu@hxi.com>
581 * elf-m10300.c: Fix formatting.
583 2001-01-30 Alan Modra <alan@linuxcare.com.au>
585 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
586 (elf_backend_get_symbol_type): Define.
587 (elf64_hppa_object_p): Set architecture and machine from elf
590 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
592 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
595 2001-01-26 Richard Henderson <rth@redhat.com>
597 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
598 for non-default visibility.
599 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
600 delete ugly macro and replace with pretty function.
602 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
604 * coff-go32.c: Update copyright.
605 * coff-stgo32.c: Likewise.
606 * coff-go32.c (COFF_LONG_FILENAMES): Define.
607 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
608 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
609 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
611 2001-01-25 Kazu Hirata <kazu@hxi.com>
613 * bfd-in2.h: Rebuild.
614 * libbfd.h: Likewise.
616 2001-01-23 H.J. Lu <hjl@gnu.org>
618 * bfd-in2.h: Rebuild.
620 2001-01-23 H.J. Lu <hjl@gnu.org>
622 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
623 is NULL or PRIV(vms_rec) is outside of the buffer.
625 2001-01-23 Kazu Hirata <kazu@hxi.com>
627 * coff64-rs6000.c: Fix formatting.
628 * coff-arm.c: Likewise.
629 * coffgen.c: Likewise.
630 * cofflink.c: Likewise.
631 * coff-mcore.c: Likewise.
632 * coff-mips.c: Likewise.
633 * coff-pmac.c: Likewise.
634 * coff-ppc.c: Likewise.
635 * coff-rs6000.c: Likewise.
637 * elf32-fr30.c: Likewise.
638 * elf32-i370.c: Likewise.
639 * elf32-i860.c: Likewise.
640 * elf32-m32r.c: Likewise.
641 * elf32-m68k.c: Likewise.
642 * elf32-mcore.c: Likewise.
643 * elf32-ppc.c: Likewise.
644 * elf32-sh.c: Likewise.
645 * elf32-v850.c: Likewise.
646 * elf64-alpha.c: Likewise.
647 * elf64-sparc.c: Likewise.
648 * elflink.c: Likewise.
649 * elflink.h: Likewise.
650 * elf-m10200.c: Likewise.
651 * elf-m10300.c: Likewise.
652 * elfxx-ia64.c: Likewise.
654 * aoutx.h: Fix formatting.
656 * bfd-in2.h: Likewise.
657 * bfd-in.h: Likewise.
658 * cpu-i386.c: Likewise.
659 * cpu-m68hc11.c: Likewise.
660 * dwarf2.c: Likewise.
661 * elf64-x86-64.c: Likewise.
662 * format.c: Likewise.
663 * freebsd.h: Likewise.
665 * hp300hpux.c: Likewise.
666 * hppabsd-core.c: Likewise.
667 * hpux-core.c: Likewise.
669 2001-01-22 Bo Thorsen <bo@suse.de>
671 * elf64-x86-64.c: Added PIC support for X86-64.
672 (elf64_x86_64_link_hash_newfunc): Function added.
673 (elf64_x86_64_link_hash_table_create): Likewise.
674 (elf64_x86_64_check_relocs): Likewise.
675 (elf64_x86_64_gc_mark_hook): Likewise.
676 (elf64_x86_64_gc_sweep_hook): Likewise.
677 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
678 (elf64_x86_64_size_dynamic_sections): Likewise.
679 (elf64_x86_64_discard_copies): Likewise.
680 (elf64_x86_64_finish_dynamic_symbol): Likewise.
681 (elf64_x86_64_finish_dynamic_sections): Likewise.
682 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
684 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
686 * Makefile.am (install-data-local): Make use of $(DESTDIR).
687 * Makefile.in: Regenerate.
689 2001-01-21 Kazu Hirata <kazu@hxi.com>
691 * coff-a29k.c: Fix formatting.
693 2001-01-19 H.J. Lu <hjl@gnu.org>
695 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
696 relocation section names.
697 (elf_i386_relocate_section): Report files with bad relocation
698 section names and return false.
700 2001-01-17 Bo Thorsen <bo@suse.de>
702 * targets.c: Alphabetize list of xvecs.
704 2001-01-14 Alan Modra <alan@linuxcare.com.au>
706 * config.bfd: Add linux target variant for elfxx-hppa.
707 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
708 bfd_elf64_hppa_linux_vec.
709 * configure: Regenerate.
710 * elf64-hppa.c: Include elf64-target.h again to support linux
712 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
713 * elf32-hppa.c: Include elf32-target.h again to support linux
715 (elf32_hppa_post_process_headers): New function.
716 (elf_backend_post_process_headers): Define.
717 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
718 bfd_elf32_hppa_linux_vec.
720 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
721 and data_segment_base fields.
722 (elf32_hppa_link_hash_table_create ): Init them.
723 (elf32_hppa_check_relocs): Update comments.
724 (hppa_record_segment_addr): New function.
725 (elf32_hppa_relocate_section): Call it.
726 (final_link_relocate): Handle R_PARISC_SEGREL32.
727 (elf32_hppa_final_link): New function.
728 (bfd_elf32_bfd_final_link): Define to call it.
729 (hppa_unwind_entry_compare): New function.
730 * cache.c (bfd_open_file): Create files in write+read mode.
732 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
733 SEGREL32 and numerous other relocs. Change duplicate
734 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
736 * opncls.c (bfd_fdopenr): Add parens like the comment says around
739 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
740 .plt entries for DT_INIT and DT_FINI.
741 (elf32_hppa_finish_dynamic_sections): Remove special handling of
744 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
745 offsets for stub .plt access if wide mode. Check offset in range.
747 2001-01-13 Nick Clifton <nickc@redhat.com>
749 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
752 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
755 2001-01-12 Alan Modra <alan@linuxcare.com.au>
757 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
758 * configure: Regenerate.
760 2001-01-11 Peter Targett <peter.targett@arccores.com>
762 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
763 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
764 * cpu-arc.c (arch_info_struct): Add entries for variants.
765 (bfd_arc_arch) Set default to bfd_mach_arc_5.
766 (arc_get_mach) Don't assume machine names prefixed arc- before
768 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
770 (arc_elf_final_write_processing) Likewise.
771 (ELF_MACHINE_CODE) Use EM_ARC.
773 2001-01-10 Nick Clifton <nickc@redhat.com>
775 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
777 2001-01-07 Philip Blundell <philb@gnu.org>
779 * README: Replace `bug-gnu-utils@gnu.org' with
780 `bug-binutils@gnu.org'.
782 2001-01-04 Kazu Hirata <kazu@hxi.com>
784 * som.c: Fix formatting.
786 2001-01-03 Kazu Hirata <kazu@hxi.com>
788 * ecoffswap.h: Fix formatting.
789 * elf-bfd.h: Likewise.
790 * elfarm-nabi.c: Likewise.
791 * elfarm-oabi.c: Likewise.
792 * elfcode.h: Likewise.
793 * elfcore.h: Likewise.
794 * elflink.c: Likewise.
795 * elflink.h: Likewise.
796 * elfxx-ia64.c: Likewise.
797 * elfxx-target.h: Likewise.
799 * linker.c: Likewise.
800 * lynx-core.c: Likewise.
802 2001-01-02 Kazu Hirata <kazu@hxi.com>
804 * pc532-mach.c: Fix formatting.
805 * pe-arm.c: Likewise.
806 * pe-i386.c: Likewise.
807 * pe-mips.c: Likewise.
808 * pe-ppc.c: Likewise.
810 * pei-mips.c: Likewise.
811 * pei-sh.c: Likewise.
812 * peicode.h: Likewise.
813 * ppcboot.c: Likewise.
814 * ptrace-core.c: Likewise.
816 2001-01-01 Kazu Hirata <kazu@hxi.com>
818 * reloc.c: Fix formatting.
819 * riscix.c: Likewise.
820 * rs6000-core.c: Likewise.
821 * xcoff-target.h: Likewise.
823 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
825 * elfcode.h (elf_object_p): Also restore the bfd mach field on
826 error, by calling bfd_default_set_arch_mach with incoming
829 2000-12-26 Kazu Hirata <kazu@hxi.com>
831 * vaxnetbsd.c: Fix formatting.
832 * versados.c: Likewise.
833 * vms-gsd.c: Likewise.
834 * vms-hdr.c: Likewise.
835 * vms-misc.c: Likewise.
837 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
839 * archive.c (coff_write_armap): Don't write more than symbol_count
840 `archive_member_file_ptr's.
842 2000-12-25 Kazu Hirata <kazu@hxi.com>
844 * vms-tir.c: Fix formatting.
846 2000-12-23 Kazu Hirata <kazu@hxi.com>
848 * vms.c: Fix formatting.
851 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
853 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
855 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
857 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
860 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
862 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
864 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
866 * libbfd.c (bfd_get_bits): Added
867 (bfd_put_bits): Likewise
868 * bfd-in.h: Declared the above.
869 * bfd-in2.h: Regenerated.
871 2000-12-20 Kazu Hirata <kazu@hxi.com>
873 * targets.c: Fix formatting.
874 * tekhex.c: Likewise.
875 * trad-core.c: Likewise.
877 2000-12-19 Kazu Hirata <kazu@hxi.com>
879 * sco5-core.c: Fix formatting.
880 * section.c: Likewise.
881 * sparclinux.c: Likewise.
882 * sparclynx.c: Likewise.
883 * sparcnetbsd.c: Likewise.
886 * stab-syms.c: Likewise.
889 * sysdep.h: Likewise.
891 2000-12-18 Nick Clifton <nickc@redhat.com>
893 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
895 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
896 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
898 2000-12-18 Nick Clifton <nickc@redhat.com>
900 * vms-misc.c (_bfd_vms_get_record): Add default case to
903 2000-12-15 Miloslav Trmac <mitr@volny.cz>
905 * elfcore.h (elf_core_file_p): Move to the start of the program
906 headers before attempting to read them.
908 2000-12-14 Kazu Hirata <kazu@hxi.com>
910 * peigen.c: Fix formatting.
914 2000-12-13 Kazu Hirata <kazu@hxi.com>
916 * peigen.c: Fix formatting.
918 2000-12-12 Jim Wilson <wilson@redhat.com>
920 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
922 2000-12-08 Mark Salter <msalter@redhat.com>
924 * binary.c (binary_set_section_contents): Ignore sections
927 2000-12-12 Kazu Hirata <kazu@hxi.com>
929 * m68klinux.c: Fix formatting.
930 * m68knetbsd.c: Likewise.
931 * mipsbsd.c: Likewise.
932 * netbsd-core.c: Likewise.
933 * netbsd.h: Likewise.
934 * newsos3.c: Likewise.
935 * nlm32-alpha.c: Likewise.
936 * nlm32-i386.c: Likewise.
937 * nlm32-ppc.c: Likewise.
938 * nlm32-sparc.c: Likewise.
939 * nlmcode.h: Likewise.
940 * nlmswap.h: Likewise.
941 * nlm-target.h: Likewise.
942 * ns32knetbsd.c: Likewise.
944 2000-12-10 Fred Fish <fnf@be.com>
946 * elflink.h (elf_link_output_extsym): Don't complain about undefined
947 symbols in shared objects if allow_shlib_undefined is true.
949 2000-12-12 Nick Clifton <nickc@redhat.com>
951 * cpu-sh.c: Fix formattng.
952 * elf.c: Fix formattng.
953 * elf32-mips.c: Fix formattng.
954 * elf32-sh.c: Fix formattng.
955 * elf64-alpha.c: Fix formattng.
957 2000-12-09 Nick Clifton <nickc@redhat.com>
959 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
960 dwarf2_find_line_info as last parameter to invocation of
961 _bfd_dwarf2_find_nearest_line.
962 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
963 dwarf2_find_line_info as last parameter to invocation of
964 _bfd_dwarf2_find_nearest_line.
966 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
968 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
969 (BFD_LIBS): ...to here.
970 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
971 (BFD_LIBS_CFILES): ...to here.
972 * Makefile.in: Regenerate.
973 * configure.in: Remove dwarf.lo from the elf shell variable.
974 * configure: Regenerate.
975 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
976 * libcoff.h: Regenerate.
977 * coffgen.c (coff_find_nearest_line): Call
978 _bfd_dwarf2_find_nearest_line.
979 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
981 (read_abbrevs): Likewise
982 (decode_line_info): Likewise.
983 (parse_comp_unit): Likewise.
984 (comp_unit_find_nearest_line): Likewise.
985 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
986 * libbfd.h: Regenerate.
987 * elf.c (_bfd_elf_find_nearest_line): Update call.
988 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
989 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
990 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
991 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
992 (styp_to_sec_flags): Handle DWARF2 sections.
993 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
994 to _bfd_find_nearest_line.
995 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
996 call to _bfd_find_nearest_line.
998 2000-12-08 Kazu Hirata <kazu@hxi.com>
1000 * coffgen.c: Fix formatting.
1001 * elf-m10300.c: Likewise.
1002 * elf32-i386.c: Likewise.
1003 * elf32-i960.c: Likewise.
1004 * elf32-m68k.c: Likewise.
1005 * elf32-mcore.c: Likewise.
1006 * elf32-ppc.c: Likewise.
1007 * elf32-sh.c: Likewise.
1008 * elf32-sparc.c: Likewise.
1009 * elf32-v850.c: Likewise.
1010 * elf64-alpha.c: Likewise.
1011 * elf64-hppa.c: Likewise.
1012 * elf64-mips.c: Likewise.
1013 * elf64-sparc.c: Likewise.
1015 2000-12-07 Kazu Hirata <kazu@hxi.com>
1017 * elf32-ppc.c: Fix formatting.
1018 * elf64-x86-64.c: Likewise.
1020 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1022 From Ralf Baechle <ralf@gnu.org>
1024 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1025 BFDs containing no sections or empty .text, .data or .bss sections
1026 to be merged, regardless of their flags.
1028 2000-12-06 Kazu Hirata <kazu@hxi.com>
1030 * elf32-m32r.c: Fix formatting.
1031 * elf32-m68hc11.c: Likewise.
1032 * elf32-m68hc12.c: Likewise.
1033 * elf32-m68k.c: Likewise.
1034 * elf32-mcore.c: Likewise.
1035 * elf32-pj.c: Likewise.
1036 * elf32-ppc.c: Likewise.
1038 2000-12-05 Kazu Hirata <kazu@hxi.com>
1040 * elf32-fr30.c: Fix formatting.
1041 * elf32-hppa.c: Likewise.
1042 * elf32-i370.c: Likewise.
1043 * elf32-i386.c: Likewise.
1044 * elf32-i860.c: Likewise.
1045 * elf32-i960.c: Likewise.
1047 2000-12-03 Kazu Hirata <kazu@hxi.com>
1049 * elf32-arm.h: Fix formatting.
1050 * elf32-avr.c: Likewise.
1051 * elf32-cris.c: Likewise.
1052 * elf32-d10v.c: Likewise.
1053 * elf32-d30v.c: Likewise.
1054 * elf-hppa.h: Likewise.
1055 * elf-m10200.c: Likewise.
1056 * elf-m10300.c: Likewise.
1058 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1060 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1061 bfd_mach_mips32_4k. Update FIXME comment.
1062 * archures.c (bfd_mach_mips32): New constant.
1063 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1064 the latter, renumber it.
1065 * bfd-in2.h (bfd_mach_mips32): New constant.
1066 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1067 the latter, renumber it.
1068 * cpu-mips.c (I_mips32): New constant.
1069 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1070 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1071 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1072 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1073 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1074 with E_MIPS_MACH_MIPS32_4K.
1075 (_bfd_mips_elf_final_write_processing): Replace
1076 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1077 bfd_mach_mips32 case.
1078 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1079 comparison with support for MIPS32.
1080 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1083 * aoutx.h (NAME(aout,machine_type)): Add cases for
1084 bfd_mach_mips5 and bfd_mach_mips64.
1085 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1086 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1087 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1088 (arch_info_struct): Add entries for bfd_mach_mips5 and
1090 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1091 _bfd_mips_elf_print_private_bfd_data): Add cases for
1092 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1093 (_bfd_mips_elf_final_write_processing): Add cases for
1094 bfd_mach_mips5 and bfd_mach_mips64.
1096 * aoutx.h (NAME(aout,machine_type)): Add a
1097 bfd_mach_mips_sb1 case.
1098 * archures.c (bfd_mach_mips_sb1): New constant.
1099 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1100 * cpu-mips.c (I_sb1): New constant.
1101 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1102 * elf32-mips.c (elf_mips_mach): Add case for
1104 (_bfd_mips_elf_final_write_processing): Add case for
1107 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1109 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1110 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1111 (sparc*-*-rtems*): Switched from a.out to ELF.
1113 2000-11-30 Jan Hubicka <jh@suse.cz>
1115 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1116 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1117 (elf64-x86-64.lo): Add dependencies.
1118 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1119 bfd_mach_x86_64_intel_syntax.
1120 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1121 * config.bfd (x86_64): Add.
1122 * configure.in: Add support for bfd_elf64_x86_64_vec.
1123 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1124 (bfd_i386_arch, i8086_ar): Link in.
1125 * elf64-x86-64.c: New file.
1126 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1127 * targets.c (bfd_elf64_x86_64_vec): Add.
1128 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1130 2000-11-30 Kazu Hirata <kazu@hxi.com>
1132 * xcofflink.c: Fix formatting.
1134 2000-11-28 Kazu Hirata <kazu@hxi.com>
1136 * aoutx.h: Fix formatting.
1137 * bfd-in.h: Likewise.
1138 * bfd-in2.h: Likewise.
1139 * cache.c: Likewise.
1140 * cisco-core.c: Likewise.
1141 * coff64-rs6000.c: Likewise.
1142 * coffcode.h: Likewise.
1143 * coffswap.h: Likewise.
1144 * corefile.c: Likewise.
1145 * elf32-mips.c: Likewise.
1147 2000-11-27 Kazu Hirata <kazu@hxi.com>
1149 * aout-adobe.c: Fix formatting.
1150 * coff64-rs6000.c: Likewise.
1151 * coffgen.c: Likewise.
1152 * cofflink.c: Likewise.
1154 2000-11-27 Philip Blundell <pb@futuretv.com>
1156 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1157 (obj_coff_strings_written): New accessor macro for above.
1158 * libcoff.h: Regenerate.
1159 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1161 * coffcode.h (coff_write_object_contents): No need to write out
1162 the string table if it's already been done.
1164 2000-11-22 Philip Blundell <pb@futuretv.com>
1166 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1167 weak undefined symbols.
1169 2000-11-24 Nick Clifton <nickc@redhat.com>
1171 * archures.c (bfd_mach_arm_5TE): Define.
1172 (bfd_mach_arm+XScale): Define.
1173 * bfd-in2.h: Regenerate.
1175 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1176 BFD_RELOC_ARM_PCREL_BLX.
1178 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1179 XScale machine numbers.
1181 * config.bfd (xscale-elf): Add target.
1182 (xscale-coff): Add target.
1184 * cpu-arm.c: Add xscale machine name.
1185 Add v5t, v5te and XScale machine numbers.
1187 2000-11-23 Kazu Hirata <kazu@hxi.com>
1189 * aix386-core.c: Fix formatting.
1191 2000-11-22 Jim Wilson <wilson@redhat.com>
1193 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1194 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1195 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1196 (ins_imms_scaled): Initialize sign_bit at function entry.
1197 (elf64_ia64_operands): Add missing initializers.
1198 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1199 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1200 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1201 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1202 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1204 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1205 and free_extsyms at function entry.
1206 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1207 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1208 (get_got): Delete unused local srel.
1209 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1210 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1212 2000-11-21 Kazu Hirata <kazu@hxi.com>
1214 * coff-a29k.c: Fix formatting.
1215 * coff-h8500.c: Likewise.
1216 * coff-i960.c: Likewise.
1217 * coff-ppc.c: Likewise.
1218 * coff-rs6000.c: Likewise.
1219 * coff-stgo32.c: Likewise.
1220 * coff-tic54x.c: Likewise.
1221 * coff-w65.c: Likewise.
1222 * cpu-h8500.c: Likewise.
1223 * cpu-hppa.c: Likewise.
1224 * cpu-ns32k.c: Likewise.
1225 * ecoff.c: Likewise.
1226 * ecofflink.c: Likewise.
1228 2000-11-21 Nick Clifton <nickc@redhat.com>
1230 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1231 remove possibility of infinite loop.
1233 2000-11-20 Kazu Hirata <kazu@hxi.com>
1235 * aix386-core.c: Fix formatting.
1236 * aout-adobe.c: Likewise.
1237 * aout-arm.c: Likewise.
1238 * aout-encap.c: Likewise.
1239 * aout-ns32k.c: Likewise.
1240 * aout-target.h: Likewise.
1241 * aout-tic30.c: Likewise.
1242 * aoutf1.h: Likewise.
1243 * aoutx.h: Likewise.
1244 * archive.c: Likewise.
1245 * bfd-in.h: Likewise.
1246 * bfd-in2.h: Likewise.
1250 2000-11-17 H.J. Lu <hjl@gnu.org>
1252 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1253 pltoff entries for DT_INIT and DT_FINI.
1254 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1255 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1258 2000-11-16 Richard Henderson <rth@redhat.com>
1260 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1261 (allocate_dynrel_entries): Likewise.
1262 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1263 (set_pltoff_entry): Likewise.
1264 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1265 (elfNN_ia64_reloc_type_lookup): Likewise.
1266 (elfNN_ia64_install_value): Likewise.
1267 (elfNN_ia64_relocate_section): Likewise.
1268 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1269 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1271 2000-11-16 Kazu Hirata <kazu@hxi.com>
1273 * cpu-a29k.c: Fix formatting.
1274 * cpu-alpha.c: Likewise.
1275 * cpu-arm.c: Likewise.
1276 * cpu-avr.c: Likewise.
1277 * cpu-d10v.c: Likewise.
1278 * cpu-h8500.c: Likewise.
1279 * cpu-hppa.c: Likewise.
1280 * cpu-i370.c: Likewise.
1281 * cpu-i386.c: Likewise.
1282 * cpu-i960.c: Likewise.
1283 * cpu-ia64-opc.c: Likewise.
1284 * cpu-ia64.c: Likewise.
1285 * cpu-m32r.c: Likewise.
1286 * cpu-m68hc11.c: Likewise.
1287 * cpu-m68hc12.c: Likewise.
1288 * cpu-m68k.c: Likewise.
1289 * cpu-m88k.c: Likewise.
1290 * cpu-mips.c: Likewise.
1291 * cpu-ns32k.c: Likewise.
1292 * cpu-pj.c: Likewise.
1293 * cpu-powerpc.c: Likewise.
1294 * cpu-sh.c: Likewise.
1295 * cpu-sparc.c: Likewise.
1296 * cpu-tic54x.c: Likewise.
1297 * cpu-v850.c: Likewise.
1298 * cpu-vax.c: Likewise.
1299 * cpu-w65.c: Likewise.
1300 * cpu-we32k.c: Likewise.
1301 * cpu-z8k.c: Likewise.
1302 * dwarf1.c: Likewise.
1303 * dwarf2.c: Likewise.
1305 2000-11-15 Kazu Hirata <kazu@hxi.com>
1307 * coff-arm.c: Fix formatting.
1308 * coff-ppc.c: Likewise.
1309 * coff-rs6000.c: Likewise.
1310 * coff-sh.c: Likewise.
1311 * coff-sparc.c: Likewise.
1312 * coff-tic30.c: Likewise.
1313 * coff-tic54x.c: Likewise.
1314 * coff-tic80.c: Likewise.
1315 * coff-w65.c: Likewise.
1316 * coff-we32k.c: Likewise.
1317 * coff-z8k.c: Likewise.
1319 2000-11-15 Richard Henderson <rth@redhat.com>
1321 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1322 section with the same ALLOC|LOAD flags as the source section.
1324 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1326 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1327 by STO_ALPHA constants.
1329 2000-11-14 Kazu Hirata <kazu@hxi.com>
1331 * coff-pmac.c: Fix formatting.
1332 * coff-ppc.c: Likewise.
1334 2000-11-13 H.J. Lu <hjl@gnu.org>
1336 * elflink.h (elf_link_add_object_symbols): Also add indirect
1337 symbols for common symbols with the default version.
1339 2000-11-09 Philip Blundell <pb@futuretv.com>
1341 * section.c (STD_SECTION): Set gc_mark flag.
1343 2000-11-11 Kazu Hirata <kazu@hxi.com>
1345 * coff-i960.c: Likewise.
1346 * coff-m68k.c: Likewise.
1347 * coff-m88k.c: Likewise.
1348 * coff-mcore.c: Likewise.
1349 * coff-mips.c: Likewise.
1351 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1353 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1355 2000-11-10 Kazu Hirata <kazu@hxi.com>
1357 * coff-h8300.c: Fix formatting.
1358 * coff-h8500.c: Likewise.
1359 * coff-i386.c: Likewise.
1360 * coff-i860.c: Likewise.
1361 * coff-i960.c: Likewise.
1362 * coff-ia64.c: Likewise.
1364 2000-11-09 Kazu Hirata <kazu@hxi.com>
1366 * archive.c: Fix formatting.
1367 * archures.c: Likewise.
1369 2000-11-07 Richard Henderson <rth@redhat.com>
1371 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1372 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1373 * section.c (bfd_set_section_contents): Call memcpy if
1374 section->contents set and location not equal to contents plus offset.
1376 2000-11-08 Kazu Hirata <kazu@hxi.com>
1378 * bfd-in.h: Fix formatting.
1379 * bfd-in2.h: Likewise.
1381 * binary.c: Likewise.
1383 * coff-a29k.c: Likewise.
1384 * coff-alpha.c: Likewise.
1385 * coff-apollo.c: Likewise.
1386 * coff-aux.c: Likewise.
1388 2000-11-07 Kazu Hirata <kazu@hxi.com>
1390 * aix386-core.c: Fix formatting.
1391 * aoutf1.h: Likewise.
1392 * aoutx.h: Likewise.
1393 * archures.c: Likewise.
1394 * armnetbsd.c: Likewise.
1396 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1398 * coff-h8300.c (special): Adjust reloc address.
1400 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1402 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1403 to differentiate elf32 and elf64 on ia64.
1404 * bfd-in2.h: Regenerate.
1405 * config.bfd: Add target for "ia64*-*-hpux*".
1406 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1407 * configure: Regenerate.
1408 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1409 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1411 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1412 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1413 * Makefile.in: Regnerate.
1414 * elf64-ia64.c: Deleted.
1415 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1417 2000-11-06 Kazu Hirata <kazu@hxi.com>
1419 * aout-adobe.c: Fix formatting.
1420 * aout-arm.c: Likewise.
1421 * aout-cris.c: Likewise.
1422 * aout-encap.c: Likewise.
1423 * aout-ns32k.c: Likewise.
1424 * aout-target.h: Likewise.
1425 * aout-tic30.c: Likewise.
1427 2000-11-05 Philip Blundell <philb@gnu.org>
1429 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1430 BFDs containing no sections to be merged, regardless of their flags.
1432 2000-11-04 Philip Blundell <philb@gnu.org>
1434 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1435 if a relocation for an undefined symbol also results in an
1438 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1440 * config.bfd: Add support for Sun Chorus.
1442 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1444 * configure.in: Recognize alpha-*-freebsd*.
1445 * configure: Regenerate.
1447 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1449 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1450 (Chunk): New global variable set by a parameter in objcopy.c.
1451 (S3Forced): New global variable set by a parameter in
1453 (srec_set_section_contents): If S3Forced is true, always generate
1455 (srec_write_section): Use 'Chunk' to limit maximum length of S
1458 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1460 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1461 * Makefile.in: Regenerate.
1462 * bfd-in2.h: Regenerate.
1463 * po/bfd.pot: Regenerate.
1465 2000-10-31 Philip Blundell <philb@gnu.org>
1467 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1468 EF_SOFT_FLOAT if it is defined.
1470 2000-10-27 Philip Blundell <philb@gnu.org>
1472 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1473 attempts to mix PIC code with non-PIC, just mark the output as
1474 being position dependent.
1475 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1476 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1477 all mismatches, not just the first one.
1479 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1481 * ieee.c (ieee_archive_p): Plug one of many possible
1482 memory leaks in error handling.
1484 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1486 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1487 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1489 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1490 sparc64_elf_object_p): Support v9b.
1491 * archures.c: Declare v8plusb and v9b machines.
1493 * cpu-sparc.c: Ditto.
1495 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1497 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1500 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1501 (SYMBOL_CALLS_LOCAL): New macro.
1502 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1503 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1504 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1505 (ppc_elf_relocate_section): Use flag variable to determine
1506 whether the relocation refers to a local symbol.
1507 Test whether a PLTREL24 reloc will produce a reloc by looking
1508 to see whether a PLT entry was made.
1510 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1512 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1513 entries that could serve as a definition for a weak symbol.
1515 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1517 From Ralf Baechle <ralf@gnu.org>
1519 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1520 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1521 against local symbols.
1522 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1524 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1526 * section.c (struct sec): Add kept_section.
1527 (struct bfd_comdat_info): Remove sec, we can use above.
1528 (STD_SECTION): Add initializer.
1529 (bfd_make_section_anyway): Init here too.
1531 * bfd-in2.h: Regenerate.
1533 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1535 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1536 fudge values for discarded link-once section symbols.
1538 * elf64-hppa.c: Include alloca-conf.h
1540 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1542 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1544 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1546 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1548 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1550 2000-10-10 Tom Rix <trix@redhat.com>
1552 * section.c (bfd_make_section_anyway): Release newsect ptr when
1553 newsect->symbol fails to alloc. Use bfd_release instead of free.
1555 2000-10-09 Richard Henderson <rth@cygnus.com
1557 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1558 (elf64_ia64_unwind_entry_compare): New.
1559 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1561 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1563 * elflink.h (size_dynamic_sections): Don't create various tags if
1564 .dynstr is excluded from the link. Don't set first dynsym entry
1565 if dynsymcount is zero.
1566 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1567 .dynsym excluded from the link. Don't try to write any dynamic
1568 sections excluded from the link.
1570 * elf.c (swap_out_syms): Handle global section symbols.
1572 2000-10-05 DJ Delorie <dj@redhat.com>
1574 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1575 * coffcode.h (coff_set_alignment_hook): read extended reloc count
1576 (coff_write_relocs): write extended reloc count
1577 (coff_write_object_contents): account for extended relocs
1579 2000-10-05 Jim Wilson <wilson@cygnus.com>
1581 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1583 * elf.c (_bfd_elf_make_section_from_shdr): Call the
1584 elf_backend_section_flags function.
1585 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1587 (elf64_ia64_section_flags): New function containing flag conversion
1589 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1590 * elfxx-target.h (elf_backend_section_flags): Define.
1591 (elfNN_bed): Initialize elf_backend_section_flags field.
1593 2000-10-02 Alan Modra <alan@linuxcare.com.au>
1595 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1596 _bfd_elf32_gc_record_vtable. Correct a comment.
1598 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
1600 From Ralf Baechle <ralf@gnu.org>
1602 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1603 produces binaries with got[1] = 0x80000001 to differenciate them
1604 for the dynamic linker from the broken binaries produced by old
1607 2000-09-30 Petr Sorfa <petrs@sco.com>
1609 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1610 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1611 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1612 * configure: Regenerate.
1614 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
1616 Define two bfd_targets for absence and presence of leading
1617 underscore on symbols. Make sure to only link same kind.
1618 * elf32-cris.c (cris_elf_object_p,
1619 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1620 cris_elf_merge_private_bfd_data): New.
1621 (elf_backend_object_p, elf_backend_final_write_processing,
1622 bfd_elf32_bfd_print_private_bfd_data,
1623 bfd_elf32_bfd_merge_private_bfd_data): Define.
1624 <Target vector definition>: Include elf32-target.h twice with
1625 different macro settings:
1626 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1627 bfd_elf32_us_cris_vec.
1628 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1629 (elf_symbol_leading_char): First as 0, then '_'.
1630 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1631 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1632 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1633 * configure: Regenerate.
1634 * targets.c: Declare bfd_elf32_us_cris_vec.
1635 * po/bfd.pot: Regenerate.
1637 2000-09-29 Momchil Velikov <velco@fadata.bg>
1639 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1640 R_ARM_THM_PC22 relocations.
1642 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
1644 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1646 2000-09-29 Momchil Velikov <velco@fadata.bg>
1648 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1649 is has the SEC_HAS_CONTENTS flag set.
1651 2000-09-28 Örjan Friberg <orjanf@axis.com>
1652 Hans-Peter Nilsson <hp@axis.com>
1654 * aout-cris.c (N_TXTADDR): Define.
1656 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1658 * som.c: Include alloca-conf.h.
1659 * Makefile.am: "make dep-am"
1660 * Makefile.in: Regenerate.
1662 2000-09-27 Alan Modra <alan@linuxcare.com.au>
1664 * elf32-hppa.c (plt_stub): New.
1665 (PLT_STUB_ENTRY): Define.
1666 (elf32_hppa_link_hash_table): Change multi_subspace to packed
1667 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1668 (elf32_hppa_link_hash_table_create): Init to suit.
1669 (elf32_hppa_check_relocs): Set has_12bit_branch and
1670 has_17bit_branch as appropriate.
1671 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1672 non-local functions.
1673 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1674 Add space for plt_stub as needed.
1675 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1676 functions at plt_stub.
1677 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1678 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1680 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1681 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
1682 of fixed size, and if negative, disable handling of input sections
1683 before stub section. Set up default stub group size depending
1684 on detected branch relocs.
1685 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1686 ensure different offsets from sym_value aren't rounded to
1687 different 2k blocks. Use lrsel and rrsel for other stubs too for
1688 consistency rather than necessity.
1689 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1690 (final_link_relocate): Likewise.
1691 (elf32_hppa_relocate_section): Likewise.
1693 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1694 (_bfd_elf_hppa_gen_reloc_type): Generate them.
1695 (elf_hppa_final_link_relocate): Handle them.
1696 (elf_hppa_relocate_insn): Likewise.
1697 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1699 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
1701 * elfcode.h (elf_object_p): Preserve and clear abfd section
1702 information. Restore at error.
1704 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1706 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1707 is empty, make sure that its rva also 0. NT loader dislikes
1710 2000-09-26 Steve Ellcey <sje@cup.hp.com>
1712 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1715 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1717 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1718 currently unused RELATIVE_DYNAMIC_RELOCS code.
1719 (hppa_discard_copies): Likewise.
1720 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
1721 comments. Don't check non-code output sections for stub grouping.
1723 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1725 * section.c (bfd_get_unique_section_name): Return NULL if
1728 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1730 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1731 instruction sequence to actually work.
1732 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1735 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
1737 * elf32-sh.c (sh_elf_relocate_section): Use
1738 _bfd_final_link_relocate to apply the relocation against a section
1739 symbol, when doing relocatable links.
1741 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1743 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1745 (stub_hash_newfunc): Here too.
1746 (hppa_add_stub): And here.
1747 (elf32_hppa_link_hash_table): Remove stub_section_created,
1748 reloc_section_created, first_init_sec and first_fini_sec. Add
1750 (elf32_hppa_link_hash_table_create): Init to suit.
1751 (hppa_get_stub_entry): Add support for grouping stub sections.
1752 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
1753 section code. Index stub vars by section->id.
1754 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
1755 exit paths. Zap allocation of above removed vars. Refine
1758 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1759 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1760 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1761 rather than pointer to bfd_link_info.
1762 (hppa_add_stub): Likewise.
1763 (final_link_relocate): Likewise.
1765 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
1767 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1770 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
1772 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1773 ld/emulparams/shelf.sh.
1775 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1777 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1778 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1779 * bfd-in2.h: Regenerate.
1781 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
1783 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1784 LITUSE relocations incorrectly if -relax is specified on the ld
1785 command line and the displacement field of the load or store
1786 instruction is non-zero. (Patch by paul.winalski@compaq.com)
1788 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1790 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1791 first_fini_sec here.
1792 (elf32_hppa_size_stubs): Instead correctly find the first .init
1793 and .fini section here.
1795 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
1797 * elf32-hppa.c (clobber_millicode_symbols): New function.
1798 (elf32_hppa_size_dynamic_sections): Call it.
1800 2000-09-14 Alan Modra <alan@linuxcare.com.au>
1802 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1803 packed. Add plabel, plt_abs packed booleans.
1804 (hppa_link_hash_newfunc): Init new fields.
1805 (PLABEL_PLT_ENTRY_SIZE): Define.
1806 (hppa_stub_name): Use size_t len vars.
1807 (hppa_add_stub): Likewise.
1808 (elf32_hppa_build_stubs): Likewise.
1809 (hppa_build_one_stub): Kill some compiler warnings.
1810 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1811 if dynamic linking. Munge the local plt offsets into
1812 local_got_refcounts. Set h->plabel for all global PLABELs. Use
1813 size_t len vars. Add assert for plabel addend.
1814 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1815 (elf32_hppa_hide_symbol): New function.
1816 (elf_backend_hide_symbol): Define.
1817 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1818 with h->plabel set. Don't make plt entries to have dynamic syms
1819 when they have been forced local. If plt entry is used by a
1820 plabel, make it PLABEL_PLT_ENTRY_SIZE.
1821 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1822 Set up .plt offsets for local syms.
1823 (elf32_hppa_relocate_section): Initialise plt entries for local
1824 syms. Leave weak undefined plabels zero. Make global plabel
1825 relocs against function symbol, and leave the addend zero.
1826 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1827 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1828 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
1829 relocs instead of SEGREL32 for dynamic got relocs.
1830 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1831 (elf_backend_got_header_size): Adjust.
1832 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1834 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1835 (hppa_type_of_stub): Use it instead of #if 0
1836 (hppa_discard_copies): Use it here too.
1837 (elf32_hppa_size_dynamic_sections): And here.
1839 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1840 (elf32_hppa_link_hash_table_create): And here.
1841 (hppa_build_one_stub): And here. Instead keep track of stub
1842 offset using _raw_size.
1843 (elf32_hppa_size_stubs): Likewise.
1844 (elf32_hppa_build_stubs): Likewise.
1845 (hppa_size_one_stub): Likewise. Resize reloc section too.
1847 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1848 first_fini_sec handling. Don't search for reloc section or set
1849 hplink->reloc_section_created here.
1850 (elf32_hppa_size_stubs): Instead search for reloc sections, and
1851 set reloc_section_created here.
1852 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1853 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1855 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1857 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1858 with `hplink->root.'.
1859 (elf32_hppa_check_relocs): Likewise.
1860 (elf32_hppa_gc_sweep_hook): Likewise.
1861 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1862 (hppa_handle_PIC_calls): Likewise.
1863 (elf32_hppa_size_dynamic_sections): Likewise.
1864 (elf32_hppa_set_gp): Likewise.
1865 (elf32_hppa_relocate_section): Likewise.
1866 (elf32_hppa_finish_dynamic_symbol): Likewise.
1867 (elf32_hppa_finish_dynamic_sections): Likewise.
1869 From David Huggins-Daines <dhd@linuxcare.com>
1870 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1871 defined weak symbols in shared links.
1872 (final_link_relocate): Calls to defined weak symbols in shared
1873 objects must go via import stubs, as the target might not be known
1876 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
1878 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1879 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1880 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
1881 the original entries with EMPTY_HOWTOs, and added new ones to fill
1883 (sh_elf_info_to_howto): Make sure the new gap isn't used.
1884 (sh_elf_relocate_section): Likewise.
1886 2000-09-13 Anders Norlander <anorland@acc.umu.se>
1888 * cpu-mips.c (arch_info_struct): Add mips:4K
1889 * bfd-in2.h (bfd_mach_mips4K): New define.
1890 * archures.c: Add bfd_mach_mips4K to comment.
1891 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1892 E_MIPS_ARCH_2 for bfd_mach_mips4K.
1894 2000-09-13 Marco Franzen <marcof@thyron.com>
1896 * som.c (som_write_symbol_strings): Do not used fixed buffers,
1897 use size_t as a counter.
1898 (som_write_space_strings): Similarly.
1900 2000-09-12 Jason Eckhardt <jle@cygnus.com>
1902 * elf32-i860.c (elf32_i860_relocate_pc26): New function
1904 (elf32_i860_relocate_section): Invoke new function from here.
1906 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1908 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1911 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1913 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1914 target section name instead of dumping core when the target symbol is
1917 2000-09-09 Kazu Hirata <kazu@hxi.com>
1919 * riscix.c: Remove DEFUN.
1921 2000-09-08 Nick Clifton <nickc@redhat.com>
1923 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1924 initialise flags in output bfd if the input bfd is the default
1925 architecture with the default flags.
1927 2000-09-08 Kazu Hirata <kazu@hxi.com>
1929 * archive.c: Fix formatting.
1930 * coff-arm.c: Likewise.
1931 * doc/chew.c: Likewise.
1933 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1935 * section.c (bfd_get_unique_section_name): Put a dot before the
1938 2000-09-07 Kazu Hirata <kazu@hxi.com>
1940 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1941 * elf.c: Fix formatting.
1943 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1945 * config.bfd (sh-*-linux*): Added.
1946 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1947 * targets.c: Declare them.
1948 * elf32-sh-lin.c: New file.
1949 * Makefile.am: Compile it.
1950 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1951 * configure, Makefile.in: Rebuilt.
1953 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1955 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1956 pseduo-section when determining where the TOC ends.
1958 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1959 output x_tvndx as it is only two bytes wide.
1961 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1962 reloc is 26 or 32 bits wide.
1964 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1965 for relocs that don't change anything. Also look at the full
1968 2000-09-06 Philip Blundell <philb@gnu.org>
1970 * config.bfd (arm*-*-uclinux*): New target.
1972 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1974 * configure: Rebuilt with new libtool.m4.
1976 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1978 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1979 word for variable name.
1980 * bfd-in2.h: Regenerate.
1982 2000-09-05 Nick Clifton <nickc@redhat.com>
1984 * config.in: Regenerate.
1985 * libbfd.h: Regenerate.
1986 * po/bfd.pot: Regenerate.
1987 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1990 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1992 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1994 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1996 Shared library and PIC support.
1997 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1998 (GOT_ENTRY_SIZE): New.
1999 (ELF_DYNAMIC_INTERPRETER): New.
2000 (STUB_SUFFIX): Define.
2001 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2002 (RELATIVE_DYNAMIC_RELOCS): Define.
2003 (enum elf32_hppa_stub_type): New.
2004 (struct elf32_hppa_stub_hash_entry): Rename offset to
2005 stub_offset. Add a number of new fields.
2006 (struct elf32_hppa_link_hash_entry): New.
2007 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2009 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2010 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2011 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2013 (hppa_link_hash_newfunc): New function.
2014 (elf32_hppa_link_hash_table_create): Use above function. Init new
2016 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2017 instead of addend, and remove sym_name from args. Don't use
2018 symbol name for local syms, instead use sym index.
2019 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2020 stub type rather than size. Pass in hash and handle import stub
2021 case. Also pass in reloc instead of offset so we can calculate
2022 PCREL22F and PCREL12F branches properly.
2023 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2024 import and export stubs too.
2025 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2026 import and export stub sizing.
2027 (elf32_hppa_check_relocs): New function.
2028 (elf32_hppa_adjust_dynamic_symbol): New function.
2029 (hppa_discard_copies): New function.
2030 (elf32_hppa_size_dynamic_sections): New function.
2031 (elf_backend_size_dynamic_sections): Define.
2032 (elf32_hppa_finish_dynamic_symbol): New function.
2033 (elf_backend_finish_dynamic_symbol): Define.
2034 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2035 some local vars into the link hash table too. For shared links,
2036 trundle over function syms, generating export stubs. Handle
2037 PCREL22F branches. Break out stub creation code from here..
2038 (hppa_add_stub): .. to here. New function.
2039 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2040 call the bfd linker. Use elf_gp to record global pointer.
2041 Calculate a value from sections if $global$ is missing.
2042 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2043 (elf32_hppa_gc_mark_hook): New function.
2044 (elf_backend_gc_mark_hook): Define.
2045 (elf32_hppa_gc_sweep_hook): New function.
2046 (elf_backend_gc_sweep_hook): Define.
2047 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2048 Add rel to args, and remove howto, input_bfd, offset, addend,
2049 sym_name as we can recalculate these locally. Handle calls to
2050 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2051 handling of undefined weak syms. Check that stubs are in range.
2052 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2053 message on hitting a DPREL21L reloc that needs fixing. Subtract
2054 off PC for PCREL14F. Break out code that does a stub lookup from
2056 (hppa_get_stub_entry): ..to here. New function.
2057 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2058 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2060 (elf32_hppa_finish_dynamic_sections): New function.
2061 (elf_backend_finish_dynamic_sections): Define.
2062 (elf_backend_final_write_processing) Define.
2063 (hppa_handle_PIC_calls): New function.
2064 (elf32_hppa_build_stubs): Call it. Pass link_info to
2065 hppa_build_one_stub.
2066 (elf32_hppa_create_dynamic_sections): New function
2067 to create .plt and .got then set .plt flags correctly.
2068 (elf_backend_create_dynamic_sections): Define.
2069 (elf32_hppa_object_p): New function.
2070 (elf_backend_object_p): Define.
2071 (elf32_hppa_elf_get_symbol_type): New function.
2072 (elf_backend_get_symbol_type): Define.
2073 (elf_backend_can_gc_sections): Define.
2074 (elf_backend_want_got_plt): Define.
2075 (elf_backend_plt_alignment): Set to 2.
2076 (elf_backend_plt_readonly): Define.
2077 (elf_backend_want_plt_sym): Define.
2078 (elf_backend_got_header_size): Reserve one entry.
2080 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2081 (elf32_hppa_size_stubs): Pass in multi_subspace.
2082 (elf32_hppa_set_gp): Declare.
2084 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2085 (bfd_get_unique_section_name): New function.
2086 * bfd-in2.h: Regenerate.
2088 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2089 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2092 From David Huggins-Daines <dhd@linuxcare.com>
2093 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2094 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2095 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2096 been updated in finish_dynamic_symbol before modifying function
2099 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2100 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2101 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2102 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2103 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2104 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2105 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2106 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2108 From David Huggins-Daines <dhd@linuxcare.com>
2109 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2110 style of local labels as well.
2112 2000-09-03 Philip Blundell <philb@gnu.org>
2114 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2115 references to undefined symbols in debugging sections.
2117 2000-09-02 H.J. Lu <hjl@gnu.org>
2119 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2120 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2121 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2124 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2126 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2127 (elf32_i860_is_local_label_name): New function and prototype.
2129 2000-09-02 Nick Clifton <nickc@redhat.com>
2131 * configure.in: Increase version number to 2.10.91.
2132 * configure: Regenerate.
2133 * aclocal.m4: Regenerate.
2134 * config.in: Regenerate.
2135 * po/bfd.pot: Regenerate.
2137 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2139 * elf.c (_bfd_elf_make_section_from_shdr): Add
2140 .gnu.linkobce.wi. to the list of debug section names.
2142 2000-09-02 Nick Clifton <nickc@redhat.com>
2144 * dwarf2.c (find_debug_info): New function: Locate a section
2145 containing dwarf2 debug information.
2146 (bfd_dwarf2_find_nearest_line): Find all sections containing
2147 debug information and include them in the stash.
2149 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2151 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2152 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2153 (sh_reloc_map): Add new relocs.
2154 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2155 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2156 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2157 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2159 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2160 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2161 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2162 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2163 New array constants.
2164 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2166 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2167 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2168 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2169 elf_sh_plt_reloc_offset): Define.
2170 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2171 elf_sh_link_hash_table): New structs.
2172 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2173 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2175 (elf_backend_create_dynamic_sections,
2176 bfd_elf32_bfd_link_hash_table_create,
2177 elf_backend_adjust_dynamic_symbol,
2178 elf_backend_size_dynamic_sections,
2179 elf_backend_finish_dynamic_symbol,
2180 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2181 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2182 elf_backend_got_header_size, elf_backend_plt_header_size):
2184 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2185 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2187 * bfd-in2.h, libbfd.h: Rebuilt.
2189 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2191 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2194 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2196 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2197 not initialized, set them to indicate the SH1 instruction set.
2199 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2201 * acinclude.m4: Include libtool and gettext macros from the
2203 * aclocal.m4, configure: Rebuilt.
2205 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2207 * elf.c: Eliminate references to __sparcv9 macro; replace with
2208 autoconf variables HAVE_PSINFO32_T etc.
2209 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2210 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2212 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2213 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2214 * aclocal.m4: Ditto.
2215 * configure: Regenerate.
2217 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2219 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2220 for any shared link, not just shared -Bsymbolic.
2221 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2222 any shared link, and pass link info to it.
2223 (elf_i386_size_dynamic_sections): Update comment.
2224 (elf_i386_discard_copies): Modify to discard relocs for symbols
2225 that have been forced local.
2226 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2227 that have been forced local.
2229 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2231 * elflink.h (elf_link_add_object_symbols): Allow common
2232 symbols to have an alignment of 1 if explicitly requested, and
2233 not overridden by other definitions.
2235 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2237 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2238 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2240 2000-08-22 H.J. Lu <hjl@gnu.org>
2242 * elf-bfd.h (elf_link_hash_table): Add runpath.
2244 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2245 * bfd-in2.h: Rebuilt.
2247 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2248 "runpath" field to NULL.
2249 (bfd_elf_get_runpath_list): New function.
2251 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2254 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2256 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2257 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2258 explicitly. Improve validation of r_type.
2260 2000-08-21 H.J. Lu <hjl@gnu.org>
2262 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2263 dynamic allocated content space. Add a comment to remind us that
2264 one day this ought to be fixed.
2265 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2266 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2267 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2269 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2271 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2272 field with the newly relocated value instead of adding it to the
2273 existing immediate field.
2274 (elf32_i860_relocate_splitn): Likewise.
2275 (elf32_i860_relocate_highadj): Likewise.
2277 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2279 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2280 was previously just a stub).
2282 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2284 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2286 (_bfd_elf_create_dynamic_sections): Likewise.
2288 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2290 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2291 for undefined symbols to be the beginning of the section.
2293 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2294 four extra entries at the beginning of the .rela.plt section.
2295 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2296 section to account for the four reserved entries in the .plt section.
2298 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2300 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2301 to the list of NOPs we recognize after a branch-and-link.
2302 Use the ori NOP when one is needed.
2304 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2307 2000-08-14 Jim Wilson <wilson@cygnus.com>
2309 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2310 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2311 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2314 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2316 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2318 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2320 * elf32-i860.c (elf32_i860_relocate_section): New function.
2321 (i860_final_link_relocate): New function.
2322 (elf32_i860_relocate_splitn): New function.
2323 (elf32_i860_relocate_pc16): New function.
2324 (elf32_i860_relocate_highadj): New function.
2325 (elf32_i860_howto): Minor adjustments to some relocations.
2326 (elf_info_to_howto_rel): Define.
2327 (elf_backend_relocate_section): Define.
2329 2000-08-10 Nick Clifton <nickc@cygnus.com>
2331 * elf32-arm.h: Fix formatting.
2333 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2335 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2337 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2339 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2341 2000-08-07 Kazu Hirata <kazu@hxi.com>
2343 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2344 * elf64-ia64.c: Fix a typo.
2346 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2348 * elf32-i860.c (elf32_i860_howto_table): New structure.
2349 (lookup_howto): New function.
2350 (elf32_i860_reloc_type_lookup): New function.
2351 (elf32_i860_info_to_howto_rela): New function.
2352 (elf_code_to_howto_index): New structure.
2353 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2354 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2355 elf32_i860_reloc_type_lookup.
2357 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2359 * som.c (struct fixup_format): Constify `format'.
2360 (som_hppa_howto_table): Use SOM_HOWTO macro.
2361 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2362 (som_bfd_reloc_type_lookup): Likewise.
2363 (compare_subspaces): Remove unused `count1', `count2'.
2364 (som_begin_writing): Remove unused `total_reloc_size'.
2365 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2366 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2367 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2368 (som_find_nearest_line): Decorate unused parameter(s).
2369 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2370 (som_bfd_link_split_section): Likewise.
2372 2000-08-03 Nick Clifton <nickc@cygnus.com>
2374 * section.c: Restore backed out code.
2375 * elf.c: Restore backed out code.
2376 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2377 binaries from working.
2378 * bfd-in2.h: Regenerate.
2380 2000-08-03 H.J. Lu <hjl@gnu.org>
2382 * section.c: Back out the change made by Nick Clifton
2383 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2385 * bfd-in2.h: Likewise.
2388 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2390 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2392 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2394 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2395 * bfd-in2.h, libbfd.h: Regenerate.
2397 2000-07-31 Nick Clifton <nickc@cygnus.com>
2399 * section.c (struct sec): Add new boolean field 'segment_mark'.
2400 (STD_SECTION): Initialise new field to zero.
2402 * bfd-in2.h: Regenerate.
2404 * elf.c (copy_private_bfd_data): Reorganise section to segment
2405 mapping to cope with moved sections requiring new segments,
2406 and overlapping segments.
2407 (SEGMENT_END): New macro: Return the end address of a segment.
2408 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2409 contains a section by comparing their VMA addresses.
2410 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2411 contains a section by comparing their LMA addresses.
2412 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2413 section should be included in a segment.
2414 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2415 follows another in memory.
2416 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2419 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2421 * cpu-i860.c: Added comments.
2423 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2424 bfd_elf32_i860_little_vec.
2425 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2426 (ELF_MAXPAGESIZE): Changed to 4096.
2428 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2430 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2432 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2433 config for little endian elf32 i860.
2434 (targ_defvec): Define for the new config above
2435 as "bfd_elf32_i860_little_vec".
2436 (targ_selvecs): Define for the new config above
2437 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2439 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2442 * configure: Regenerated.
2444 2000-07-27 H.J. Lu <hjl@gnu.org>
2446 * elflink.h (elf_merge_symbol): Take one more argument,
2447 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2448 entry. Don't overide the existing weak definition if dt_needed
2450 (elf_link_add_object_symbols): Pass dt_needed to
2451 elf_merge_symbol ().
2453 2000-07-27 Nick Clifton <nickc@cygnus.com>
2455 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2458 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2460 * configure.host (*-*-aix*): AIX has 'long long' always.
2462 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2463 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2464 (xcoff_write_archive_contents_big): Don't update the offset
2465 of the symbol table, xcoff_write_armap will do it.
2467 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2469 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2470 of dynobj for SGI_COMPAT checks.
2472 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2474 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2475 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2476 * bfd-in2.h: Regenerate.
2478 2000-07-21 Nick Clifton <nickc@cygnus.com>
2480 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2481 range symbol indices in relocs and issue an error message.
2483 2000-07-20 H.J. Lu <hjl@gnu.org>
2485 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2486 info->new_dtags when setting DT_FLAGS_1. It will only be set
2487 by the new linker options. It shouldn't break anything.
2489 2000-07-20 H.J. Lu <hjl@gnu.org>
2491 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2492 only if info->new_dtags is true.
2494 2000-07-20 H.J. Lu <hjl@gnu.org>
2496 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2497 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2499 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2501 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2502 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2503 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2504 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2505 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2506 * Makefile.in: Rebuild.
2507 * aclocal.m4: Rebuild.
2508 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2509 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2510 (bfd_cris_arch): Declare.
2511 (bfd_archures_list): Add bfd_cris_arch.
2512 * bfd-in2.h: Rebuild.
2513 * config.bfd: (cris-*-*): New target.
2514 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2515 * configure: Rebuild.
2516 * elf.c (prep_headers): Add bfd_arch_cris.
2517 * libbfd.h: Rebuild.
2518 * libaout.h (enum machine_type): Add M_CRIS.
2519 * reloc.c: Add CRIS relocations.
2520 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2521 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2522 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2523 * po/POTFILES.in, po/bfd.pot: Regenerate.
2525 2000-07-19 H.J. Lu <hjl@gnu.org>
2527 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2528 DF_TEXTREL if DT_TEXTREL is set.
2529 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2530 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2531 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2532 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2533 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2534 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2535 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2536 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2537 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2538 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2540 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2541 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2543 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2545 2000-07-19 H.J. Lu <hjl@gnu.org>
2547 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2548 * bfd-in2.h: Rebuild.
2550 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2551 (elf_dt_soname): New.
2553 * elf.c (bfd_elf_set_dt_needed_soname): New.
2555 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2556 entry if the shared object loaded by DT_NEEDED is used to
2557 resolve the reference in a regular object.
2559 2000-07-19 H.J. Lu <hjl@gnu.org>
2561 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2562 DT_DEPAUDIT and DT_AUDIT as strings.
2564 2000-07-19 Nick Clifton <nickc@cygnus.com>
2566 * format.c: Fix formatting.
2568 2000-07-19 H.J. Lu <hjl@gnu.org>
2570 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2572 2000-07-19 H.J. Lu <hjl@gnu.org>
2574 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2575 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2576 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2577 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2578 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2579 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2580 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2582 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
2584 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2585 renamed functions from here...
2586 (assign_section_numbers): Use renamed functions.
2587 (prep_headers): Use renamed functions.
2589 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2590 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2591 * bfd-in2.h: Regenerate.
2593 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
2595 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2596 parenthesis in if statement.
2598 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
2600 Enable the support for Traditional MIPS.
2601 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2602 return ict_none appropriately for traditional mips targets.
2603 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2604 (STUB_MOVE): Conditionalize for traditonal mips.
2605 (STUB_LI16): Likewise.
2606 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2607 room for RTPROC header.
2608 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2609 the permission for the PT_DYNAMIC as read, write and execute.
2610 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2611 for traditonal mips.
2612 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2613 _DYNAMIC_LINKING for traditonal mips.
2614 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2615 in case of traditonal mips.
2616 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2617 entry is required. For a function if PLT is not required then set the
2618 corresponding hash table entry to 0.
2619 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2621 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2622 shared object set the value to 0.
2623 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2624 _DYNAMIC_LINKING for traditonal mips.
2625 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2626 for traditonal mips.
2628 2000-07-15 H.J. Lu <hjl@gnu.org>
2630 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2632 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2634 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2635 out a structure that is BFD_IN_MEMORY.
2637 2000-07-11 Alan Modra <alan@linuxcare.com.au>
2639 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2640 bfd pointer. Print section id instead of bfd pointer for local
2641 syms. Prefix addend with `+' for global syms as well as local.
2642 Correct calculation of name component lengths.
2643 (elf64_hppa_check_relocs): Update call to get_dyn_name.
2645 From David Huggins-Daines <dhd@linuxcare.com>
2646 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2647 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2648 (elf64_hppa_modify_segment_map): Likewise.
2650 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2652 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2653 addresses to be "naturally" sign extended. Return -1 if unknown.
2654 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2655 * bfd-in2.h: Regenerate.
2657 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2659 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2660 and ECOF_SIGNED_64 to list ways to extract an offset.
2661 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2662 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2664 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2665 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2667 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
2669 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2670 bfd_get_start_address.
2671 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2672 (elf_swap_ehdr_out): Ditto.
2674 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
2676 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2677 compatibility with older binutils.
2679 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2681 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2682 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2684 From Ryan Bradetich <rbradetich@uswest.net>
2685 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2686 (parse_line_table): Ditto.
2687 (_bfd_dwarf1_find_nearest_line): Ditto.
2688 * syms.c (cmpindexentry): Remove extra `*' from params.
2690 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
2692 * elf32-mips.c (sort_dynamic_relocs): New Function.
2693 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2694 via qsort to sort the dynamic relocations in increasing r_symndx
2697 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2699 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2700 ATTRIBUTE_UNUSED to unused args.
2701 (get_opd): Likewise.
2702 (get_plt): Likewise.
2703 (get_dlt): Likewise.
2704 (get_stub): Likewise.
2705 (elf64_hppa_adjust_dynamic_symbol): Likewise.
2706 (elf64_hppa_link_output_symbol_hook): Likewise.
2707 (elf64_hppa_check_relocs): Delete unused var.
2708 (elf64_hppa_size_dynamic_sections): Likewise.
2709 (elf64_hppa_finalize_opd): Likewise.
2710 (elf64_hppa_finalize_dynreloc): Likewise.
2711 (elf64_hppa_modify_segment_map): Likewise.
2712 (elf64_hppa_finish_dynamic_sections): Likewise.
2714 * elf-hppa.h (elf_hppa_final_write_processing): Add
2715 ATTRIBUTE_UNUSED to unused args.
2716 (elf_hppa_final_link_relocate): Likewise.
2717 (elf_hppa_record_segment_addrs): Add paretheses.
2718 (elf_hppa_relocate_section): Constify dyn_name.
2720 From David Huggins-Daines <dhd@linuxcare.com>
2721 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2722 rearrange case statement so that it gets preferred to 32-bit ones.
2724 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2725 asection->id instead of address of asection structure.
2726 (elf32_hppa_size_stubs): Likewise.
2728 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2729 for .init* and .fini*.
2731 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2732 and addends used in stub names to 32 bits.
2733 (elf32_hppa_size_stubs): Likewise.
2735 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2736 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
2737 not bfd_put_64. Fix minor comment typo and formatting.
2739 Changes to create multiple linker stubs, positioned immediately
2740 before the section where they are required.
2741 * elf32-hppa.c: Don't include hppa_stubs.h.
2742 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2743 (elf32_hppa_stub_hash_table): Delete.
2744 (elf32_hppa_link_hash_entry): Delete.
2745 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2746 stub_hash_table, and store the struct here rather than a pointer.
2747 Delete output_symbol_count. Add offset array. Change
2748 global_value to a bfd_vma.
2749 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2750 (elf32_hppa_stub_hash_traverse): Delete.
2751 (elf32_hppa_name_of_stub): Delete.
2752 (elf32_hppa_link_hash_lookup): Delete.
2753 (elf32_hppa_link_hash_traverse): Delete.
2754 (elf32_hppa_stub_hash_table_init): Delete.
2755 (elf32_hppa_size_of_stub): Pass input section and offset rather
2756 than location and calculate location here. Don't pass name as all
2757 stubs are now the same size.
2758 (elf32_hppa_stub_hash_newfunc): Init new fields.
2759 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2761 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2762 comparing against ints. Rewrite stub handling code.
2763 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2764 Case enums to int before comparing against ints. Remove
2765 bfd_reloc_dangerous case.
2766 (elf32_hppa_build_one_stub): Rewrite.
2767 (elf32_hppa_size_one_stub): New function.
2768 (elf32_hppa_build_stubs): Rewrite.
2769 (elf32_hppa_size_stubs): Pass in linker call-back functions.
2770 Rewrite stub-handling specific code.
2772 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2774 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2776 * hppa_stubs.h: Delete.
2777 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2778 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2779 * Makefile.in: Regenerate.
2781 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2784 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2786 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2787 and section name for bfd_reloc_notsupported error message.
2788 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2789 bfd_reloc_notsupported.
2790 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2792 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2793 undefined weak symbols for all relocs.
2794 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2795 offsets are relative to one past the delay slot.
2796 (elf32_hppa_size_stubs): Account for reloc addend when calculating
2797 branch destination. Put addend into stub name too.
2798 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2799 adjust by 8 when deciding whether a linker stub is needed. Put
2800 addend into stub name as for above.
2802 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2803 various args and vars.
2804 (elf32_hppa_bfd_final_link_relocate): Here too.
2805 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
2806 inner block var to avoid shadowing.
2808 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
2810 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2811 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2812 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2814 * libhppa.h: Change practically all unsigned ints to plain ints.
2815 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
2818 From Ryan Bradetich <rbradetich@uswest.net>
2819 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2820 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2822 From David Huggins-Daines <dhd@linuxcare.com>
2823 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2824 to the new OP_* ones.
2826 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2827 error exit. Bail out earlier on plabel relocs that we aren't
2828 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
2829 string, and then don't free our copy.
2830 (elf32_hppa_build_one_stub): Make insn unsigned int.
2832 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2833 available with BL, not BE and BLE.
2835 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2836 code for elf arg relocs.
2837 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2838 argument with elf_link_hash_entry h. Handle undefined weak
2839 symbols. Move $global$ lookup from here...
2840 (elf32_hppa_relocate_section): ...to here. Return correct error
2841 message for non-handled relocs.
2842 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
2843 wrong test was -0x3ffff to +0x40000.
2845 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2846 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2847 Handle them as such.
2848 (elf_hppa_relocate_insn): Fix a typo.
2850 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2851 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2852 assemble_17, assemble_21): Delete.
2853 Supply defines for all 64 possible opcodes.
2854 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2855 formats. Handle COMICLR.
2856 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
2859 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2860 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2861 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2863 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
2864 the local syms - did this code get deleted accidentally? Ignore
2865 undefined and undefweak syms.
2867 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2868 block. Use it instead of elf64_hppa_hash_table (info).
2869 (elf_hppa_final_link_relocate): Use hppa_info instead of
2870 elf64_hppa_hash_table (info).
2872 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2873 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2874 (hppa_rebuild_insn): Mask immediate bits here instead.
2875 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2877 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2879 * section.c (struct sec): Add id field. Tidy comment formatting.
2880 (bfd_make_section_anyway): Set id.
2881 (STD_SECTION): Init id too.
2882 Change CONST to const throughout.
2883 * archures.c (bfd_arch_info): Tidy comment.
2884 (bfd_arch_list): Change a CONST to const.
2885 * libbfd-in.h: Tidy comments and replace CONST with const.
2886 * elf-bfd.h: Likewise.
2887 * libbfd.h: Regenerate.
2888 * bfd-in2.h: Regenerate.
2889 * libcoff.h: Regenerate.
2891 2000-07-07 DJ Delorie <dj@redhat.com>
2893 * archive.c (_bfd_write_archive_contents): Add an informative
2896 2000-07-06 Kazu Hirata <kazu@hxi.com>
2898 * srec.c: Fix formatting.
2900 2000-06-05 DJ Delorie <dj@redhat.com>
2904 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
2906 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2907 value of PC-relative offsets.
2909 2000-07-03 Jim Wilson <wilson@cygnus.com>
2911 * elf64-alpha.c (alpha_elf_size_info): New.
2912 (elf_backend_size_info): Define to alpha_elf_size_info.
2913 * elfcode.h (elf_size_info): Change hash bucket size to 4.
2915 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2917 * elf32-mips.c: Include elf32-target.h again for the traditional
2920 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2922 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2923 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2924 (avr_info_to_howto_rela): Likewise.
2925 (elf32_avr_gc_mark_hook): Likewise.
2926 (elf32_avr_gc_sweep_hook): Likewise.
2927 (elf32_avr_relocate_section): Likewise.
2929 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2931 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2932 an external symbol for a non-shared, non-relocatable link.
2934 2000-07-03 Nick Clifton <nickc@redhat.com>
2936 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2937 is an external symbol.
2938 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2941 2000-07-03 Kazu Hirata <kazu@hxi.com>
2943 * reloc16.c: Fix formatting.
2945 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2947 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2948 to add a new target for traditional mips i.e
2949 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2950 * configure.in: Likewise.
2951 * configure: Rebuild.
2952 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2954 (bfd_elf32_tradlittlemips_vec): Likewise.
2955 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2956 to see that elfNN_bed does not get redefined even if the target file
2957 is included twice for a chip. See elf32-mips.c.
2959 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2961 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2962 (CLEANFILES): Add DEPA.
2963 * Makefile.in: Regenerate.
2965 2000-06-30 DJ Delorie <dj@cygnus.com>
2967 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2968 can't assume the PE header is at 0x80.
2970 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2972 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2974 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2976 * go32stub.h: Update stub.
2978 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2980 * archures.c (bfd_mach_avr5): Define.
2981 * bfd-in2.h (bfd_mach_avr5): Define.
2982 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2983 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2984 (compatible): Update comment. Add missing test.
2985 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2986 for avr2 and avr4. Simplify 8K wrap code.
2987 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2988 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2990 2000-06-26 Kazu Hirata <kazu@hxi.com>
2992 * coff-h8300.c: Fix formatting.
2993 * cpu-h8300.c: Likewise.
2995 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2997 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2998 for local symbols whose names are unknown.
3000 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3002 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3004 * Makefile.in: Regenerate.
3005 * doc/Makefile.in: Regenerate.
3007 2000-06-20 H.J. Lu <hjl@gnu.org>
3009 * Makefile.am: Rebuild dependency.
3010 * Makefile.in: Rebuild.
3012 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3014 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3015 (elf_backend_copy_indirect_symbol): Map to the new function.
3017 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3019 * archive.c (normalize): Correct pointer comparison when checking
3021 (bfd_bsd_truncate_arname): Likewise.
3022 (bfd_gnu_truncate_arname): Likewise.
3024 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3026 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3027 sections elf_{text,data}_{section,symbol}.
3028 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3029 (_bfd_mips_elf_hide_symbol): New function.
3030 (elf_backend_hide_symbol): Map to the new function.
3031 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3032 definitions of mips_elf_{text,data}_{section,symbol}.
3033 (mips_elf_local_relocation_p): Try to find the direct symbol
3034 based on new check_forced argument.
3035 (mips_elf_calculate_relocation): Use new version of
3036 mips_elf_local_relocation_p.
3037 (mips_elf_relocate_section): Likewise.
3038 (_bfd_mips_elf_relocate_section): Likewise.
3039 (mips_elf_sort_hash_table): Only assert that have enough GOT
3041 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3042 entry if the relocation based on the new external argument.
3043 (mips_elf_create_dynamic_relocation): Assert that we have a
3044 section contents allocated where we can swap out the dynamic
3046 (mips_elf_calculate_relocation): Find the real hash-table entry
3047 correctly by using h->root.root.type. Only create a dynamic
3048 relocation entry if the symbol is defined in a shared library.
3049 Create an external GOT entry for the GOT16 relocation if the
3050 symbol was forced local.
3051 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3052 dynamic index if the symbol was forced local.
3054 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3056 * elf32-mips.c: Fix typos in comments.
3058 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3060 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3063 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3065 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3066 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3067 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3068 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3069 (bfd_elf32_m68hc11_vec): Likewise.
3070 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3071 Supports 68hc11 & 68hc12 at the same time.
3072 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3074 (bfd_elf32_m68hc11_vec): Likewise.
3075 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3076 * archures.c (bfd_m68hc12_arch): Define and register in global list
3077 (bfd_m68hc11_arch): Likewise.
3078 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3079 BFD_RELOC_M68HC11_3B): Define.
3080 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3081 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3083 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3085 * elf_bfd.h (struct elf_backend_data): Add info argument to
3086 elf_backend_hide_symbol.
3087 (_bfd_elf_link_hash_hide_symbol): Likewise.
3088 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3089 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3090 * elflink.h (elf_link_add_object_symbols): Likewise.
3091 (elf_link_assign_sym_version): Likewise.
3093 2000-06-18 H.J. Lu <hjl@gnu.org>
3095 * coff-i386.c (coff_i386_reloc): Don't return in case of
3096 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3097 Compensate PE relocations when linking with non-PE object
3098 files to generate a non-PE executable.
3100 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3102 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3103 GOT entries if we're doing a static link or -Bsymbolic link.
3105 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3107 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3108 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3110 (elf_link_output_relocs): Likewise.
3111 (elf_reloc_link_order): Likewise.
3113 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3115 * archures.c (enum bfd_architecture): #define constants for
3116 PowerPc and RS6000 machine numbers.
3117 * bfd-in2.h: Regenerate.
3118 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3119 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3120 and RS6000 machine numbers using #defined constants from
3122 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3123 machine numbers using #defined constants from archures.c. Add
3124 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3125 64-bit words in 620 entry.
3126 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3128 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3130 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3132 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3133 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3134 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3136 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3138 * bfd-in.h (bfd_family_coff): Define.
3139 * bfd-in2.h: Regenerate.
3140 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3141 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3142 instead of bfd_target_coff_flavour.
3143 * cofflink.c (_bfd_coff_final_link): Likewise.
3144 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3145 exclude XCOFF files.
3146 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3148 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3149 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3150 * xcofflink.c (XCOFF_XVECP): Delete.
3151 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3152 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3153 bfd_xcoff_record_link_assignment,
3154 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3155 check for bfd_target_xcoff_flavour.
3157 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3159 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3161 (read_hdr): New function.
3162 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3163 of trying to extract individual registers. Set abfd->arch_info
3164 to match the architecture that created the core file.
3165 (rs6000coff_get_section_contents): Delete.
3166 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3168 2000-06-14 H.J. Lu <hjl@gnu.org>
3170 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3173 2000-06-13 H.J. Lu <hjl@gnu.org>
3175 * configure: Regenerate.
3177 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3179 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3182 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3184 * configure.in (VERSION): Update to show this is the CVS mainline.
3186 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3188 * elf32-d10v.c: Include elf/d10v.h
3189 (enum reloc_type): Delete.
3190 * elf32-d30v.c: Include elf/d30v.h
3191 (enum reloc_type): Delete.
3193 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3194 * Makefile.in: Regenerate.
3196 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3197 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3198 move HOWTOs into elf_howto_table.
3199 (R_386_standard, R_386_ext_offset): Define.
3200 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3201 (elf_i386_reloc_type_lookup): Modify calculation of index into
3202 elf_howto_table since we've removed the padding.
3203 (elf_i386_info_to_howto_rel): Likewise.
3204 (elf_i386_relocate_section): Likewise.
3206 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3208 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3210 2000-06-05 H.J. Lu <hjl@gnu.org>
3212 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3213 an error when seeing an undefined symbol with hidden/internal
3214 attribute. It is handled in *_relocate_section ().
3216 2000-06-05 H.J. Lu <hjl@gnu.org>
3218 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3219 indirect symbol for the ELF_LINK_NON_ELF bit.
3220 (elf_link_output_extsym): Don't output the indirect symbol even
3221 if the ELF_LINK_NON_ELF bit is set.
3223 2000-06-01 J.T. Conklin <jtc@redback.com>
3225 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3226 (i[3456]86-*-netbsdaout*): New target.
3227 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3228 (i[3456]86-*-openbsd*): Likewise.
3230 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3232 * trad-core.c: From hpux-core.c, include <dirent.h> or
3233 <sys/ndir.h> when possible.
3235 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3237 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3238 definitions. We must not assume they are sorted in the file
3239 according to their index numbers.
3241 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3243 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3244 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3245 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3247 2000-05-30 Nick Clifton <nickc@cygnus.com>
3249 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3250 80960CA, 80960MC as valid machine names.
3252 2000-05-30 H.J. Lu <hjl@gnu.org>
3254 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3255 visibility bits if the symbol is undefined. Correctly handle
3256 weak undefined symbols with hidden and internal attributes.
3258 * elflink.h (elf_link_add_object_symbols): Always turn the
3259 symbol into local if it has the hidden or internal attribute.
3261 2000-05-29 Philip Blundell <philb@gnu.org>
3263 * ppcboot.c: Add packed attribute if compiling with GCC.
3265 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3267 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3269 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3271 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3272 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3273 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3276 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3278 * Makefile.am: Update dependencies with "make dep-am"
3279 * Makefile.in: Regenerate.
3281 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3282 bindtextdomain): Replace defines with those from intl/libgettext.h
3283 to quieten gcc warnings.
3285 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3287 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3289 * archive.c (normalize, bfd_bsd_truncate_arname,
3290 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3291 file names with backslashes.
3293 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3296 * sysdep.h: Include filenames.h.
3298 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3300 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3302 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3304 * elf64-sparc.c (sparc64_elf_relax_section): New.
3305 (sparc64_elf_relocate_section): Optimize tail call into branch always
3307 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3308 (elf32_sparc_relax_section): New.
3310 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3312 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3313 Remove unusued variables.
3314 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3315 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3316 previous fix, so that shared libs really don't influence targets
3317 extension mask and memory model.
3319 2000-05-23 H.J. Lu <hjl@gnu.org>
3321 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3322 h->root.other not h->other.
3323 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3325 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3327 2000-05-23 H.J. Lu <hjl@gnu.org>
3329 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3330 undefined symbol with the non-default visibility attributes.
3331 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3332 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3333 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3334 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3335 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3336 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3337 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3338 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3339 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3340 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3341 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3343 2000-05-22 Richard Henderson <rth@cygnus.com>
3345 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3346 PCREL22, PCREL64I. Zero size of special relocs.
3347 (elf64_ia64_reloc_type_lookup): Likewise.
3348 (USE_BRL, oor_brl, oor_ip): New.
3349 (elf64_ia64_relax_section): New.
3350 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3351 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3352 (elf64_ia64_relocate_section): Likewise.
3353 (bfd_elf64_bfd_relax_section): New.
3354 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3355 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3356 * bfd-in2.h, libbfd.h: Regenerate.
3358 2000-05-22 Nick Clifton <nickc@cygnus.com>
3360 * configure.in : Add peigen.lo to MIPS PE targets.
3361 * configure: Regenerate.
3363 2000-05-22 Momchil Velikov <velco@fadata.bg>
3365 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3366 only if it is known for both input and output bfds. Separate
3367 error message strings as in some languages, it may be necessary
3368 to change more than one place in the string to change between
3371 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3372 endianess checks, call _bfd_generic_verify_endian_match() instead.
3374 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3376 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3378 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3379 endianess before checking bfd flavours.
3381 2000-05-22 H.J. Lu <hjl@gnu.org>
3383 * elflink.h (elf_link_output_extsym): Clear the visibility
3384 field for symbols not defined locally.
3386 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3388 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3389 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3390 (hppa_rebuild_insn): Mask immediate bits here instead.
3391 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3393 2000-05-18 Momchil Velikov <velco@fadata.bg>
3395 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3396 relocs for an executable, ensure that they are virtual addresses.
3398 2000-05-18 Jeffrey A Law (law@cygnus.com)
3400 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3402 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3403 Rick Gorton <gorton@scrugs.lkg.dec.com>
3405 * elflink.h: Add emitrelocations support: when enabled, relocation
3406 information and relocation sections are put into final output
3407 executables. If the emitrelocations flag is set, do the following:
3408 (elf_bfd_final_link): Emit relocation sections.
3409 (elf_link_input_bfd): Compute relocation section contents.
3410 (elf_gc_sections): Don't clean relocation sections.
3412 2000-05-16 Catherine Moore <clm@cygnus.com>
3414 * som.c (som_decode_symclass): Recognize weak symbols.
3416 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3418 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3419 read idata section only from dataoff.
3420 (pe_print_edata): Correctly check for valid eat_member.
3422 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3424 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3426 2000-05-14 Philip Blundell <philb@gnu.org>
3428 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3430 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3432 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3434 * peigen.c (pe_print_idata): Look for .idata section and print
3435 info even if data directory has zero entries. Read idata section
3436 starting from dataoff, and adjust all data offsets to suit. Cast
3437 all bfd_vma vars to unsigned long before passing to fprintf.
3438 * peigen.c (pe_print_edata): Similarly, look for .edata section
3439 and print info even if data directory has zero entries. Cast
3440 all bfd_vma vars to unsigned long before passing to fprintf.
3442 From Szabolcs Szakacsits <szaka@F-Secure.com>
3443 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3444 directory size which may be bogus.
3445 * peigen.c (pe_print_edata): Similarly.
3447 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3449 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3451 (copy_private_bfd_data): Allow for space possibly taken up by elf
3452 headers when calculating segment physical address from lma.
3454 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3456 * versados.c (versados_scan): Init stringlen and pass_2_done.
3458 * trad-core.c (trad_unix_core_file_p): Return
3459 bfd_error_wrong_format rather than bfd_error_file_truncated.
3461 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3462 add_data_entry. DataDirectory virtual address is relative.
3463 (pe_print_idata): Account for relative DataDirectory virtual
3464 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3465 (pe_print_edata): Similarly.
3467 From Szabolcs Szakacsits <szaka@F-Secure.com>
3468 * peigen.c (dir_names): Add Delay Import Directory.
3469 (pe_print_idata): Always search for bfd section containing
3470 idata address rather than looking up section name. Print this
3471 section name rather than .idata.
3472 (pe_print_edata): Similarly. Also print some fields as %08lx.
3473 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3476 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3478 * xcoff.h: Rename to xcoff-target.h
3479 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3480 * coff-rs6000.c: Ditto.
3481 * coff64-rs6000.c: Ditto.
3482 * coff-pmac.c: Ditto.
3483 * Makefile.in: Regenerate.
3485 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3487 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3488 Change U802TOC64MAGIC to U803XTOCMAGIC.
3490 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3492 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3493 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3494 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3496 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3498 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3500 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3502 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3503 hidden and internal symbols.
3504 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3506 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3507 assign a PLT or GOT entry to symbols with hidden and
3508 internal visibility.
3510 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3512 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3514 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3516 2000-05-02 H.J. Lu <hjl@gnu.org>
3518 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3521 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3523 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3524 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3526 * Makefile.in: Regenerate.
3528 2000-05-01 Jim Wilson <wilson@cygnus.com>
3530 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3531 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3532 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3533 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3534 * Makefile.in: Rebuild.
3536 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3538 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3539 doesn't work very well.
3541 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3542 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3543 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3544 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3545 (elf_hppa_info_to_howto): Likewise.
3546 (elf_hppa_info_to_howto_rel): Likewise.
3547 (elf_hppa_reloc_type_lookup): Likewise.
3548 (elf_hppa_is_local_label_name): Likewise.
3549 (elf_hppa_fake_sections): Likewise.
3550 (elf_hppa_final_write_processing): Likewise.
3551 (elf_hppa_howto_table): Fully initialise all entries.
3552 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3553 (elf_hppa_info_to_howto): Likewise.
3554 (elf_hppa_info_to_howto_rel): Likewise.
3555 (elf_hppa_reloc_type_lookup): Likewise.
3556 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3557 elf_hppa_unmark_useless_dynamic_symbols,
3558 elf_hppa_remark_useless_dynamic_symbols,
3559 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3560 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3561 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3562 elf32-hppa.c mess is cleaned up.
3563 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3564 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3565 r_field then call hppa_field_adjust inline func with variable
3566 r_field arg, instead call hppa_field_adjust with fixed arg.
3567 In case R_PARISC_PCREL22F, don't set r_field.
3568 (elf_hppa_relocate_insn): Change args and return type to unsigned
3569 int. Call re_assemble_* funcs to do the work.
3571 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3574 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3576 (sign_extend): Mask first before sign extending.
3577 (low_sign_extend): Rewrite without condition expression.
3578 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3579 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3580 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3581 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3582 result as function return value rather than through pointer arg.
3583 Accept unsigned int args, and return unsigned int.
3584 (re_assemble_3): New. Combines function of dis_assemble_3 with
3585 re-assembly of opcode and immediate.
3586 (re_assemble_12): Likewise.
3587 (re_assemble_16): Likewise.
3588 (re_assemble_17): Likewise.
3589 (re_assemble_21): Likewise.
3590 (re_assemble_22): Likewise.
3591 (hppa_field_adjust): Rewrite and document, paying attention to
3592 size of types and signed/unsigned issues.
3593 (get_opcode): Shift before masking.
3594 (FDLW): Rename to FLDW.
3595 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
3596 (hppa_rebuild_insn): Change args and return value to unsigned
3597 int. Make use of re_assemble_*. Correct case 11.
3599 * dep-in.sed: Handle ../opcodes/.
3600 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3601 elf64-hppa.h, hppa_stubs.h, xcoff.h.
3602 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3603 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3604 elfarm-nabi.lo dependencies outside of auto-dependency area.
3605 Regenerate dependencies.
3606 * Makefile.in: Regenerate.
3608 * configure.in (TRAD_HEADER): Test non-null before
3610 * configure: Regenerate.
3612 * reloc.c: Fix mis-spelling in comment.
3614 2000-05-01 Alan Modra <alan@linuxcare.com.au>
3616 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3617 * vms.c (vms_openr_next_archived_file): Return NULL.
3619 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3621 * coffcode.h Copy changes mistakenly done to libcoff.h in
3624 2000-04-29 Andreas Jaeger <aj@suse.de>
3626 * libbfd-in.h: Correctly check GCC version.
3627 * bfd-in.h: Likewise.
3628 * libhppa.h: Likewise.
3629 * libbfd.h: Regenerate.
3630 * bfd-in2.h: Regenerate.
3632 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3634 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3635 coffdu-rs6000.{lo,c}.
3636 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3638 * Makefile.in: Regenerate.
3639 * xcoff.h: New file.
3640 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3641 * coff-rs6000.c: Move all declarations and defines that are
3642 common to the xcoff backends into xcoff.h
3643 * coff64-rs6000.c: Ditto,
3645 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3647 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
3648 _bfd_coff_force_symnames in strings and
3649 _bfd_coff_debug_string_prefix_length to their default values.
3650 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3652 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
3654 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3655 _bfd_coff_force_symnames in strings and
3656 _bfd_coff_debug_string_prefix_length to their default values.
3658 2000-04-27 Alan Modra <alan@linuxcare.com.au>
3660 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
3661 Check local_got_refcounts before dereferencing.
3663 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3664 before deciding we don't need R_PPC_PLT32 relocation.
3665 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3668 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3670 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3672 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3673 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3674 (elf_i386_relocate_section): Allow for .plt to go missing.
3675 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3676 can use a relative reloc for got as elf_i386_relocate_section.
3677 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3679 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
3681 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3683 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
3685 * Makefile.am (coff64-rs6000.lo): New rule.
3686 * Makefile.in: Regenerate.
3687 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3688 xcoff_is_local_label_name, xcoff_rtype2howto,
3689 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3690 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3691 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3692 (NO_COFF_SYMBOLS): Define.
3693 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3694 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3696 (MINUS_ONE): New macro.
3697 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3699 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3700 coff_SWAP_aux_out): Map to the new functions.
3701 * coff64-rs6000.c: New file.
3702 * libcoff.h (bfd_coff_backend_data): Add new fields
3703 _bfd_coff_force_symnames_in_strings and
3704 _bfd_coff_debug_string_prefix_length.
3705 (bfd_coff_force_symnames_in_strings,
3706 bfd_coff_debug_string_prefix_length): New macros for above fields.
3707 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3708 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
3709 of using coff_swap_sym_in directly.
3710 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3711 (coff_set_flags) Set magic for XCOFF64.
3712 (coff_compute_section_file_positions): Add symbol name length to
3713 string section length if bfd_coff_debug_string_prefix_length is
3715 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3716 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3717 using coff_swap_lineno_in directly.
3718 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3719 and _bfd_coff_debug_string_prefix_length fields.
3720 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3721 symbol names into strings table when
3722 bfd_coff_force_symnames_in_strings is true.
3723 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3724 SET_RELOC_VADDR): New macros.
3725 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3726 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3728 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3729 changes within RS6000COFF_C specific code.
3730 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3731 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3732 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3733 Extend existing hack on target name.
3734 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3736 * coff-tic54x.c (ticof): Keep up to date with new fields
3737 in bfd_coff_backend_data.
3738 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3739 targ_selvecs to include rs6000coff64_vec for rs6000.
3740 * configure.in: Add rs6000coff64_vec case.
3741 * cpu-powerpc.c: New bfd_arch_info_type.
3743 2000-04-24 Jeffrey A Law (law@cygnus.com)
3745 * config.bfd: Only disable elf32-hppa vectors, not all of the
3746 BSD and OSF configuration support. Provide (disabled) clauses
3748 * configure.in: Add clause for PA64 support.
3749 * configure: Rebuilt.
3751 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3752 (bfd_elf64_hppa_vec): Declare.
3754 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3755 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3756 (elf64-hppa.lo): Add dependencies.
3757 * Makefile.in: Rebuilt.
3759 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3761 2000-04-24 Jason Eckhardt <jle@cygnus.com>
3763 * libhppa.h (dis_assemble_16): New function.
3764 (pa_arch): Added pa20w element.
3766 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
3768 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3769 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3770 bfd_elf64_slurp_reloc_table.
3772 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3773 definitions to get external names.
3774 (elf_write_relocs): Renamed from write_relocs and make global.
3775 (elf_slurp_reloc_table): Make global.
3776 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3778 * archive.c (hpux_uid_gid_encode): New function.
3779 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3780 defined and the ID is greater than 99999.
3781 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3782 special uid/gid fields into 32 bit values.
3784 2000-04-21 Matthew Green <mrg@cygnus.com>
3786 * config.bfd: Add NetBSD/sparc64 support.
3788 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
3789 David Mosberger <davidm@hpl.hp.com>
3790 Timothy Wall <twall@cygnus.com>
3791 Jim Wilson <wilson@cygnus.com>
3793 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3794 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3795 (BFD64_BACKENDS): Add elf64-ia64.lo.
3796 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3797 (cpu-ia64.lo, elf64-ia64.lo): New rules.
3798 * Makefile.in: Rebuild.
3799 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3800 (bfd_ia64_arch): Declare.
3801 (bfd_archures_list): Add bfd_ia64_arch.
3802 * bfd-in2.h: Rebuild.
3803 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3804 * configure: Rebuild.
3805 * configure.host: (ia64-*-linux*): New host.
3806 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3807 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3808 * elf.c (prep_headers): Add bfd_arch_ia64.
3809 * libbfd.h: Rebuild.
3810 * reloc.c: Add IA-64 relocations.
3811 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3813 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3814 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3816 2000-04-21 Richard Henderson <rth@cygnus.com>
3818 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3819 contents when performing a partial link.
3820 (bfd_elf_d30v_reloc_21): Likewise.
3822 2000-04-20 H.J. Lu <hjl@gnu.org>
3824 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3825 patch to symbols defined by a shared object.
3826 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3828 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3831 * dwarf2.c (concat_filename): Avoid string literal concatenation.
3832 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3834 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
3836 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3837 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3838 (coff-ia64.lo): Add dependency.
3839 * Makefile.in: Regenerate.
3840 * coff-ia64.c: New file.
3841 * efi-app-ia32.c: Ditto.
3842 * efi-app-ia64.c: Ditto.
3843 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3844 (coff_set_flags): Ditto.
3845 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3846 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3847 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3848 * configure: Regenerate.
3849 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3850 (PUT_OPTHDR_IMAGE_BASE): Ditto.
3851 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3852 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3853 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3854 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3855 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3856 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3857 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3858 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3859 (GET_PDATA_ENTRY): Ditto.
3860 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3861 data_start. Use above macros to read fields that are 64 bit wide for
3862 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
3863 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3864 FileAlignment and SectionAlignment to minimum alignment if they
3866 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3867 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3868 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3869 Use above macros to write fields that are 64 bit wide for
3871 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3872 5*4 otherwise. This should be right for IA-32 and IA-64, but may
3873 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
3874 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
3875 begin address, end address, and unwind info address only. Use
3876 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
3878 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3879 HIGH3ADJ relocation names.
3880 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3881 * targets.c: Declare bfd_efi_app_ia32_vec and
3882 bfd_efi_app_ia64_vec.
3883 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3884 bfd_efi_app_ia64_vec.
3886 2000-04-17 Timothy Wall <twall@cygnus.com>
3888 * bfd-in2.h: Add prototypes for tic54x load page access.
3889 * bfd-in.h: Regenerate.
3890 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3891 in customized _set_arch_mach function.
3892 * coffcode.h (coff_set_alignment_hook): Set section load page if
3893 the appropriate macro is defined.
3894 (write_object_contents): Read section load page.
3896 2000-04-13 Alan Modra <alan@linuxcare.com.au>
3898 * elf32-hppa.h: Update copyright date.
3900 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3901 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3903 * elf32-d30v.c (MAX32): Don't use LL suffix.
3904 (MIN32): Define in terms of MAX32.
3905 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3907 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3910 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3912 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3914 * dep-in.sed: Match space before file name, not after.
3915 * Makefile.am: Regenerate dependencies.
3916 * Makefile.in: Regenerate.
3918 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3919 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3920 extend without an if statement.
3922 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3924 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3926 * elf32-mips.c (gprel16_with_gp): Likewise.
3927 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3928 here using -0x40000, not (int)0xfffc0000.
3929 (elf32_hppa_size_of_stub): Likewise.
3931 2000-04-11 Timothy Wall <twall@cygnus.com>
3933 * coff-tic54x.c: Now builds with all targets.
3934 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3935 * Makefile.in: Regenerate.
3936 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3937 unitialized variable.
3939 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3941 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3942 --enable-build-warnings option.
3943 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3944 * Makefile.in, configure: Re-generate.
3946 2000-04-07 Nick Clifton <nickc@cygnus.com>
3948 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3949 BFD_RELOC_THUMB_PCREL_BLX.
3951 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3952 R_ARM_XPC25 and R_ARM_THM_PC22.
3954 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3955 R_ARM_XPC25 and R_ARM_THM_XPC22.
3956 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3957 R_ARM_[XPC25|THM_XPC22].
3959 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3960 elf/arm-oabi.h to elf/arm.h
3962 * Makefile.am: Fix dependency for elfarm-oabi.c
3963 * Makefile.in: Regenerate.
3965 * bfd-in2.h: Regenerate.
3966 * libbfd.h: Regenerate.
3968 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3970 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3971 and restore it on failure. Release newly allocated tdata on
3974 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3976 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3977 (decode_line_info): Set it. Report error if unit->line_offset is
3978 equal to or larger than it.
3980 2000-04-07 Timothy Wall <twall@cygnus.com>
3982 * targets.c: Added vecs for tic54x.
3983 * reloc.c: Added relocs for tic54x.
3984 * libbfd.h: Regenerated.
3985 * configure: Add TI COFF vecs for tic54x.
3986 * configure.in: Ditto.
3987 * config.bfd (targ_cpu): Recognize new tic54x target.
3988 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3989 * bfd-in2.h: Add tic54x target and relocations.
3990 * Makefile.am, Makefile.in: Add tic54x target.
3991 * archures.c (bfd_archures_list): Add tic54x target.
3992 * coff-tic54x.c: New.
3993 * cpu-tic54x.c: New.
3995 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3997 * elfcore.h (elf_core_file_p): call backend_object_p which
3998 thereby gets an opportunity to update the arch/machine type.
4000 2000-04-06 Timothy Wall <twall@cygnus.com>
4002 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4003 class. Handle SEC_CLINK and SEC_BLOCK flags.
4004 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4005 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4007 2000-04-06 Nick Clifton <nickc@cygnus.com>
4009 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4010 EF_INTERWORK if this is an unknown EABI.
4011 (elf32_arm_merge_private_bfd_data): Check EABI version
4012 numbers. Only check EF_xxx flags if the EABI version number
4014 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4015 if the EABI version number is unknown.
4016 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4017 if the EABI version number is unknown.
4019 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4021 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4022 BFD_RELOC_SH_LOOP_END.
4023 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4024 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4025 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4026 (sh_elf_reloc_loop): New function.
4027 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4029 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4030 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4031 * bfd-in2.h, libbfd.h: Regenerate.
4033 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4035 * po/bfd.pot: Regenerate.
4037 * Makefile.am: Remove extraneous mkdep comment.
4038 (MKDEP): Use gcc -MM rather than mkdep.
4039 (DEP): Quote when passing vars to sub-make. Add warning
4041 (DEP1): Rewrite for "gcc -MM".
4042 (CLEANFILES): Add DEP2.
4043 Update dependencies.
4044 * Makefile.in: Regenerate.
4046 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4048 * configure.in: Added corefile support for AIX 4.3. In particular,
4049 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4050 compiling rs6000-core.c.
4051 * configure: Regenerated.
4053 2000-04-03 H.J. Lu <hjl@gnu.org>
4055 * cache.c (bfd_open_file): Unlink the output file only if
4056 it has non-zero size.
4058 2000-04-01 Ken Block USG <block@zk3.dec.com>
4060 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4061 relative relocations for non-loaded sections in shared objects.
4062 (elf64_alpha_check_relocs): Similarly.
4064 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4066 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4067 BFD_RELOC_16 to switch for extended relocs.
4068 (MY_swap_ext_reloc_in): New.
4069 (MY_swap_ext_reloc_out): New.
4070 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4071 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4072 (NAME(aout,squirt_out_relocs)): Similarly use
4073 MY_swap_ext_reloc_out.
4074 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4076 2000-04-03 Kazu Hirata <kazu@hxi.com>
4078 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4079 the R_PCRWORD_B case.
4081 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4083 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4087 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4089 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4090 HOWTO references to bfd_elf_generic_reloc, that have
4091 partial_inplace == true, now use the new function. The function
4092 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4093 extends its fixes to the R_M32R_{16,24,32} relocs.
4094 The new logic in m32r_elf_lo16_reloc() has been removed, and
4095 it instead calls the new routine to obtain that functionality.
4097 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4099 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4100 elf32_avr_check_relocs, avr_final_link_relocate,
4101 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4102 elf32_avr_object_p): Add prototypes.
4103 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4104 (bfd_elf_avr_final_write_processing): Make static.
4106 2000-03-27 Denis Chertykov <denisc@overta.ru>
4108 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4109 * archures.c (bfd_architecture): Add AVR architecture.
4110 (bfd_archures_list): Add reference to AVR architecture info.
4111 * elf.c (prep_headers): Handle bfd_arch_avr.
4112 * reloc.c: Add various AVR relocation enums.
4113 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4115 * Makefile.am: Add support for AVR elf.
4116 * configure.in: Likewise.
4117 * config.bfd: Likewise.
4118 * Makefile.in: Regenerate.
4119 * configure: This too.
4120 * bfd-in2.h: And this.
4121 * libbfd.h: And this.
4123 2000-03-24 H.J. Lu <hjl@gnu.org>
4125 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4126 (elf64_alpha_find_reloc_at_ofs): Likewise.
4128 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4130 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4131 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4132 allowable range used to be -2**(n-1) to 2**n-1.
4133 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4134 "boolean overflow" with "bfd_reloc_status_type flag".
4136 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4138 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4140 2000-03-14 Kazu Hirata <kazu@hxi.com>
4142 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4143 of shrinks properly, including the last reloc.
4145 2000-03-13 Kazu Hirata <kazu@hxi.com>
4147 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4150 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4152 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4153 a format mismatch rather than an "error" from bfd_read such as
4154 bfd_error_file_truncated.
4156 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4158 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4159 sign-extension and big-endian compensation for
4160 R_MIPS_64 even in ld -r.
4162 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4164 * elf32-mips.c (mips_elf_next_relocation): Rename from
4165 mips_elf_next_lo16_relocation, and generalize to look
4166 for any relocation type.
4167 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4168 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4169 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4170 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4171 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4172 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4173 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4174 (mips_rtype_to_howto): Likewise.
4175 (mips_elf_calculate_relocation): Handle new relocs.
4176 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4177 are paired. The addend for R_MIPS_GNU_REL16_S2
4178 is shifted right two bits.
4180 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4182 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4183 comment, and ensure it doesn't happen again.
4184 (bfd_install_relocation): Same here.
4185 (_bfd_relocate_contents): Don't bother assigning unused signmask
4186 shift result. Fix typos in comments.
4187 Remove trailing whitespace throughout file.
4189 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4191 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4192 * bfd-in2.h: Rebuild.
4194 2000-03-06 Nick Clifton <nickc@cygnus.com>
4196 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4198 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4199 (SIZEOF_ILF_STRINGS): Redefine.
4200 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4201 relative reloc, as opposed to a section relative reloc.
4202 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4204 Add length of symbol's prefix to string pointer.
4205 Store a pointer to the symbol in the symbol pointer table.
4206 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4207 Initialise the symbol pointer table.
4208 Store the hint in the Hint/Name table.
4209 Make the jump reloc be symbol realtive, not section relative.
4210 Create an import symbol for imported code.
4212 2000-03-06 Catherine Moore <clm@cygnus.com>
4214 * elf.c (swap_out_syms): Check for null type_ptr.
4216 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4218 * aout-target.h (MY(write_object_contents)): Remove unused
4219 and unusable "#if CHOOSE_RELOC_SIZE".
4220 * pc532-mach.c (MY(write_object_contents)): Ditto.
4221 * netbsd.h (MY(write_object_contents)): Ditto.
4222 * hp300hpux.c (MY(write_object_contents)): Ditto.
4223 * freebsd.h (MY(write_object_contents)): Ditto.
4224 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4226 2000-02-29 H.J. Lu <hjl@gnu.org>
4228 * peicode.h (jtab): Make it static.
4230 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4231 defined and COFF_IMAGE_WITH_PE is not defined.
4232 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4233 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4235 2000-03-01 Nick Clifton <nickc@cygnus.com>
4237 * coff-arm.c (bfd_arm_process_before_allocation): Make
4238 'symndx' signed to prevent compile time warning.
4240 * coff-mcore.c: Remove unused prototype for pe_object_p.
4242 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4243 functions that are not used when COFF_IMAGE_WITH_PE is
4245 (struct sh_opcode): Change type of 'flags' field to unsigned
4246 long so that it can hold the USESAS flag.
4248 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4250 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4253 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4255 Remove unusued variables and code.
4256 (elf_backend_add_symbol_hook): Fix prototype.
4258 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4261 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4264 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4266 Remove unusued variables and code.
4267 (elf_backend_add_symbol_hook): Fix prototype.
4269 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4271 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4272 to unused function parameter.
4274 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4276 Use EMPTY_HOWTO to initialise empty howto slots.
4277 Remove unused variables.
4279 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4281 2000-03-01 H.J. Lu <hjl@gnu.org>
4283 * aoutx.h (aout_link_input_section_std): Pass "true" to
4284 the undefined_symbol callback.
4285 (aout_link_input_section_ext): Likewise.
4286 * bout.c (get_value): Likewise.
4287 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4288 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4290 (alpha_relocate_section): Likewise.
4291 * coff-arm.c (coff_arm_relocate_section): Likewise.
4292 * coff-i960.c (coff_i960_relocate_section): Likewise.
4293 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4294 * coff-mips.c (mips_relocate_section): Likewise.
4295 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4296 * coff-sh.c (sh_relocate_section): Likewise.
4297 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4298 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4299 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4300 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4301 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4302 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4303 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4304 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4305 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4306 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4307 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4308 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4309 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4310 * elflink.h (elf_link_output_extsym): Likewise.
4311 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4312 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4313 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4315 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4316 undefined_symbol callback when building shared library with
4317 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4319 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4320 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4321 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4322 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4323 (elf32_mips_get_relocated_section_content): Likewise.
4324 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4325 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4326 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4327 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4329 2000-02-28 Nick Clifton <nickc@cygnus.com>
4331 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4332 * Makefile.in: Regenerate.
4334 * configure.in: Add support for mips and sh pe vectors.
4335 * configure: regenerate.
4337 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4340 * targets.c: Add mips and sh pe vectors.
4342 * libpei.h (coff_final_link_postscript): Only define if not
4345 * coffcode.h: Add support for WinCE magic numbers.
4347 * peigen.c (pe_print_reloc): Update comment and rearrange
4348 appending of newline character.
4350 * peicode.h: Add support for Image Library Format.
4351 (pe_ILF_vars): Structure containing data used by ILF code.
4352 (pe_ILF_make_a_section): New function. Create a section based
4354 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4356 (pe_ILF_make_a_symbol): New function. Create a symbol based
4358 (pe_ILF_save_relocs): New function. Store the relocs created
4359 by pe_ILF_make_a_reloc in a section.
4360 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4362 (pe_ILF_object_p): New function. Return a bfd_target pointer
4364 (pe_bfd_object_p): If an ILF object is detected call
4365 pe_ILF_object_p on it.
4367 * coff-arm.c: Add support for WinCE relocs which are different
4368 from normal ARM COFF relocs.
4369 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4371 * coff-sh.c: Add support for sh-pe target.
4372 * pe-sh.c: New file. Support code for sh-pe target.
4373 * pei-sh.c: New file. Support code for sh-pe target.
4375 * pe-mips.c: New file. Support code for mips-pe target.
4376 * pei-mips.c: New file. Support code for mips-pe target.
4378 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4380 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4381 architecture if the object causing the bump is dynamic.
4382 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4383 and also don't it for memory ordering.
4384 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4386 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4388 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4389 calling bfd_get_section_size_before_reloc.
4390 (decode_line_info): Likewise.
4391 (_bfd_dwarf2_find_nearest_line): Likewise.
4393 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4395 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4396 name of the libtool directory.
4397 * Makefile.in: Rebuild.
4399 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4401 * som.c (SOM_HOWTO): Define.
4402 (som_hppa_howto_table): Use it.
4404 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4406 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4408 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4410 2000-02-24 Catherine Moore <clm@cygnus.com>
4412 * som.c (som_misc_symbol_info): Add field
4414 (som_bfd_derive_misc_symbol_info): Initialize
4416 (som_build_and_write_symbol_table): Keep track
4417 of secondary_def field.
4418 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4419 if secondary_def field is set.
4420 (som_bfd_ar_write_symbol_stuff): Initialize
4423 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4425 * dwarf2.c (read_address): Read 16-bits addresses.
4426 (parse_comp_unit): Accept addr_size == 2.
4428 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4430 * bfd-in.h: Update copyright date.
4432 2000-02-23 Linas Vepstas <linas@linas.org>
4434 * cpu-i370.c: New file.
4435 * elf32-i370.c: New file.
4436 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4437 (bfd_i370_arch): New.
4438 (bfd_archures_list): Add bfd_i370_arch.
4439 * elf.c (prep_headers): Add bfd_arch_i370.
4440 * Makefile.am: Add support for IBM 370 elf.
4441 * config.bfd: Likewise.
4442 * configure.in: Likewise.
4443 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4444 * reloc.c (bfd_reloc_code_type): Likewise.
4445 * targets.c: Likewise.
4447 * Makefile.in: Regenerate.
4448 * configure: Regenerate.
4449 * bfd-in2.h: Regenerate.
4451 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4453 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4454 invalid relocation types, and change them to R_386_NONE.
4456 2000-02-22 H.J. Lu <hjl@gnu.org>
4458 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4459 not defined, don't add a second ELF_VER_CHR.
4461 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4462 symbols converted to local symbols even when stripping all
4464 (elf_link_output_extsym): Process global symbols converted to
4465 local symbols even if they are being stripped.
4467 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4469 * archures.c (bfd_octets_per_byte): Return unsigned int.
4470 (bfd_arch_mach_octets_per_byte): Ditto.
4471 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4473 * section.c (bfd_get_section_size_before_reloc): Quell signed
4474 vs. unsigned comparison warning.
4475 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4476 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4477 change. What was I thinking?
4478 * bfd-in2.h: Regenerate.
4480 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4481 (elf_gc_sections): Same here.
4482 (elf_gc_common_finalize_got_offsets): And here.
4484 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4486 ELF HPPA doesn't work at present; remove it until it does.
4487 * config.bfd: Comment out setting targ_defvec to
4489 * Makefile.am: Rebuild dependencies.
4490 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4491 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4492 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4493 * Makefile.in: Rebuild.
4494 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4496 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4498 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4499 is no bfd_free(). Revert bfd_free part of previous change.
4501 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4503 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4505 (coff_compute_section_file_positions): Use bfd_free to pair
4507 (coff_write_object_contents): Likewise.
4509 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4510 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4512 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4514 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4515 (xcoff_ar_file_hdr_big): New structure.
4516 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4517 (xcoff_ar_hdr_big): New structure.
4518 (SIZEOF_AR_HDR_BIG): New macro.
4519 (xcoff_big_format_p): New macro.
4520 (xcoff_ardata_big): New macro.
4521 (arch_xhdr_big): New macro.
4522 (xcoff_slurp_armap): Handle large archives.
4523 (xcoff_archive_p): Detect large archives.
4524 (xcoff_read_ar_hdr): Handle large archives.
4525 (xcoff_openr_next_archived_file): Handle large archives.
4526 (xcoff_generic_stat_arch_elt): Handle large archives.
4527 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4528 (xcoff_write_armap_big): New function.
4529 (xcoff_write_armap): New function, dispatch to _old or _big.
4530 (xcoff_write_archive_contents_old): Rename from
4531 xcoff_write_archive_contents.
4532 (xcoff_write_archive_contents_big): New function.
4533 (xcoff_write_archive_contents): New function, dispatch to _old or
4536 2000-02-18 Richard Henderson <rth@cygnus.com>
4538 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4539 and hide_symbol members.
4540 (elf_link_hash_copy_indirect): Remove.
4541 (elf_link_hash_hide_symbol): Remove.
4542 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4543 and elf_backend_hide_symbol.
4544 (_bfd_elf_link_hash_copy_indirect): Declare.
4545 (_bfd_elf_link_hash_hide_symbol): Declare.
4546 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4547 (_bfd_elf_link_hash_hide_symbol): Likewise.
4548 (_bfd_elf_link_hash_table_init): Don't init killed members.
4549 * elflink.h (elf_link_add_object_symbols): Use the bed function
4550 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4551 (elf_link_assign_sym_version): Likewise.
4552 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4553 (elf_backend_hide_symbol): Likewise.
4554 (elfNN_bed): Update for new members.
4556 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4558 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4559 STACK_END_ADDR): Define for new core file format.
4560 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4561 for handling the vagaries of the various core file structures used
4562 by AIX over the years.
4563 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4564 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4565 core_dumpx structure.
4567 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4569 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4570 (bfd_mach_sh3_dsp): Likewise.
4571 (bfd_mach_sh4): Reinstate.
4572 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4573 * bfd-in2.h: Regenerate.
4574 * coff-sh.c (struct sh_opcode): flags is no longer short.
4575 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4576 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4577 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4578 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4579 (sh_opcodes): No longer const.
4580 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4581 (sh_insn_uses_reg): Check for USESAS and USESR8.
4582 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4583 (_bfd_sh_align_load_span): Return early for SH4.
4584 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4585 Take into account that field b of a parallel processing insn
4586 could be mistaken for a separate insn.
4587 * cpu-sh.c (arch_info_struct): New array elements for
4588 sh2, sh-dsp and sh3-dsp.
4589 Reinstate element for sh4.
4590 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4591 (SH4_NEXT): Reinstate.
4592 (SH3_NEXT, SH3E_NEXT): Adjust.
4593 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4594 * elf32-sh.c (sh_elf_set_private_flags): New function.
4595 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4596 (sh_elf_merge_private_data): New function.
4597 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4598 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4599 (bfd_elf32_bfd_merge_private_bfd_data): Change to
4600 sh_elf_merge_private_data.
4602 2000-02-13 Richard Henderson <rth@cygnus.com>
4604 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4605 hide_symbol members.
4606 (elf_link_hash_copy_indirect): New.
4607 (elf_link_hash_hide_symbol): New.
4608 * elflink.h (elf_link_add_object_symbols): Break out copy from
4609 indirect new new symbol to elf.c.
4610 (elf_link_assign_sym_version): Break out privatization of
4611 non-exported symbol to elf.c.
4612 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4613 (_bfd_elf_link_hash_hide_symbol): New.
4614 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4616 2000-02-13 Ian Lance Taylor <ian@zembu.com>
4618 * section.c (_bfd_strip_section_from_output): Add info parameter.
4619 If it passed as non-NULL, use it to check whether any input BFD
4620 has an input section which uses this output section. Change all
4622 * bfd-in2.h: Rebuild.
4624 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4625 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4627 * bfd-in2.h: Rebuild.
4629 2000-02-10 Timothy Wall <twall@cygnus.com>
4631 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4632 allow final modifications of swapped-in symbol.
4633 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4634 * coffcode.h (coff_write_relocs): Use macro
4635 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4636 symbol index should be set to -1.
4638 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
4640 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4641 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4642 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4643 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4644 sh_insns_uses_or_sets_freg): New functions.
4645 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4646 * (sh_insns_conflict): Use new functions and new macros to
4647 detect conflicts when two instructions both set same integer registers,
4648 both set same fp register, and both set special register.
4650 2000-02-09 Timothy Wall <twall@cygnus.com>
4652 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4653 swapping in sections, so that the swapping routines have access to
4656 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4658 * coff-go32.c: Update comment. Update copyright.
4660 2000-01-27 Thomas de Lellis <tdel@windriver.com>
4662 * syms.c (bfd_decode_symclass)
4663 Two new class characters were added - 'V' and 'v'. The
4664 meaning of 'W' is now restricted to just weak non-object
4665 symbols. This allows differentiation between, for example,
4666 weak functions vs weak objects. nm for example now dumps:
4668 'w' = weak unresolved
4669 'V' = weak global object
4670 'v' = weak unresolved object
4672 (bfd_is_undefined_symclass): New function. Return true if the
4673 given symbol class represents and undefined/unresolved symbol.
4675 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4678 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4680 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4681 STT_ARM_16BIT flag set, but it is not attached to a data object
4682 return STT_ARM_16BIT so that it will be treated as code by the
4685 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4687 * coff-i386.c (i3coff_object_p): Remove prototype.
4690 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4691 to name. Update copyright.
4693 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4694 assignment to avoid warning. Update copyright.
4696 2000-01-24 Robert Lipe (robertl@sco.com)
4698 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4699 instead of using GNU C extension.
4701 2000-01-21 Nick Clifton <nickc@cygnus.com>
4703 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4704 amount from a bfd_in_memory structure.
4705 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4708 2000-01-14 Nick Clifton <nickc@cygnus.com>
4710 * linker.c (default_indirect_link_order): oops - fix incorrectly
4711 applied patch from Tim Wall.
4713 2000-01-13 Timothy Wall (twall@tiac.net>
4715 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4716 = scnhsz, filhsz, relsz, aoutsz, etc)
4718 * coffswap.h: Ditto.
4720 2000-01-13 Nick Clifton <nickc@cygnus.com>
4722 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4723 interwork thumb to arm stub.
4725 2000-01-13 Timothy Wall (twall@tiac.net>
4727 * archures.c (bfd_octets_per_byte): New function: Return
4729 (bfd_arch_mach_octets_per_byte): New function: Return target
4732 * section.c: Distinguish between octets and bytes for usage of
4733 _cooked_size, _raw_size, and output_offset. Clarify
4734 description of bfd_set_section_contents.
4736 * bfd-in2.h: Regenerate.
4738 * coffgen.c: Indicate that the offset parameter is in bytes, not
4741 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4742 where appropriate to get the octet offset when calling
4743 bfd_set_section_contents.
4744 (bfd_coff_reloc_link_order): Ditto.
4746 * linker.c (bfd_generic_reloc_link_order): Ditto.
4747 (_bfd_default_link_order): Ditto.
4749 * reloc.c (bfd_perform_relocation): Distinguish between octets
4750 and bytes. Use octets when indexing into octet data; use bytes
4751 when calculating target addresses.
4752 (bfd_install_relocation): Ditto.
4754 * srec.c (srec_write_section): Ditto.
4756 2000-01-13 Nick Clifton <nickc@cygnus.com>
4758 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4759 3 to 2. This allows 4 byte sized sections, which is necessary for
4760 dlltool to build functioning DLLs.
4762 2000-01-10 Philip Blundell <pb@futuretv.com>
4764 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4765 (arm*-*-conix*): New target.
4767 2000-01-10 Egor Duda <deo@logos-m.ru>
4769 * config.bfd: Include elf32_i386 vector to target list for cygwin
4772 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4773 * configure.in: Test for structure win32_pstatus_t in
4775 * configure: Regenerate.
4777 * elf.c (elfcore_grok_win32pstatus): New function: process
4778 win32_pstatus_t notes in elf core file.
4779 (elfcore_grok_note): Detect win32_pstatus notes.
4781 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
4783 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4785 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4786 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4788 For older changes see ChangeLog-9899
4794 version-control: never