aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-03-30Wed Mar 30 16:25:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)Ian Lance Taylor43-961/+1301
Changes to let BFD return an error indication from get_symtab_upper_bound, bfd_canonicalize_symtab, bfd_get_reloc_upper_bound, and bfd_canonicalize_reloc. They now return long instead of unsigned int, and use -1 to indicate an error. Along the way, rename get_symtab_upper_bound to bfd_get_symtab_upper_bound. * bfd.c (bfd_get_reloc_upper_bound): Return long, and -1 on errors. (bfd_canonicalize_reloc): Likewise. * syms.c (bfd_get_symtab_upper_bound): Renamed from get_symtab_upper_bound. * targets.c (bfd_target): Renamed _get_symtab_upper_bound to _bfd_get_symtab_upper_bound, and changed it and _bfd_canonicalize_symtab and _get_reloc_upper_bound and _bfd_canonicalize_reloc to all return long. * aoutx.h (NAME(aout,get_symtab)): Return long, and -1 on errors. (NAME(aout,canonicalize_reloc)): Likewise. (NAME(aout,get_reloc_upper_bound)): Likewise. (NAME(aout,get_symtab_upper_bound)): Likewise. * bout.c (b_out_canonicalize_reloc): Likewise. (b_out_get_reloc_upper_bound): Likewise. * coffcode.h (coff_canonicalize_reloc): Likewise. * coffgen.c (coff_get_symtab_upper_bound): Likewise. (coff_get_symtab): Likewise. (coff_get_reloc_upper_bound): Likewise. * ecoff.c (ecoff_get_symtab_upper_bound): Likewise. (ecoff_get_symtab): Likewise. (ecoff_canonicalize_reloc): Likewise. * elfcode.h (elf_get_symtab_upper_bound): Likewise. (elf_get_reloc_upper_bound): Likewise. (elf_canonicalize_reloc): Likewise. (elf_get_symtab): Likewise. * hp300hpux.c (MY(get_symtab)): Likewise. (MY(get_symtab_upper_bound)): Likewise. (MY(canonicalize_reloc)): Likewise. * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise. * ieee.c (ieee_slurp_external_symbols): Change return type to boolean. Check for errors from get_symbol. (ieee_slurp_symbol_table): Change return type to boolean. Check for errors from ieee_slurp_external_symbols. (ieee_get_symtab_upper_bound): Return long, and -1 on errors. (ieee_get_symtab): Likewise. (ieee_get_reloc_upper_bound): Likewise. (ieee_canonicalize_reloc): Likewise. * mipsbsd.c (MY(canonicalize_reloc)): Likewise. * nlmcode.h (nlm_get_symtab_upper_bound): Likewise. (nlm_get_symtab): Likewise. (nlm_get_reloc_upper_bound): Likewise. (nlm_canonicalize_reloc): Likewise. * oasys.c (oasys_get_symtab_upper_bound): Likewise. (oasys_get_symtab): Likewise. (oasys_get_reloc_upper_bound): Likewise. (oasys_canonicalize_reloc): Likewise. * som.c (som_get_symtab_upper_bound): Likewise. (som_get_symtab): Likewise. (som_get_reloc_upper_bound): Likewise. (som_canonicalize_reloc): Likewise. * srec.c (srec_get_symtab_upper_bound): Likewise. (srec_get_symtab): Likewise. (srec_get_reloc_upper_bound): Define as bfd_0l. (srec_canonicalize_reloc): Likewise. * tekhex.c (tekhex_get_symtab): Return long, and -1 on errors. (tekhex_get_symtab_upper_bound): Likewise. (tekhex_get_reloc_upper_bound): Define as bfd_0l. (tekhex_canonicalize_reloc): Likewise. * libaout.h (NAME(aout,get_symtab_upper_bound)): Change declaration to return long. (NAME(aout,get_symtab)): Likewise. (NAME(aout,canonicalize_reloc)): Likewise. (NAME(aout,get_reloc_upper_bound)): Likewise. * libcoff-in.h (coff_get_symtab_upper_bound): Likewise. (coff_get_symtab): Likewise. (coff_get_reloc_upper_bound): Likewise. * libecoff.h (ecoff_get_symtab_upper_bound): Likewise. (ecoff_get_symtab): Likewise. (ecoff_canonicalize_reloc): Likewise. * libelf.h (bfd_elf32_get_symtab_upper_bound): Likewise. (bfd_elf32_get_symtab): Likewise. (bfd_elf32_get_reloc_upper_bound): Likewise. (bfd_elf32_canonicalize_reloc): Likewise. (bfd_elf64_get_symtab_upper_bound): Likewise. (bfd_elf64_get_symtab): Likewise. (bfd_elf64_get_reloc_upper_bound): Likewise. (bfd_elf64_canonicalize_reloc): Likewise. * libnlm.h (nlmNAME(get_symtab_upper_bound)): Likewise. (nlmNAME(get_symtab)): Likewise. (nlmNAME(get_reloc_upper_bound)): Likewise. (nlmNAME(canonicalize_reloc)): Likewise. * archive.c (compute_and_write_armap): Use error_return and no_memory_return labels rather than freeing information in various places. Change storage, symcount and src_count to long. Check errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * bout.c (b_out_relax_section): Change reloc_size to long. Check for errors from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (b_out_get_relocated_section_contents): Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise. * elf32-mips.c: Likewise. * elf32-hppa.c (hppa_elf_stub_finish): Likewise. (hppa_look_for_stubs_in_section): Check for errors from bfd_get_symtab_upper_bound, bfd_canonicalize_symtab, and bfd_canonicalize_reloc. * ecofflink.c (bfd_ecoff_debug_accumulate_other): Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * linker.c (generic_link_read_symbols): Likewise. (_bfd_generic_final_link): Check for errors from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise. * reloc16.c (bfd_coff_reloc16_relax_section): Likewise. (bfd_coff_reloc16_get_relocated_section_contents): Likewise. * libbfd.c (bfd_0l): New function. * libbfd-in.h (bfd_0l): Declare. * aix386-core.c: Change get_symtab_upper_bound, get_symtab, get_reloc_upper_bound, and canonicalize_reloc to use bfd_0l rather than bfd_0u. * cisco-core.c, hppabsd-core.c, hpux-core.c: Likewise. * irix-core.c, osf-core.c, ptrace-core.c, trad-core.c: Likewise. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * libcoff.h: Rebuilt. * nlm32-sparc.c (nlm_sparc_read_reloc): Remove unused variables temp and name.
1994-03-30 * elfread.c (elf_symtab_read): Change storage_needed,Ian Lance Taylor3-9/+29
number_of_symbols and i to long. Rename get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * nlmread.c (nlm_symtab_read): Same changes.
1994-03-30 * gprof.c (getsymtab): Change nosyms to long. RenameIan Lance Taylor2-4/+23
get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1994-03-30 Update for recent BFD changes to symbol and reloc reading. RenameIan Lance Taylor5-71/+178
all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound. Also: * coffgrok.c (symcount): Change to long. (do_sections_p1): Check for error return from bfd_get_reloc_upper_bound. Change relcount to long, and check for error from bfd_canonicalize_reloc. (coff_grok): Change storage to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and i to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_sections): Change reloc_size and reloc_count to long. Check for error from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change reloc_count_ptr argument to long *. Make corresponding changes to variables loaded from *reloc_count_ptr. * nm.c (display_rel_file): Change storage and symcount to long. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * objcopy.c (filter_symbols): Change symcount, src_count and dst_count to long. (copy_object): Change symcount to long. Pass another argument to fprintf. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_section): Change relcount to long. Check for errors from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mark_symbols_used_in_relocations): Change relcount and i to long. Check for errors form bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. * objdump.c (storage): Remove global variable. (symcount): Changed to long. (slurp_symtab): New local variable storage. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (remove_useless_symbols): Change return value and count to long. (objdump_print_address): Change min, max, thisplace and i to long. (disassemble_data): Change i to long. (dump_symbols): Change count to long. (dump_relocs): Change relcount to long. Check for errors from bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc. (display_info_table): Add casts when passing LONGEST_ARCH for printf %* argument.
1994-03-30 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFDIan Lance Taylor1-0/+6
changes: get_symtab_upper_bound renamed and returns long, bfd_canonicalize_symtab returns long, check for error indications.
1994-03-30 * xcoffread.c (xcoff_next_symbol_text): New function.Jim Kingdon2-13/+30
(read_xcoff_symtab): Set next_symbol_text_func to it. Move raw_symbol outside of read_xcoff_symtab.
1994-03-30* remote.c (getpkt): Remove unused "out" label.Jim Kingdon2-1/+4
1994-03-30 * breakpoint.c (print_it_normal): Allow GDB to notify the userJeff Law2-5/+9
about more than one watchpoint being triggered.
1994-03-30* hosts/dpx2.h: Define POSIX_UTIME.Jim Kingdon1-0/+4
1994-03-30* config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.Jim Kingdon2-1/+5
1994-03-30 * blockframe.c (find_pc_partial_function): mst_file_textPeter Schauer2-4/+32
symbols do not live in the shared library transfer table.
1994-03-30 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.Peter Schauer2-297/+76
Remove all conditionals and definitions for ptx. I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c. Fix addresses of floating point registers in REGISTER_U_ADDR. STORE_STRUCT_RETURN now handles cc and gcc conventions. FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through signal trampoline code work. * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix. Remove all conditionals and definitions for ptx. Remove KDB definitions.
1994-03-30 * ch-exp.y (decode_integer_value, match_character_literal,Peter Schauer6-50/+144
match_bitstring_literal): Guard tolower calls with isupper, tolower on old BSD systems blindly subtracts a constant. * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as well when determining the producer of the object file. * mdebugread.c (has_opaque_xref): New function to check for cross reference to an opaque aggregate. * mdebugread.c (parse_symbol, parse_partial_symbols): Do not enter typedefs to opaque aggregates into the symbol tables. * mdebugread.c (parse_external): Remove skip_procedures argument, it has always been 1. Remove code that handled stProc symbols, it was never executed and was wrong, as the index of a stProc symbol points to the local symbol table and not to the auxiliary symbol info. Update caller. * mdebugread.c (parse_partial_symbols): Do not enter external stProc symbols into the partial symbol table, they are already entered into the minimal symbol table. * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix. Remove all conditionals and definitions for ptx. I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c. Fix addresses of floating point registers in REGISTER_U_ADDR. STORE_STRUCT_RETURN now handles cc and gcc conventions. FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through signal trampoline code work. * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix. Remove all conditionals and definitions for ptx. Remove KDB definitions. * symm-nat.c (store_inferior_registers): Fetch registers before storing them to obtain valid floating point control registers. Store fpu registers. * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value. * symm-nat.c (fetch_inferior_registers, child_xfer_memory): Fix typos. * symm-nat.c (child_resume): Update type of `signal' parameter. * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
1994-03-30 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs forPeter Schauer1-0/+12
sequent dynix. * gdb.t06/signals.exp: Add clear_xfail for sequent dynix. * gdb.t15/funcargs.exp: Conditionally step again to really finish from marker_call_with_trampolines. Handle the case where the first step from within call_with_trampolines already steps us back to main. * gdb.t15/gdbme.c: Add comment to closing brace of call_with_trampolines for funcargs.exp.
1994-03-30 * i386-dis.c (struct private): Renamed to dis_private. `private'Peter Schauer1-0/+5
is a reserved word for dynix cc.
1994-03-30 * i386dynix.c, config/i386-dynix.mt: New files, handling DynixPeter Schauer6-2/+104
variant of a.out. * configure.in, config.bfd: Use them for Dynix. * Makefile.in: Add dependencies for i386dynix.o. * targets.c: Add definition for i386dynix_vec.
1994-03-30 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):Jeff Law1-0/+5
Fix typo(s).
1994-03-30 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method forJeff Law2-0/+35
calling import stubs for functions in shared libraries.
1994-03-30 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).Per Bothner2-9/+10
1994-03-30 * ch-lang.c (chill_is_varying_struct): Magic string isPer Bothner2-1/+6
was "<var_length>" is now "__var_length" (more portable).
1994-03-30 * remote.c (getpkt): If we get a timeout, actually retry ratherJim Kingdon2-7/+16
than just giving up the first time it happens. * remote.c: Document sequence numbers. (remote_store_registers): Change syntax of 'P' request so that it never looks like a sequence number.
1994-03-30* config.guess: Recognize NCR running SVR4.3.Jim Kingdon2-0/+7
1994-03-30Modified Files:Kung Hsu3-16/+72
ChangeLog os9kread.c remote-os9k.c * os9kread.c (record_minmal_symbol): add section_offset to relocate minimal symbol table. * os9kread.c (read_minimal_symbols): ditto. * os9kread.c (os9k_symfile_init): increase size of dbg and stb file names. * os9kread.c (read_os9k_psymtab): if there's no dbg file, just return. Also if file addr is 0 leave it 0, not to relocate. * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon', 'set remotexoff' and 'set remotelog' commands.
1994-03-29 * objdump.c (display_file): Close each archive element after itIan Lance Taylor2-41/+58
has been displayed.
1994-03-29 * remote.c (remote_store_registers): Add 'P' request to set anJim Kingdon2-20/+71
individual register. (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print a target address.
1994-03-29Fix last patch.Ian Lance Taylor1-1/+7
1994-03-29 * nm.c (display_archive): Close each archive element after it hasIan Lance Taylor2-3/+11
been displayed.
1994-03-29Put back include to tm-hppa.h mistakenly taken out during a recent checkin.Jeff Law1-4/+46
1994-03-29Minor formatting fixes. (TeXs OK now.)Roland Pesch1-2/+3
1994-03-29Last-minute updates on Steve's last-minute changes.Roland Pesch1-46/+158
TeX formatting remains to be checked.
1994-03-29 binutils.texi(nlmconv): added -d/--debug and -l/--linker infoJeffrey Osier1-0/+15
1994-03-29Fix node structure around new Hitachi nodes so general-purposeRoland Pesch1-4/+4
vn of manual builds OK, too.
1994-03-28Entry for last check in.Ian Lance Taylor1-0/+2
1994-03-28 * Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.Ian Lance Taylor1-5/+10
1994-03-28 * coffcode.h (coff_set_flags): Handle bfd_arch_powerpc likeIan Lance Taylor2-5/+21
bfd_arch_rs6000.
1994-03-28An annoying typo (faflse instead of false). Oopsie.Sean Eric Fagan1-1/+1
1994-03-28 * config.guess: Make BSDI generate i386-unknown-bsd386.Per Bothner2-2/+14
Patch from Paul Eggert <eggert@twinsun.com>.
1994-03-28* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.Ken Raeburn2-0/+11
(OBJ_PROCESS_STAB): Don't define.
1994-03-28 * configure.in: Change error message to refer to bfd/config.bfdIan Lance Taylor2-0/+10
rather than bfd/configure.in.
1994-03-28 * config.bfd (powerpc-*-aix*): New target; use rs6000.mt.Ian Lance Taylor2-1/+7
1994-03-28 * configure.in (powerpc-*-aix*): New target; use rs6000.mt.Ian Lance Taylor1-0/+3
* config/rs6000.mt (SELECT_ARCHITECTURES): Add bfd_powerpc_arch.
1994-03-28 * aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flagIan Lance Taylor2-1/+6
for generated constructor section.
1994-03-28 * configure.in (powerpc-*-aix*): Treat like rs6000-*-*.Ian Lance Taylor2-0/+8
1994-03-28 * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobberIan Lance Taylor1-0/+6
the type of symbol set symbols which happen to be in the absolute or undefined section.
1994-03-28Mon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)Ian Lance Taylor2-0/+2422
* config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604), and -many (all architectures).
1994-03-28Mon Mar 28 12:28:30 1994 David Edelsohn (edelsohn@npac.syr.edu)Ian Lance Taylor2-74/+115
* ppc-opc.c: Define POWER2 as short alias flag. (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and fsqrt.
1994-03-28 * gdb.t07/gdbme.c: More code for watchpoint testing.Jeff Law1-0/+9
* gdb.t07/watchpoint.exp: Accept both "Watchpoint" and "Hardware watchpoint" throughout file. (test_watchpoint_triggered_in_syscall): New test. (test_complex_watchpoint): New test.
1994-03-28 * More fixes for object formats which allow multiple sectionsJeff Law2-16/+91
with the same name: * objcopy.c (setup_section): Make a new output section even if one already exists with the given name. (copy_section): Use isection->output_section rather than trying to look the output section up by its (possibly non-unique) name.
1994-03-27 * gas/hppa/reloc/funcrelocbug.s: New test.Jeff Law3-0/+197
* gas/hppa/reloc/reloc.exp: Run it.
1994-03-27 * config/tc-hppa.c (tc_gen_reloc): Set addend for relocationJeff Law2-24/+38
involving a function symbol which is not a plabel to zero. (md_apply_fix): Never pass a function symbol to field_adjust.