aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-06-07 * opncls.c (bfd_fopen): New API.Mark Mitchell3-59/+79
(bfd_openr): Use it. (bfd_fdopenr): Likewise. * bfd-in2.h: Regenerated.
2005-06-07 * Makefile.am (ALL_MACHINES): Add ms1 support.Aldy Hernandez11-0/+752
(ALL_MACHINES_CFILES): Same. (BFD32_BACKENDS): Same. (BFD32_BACKENDS_CFILES): Same. * Makefile.in: Regenerate. * archures.c (bfd_architecture): Add ms1 entries. Externalize bfd_ms1_arch. (bfd_archures_list): Add bfd_ms1_arch. * bfd-in2.h: Regenerate. * cpu-ms1.c: New file. * elf32-ms1.c: New file. * targets.c: Define extern of bfd_elf32_ms1_vec. Add bfd_elf32_ms1_vec to _bfd_target_vector. * configure.in: Add bfd_elf32_ms1_vec case. * configure: Regenerate. * config.bfd: Add ms1-*-elf to table.
2005-06-07gas:Zack Weinberg1-0/+4
* cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h * config/tc-xtensa.c, config/tc-z8k.c: Replace all instances of the string "_apply_fix3" with "_apply_fix". * po/POTFILES.in, po/gas.pot: Regenerate. bfd: * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment. cgen: * doc/porting.texi: Change all mention of md_apply_fix3 and gas_cgen_md_apply_fix3 to md_apply_fix and gas_cgen_md_apply_fix respectively.
2005-06-07missed committing fromAlan Modra1-1/+1
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
2005-06-07 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.Alan Modra3-0/+9
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2005-06-07daily updateAlan Modra1-1/+1
2005-06-06bfd/H.J. Lu10-4/+518
2005-06-06 H.J. Lu <hongjiu.lu@intel.com> PR 990 * bfd.c (bfd_find_line): New. * dwarf2.c (comp_unit): Add variable_table. (funcinfo): Add file, line, and sec. (varinfo): New. (lookup_symbol_in_function_table): New. (lookup_symbol_in_variable_table): New. (scan_unit_for_functions): Renamed to ... (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and DW_TAG_variable. (comp_unit_find_nearest_line): Updated. (comp_unit_find_line): New. (_bfd_dwarf2_find_line): New. * elf-bfd.h (_bfd_elf_find_line): New. (_bfd_generic_find_line): New. Defined. * elf.c (_bfd_elf_find_line): New. * libbfd-in.h (_bfd_dwarf2_find_line): New. (_bfd_generic_find_line): New. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. * libbfd.c (_bfd_generic_find_line): New. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line with _bfd_generic_find_line. (bfd_target): Add _bfd_find_line. binutils/ 2005-06-06 H.J. Lu <hongjiu.lu@intel.com> PR 990 * nm.c (print_symbol): Call bfd_find_line before bfd_find_nearest_line.
2005-06-062005-06-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-6/+20
* dwarf2.c (decode_line_info): Properly set low_pc.
2005-06-06 * elf64-ppc.c (ppc_stub_name): Return immediately on bfd_malloc fail.Alan Modra2-16/+20
(ppc64_elf_edit_opd): Ignore zero size .opd. Check bfd_alloc return value.
2005-06-06bfd/Alan Modra2-6/+16
* elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd case, include addend when indexing .opd section map. (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides clear opd_adjust array if no_opd_opt set. Tidy code. * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. ld/ * emultempl/ppc64elf.em (ppc_before_allocation): Always run ppc64_elf_edit_opd.
2005-06-06daily updateAlan Modra1-1/+1
2005-06-05daily updateAlan Modra1-1/+1
2005-06-042005-06-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* dwarf2.c (comp_unit): Fix a typo in comment.
2005-06-04daily updateAlan Modra1-1/+1
2005-06-03Remove spurious blank spaceNick Clifton1-1/+1
2005-06-03Convert to ISO C90 formattingNick Clifton2-117/+109
2005-06-03include/Alan Modra5-127/+245
* bfdlink.h (struct bfd_link_callbacks): Add einfo. bfd/ * configure.in: Bump version * configure: Regenerate. * elflink.c (elf_link_input_bfd): Use einfo linker callback to print discarded section sym refs and kill linker output. * simple.c (simple_dummy_einfo): New function. (bfd_simple_get_relocated_section_contents): Init callbacks.einfo. ld/ * ldmain.c (link_callbacks): Add einfo. (add_archive_element): Use passed info, not link_info. (constructor_callback): Likewise. (reloc_overflow): Don't handle null bfd specially. (reloc_dangerous, unattached_reloc): Likewise. * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd. (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
2005-06-03 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndxAlan Modra2-18/+22
for all reloc types.
2005-06-03daily updateAlan Modra1-1/+1
2005-06-02 * elf64-ppc.c (add_symbol_adjust): Set sym visibility to mostAlan Modra2-4/+10
restrictive of func code and func descr for undefined syms as well as defined.
2005-06-02daily updateAlan Modra1-1/+1
2005-06-01* Makefile.am: Regenerate dependencies with 'make dep-am'.Jim Blandy3-26/+33
* Makefile.in: Regenerate.
2005-06-01daily updateAlan Modra1-1/+1
2005-05-31 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.Richard Henderson2-12/+23
(ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80. (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC. (elf64_alpha_want_plt): Update to match. (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags. (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
2005-05-31 * elf32-arm.c (elf32_arm_reloc_type_lookup)Zack Weinberg2-16/+10
(elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo): Use ISO C90 function declaration style.
2005-05-31Fix for IA-64 gdb backtrace of threads in syscalls, reported by Jeff Johnson.Jim Wilson2-2/+13
* elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program header PF_R flag on PT_LOAD segments.
2005-05-31daily updateAlan Modra1-1/+1
2005-05-30 * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base forRichard Henderson2-2/+7
the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
2005-05-30daily updateAlan Modra1-1/+1
2005-05-29 * configure.in (--enable-secureplt): New.Richard Henderson5-440/+456
* elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New. (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New. (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New. (elf64_alpha_use_secureplt): New. (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New. (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New. (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt. (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove. (struct alpha_elf_link_hash_entry): Add plt_offset. (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove. (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove. (PLT_ENTRY_WORD3): Remove. (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY on .plt and create .got.plt. (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values. (get_got_entry): Initialize plt_offset. (elf64_alpha_want_plt): New. (elf64_alpha_check_relocs): Use it. (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate plt entries here. (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal error as user error. (elf64_alpha_size_plt_section_1): Allocate one plt entry per got subsection. (elf64_alpha_size_plt_section): Size .got.plt section. (elf64_alpha_size_rela_got_1): Don't allocate relocations if plt entries used. (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section. Add PLTRO DYNAMIC entry. (elf64_alpha_finish_dynamic_symbol): Generate secureplt format. (elf64_alpha_finish_dynamic_sections): Likewise.
2005-05-29daily updateAlan Modra1-1/+1
2005-05-282005-05-28 David Daney <ddaney@avtrex.com>Daniel Jacobowitz2-12/+55
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move calculation of DT_RELSZ to occur after all dynamic relocations are created.
2005-05-282005-05-28 Eli Zaretskii <eliz@gnu.org>Andreas Jaeger4-4/+163
* configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS. * config.in, configure: Regenerate.
2005-05-28daily updateAlan Modra1-1/+1
2005-05-27daily updateAlan Modra1-1/+1
2005-05-26* elfxx-mips.c (_bfd_mips_elf_section_processing): Warn andMaciej W. Rozycki2-0/+32
stop processing of options if one of invalid size is encountered. (_bfd_mips_elf_section_from_shdr): Likewise. (_bfd_mips_elf_fake_sections): Reset the type of empty special sections.
2005-05-26 * elf64-alpha.c (struct alpha_elf_link_hash_entry): RemoveRichard Henderson2-26/+7
plt_old_section, plt_old_value. (elf64_alpha_adjust_dynamic_symbol): Don't set it. (elf64_alpha_size_plt_section_1): Don't use it.
2005-05-26 * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 andJakub Jelinek2-6/+36
first shdr has sh_size == 0. Fail if e_shnum is large to cause arithmetic overflow when allocating the i_shdr array. Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
2005-05-26 * elf64-alpha.c: Update all function definitions to ISO C. RemoveRichard Henderson2-1579/+1293
all function prototypes; rearrange functions into def-use order.
2005-05-26daily updateAlan Modra1-1/+1
2005-05-25 * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iterationRichard Henderson2-6/+19
in the presence of deleting elements. (elf64_alpha_size_got_sections): Zero dead got section size.
2005-05-25daily updateAlan Modra1-1/+1
2005-05-24daily updateAlan Modra1-1/+1
2005-05-23Approved by nickc@redhat.comFred Fish40-4/+325
2005-05-23 Fred Fish <fnf@specifixinc.com> * dwarf2.c (struct dwarf2_debug): Add inliner_chain member. (struct funcinfo): Add caller_func, caller_file, caller_line. tag, and nesting_level members. (lookup_address_in_function_table): Change first passed parameter from "struct funcinfo *" to "struct comp_unit *". (lookup_address_in_function_table): Dereference unit to find function table. (lookup_address_in_function_table): Traverse the function list to create a chain of inlined functions back to the first non inlined function. (scan_unit_for_functions): Remember tag and nesting level. Handle DW_AT_call_file and DW_AT_call_line. (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table call to pass unit pointer instead of function table pointer. For inlined functions, save pointer to the inliner chain. (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL. (_bfd_dwarf2_find_inliner_info): New function that returns information from the inliner chain after a call to bfd_find_nearest_line. * bfd.c (bfd_find_inliner_info): Define using BFD_SEND. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for NAME##_find_inliner_info. (bfd_target): Add _bfd_find_inliner_info. * bfd-in2.h: Regenerate. * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as macro that always returns bfd_false. (_bfd_dwarf2_find_inliner_info): Declare. * libbfd.h: Regenerate. * elf32-arm.c (elf32_arm_find_inliner_info): New function that calls _bfd_dwarf2_find_inliner_info. (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info. * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function that calls _bfd_dwarf2_find_inliner_info. * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare. * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to _bfd_mips_elf_find_inliner_info. * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto. * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto. * elf.c (_bfd_elf_find_inliner_info): New function that calls _bfd_dwarf2_find_inliner_info. * elf-bfd.h (_bfd_elf_find_inliner_info): Declare. * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to _bfd_elf_find_inliner_info. * coffgen.c (coff_find_inliner_info): New function that calls _bfd_dwarf2_find_inliner_info. * libcoff-in.h (coff_find_inliner_info): Declare. * libcoff.h: Regenerate. * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info. (pmac_xcoff_vec) Ditto. * coff64-rs6000.c (rs6000coff64_vec): Ditto. (aix5coff64_vec): Ditto. * aout-target.h (MY_find_inliner_info): Define as _bfd_nosymbols_find_inliner_info. * aout-tic30.c (MY_find_inliner_info): Ditto. * binary.c (binary_find_inliner_info): Ditto. * i386msdos.c (msdos_find_inliner_info): Ditto. * ihex.c (ihex_find_inliner_info): Ditto. * libaout.h (aout_32_find_inliner_info): Ditto. * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto. * mach-o.c (bfd_mach_o_find_inliner_info): Ditto. * mmo.c (mmo_find_inliner_info): Ditto. * nlm-target.h (nlm_find_inliner_info): Ditto. * pef.c (bfd_pef_find_inliner_info): Ditto. * ppcboot.c (ppcboot_find_inliner_info): Ditto. * srec.c (srec_find_inliner_info): Ditto. * tekhex.c (tekhex_find_inliner_info): Ditto. * versados.c (versados_find_inliner_info): Ditto. * xsym.c (bfd_sym_find_inliner_info): Ditto. * ieee.c (ieee_find_inliner_info): New function that always returns FALSE. * oasys.c (oasys_find_inliner_info): Ditto. * vms.c (vms_find_inliner_info): Ditto.
2005-05-23 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC codeAlan Modra2-4/+27
force old plt layout.
2005-05-23 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocatedRichard Henderson2-15/+37
sections. (elf64_alpha_check_relocs): Likewise. (elf64_alpha_relocate_section): Don't emit dynamic relocations to non-allocated sections.
2005-05-23daily updateAlan Modra1-1/+1
2005-05-22 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr toRichard Henderson2-37/+95
undefweak to use zero register. Call elf64_alpha_relax_got_load if not all uses removed. (elf64_alpha_relax_got_load): Relax undefweak to lda zero. (elf64_alpha_relax_section): Handle undefweak symbols. (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak. (elf64_alpha_size_rela_got_1): Likewise. (elf64_alpha_relocate_section): Likewise.
2005-05-22 * elf64-alpha.c (elf64_alpha_relax_section): Only operateRichard Henderson2-1/+6
on SEC_CODE sections.
2005-05-22 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep toDave Anglin3-11/+25
unsigned int *. (som_write_space_strings): Change type of tmp_space and p to char *. (som_write_symbol_strings): Likewise. Also change type of comp to char *comp[4]. (som_begin_writing): Change type of strings_size to unsigned int. (som_finish_writing): Likewise. (som_slurp_reloc_table): Change type of external_relocs to unsigned char *. * som.h (struct som_section_data_struct): Change type of reloc_stream field to unsigned char *.