aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-04-13 * objdump.c: Do an ifdef on __GO32__, not unix.Ian Lance Taylor2-3/+7
1994-04-13Fix typo.Jeff Law1-1/+1
1994-04-13 * gdb.t15/gdbme.c (t_func_values): Do not compare function pointersJeff Law1-0/+5
directly. Instead compare the return values from actual calls.
1994-04-13Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-18/+36
* subsegs.c (subsegs_begin): Call memset with args in the correct order. (subseg_get): Clear newly allocated seginfo, set its pointer slots to NULL instead of 0. Fixes a problem observed in sparc-lynx progressive.
1994-04-12 * som.c (som_write_fixups): Always emit at leastJeff Law2-3/+8
one relocation for any non-bss section.
1994-04-12 * mh-irix4 (CC): Change -XNh1500 to -XNh2000.Ian Lance Taylor1-1/+1
1994-04-12Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)Stu Grossman2-1/+8
* xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT, smtyp XTY_LD, sclass XMC_DS (external data segment label). They often have the same names as debug symbols for functions, and confuse lookup_symbol().
1994-04-11 * Makefile.in (check): Set TCL_LIBRARY for runtest.Bill Cox8-43/+219
1994-04-11 * elfcode.h (assign_file_positions_except_relocs): Don't requireIan Lance Taylor2-0/+7
the file alignment to correspond to the page size when linking with -N.
1994-04-11 * test-build.mk (CC): For mips-sgi-irix4, change -XNh1500 toJim Wilson1-5/+31
-XNh2000.
1994-04-11 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.Jim Kingdon2-1/+12
* config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than REGISTER_RAW_SIZE (1). Together these changes work around a bug in HP's compiler. Both seem to be necessary.
1994-04-11 * scripttempl/i386coff.sc: If relocating, don't put .init andIan Lance Taylor2-2/+10
.fini sections into .text; keep them separate. * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not exist, get crtbegin based on gcc -print-libgcc-file-name. (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1994-04-11 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbolsJeff Law2-3/+67
with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables are type mst_solib_trampoline.
1994-04-11 * From Peter Schauer with minor modifications.Jeff Law1-0/+7
* gdb.t15/return.exp (return_tests): Handle targets where "return" stops in mid-line in the caller. Add xfail for returning a float value on X86 targets.
1994-04-11 * config/tc-hppa.c (pa_procend): Handle case where label wasJeff Law2-2/+40
defined after the .proc directive.
1994-04-11 * gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.Jeff Law1-0/+3
1994-04-11 * gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.Jeff Law1-0/+1
1994-04-11 * config/tc-hppa.c (pa_procend): Give an error if we encounter aJeff Law2-0/+8
procend for a procedure without a name.
1994-04-11 * gas/hppa/reloc/funcrelobug.s: Place the trampoline in theJeff Law1-0/+5
$DATA$ rather than the $LIT$ subspace.
1994-04-10 * elfcode.h (write_relocs): For rela relocations, adjust theJeff Law2-0/+18
addend for relocations involving section symbols to account for the lossage of 1:1 mapping from input section symbols to output section symbols.
1994-04-09 * configure: Unknown options are fatal again.David MacKenzie1-0/+4
1994-04-09Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)Jim Kingdon2-5/+15
* config/m68k/es1800.mt: Change comments. Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com) * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1994-04-08update platform targetsKaren Christiansen1-9/+8
1994-04-08 * lynx-nat.c: Restore regmap structure for SPARC. It's neededStu Grossman2-2/+80
for core files.
1994-04-08 * values.c (unpack_long): Remove obsolete comment about using aJim Kingdon2-3/+3
switch statement.
1994-04-08* symfile.c (symbol_file_command): Add comments about command syntax.Jim Kingdon1-0/+4
1994-04-08 * aoutx.h (NAME(aout,make_sections)): New function.Ian Lance Taylor2-31/+44
(NAME(aout,some_aout_object_p)): Call NAME(aout,make_sections) rather than making sections inline. (NAME(aout,mkobject)): Don't make any sections. (NAME(aout,adjust_sizes_and_vmas)): Call NAME(aout,make_sections). (NAME(aout,final_link)): Don't dereference obj_textsec (abfd) or obj_datasec (abfd) if they are NULL. * libaout.h (NAME(aout,make_sections)): Declare. * bout.c (b_out_mkobject): Don't make any sections. (b_out_write_object_contents): Call aout_32_make_sections. (b_out_set_section_contents): Likewise. * i386os9k.c (os9k_mkobject): Don't make any sections. (os9k_write_object_contents): Call aout_32_make_sections. (os9k_set_section_contents): Likewise.
1994-04-08 * configure: Ignore --x-includes and --x-libraries, for AutoconfDavid MacKenzie2-1/+8
compatibility.
1994-04-08 * aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in targetIan Lance Taylor2-3/+8
index.
1994-04-08 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,Peter Schauer5-0/+76
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c: New files for MIPS SVR4 support.
1994-04-08 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,Peter Schauer1-0/+4
OSF/1 has shared libraries.
1994-04-08 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):Peter Schauer2-3/+20
Define to handle stepping into -g compiled shared libraries. * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle stepping into -g compiled shared libraries.
1994-04-08 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolinesPeter Schauer14-226/+773
are in the .plt section. * minsyms.c (lookup_solib_trampoline_symbol_by_pc, find_solib_trampoline_target): New functions for handling stepping into -g compiled shared libraries. * symtab.h (lookup_solib_trampoline_symbol_by_pc, find_solib_trampoline_target): Add prototypes. * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Define to handle stepping into -g compiled shared libraries. * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle stepping into -g compiled shared libraries. * configure.in: Add mips-*-sysv4* support. * config/mips/mipsv4.mh, config/mips/mipsv4.mt, config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c: New files for MIPS SVR4 support. * Makefile.in: Update for new mipsv4 files. * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use read_next_frame_reg to obtain the frame relative stack pointer. * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to obtain the frame relative stack pointer. * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1): Handle stStatic and stStaticProc symbols in stabs-in-ecoff output by entering them into the minimal symbol table. * printcmd.c (print_scalar_formatted): Do not try to unpack to a long for float formats. * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not get defined in <link.h>. * solib.c (solib_add): Add shared library sections to the section table of the target before adding the symbols. * partial-stab.h: Relocate static and global functions. * dbxread.c (read_dbx_symtab): Remove unused variable end_of_text_address. Relocate text_addr when passing it to end_psymtab. For Alpha OSF/1 targets, enable gdb to set breakpoints in shared library functions before the executable is run. Retrieve dynamic symbols from stripped executables. * mipsread.c (read_alphacoff_dynamic_symtab): New function. * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message if no debugging symbols were found. * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS is defined. * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define, OSF/1 has shared libraries.
1994-04-08Add clean target.David Edelsohn2-0/+9
1994-04-08 * config.bfd, configure.host: Add mips-*-sysv4* support.Peter Schauer1-0/+4
1994-04-08 * config.guess: Add SINIX support.Peter Schauer2-0/+6
* configure.in: Add mips-*-sysv4* support.
1994-04-07note deleted .mt filesKen Raeburn1-4/+0
1994-04-07 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changesIan Lance Taylor2-109/+79
to BFD handling of dynamic symbols.
1994-04-07 * config/tc-mips.c (macro): Pass NULL for expression argument toIan Lance Taylor2-6/+48
macro_build for nori case. (SWITCH_TABLE): Define. (mips_force_relocation): Force a relocation for a switch table entry. (md_apply_fix): Write switch table entry value into file. (tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry, and set the addend to the difference between the reloc address and the subtrahend.
1994-04-07 * coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.Ian Lance Taylor2-44/+226
(mips_ecoff_swap_reloc_in): For MIPS_R_SWTICH, copy r_symndx into r_offset and set r_symndx to RELOC_SECTION_TEXT. (mips_ecoff_swap_reloc_out): For MIPS_R_SWITCH, get the r_symndx value from the r_offset field. (mips_adjust_reloc_in): Maximum r_type value is now MIPS_R_SWITCH. For MIPS_R_SWITCH, copy the r_offset field into the addend field. (mips_adjust_reloc_out): For MIPS_R_SWITCH, copy the addend field into the r_offset field. (mips_switch_reloc): New function. (mips_bfd_reloc_type_lookup): Translate BFD_RELOC_GPREL32 into MIPS_R_SWITCH. (mips_relocate_section): Handle MIPS_R_SWITCH. (mips_relax_section): Adjust MIPS_R_SWITCH offset if necessary.
1994-04-07Comment change.Ian Lance Taylor1-10/+13
1994-04-07 * mips.h (MIPS_R_SWITCH): Define.Ian Lance Taylor2-95/+257
1994-04-07 * elfcode.h (elf_set_section_contents): Support calling the backendJeff Law5-0/+50
function elf_backend_begin_write_processing when just beginning to write an object file. * libelf.h (elf_backend_begin_write_processing): Declare. * elf{32,64}-target.h (elf_backend_begin_write_processing): Provide a default definition. (elf{32,64}_bed): Add elf_backend_begin_write_processing. * elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration. (elf_hppa_tc_make_sections): Likewise. * elf32-hppa.c (symext_chain_built): Delete. (symext_chain_size): Renamed from symextn_contents_real_size. (elf32_hppa_backend_{begin,final}_write_processing): New functions. (add_entry_to_symext_chain): New function. (hppa_elf_set_section_contents): Ignore writes to the symbol extension section until it's been rebuilt internally. (hppa_elf_get_section_contents): Symbol extension section is no longer special. (elf_backend_{begin,final}_write_processing): Define. (elf_hppa_tc_make_sections): Simplify now that much code has migrated into elf32_hppa_backend_{being,final}_write_processing.
1994-04-07 * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.Jeff Law2-24/+14
(elf_tc_make_sections): Likewise. (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls. * config/tc-hppa.c (hppa_tc_make_sections): Delete function. (hppa_tc_symbol): Likewise. * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and elf_tc_make_sections stuff. It was there to support PA braindamage which has been fixed, and in the case of elf_tc_make_sections is redundant with elf_tc_final_processing.
1994-04-07 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for theJeff Law4-14/+25
manufacturer.
1994-04-07 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -RIan Lance Taylor5-72/+278
(--dynamic-reloc) arguments to objdump. * nm.c (dynamic): New static variable. (long_options): Added "dynamic". (usage): Mention -D and --dynamic. (main): Add D to getopt string. Handle -D by setting dynamic. (display_rel_file): If dynamic is non-zero, read dynamic symbols rather than normal symbols. * nm.1: Updated for -D (--dynamic) option. * objdump.c (dump_dynamic_symtab): New global variable. (dump_dynamic_reloc_info): New global variable. (dynsyms, dynsymcount): New global variables. (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc. (long_options): Added "dynamic-reloc" and "dynamic-syms". (slurp_symtab): If no symbols, return rather than exit. (slurp_dynamic_symtab): New function. (display_bfd): Handle dump_dynamic_symtab and dump_dynamic_reloc_info. (dump_symbols): Take new dynamic argument, indicating whether to display dynamic symbols. (dump_relocs): Move most printing into dump_reloc_set. (dump_dynamic_relocs): New function. (dump_reloc_set): New function, extracted from dump_relocs. (main): Add R and T to getopt string. Handle -T by setting dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info. * objdump.1: Updated for -R (--dynamic-reloc) and -T (--dynamic-syms) options. * binutils.texi: Updated for new nm and objdump options.
1994-04-07 * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector.Ian Lance Taylor14-11/+100
1994-04-07 * sunos.c (MY_read_dynamic_symbols): Don't define.Ian Lance Taylor2-129/+35
(MY_read_dynamic_relocs): Don't define. (MY_get_dynamic_symtab_upper_bound): Define. (MY_canonicalize_dynamic_symtab): Define. (MY_get_dynamic_reloc_upper_bound): Define. (MY_canonicalize_dynamic_reloc): Define. (struct sunos_dynamic_info): Change type of dynsym_count and dynrel_count to long. Add fields canonical_dynsym and canonical_dynrel. (sunos_read_dynamic_info): Check that BFD had DYNAMIC flag set. Clear info->canonical_dynsym and info->canonical_dynrel. (MY(read_dynamic_symbols)): Removed. (MY(read_dynamic_relocs)): Removed. (sunos_get_dynamic_symtab_upper_bound): New function. (sunos_canonicalize_dynamic_symtab): New function. (sunos_get_dynamic_reloc_upper_bound): New function. (sunos_canonicalize_dynamic_reloc): New function. * libaout.h: Declare struct reloc_ext_external and reloc_std_external to avoid prototype problems. (struct aout_backend_data): Remove fields read_dynamic_symbols and read_dynamic_relocs. (NAME(aout,translate_symbol_table)): Declare. (NAME(aout,swap_ext_reloc_in)): Declare. (NAME(aout,swap_std_reloc_in)): Declare. * aoutx.h (NAME(aout,translate_symbol_table)): Renamed from translate_symbol_table and made non-static. Changed all callers. (NAME(aout,slurp_symbol_table)): Don't read dynamic symbols. (NAME(aout,slurp_reloc_table)): Don't read dynamic relocs. (NAME(aout,get_reloc_upper_bound)): Don't count dynamic relocs. * aoutf1.h (aout_32_sunos4_write_object_contents): Don't bother to remove dynamic symbols and relocs. They will no longer be present. (MY_read_dynamic_symbols): Don't define. (MY_read_dynamic_relocs): Don't define. (sunos4_aout_backend): Don't initialize dynamic entry points. * aout-target.h (MY_read_dynamic_symbols): Don't define. (MY_read_dynamic_relocs): Don't define. (MY(backend_data)): Don't initialize dynamic entry points. (MY_get_dynamic_symtab_upper_bound): If not defined, define to _bfd_nodynamic version. (MY_canonicalize_dynamic_symtab): Likewise. (MY_get_dynamic_reloc_upper_bound): Likewise. (MY_canonicalize_dynamic_reloc): Likewise.
1994-04-07 * targets.c (bfd_target): Add fieldsIan Lance Taylor2-19/+65
_bfd_get_dynamic_symtab_upper_bound, _bfd_canonicalize_dynamic_symtab, _bfd_get_dynamic_reloc_upper_bound, _bfd_canonicalize_dynamic_reloc. (BFD_JUMP_TABLE_DYNAMIC): Define. * libbfd-in.h (_bfd_nodynamic_get_dynamic_symtab_upper_bound): Define. (_bfd_nodynamic_canonicalize_dynamic_symtab): Define. (_bfd_nodynamic_get_dynamic_reloc_upper_bound): Define. (_bfd_nodynamic_canonicalize_dynamic_reloc): Define. * bfd.c (bfd_get_dynamic_symtab_upper_bound): Define. (bfd_canonicalize_dynamic_symtab): Define. (bfd_get_dynamic_reloc_upper_bound): Define. (bfd_canonicalize_dynamic_reloc): Define. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt.
1994-04-07 * cf-m68klynx.c: Include sysdep.h.Ian Lance Taylor1-0/+1