aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-11-252004-11-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
PR 574: * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
2004-11-252004-11-24 Paul Brook <paul@codesourcery.com>Paul Brook2-4/+25
bfd/ * elf.c (assign_section_numbers): Number SHT_GROUP sections first. gas/testsuite/ * gas/elf/group0a.d: Adjust expected secion ordering. * gas/elf/group1a.d: Ditto. * gas/elf/section4.d: Ditto.
2004-11-24daily updateAlan Modra1-1/+1
2004-11-242004-11-24 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+84
bfd/ * elf32-arm.c (elf32_arm_swap_symbol_in): New function. (elf32_arm_swap_symbol_out): New function. (elf32_arm_size_info): Add. (elf_backend_size_info): Define. ld/testsuite/ * ld-arm/mixed-lib.sym: Update for THUMB_FUNC change.
2004-11-23daily updateAlan Modra1-1/+1
2004-11-22daily updateAlan Modra1-1/+1
2004-11-21daily updateAlan Modra1-1/+1
2004-11-20daily updateAlan Modra1-1/+1
2004-11-20 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls toDave Anglin2-9/+17
make_bfd_asection.
2004-11-19daily updateAlan Modra1-1/+1
2004-11-19 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.Alan Modra4-6/+11
* elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl. * nlmcode.h (nlm_write_object_contents): Warning fix.
2004-11-19 * elf32-xtensa.c (ebb_propose_action): Fix argument order.Bob Wilson2-1/+5
2004-11-18daily updateAlan Modra1-1/+1
2004-11-17daily updateAlan Modra1-1/+1
2004-11-17bfd/Daniel Jacobowitz2-36/+206
* elf32-arm.c (PLT_THUMB_STUB_SIZE): Define. (elf32_arm_plt_thumb_stub): New. (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount and plt_got_offset. (elf32_arm_link_hash_traverse): Fix typo. (elf32_arm_link_hash_table): Add obfd. (elf32_arm_link_hash_newfunc): Initialize new fields. (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount. (elf32_arm_link_hash_table_create): Initialize obfd. (record_arm_to_thumb_glue): Mark the glue as a local ARM function. (record_thumb_to_arm_glue): Mark the glue as a local Thumb function. (bfd_elf32_arm_get_bfd_for_interworking): Verify that the interworking BFD is not dynamic. (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do not emit glue for PLT references. (elf32_arm_final_link_relocate): Handle Thumb functions. Do not emit glue for PLT references. Support the Thumb PLT prefix. (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and plt_thumb_refcount. (elf32_arm_check_relocs): Likewise. (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and plt_thumb_refcount. (allocate_dynrelocs): Handle Thumb PLT references. (elf32_arm_finish_dynamic_symbol): Likewise. (elf32_arm_symbol_processing): New function. (elf_backend_symbol_processing): Define. opcodes/ * arm-dis.c (WORD_ADDRESS): Define. (print_insn): Use it. Correct big-endian end-of-section handling. gas/testsuite/ * gas/arm/mapping.d: Expect F markers for Thumb code. * gas/arm/unwind.d: Update big-endian pattern. ld/ * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use a dynamic object for stubs. ld/testsuite/ * ld-arm/mixed-app.d, ld-arm/mixed-app.r, ld-arm/mixed-app.s, ld-arm/mixed-app.sym, ld-arm/mixed-lib.d, ld-arm/mixed-lib.r, ld-arm/mixed-lib.s, ld-arm/mixed-lib.sym, ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: New files. * ld-arm/arm-app-abs32.d, ld-arm/arm-app-abs32.r, ld-arm/arm-app.d, ld-arm/arm-app.r, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r, ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-static-app.d, ld-arm/arm-static-app.r: Update for big-endian. * ld-arm/arm-elf.exp: Run the new tests.
2004-11-16daily updateAlan Modra1-1/+1
2004-11-16 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size andRichard Sandiford3-55/+184
add_fde_encoding. Remove need_relative. * elf-eh-frame.c (extra_augmentation_string_bytes) (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions. (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding in cases where the CIE has no existing 'R' augmentation. Use size_of_output_cie_fde when assigning offsets. Use the final offset as the new section size. (_bfd_elf_eh_frame_section_offset): Remove need_relative handling. Account for any extra augmentation bytes in the returned offset. (_bfd_elf_write_section_eh_frame): Rework so that the entries are moved before being modified. Pad growing entries with DW_CFA_nops. Add 'z' and 'R' augmentations as directed by add_augmentation_size and add_fde_encoding.
2004-11-16 * elf32-arm.c (elf32_arm_relocate_section): UseMark Mitchell2-1/+9
arm_real_reloc_type.
2004-11-16 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return earlyRichard Sandiford2-100/+96
for discard relocations; don't add an R_MIPS_NONE to the main body of .rel.dyn.
2004-11-15bfd/Paul Brook5-156/+227
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype. * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument. (_bfd_elf_slurp_version_tables): Add extra argument. Create extra default version definition for unversioned symbols. * elfcode.h (elf_slurp_symbol_table): Pass extra argument. * elflink.c (elf_link_add_object_symbols): Pass extra argument to _bfd_elf_slurp_version_tables. Set default version for unversioned imported symbols. include/ * bfdlink.h (bfd_link_info): Add default_imported_symver. ld/ * ld.texinfo: Document --default-imported-symver. * ldmain.c (main): Set link_info.default_imported_symver. * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER. (ld_options): Add --default-imported-symver. (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
2004-11-15daily updateAlan Modra1-1/+1
2004-11-15 * elflink.c (elf_link_add_object_symbols): Don't assume versionPaul Brook2-7/+15
indices are consecutive.
2004-11-15 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal withRichard Sandiford2-1/+9
composite relocations against the personality data.
2004-11-14daily updateAlan Modra1-1/+1
2004-11-13daily updateAlan Modra1-1/+1
2004-11-13 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): ResolvePaul Brook2-16/+13
R_ARM_PREL31 relocations to PLT entries. (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto. (elf32_arm_check_relocs): Ditto.
2004-11-12daily updateAlan Modra1-1/+1
2004-11-122004-11-12 Bob Wilson <bob.wilson@acm.org>Bob Wilson2-0/+13
include/ChangeLog * xtensa-isa-internal.h (xtensa_interface_internal): Add class_id. * xtensa-isa.h (xtensa_interface_class_id): New prototype. bfd/ChangeLog * xtensa-isa.c (xtensa_interface_class_id): New. gas/ChangeLog * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if there is a conflict. (check_t1_t2_reads_and_writes): Check for both reads and writes to interfaces that are related as determined by xtensa_interface_class_id.
2004-11-11 * elf32-xtensa.c (property_table_compare): Remove assertion aboutBob Wilson2-7/+26
entries with the same address and non-zero size. (xtensa_read_table_entries): Report such entries as errors.
2004-11-11daily updateAlan Modra1-1/+1
2004-11-11 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic forMark Mitchell2-9/+17
R_ARM_RELATIVE on Symbian OS.
2004-11-10daily updateAlan Modra1-1/+1
2004-11-09daily updateAlan Modra1-1/+1
2004-11-09 * som.c (som_bfd_print_private_bfd_data): New function.Mark Mitchell2-30/+92
(som_object_setup): Save the auxiliary header. Don't assume that zero is an invalid entry point for a shared library. (som_object_p): Allocate the auxiliary header on the heap.
2004-11-09 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&RMark Mitchell2-13/+12
declaration. (elf32_arm_symbian_modify_segment_map): Likewise.
2004-11-09 From David Poole <daveml@mbuf.com>:Daniel Jacobowitz2-0/+41
* elf32-arm.c (elf32_arm_readonly_dynrelocs): New function. (elf32_arm_size_dynamic_sections): Call it.
2004-11-09 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.Alan Modra4-18/+25
(ALL_MACHINES_CFILES): Fix typo. * Makefile.in: Regenerate. * po/SRC-POTFILES.in: Regenerate.
2004-11-08daily updateAlan Modra1-1/+1
2004-11-08 * elf32-arm.c (elf32_arm_final_link_relocate): When generating anMark Mitchell2-1/+24
R_ARM_RELATIVE relocation for Symbian OS, mention the section symbol in the relocation.
2004-11-08Add support fpr MAXQ processorNick Clifton13-92/+741
2004-11-08oops - omitted fom previous deltaNick Clifton1-13/+21
2004-11-08Fix support for PECOFF weak symbolsNick Clifton2-12/+22
2004-11-07daily updateAlan Modra1-1/+1
2004-11-07 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): UseAndreas Schwab2-14/+13
SYMBOL_CALLS_LOCAL and check for undefweak symbols with non-default visibility.
2004-11-06daily updateAlan Modra1-1/+1
2004-11-05daily updateAlan Modra1-1/+1
2004-11-04daily updateAlan Modra1-1/+1
2004-11-04 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): ClearMark Mitchell2-10/+30
D_PAGED. (elf32_arm_symbian_modify_segment_map): Don't reset includes_filehdr and includes_phdrs here.
2004-11-04./Daniel Jacobowitz12-1742/+1217
* configure.in (arm-*-oabi*, thumb-*-oabi*): Remove. * configure: Regenerated. bfd/ * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace elfarm-nabi with elf32-arm. Remove elfarm-oabi. (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h dependency. * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list to a new removed list. Remove normal configuration stanzas. * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec) (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace elfarm-nabi.lo with elf32-arm.lo. (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove. * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h. * elf32-arm.h: Remove. * elfarm-oabi.c: Remove. * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec and bfd_elf32_littlearm_oabi_vec. * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated. gas/ * configure.in: Remove arm-*-oabi and thumb-*-oabi. * config/tc-arm.c (target_oabi): Delete. (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks. (arm_opts): Remove moabi. * doc/as.texinfo (Overview): Remove documentation of -moabi. * doc/c-arm.texi (ARM Options): Likewise. * configure: Regenerated. ld/ * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o. (earmelf_oabi.c): Remove rule. * configure.tgt: Remove arm-*-oabi and thumb-*-oabi. * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files. * Makefile.in: Regenerated.
2004-11-04 * config.bfd: Support crisv32-*-* like cris-*-*.Hans-Peter Nilsson8-69/+531
* archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32) (bfd_mach_cris_v10_v32): New macros. * cpu-cris.c: Tweak formatting. (get_compatible): New function. (N): New macro. (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New bfd_arch_info_type:s. (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach, get_compatible for member compatible and link bfd_cris_arch_v32 as next. * elf32-cris.c (cris_elf_pcrel_reloc) (cris_elf_set_mach_from_flags): New functions. (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL> <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc. (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct numbers for bfd_mach_cris_v32. (PLT_ENTRY_SIZE_V32): New macro. (elf_cris_plt0_entry): Drop last comma in initializer. (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32) (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New PLT initializers. (cris_elf_relocate_section): Change all "%B(%A)" messages to "%B, section %A". (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries. (elf_cris_finish_dynamic_sections): Similar. (elf_cris_adjust_dynamic_symbol): Similar. (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B, section %A". <switch with PIC relocs>: Emit error and return FALSE for bfd_mach_cris_v10_v32. <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>: Emit warning when generating textrel reloc. (cris_elf_object_p): Call cris_elf_set_mach_from_flags. (cris_elf_final_write_processing): Set flags according to mach. (cris_elf_print_private_bfd_data): Display EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32. (cris_elf_merge_private_bfd_data): Drop variables old_flags, new_flags. Don't call cris_elf_final_write_processing. Don't look at the actual elf header flags at all; use bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference in bfd_get_mach for ibfd and obfd and handle merging of compatible objects. (bfd_elf32_bfd_copy_private_bfd_data): Define. * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8) (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16) (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs. * bfd-in2.h, libbfd.h: Regenerate.