aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-11-03add some options to default CC to make bfd & linker compileKen Raeburn1-2/+2
1994-11-03Changes from binutils net release:Ken Raeburn2-4/+21
* Makefile.in (DEVO_SUPPORT): Include configure.bat and makeall.bat. (DISTDOCDIRS): Add `etc'. (ETC_SUPPORT_PFX): New variable. (taz): Include anything from etc starting with a word in ETC_SUPPORT_PFX.
1994-11-03 * gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d, gas/mips/usw.d:Ian Lance Taylor1-0/+5
Correct test cases.
1994-11-03 * config/tc-mips.c (load_address): Fix RELAX_ENCODE arguments forIan Lance Taylor1-0/+5
NO_PIC case.
1994-11-03 * osfsolib.c (solib_map_sections, first_link_map_member,Peter Schauer2-22/+160
next_link_map_member, xfer_link_map_member): Retrieve and use shared library relocation offset from runtime loader structures. Use libxproc.a routines to get a working version if USE_LDR_ROUTINES is defined. * README: Remove item about shared library relocation for Alpha OSF/1.
1994-11-02 * c-exp.y (yylex): scan template names, and scan nested classKung Hsu2-8/+22
names.
1994-11-02 * ar.c (main): Treat ar qs like ar rs.Ian Lance Taylor1-0/+4
1994-11-02 * archive.c (normalize): Change to take a BFD as an argument.Ian Lance Taylor1-0/+13
Change VMS version to use bfd_alloc rather than malloc, so that we don't lose the memory forever. (_bfd_construct_extended_name_table): Check the name of an archive entry which is not being extended, and correct it if it is wrong. This is necessary in case the archive was constructed by another program which put an entry in the extended name table which we don't plan to put in ourselves. From jjc@jclark.com (James Clark). (bfd_dont_truncate_arname): Check return value of normalize.
1994-11-02* nlm/Makefile.in: install gdbserve.nlm.J.T. Conklin2-4/+6
1994-11-02 * ldctor.c (ldctor_add_set_entry): Don't permit a set to beIan Lance Taylor1-0/+8
composed of different object file formats. (ldctor_build_sets): If the output format does not support the reloc, and we are not generating a relocateable link, try getting the reloc from the input format.
1994-11-02 * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they areStu Grossman5-21/+35
available. * configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of -ltcl and -ltk. * gdbtk.c: Get rid of lots of unnecessary #includes. * (gdbtk_init): Use ConnectionNumber macro instead of referencing Display structure directly. * gdbtk.tcl: Change exit button to quit button (makes shebs happy).
1994-11-01 * config/tc-mips.c (s_change_sec): If not GPOPT, don't permitIan Lance Taylor2-0/+9
switching to the readonly data section.
1994-11-01 * ecoff.c (ecoff_directive_type): Fix warning message.Ian Lance Taylor1-0/+4
1994-11-01 * c-valprint.c (c_value_print): Check for plain literal `char'Peter Schauer2-3/+8
target type when suppressing `(char *)' output for strings.
1994-11-01* Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.J.T. Conklin6-4/+24
(em68knbsd.c): New target. * config/m68k-nbsd.mt: New file. * emulparams/m68knbsd.sh: New file. * configure.in (m68*-*-netbsd*): Use above configs.
1994-11-01 * elf32-hppa.c (ELF32_PARISC_SX_SIZE): Define.Ian Lance Taylor1-0/+20
(ELF32_PARISC_SX_GET, ELF32_PARISC_SX_PUT): Define. (symextn_entry): Don't define. (symext_chain_size): Change type to bfd_size_type. (symextn_contents): Change type to bfd_byte *. (elf32_hppa_backend_begin_write_processing): Use ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS). (elf32_hppa_size_symext): Likewise. Also, change type of sizep to bfd_size_type *. (elf_hppa_tc_make_sections): Cast symextn_contents assignment to bfd_byte *. Use ELF32_PARISC_SX_PUT instead of direct assignment. (elf32_hppa_backend_symbol_table_processing): Use ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS). Use ELF32_PARISC_SX_GET insetad of direct assignment. (elf32_hppa_read_symext_info): Change type of contents, and its assignment cast, to bfd_byte *. Use ELF32_PARISC_SX_SIZE instead of sizeof (symextn_entry). Use symext_entryS instead of symextn_entry. Use ELF32_PARISC_SX_GET instead of direct assignment.
1994-11-01 * coffread.c (coff_symfile_init): Remove unused local abfd.Stan Shebs1-0/+6
* utils.c [NO_MMALLOC] (mmalloc, mrealloc): Define and use size_t instead of long, for compatibility with mmalloc.h.
1994-11-01 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find anIan Lance Taylor1-0/+6
appropriately named static library, stop the search at that directory.
1994-11-01 * hppa-dis.c (print_insn_hppa): Read the instruction usingIan Lance Taylor1-0/+6
bfd_getb32, so that it works on a little endian or 64 bit host. Remove unused local variable op.
1994-10-31 * archive.c (bfd_dont_truncate_arname): Add the ar paddingIan Lance Taylor2-1/+7
character, if there is room for it, even if the name is the maximum length. PR 5859.
1994-10-31 * elfcode.h (assign_file_positions_except_relocs): Sort the ELFIan Lance Taylor1-0/+6
headers by section address when assigning file positions. (elf_sort_hdrs): New static function.
1994-10-31 * lib/ld.exp (default_ld_compile): Remove the output file beforeIan Lance Taylor1-0/+2
compiling.
1994-10-31 * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Create DT_INITIan Lance Taylor2-8/+41
and DT_FINI dynamic entries based on the existence of _init and _fini symbols, not on the .init and .fini sections. This is compatible with some SVR4 linkers. (elf_bfd_final_link): Corresponding change.
1994-10-30 * config/tc-hppa.c (pa_proc): Delete disabled code to put eachJeff Law1-0/+5
proc in its own subspace, we're not going to use it.
1994-10-30 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't move aIan Lance Taylor1-0/+5
symbol with a PLT entry into the .plt section if it is defined in a regular file. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
1994-10-29 * linker.c (_bfd_generic_link_add_archive_symbols): It's not anIan Lance Taylor2-0/+10
error if an empty archive has no symbol table. * ecoff.c (ecoff_link_add_archive_symbols): Likewise. * elfcode.h (elf_link_add_archive_symbols): Likewise.
1994-10-29 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtracePeter Schauer2-1/+5
through signal handler.
1994-10-29 * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO):Peter Schauer1-29/+31
Don't test for zero backchain pointer to recognize a signal handler frame, if read() gets interrupted by a signal, the backchain will be non zero. (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c, improve comment. (SIG_FRAME_PC_OFFSET): New definition. (FRAME_SAVED_PC): Return saved pc from sigcontext if this is a signal handler frame. * rs6000-tdep.c (function_frame_info): Do not error out if we can't access the instructions. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): New definition to get the function address from a function pointer. * valops.c (find_function_addr): Use it when calling a user function through a function pointer.
1994-10-29 * top.c (line_completion_function): Renamed fromPeter Schauer6-85/+592
symbol_completion_function, takes the line buffer and the point in the line buffer as additional arguments. (readline_line_completion_function): New function, interface between readline and line_completion_function. (init_main): Use it. (complete_command): Use line_completion_function instead of abusing rl_line_buffer. Free completion strings after printing them. * symtab.c (completion_list_add_name): Recheck for duplicates if we intend to add a modified symbol. * gdbtypes.h (cplus_struct_type): nfn_fields_total no longer includes the number of methods from the baseclasses. * stabsread.c (attach_fn_fields_to_type): No longer add the number of methods from the baseclasses to TYPE_NFN_FIELDS_TOTAL, the baseclass type might not have been completely filled in yet. * symtab.c (total_number_of_methods): New function to compute the total number of methods for a type, including the methods from baseclasses. (decode_line_1): Use it instead of TYPE_NFN_FIELDS_TOTAL to allocate the symbol array for find_methods. * stabsread.c (scan_file_globals): Add default case to minimal symbol type switch, to avoid gcc -Wall warnings. * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Don't test for zero backchain pointer to recognize a signal handler frame, if read() gets interrupted by a signal, the backchain will be non zero. (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c, improve comment. (SIG_FRAME_PC_OFFSET): New definition. (FRAME_SAVED_PC): Return saved pc from sigcontext if this is a signal handler frame. * rs6000-tdep.c (function_frame_info): Do not error out if we can't access the instructions. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): New definition to get the function address from a function pointer. * valops.c (find_function_addr): Use it when calling a user function through a function pointer.
1994-10-29 * Makefile.in (MMALLOC_DIR): New definition.Stan Shebs2-6/+18
(MMALLOC): Use MMALLOC_DIR. (MMALLOC_CFLAGS): Look in MMALLOC_DIR for mmalloc.h. (OPCODES): Remove gratuitous "./". * defs.h (mmalloc.h): Include. (mmalloc, mrealloc, etc): Remove decls. (cplus_demangle, cplus_demangle_opname): Remove decls.
1994-10-28 * mmprivate.h: New file, was mmalloc.h.Stan Shebs2-5/+40
(mmalloc.h): Include. * mmalloc.h: Remove all but declarations of mmalloc functions. (ansidecl.h): Include. * attach.c, et al: Include mmprivate.h instead of mmalloc.h.
1994-10-28Really forget all about the old tests dirStan Shebs1-3/+0
1994-10-28NetBSD/m68k support, based on work by mikeb@snow.datametrics.com:J.T. Conklin6-2/+69
* config.bfd (m68*-*-netbsd*): Use m68k-nbsd as bfd_name. * configure.in (m68knetbsd_vec): Added. * targets.c (bfd_m68knetbsd_vec): Added. * hosts/m68knbsd.h, config/m68k-nbsd.mt, m68knetbsd.c: New files. * Makefile.in (BFD32_BACKENDS, CFILES): Add m68knetbsd.c. miscellaneous cleanup required by all netbsd targets, based on work by Andrew Cagney <cagney@highland.com.au>: * netbsd.h (N_MAGIC, N_SET_MAGIC, N_GETMAGIC, N_GETMAGIC2, N_TXTADDR, N_TXTOFF, N_ALIGN, N_DATADDR, N_DATOFF): Removed. Generic a.out definitions work. * i386nbsd.c, ns32knbsd.c, sparcnbsd.c (__LDPGSZ): Removed. (MY(write_object_contents)): Use NetBSD's magic numbers
1994-10-27 * ld-shared: New directory, with new files to test generating ELFIan Lance Taylor7-0/+426
shared libraries.
1994-10-27 * lib/ld.exp (default_ld_compile): If the compilation worked, butIan Lance Taylor1-0/+19
no object file was created, check to see if the compiler foolishly ignored the -o switch when compiling, and move the resulting object if it did.
1994-10-27 * libelf.h (struct bfd_elf_section_data): Add field dynindx.Ian Lance Taylor5-93/+222
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Don't finalize the .dynsym, .dynstr or .hash sections until after the backend size_dynamic_sections routine, so that it can add dynamic symbols if it wants to. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't define the symbol to be in the .plt section when generating a shared library if it is a defined symbol. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. (elf32_sparc_size_dynamic_sections): When generating a shared library, allocate space for a dynamic symbol for each output section, storing the index in the dynindx field of the ELF section data. Adjust the other dynindx fields to account for this. (elf32_sparc_adjust_dynindx): New static function. (elf32_sparc_relocate_section): When copying a reloc into a shared library, use the original addend as appropriate. Convert an R_SPARC_32 reloc into an R_SPARC_RELATIVE reloc. Use the dynamic symbol index of the output section, not the normal symbol index. (elf32_sparc_finish_dynamic_sections): Don't die if a section does not exist when setting the value of the dynamic tags. Write out a dynamic symbol for each output section.
1994-10-26 * defs.h, gdbtk.c, main.c, top.c: Change sense and name ofStu Grossman4-7/+13
no_windows variable. Now called use_windows, and defaults to off (for compatibility).
1994-10-26 * coffread.c (coff_symtab_read): If we get the address fromJim Kingdon2-20/+47
target_lookup_symbol, set the section to -2 not SECT_OFF_BSS. (coff_symtab_read): Set value and section of symbol that process_coff_symbol returns.
1994-10-26* Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.oJ.T. Conklin12-112/+164
and esparcnbsd.o; sorted entries. (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets. * config/netbsd532.mt: Removed. * emulparams/netbsd532.sh: Removed. * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files. * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files. * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*, sparc*-*-netbsd*): Use above configs.
1994-10-26 * config.sub: Update for recent FSF changes. Remove obsoleteIan Lance Taylor1-0/+8
h8300hds entry. Add -windows* and -osx as basic os. Minor spacing changes.
1994-10-26Add libstdc++Jason Merrill1-3/+3
1994-10-26 * aoutx.h (aout_link_input_section): Don't bother to read or writeIan Lance Taylor2-4/+25
the relocs if there aren't any.
1994-10-26Add support for arc processor.David Edelsohn2-0/+12
1994-10-25 * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD inIan Lance Taylor2-0/+9
.rdata does not become a variant frag.
1994-10-25 * mips-opc.c: Use or instead of addu for pseudo-op move, sinceIan Lance Taylor1-0/+5
addu does not work correctly if -mips3. PR 5832.
1994-10-25 * objcopy.c (gap_fill): Explicitly initialize, for clarity.Ian Lance Taylor3-11/+36
(pad_to_set, pad_to): New static variables. (copy_options): Accept --pad-to. (copy_usage): Mention --pad-to. (copy_object): Support --pad-to. (compare_section_vma): Sort non loadable sections to the front. Sort sections with the same VMA by size. (copy_main): Handle --pad-to. * binutils.texi, objcopy.1: Document --pad-to.
1994-10-25 * Makefile.in (ALL_MACHINES): Add tekhex.o.Ian Lance Taylor2-3/+2
* targets.c (bfd_target_vector): If SELECT_VECS is not defined, include tekhex_vec. * tekhex.c (NIBBLE, ISHEX): Cast array arguments to unsigned char. (getvalue, getsym, out): Likewise. (find_chunk): Remove unused variable s. (first_phase): Remove unused variable s. (pass_over): Remove unused variable address. (tekhex_object_p): Remove unused variable section. (move_section_contents): Change return type from boolean to void. (tekhex_write_object_contents): Remove unused variables tdata and list.
1994-10-25 * config/tc-mips.c (mips_cpu): Initialize to -1.Ian Lance Taylor2-41/+36
(md_begin): Don't mips_cpu if it was already set. (md_parse_option): For -mipsN, don't set mips_cpu if it was already set. For -mcpu=, just set mips_cpu, not mips_isa.
1994-10-25* config/i386/tm-nbsd.h: Enable longjmp support.J.T. Conklin2-1/+18
1994-10-25 * ldmain.c (multiple_common): One of the types may now beIan Lance Taylor1-0/+5
bfd_link_hash_indirect. The old BFD argument may be NULL.