aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-08-04* ldmain.c (main): Initialise print_gc_sections field of link_info structure.Nick Clifton9-3/+59
* lexsup.c: Add --print-gc-sections and --no-print-gc-sections switches. * ld.texinfo: Document new switches. * NEWS: Mention new switches. * bfdlink.h (struct bfd_link_info): New field: print_gc_sections. * elflink.c (elf_gc_sweep): If info.print_gc_sections is true, list removed sections to stderr.
2006-08-04bfd/Richard Sandiford50-1964/+3332
2006-08-02 Richard Sandiford <richard@codesourcery.com> Kazu Hirata <kazu@codesourcery.com> Phil Edwards <phil@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> * config.bfd (sh-*-vxworks): Use bfd_elf32_shvxworks_vec and bfd_elf32_shlvxworks_vec. * configure.in (bfd_elf32_sh64_vec): Add elf-vxworks.lo. (bfd_elf32_sh64l_vec, bfd_elf32_sh64lin_vec): Likewise. (bfd_elf32_sh64blin_vec, bfd_elf32_sh64lnbsd_vec): Likewise. (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh_vec): Likewise. (bfd_elf32_shblin_vec, bfd_elf32_shl_vec): Likewise. (bfd_elf32_shl_symbian_vec, bfd_elf32_shlin_vec): Likewise. (bfd_elf32_shlnbsd_vec, bfd_elf32_shnbsd_vec): Likewise. (bfd_elf32_shlvxworks_vec, bfd_elf32_shvxworks_vec): New stanzas. * configure: Regenerate. * Makefile.am: Regenerate dependencies. * Makefile.in: Regenerate. * elf-vxworks.c (elf_vxworks_gott_symbol_p): New function. (elf_vxworks_add_symbol_hook): Use it. (elf_vxworks_link_output_symbol_hook): Likewise. Use the hash table entry to check for weak undefined symbols and to obtain the original bfd. (elf_vxworks_emit_relocs): Use target_index instead of this_idx. * elf32-sh-relocs.h: New file, split from elf32-sh.c. (R_SH_DIR32): Use SH_PARTIAL32 for the partial_inplace field, SH_SRC_MASK32 for the src_mask field, and SH_ELF_RELOC for the special_function field. (R_SH_REL32): Use SH_PARTIAL32 and SH_SRC_MASK32 here too. (R_SH_REL32, R_SH_TLS_GD_32, R_SH_TLS_LD_32): Likewise. (R_SH_TLS_LDO_32, R_SH_TLS_IE_32, R_SH_TLS_LE_32): Likewise. (R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32, R_SH_TLS_TPOFF32): Likewise. (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT): Likewise. (R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): Likewise. (SH_PARTIAL32, SH_SRC_MASK32, SH_ELF_RELOC): Undefine at end of file. * elf32-sh.c: Include elf32-vxworks.h. (MINUS_ONE): Define. (sh_elf_howto_table): Include elf32-sh-relocs.h with SH_PARTIAL32 set to TRUE, SH_SRC_MASK32 set to 0xffffffff, and SH_ELF_RELOC set to sh_elf_reloc. (sh_vxworks_howto_table): New variable. Include elf32-sh-relocs.h with SH_PARTIAL32 set to FALSE, SH_SRC_MASK32 set to 0, and SH_ELF_RELOC set to bfd_elf_generic_reloc. (vxworks_object_p, get_howto_table): New functions. (sh_elf_reloc_type_lookup): Fix typo. Use get_howto_table. (sh_elf_info_to_howto): Use get_howto_table. (sh_elf_relax_section): Honor the partial_inplace field of the R_SH_DIR32 howto. (sh_elf_relax_delete_bytes): Likewise. (elf_sh_plt_info): New structure. (PLT_ENTRY_SIZE): Replace both definitions with... (ELF_PLT_ENTRY_SIZE): ...this new macro, with separate definitions for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. (elf_sh_plt0_entry_be): Update sizes of both definitions accordingly. (elf_sh_plt0_entry_le): Likewise. (elf_sh_plt_entry_be, elf_sh_plt_entry_le): Likewise. (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): Likewise. (elf_sh_plts): New structure, with separate definitions for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. (elf_sh_plt0_entry): Delete both definitions. (elf_sh_plt_entry, elf_sh_pic_plt_entry): Likewise. (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset): Likewise. (elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset): Likewise. (elf_sh_plt_reloc_offset): Likewise. (movi_shori_putval): Delete in favor of... (install_plt_field): ...this new function, with separate definitions for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. (get_plt_info): New function, with separate definitions for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. (elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset): Delete. (VXWORKS_PLT_HEADER_SIZE, VXWORKS_PLT_ENTRY_SIZE): New macros. (vxworks_sh_plt0_entry_be, vxworks_sh_plt0_entry_le): New constants. (vxworks_sh_plt_entry_be, vxworks_sh_plt_entry_le): Likewise. (vxworks_sh_pic_plt_entry_be, vxworks_sh_pic_plt_entry_le): Likewise. (get_plt_index, get_plt_offset): New functions. (elf_sh_link_hash_table): Add srelplt2, plt_info and vxworks_p fields. (sh_elf_link_hash_table_create): Initialize them. (sh_elf_create_dynamic_sections): Call elf_vxworks_create_dynamic_sections for VxWorks. (allocate_dynrelocs): Use htab->plt_info to get the size of PLT entries. Allocate relocation entries in .rela.plt.unloaded if generating a VxWorks executable. (sh_elf_always_size_sections): New function. (sh_elf_size_dynamic_sections): Extend .rela.plt handling to .rela.plt.unloaded. (sh_elf_relocate_section): Use get_howto_table. Honor partial_inplace when calculating the addend for dynamic relocations. Use get_plt_index. (sh_elf_finish_dynamic_symbol): Use get_plt_index, install_plt_field and htab->plt_info. Fill in the bra .plt offset for VxWorks executables. Populate .rela.plt.unloaded. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. (sh_elf_finish_dynamic_sections): Use install_plt_field and htab->plt_info. Handle cases where there is no special PLT header. Populate the first relocation in .rela.plt.unloaded and fix up the remaining entries. (sh_elf_plt_sym_val): Use get_plt_info. (elf_backend_always_size_sections): Define. (TARGET_BIG_SYM, TARGET_BIG_NAME): Override for VxWorks. (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise. (elf32_bed, elf_backend_want_plt_sym): Likewise. (elf_symbol_leading_char, elf_backend_want_got_underscore): Likewise. (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Likewise. (elf_backend_add_symbol_hook): Likewise. (elf_backend_link_output_symbol_hook): Likewise. (elf_backend_emit_relocs): Likewise. (elf_backend_final_write_processing): Likewise. (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Likewise. * targets.c (bfd_elf32_shlvxworks_vec): Declare. (bfd_elf32_shvxworks_vec): Likewise. (_bfd_target_vector): Include bfd_elf32_shlvxworks_vec and bfd_elf32_shvxworks_vec. gas/ * config/tc-sh.c (apply_full_field_fix): New function. (md_apply_fix): Use it instead of md_number_to_chars. Do not fill in fx_addnumber for BFD_RELOC_32_PLT_PCREL. (tc_gen_reloc): Use fx_addnumber rather than 0 as the default case. * config/tc-sh.h (TARGET_FORMAT): Override for TE_VXWORKS. ld/ 2006-08-02 Richard Sandiford <richard@codesourcery.com> Kazu Hirata <kazu@codesourcery.com> Phil Edwards <phil@codesourcery.com> * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and eshlelf_vxworks.o. (eshelf_vxworks.c, eshlelf_vxworks.c): New rules. * Makefile.in: Regenerate. * configure.tgt (sh-*-vxworks): Use shelf_vxworks and shlelf_vxworks. * emulparams/shelf_vxworks.sh: New file. * emulparams/shlelf_vxworks.sh: Likewise. * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}. (OTHER_END_SYMBOLS): Likewise _ehdr. (DATA_END_SYMBOLS): Likewise _edata. * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd is indeed an ELF file before dealing with --force-dynamic. ld/testsuite/ * ld-sh/rd-sh.exp: Treat vxworks1-static.d specially. * ld-sh/sh-vxworks.exp: New file. * ld-sh/sh.exp: Extend sh-linux SIZEOF_HEADERS handling to sh-*-vxworks. * ld-sh/vxworks1-le.dd, ld-sh/vxworks1-lib-le.dd, * ld-sh/vxworks1-lib.dd, ld-sh/vxworks1-lib.nd, * ld-sh/vxworks1-lib.rd, ld-sh/vxworks1-lib.s, * ld-sh/vxworks1-static.d, ld-sh/vxworks1.dd, * ld-sh/vxworks1.ld, ld-sh/vxworks1.rd, ld-sh/vxworks1.s, * ld-sh/vxworks2-static.sd, ld-sh/vxworks2.s, * ld-sh/vxworks2.sd, ld-sh/vxworks3-le.dd, * ld-sh/vxworks3-lib-le.dd, ld-sh/vxworks3-lib.dd, * ld-sh/vxworks3-lib.s, ld-sh/vxworks3.dd, ld-sh/vxworks3.s, * ld-sh/vxworks4.d, ld-sh/vxworks4a.s, ld-sh/vxworks4b.s, * ld-sh/reloc1.s, ld-sh/reloc1.d: New tests.
2006-08-04*** empty log message ***gdbadmin1-1/+1
2006-08-04daily updateAlan Modra1-1/+1
2006-08-03PR gas/2991Nick Clifton2-0/+8
* config.in: Regenerate.
2006-08-03gas:Joseph Myers5-3/+19
* config/tc-arm.c (parse_operands): Handle invalid register name for OP_RIWR_RIWC. gas/testsuite: * gas/arm/iwmmxt-bad.s: Test invalid register names for wldrw and wstrw. * gas/arm/iwmmxt-bad.l: Update.
2006-08-03gas:Joseph Myers5-6/+34
* config/tc-arm.c (enum operand_parse_code): Add OP_RIWC_RIWG. (parse_operands): Handle it. (insns): Use it for tmcr and tmrc. gas/testsuite: * gas/arm/iwmmxt.s: Test tmcr and tmrc with wcgr registers. * gas/arm/iwmmxt.d: Update.
2006-08-03daily updateAlan Modra1-1/+1
2006-08-03*** empty log message ***gdbadmin1-1/+1
2006-08-02 * cursal.exp: Pass binfile to gdb_load.Daniel Jacobowitz2-1/+6
2006-08-02* configure.in (arm-*-openbsd*): Set COREFILE to netbsd-core.lo.Mark Kettenis3-2/+11
* configure: Regenerate.
2006-08-02* arm-tdep.h: Add multiple inclusion protection.Mark Kettenis6-3/+185
(struct gdbarch): Add forward declaration. (armobsd_regset_from_core_section): New prototype. * armbsd-tdep.c: New file. * armobsd-tdep.c: Include "gdb_string.h". (armobsd_init_abi): Set regset_from_core_section. (armobsd_core_osabi_sniffer): New function. (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer. * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c. (armbsd-tdep.o): New dependency. (armnbsd-tdep.o): Update dependencies. * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
2006-08-02PR binutils/2983Nick Clifton11-7/+75
* bfd/elf64-x86-64.c: Add FreeBSD support. (elf64_x86_64_fbsd_post_process_headers): New function. * bfd/targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec. * bfd/config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec to the targ_selvecs. * bfd/configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec. * bfd/configure: Regenerate. * gas/config/tc-i386.c (md_parse_option): Treat any target starting with elf64_x86_64 as a viable target for the -64 switch. (i386_target_format): For 64-bit ELF flavoured output use ELF_TARGET_FORMAT64. * gas/config/tc-i386.h (ELF_TARGET_FORMAT64): Define. * ld/emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as elf64-x86-64-freebsd.
2006-08-02PR gas/2991Nick Clifton5-3/+36
* acinclude.m4 (BFD_BINARY_FOPEN): Import this function from bfd/aclocal.m4. * configure.in: Run BFD_BINARY_FOPEN. * configure: Regenerate. * as.h: Look at USE_BINARY_FOPEN to decide which fopen-*.h header file to include.
2006-08-02 * linux-thread-db.c (thread_db_get_thread_local_address): Fix typeThiemo Seufer3-2/+9
mismatch. * tui/tui-stack.c (tui_show_frame_info): Likewise.
2006-08-02 * readelf.c (dump_relocations): Handle MIPS-specificThiemo Seufer2-0/+19
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED. (get_symbol_index_type): Similarly.
2006-08-02 * stabs.texinfo (Member Type Descriptor): Correct example forDaniel Jacobowitz2-3/+8
pointer to member types.
2006-08-02 * c-exp.y (type): Remove incorrect pointer to member case.Daniel Jacobowitz4-7/+7
* objc-exp.y (type): Likewise. * p-exp.y (type): Likewise.
2006-08-02*** empty log message ***gdbadmin1-1/+1
2006-08-02daily updateAlan Modra1-1/+1
2006-08-01 * gdb.base/cursal.exp: Add "" to gdb_load call.Daniel Jacobowitz2-1/+5
2006-08-01* arm-tdep.h (enum struct_return): New.Mark Kettenis4-1/+34
(struct gdbarch_tdep): Add struct_return member. * arm-tdep.c (arm_return_value): Return RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses pcc_struct_return. (arm_gdbarch_init): Default to reg_struct_return. * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
2006-08-01gas/H.J. Lu6-60/+122
2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (md_assemble): Don't update cpu_arch_isa_flags. gas/testsuite/ 2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/nops-2-i386.d: Updated. * gas/i386/nops-2-merom.d: Likewise. * gas/i386/nops-2.d: Likewise.
2006-08-01ld/H.J. Lu6-35/+72
2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (init_os): Add flags. Replace bfd_make_section with bfd_make_section_with_flags. (exp_init_os): Updated. (lang_add_section): Call init_os with flags. (map_input_to_output_sections): Likewise. ld/testsuite/ 2006-08-01 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/noload-1.d: New. * ld-elf/noload-1.s: Likewise. * ld-elf/noload-1.t: Likewise.
2006-08-01 * config/tc-mips.c (md_section_align): Check ELF-ness at runtime.Thiemo Seufer2-10/+15
2006-08-01 * config/tc-mips.c (macro_build_lui): Fix comment formatting.Thiemo Seufer2-39/+33
(md_apply_fix): Likewise. Unify handling of BFD_RELOC_RVA, BFD_RELOC_32 and BFD_RELOC_16. (s_align, s_cpload, s_cplocal, s_cprestore, s_mips_stab, md_convert_frag, md_obj_end): Fix comment formatting.
2006-08-01*** empty log message ***gdbadmin1-1/+1
2006-08-01daily updateAlan Modra1-1/+1
2006-07-31* alpha-tdep.h (ALPHA_S0_REGNUM): New define.Mark Kettenis6-4/+61
* alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>, <machine/pcb.h> and "bsd-kvm.h". (alphabsd_supply_pcb): New function. (_initialize_alphabsd_nat): Enable libkvm interface. * Makefile.in (alphabsd-nat.o): Update dependencies. * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable. * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable.
2006-07-31Reviewed by Daniel Jacobowitz <drow@false.org>Fred Fish4-5/+13
2006-07-31 Fred Fish <fnf@specifix.com> * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC instead of calling frame_obstack_zalloc directly. (arm_make_stub_cache): Ditto. * frame-unwind.h: Ditto. * frame.c (create_new_frame): Ditto.
2006-07-31 * config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove specialThiemo Seufer2-11/+6
handling for BFD_RELOC_MIPS16_JMP.
2006-07-31*** empty log message ***gdbadmin1-1/+1
2006-07-31daily updateAlan Modra1-1/+1
2006-07-30daily updateAlan Modra1-1/+1
2006-07-30*** empty log message ***gdbadmin1-1/+1
2006-07-29* gdb.asm/asm-source.exp: Add alpha-*-netbsd* to the list ofMark Kettenis2-0/+6
NetBSD/ELF targets.
2006-07-29opcodes/Richard Sandiford5-1/+1307
* m68k-opc.c (m68k_opcodes): Fix operand specificer in the Coldfire "fdaddl" entry. gas/testsuite/ * gas/m68k/mcf-fpu.s: Add tests for all addressing modes. * gas/m68k/mcf-fpu.d: Update accordingly.
2006-07-29ld/Richard Sandiford13-108/+218
* Makefile.am (eelf32b4300.c): Update dependencies. (eelf32bmip.c): Likewise. (eelf32bsmip.c): Likewise. (eelf32btsmip.c): Likewise. (eelf32btsmipn32.c): Likewise. (eelf32ltsmip.c): Likewise. (eelf32ltsmipn32.c): Likewise. (eelf32ebmip.c): Likewise. (eelf32ebmipvxworks.c): Likewise. (eelf32elmip.c): Likewise. (eelf32elmipvxworks.c): Likewise. (eelf32bmipn32.c): Likewise. (eelf32lmip.c): Likewise. (eelf32mipswindiss.c): Likewise. (eelf32lsmip.c): Likewise. (eelf64bmip.c): Likewise. (eelf64btsmip.c): Likewise. (eelf64ltsmip.c): Likewise. (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line. (emipsbsd.c): Likewise. (emipsidt.c): Update dependencies. (emipsidtl.c): Likewise. (emipslit.c): Likewise. (emipslnews.c): Likewise. (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation. * Makefile.in: Regenerate. * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define. * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise. * emultempl/irix.em: Include emultempl/mipself.em. * emultempl/mipself.em: New file. ld/testsuite/ * ld-mips-elf/hash1.s, ld-mips-elf/hash1a.d, * ld-mips-elf/hash1b.d, ld-mips-elf/hash1c.d: New tests. * ld-mips-elf/mips-elf.exp: Run them.
2006-07-29daily updateAlan Modra1-1/+1
2006-07-29*** empty log message ***gdbadmin1-1/+1
2006-07-28*** empty log message ***gdbadmin1-1/+1
2006-07-28daily updateAlan Modra1-1/+1
2006-07-27 * MAINTAINERS (Write After Approval): Add myself.Bob Wilson2-0/+5
2006-07-27 * main.c (captured_main): Print a newline after callingDaniel Jacobowitz2-12/+11
print_gdb_version instead of waiting until after the symbol file has been read. Adjust error_pre_print, quit_pre_print, and warning_pre_print values.
2006-07-27 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.Daniel Jacobowitz2-28/+16
2006-07-27 * target.h (target_read_stralloc): New prototype.Daniel Jacobowitz3-16/+68
* target.c (target_read_alloc_1): Renamed from target_read_alloc. Take new PADDING argument. (target_read_alloc): Use it. (target_read_stralloc): New function.
2006-07-27merge from gccDJ Delorie2-1/+28
2006-07-27 * server.c (handle_query): Correct qPart to qXfer.Daniel Jacobowitz2-1/+5
2006-07-27 * remote.c (remote_protocol_features): Correct qPart to qXfer.Daniel Jacobowitz2-1/+5
2006-07-27*** empty log message ***gdbadmin1-1/+1