aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
1994-10-25 * linker.c (enum link_action): Add CIND.Ian Lance Taylor2-59/+211
(link_action): Change COMMON_ROW\indr from MDEF to CREF. Change INDR_ROW\common from MDEF to CIND. (_bfd_generic_link_add_one_symbol): In CREF case, handle an existing symbol which is indirect rather than defined. Add new CIND case.
1994-10-25 * bfdlink.h (struct bfd_link_callbacks): Fix comments forIan Lance Taylor1-1/+18
multiple_common field.
1994-10-24 Change S-record backend to use multiple sections to handle gaps inIan Lance Taylor1-0/+33
file. * srec.c (srec_data_list_struct): Move field next from last place to first. Change type of data to bfd_byte *. (struct srec_symbol): Define. (tdata_type): Remove done_symbol_read, count, strings, symbol_idx, string_size, string_idx. Change type of symbols to struct srec_symbol *. Add symtail and csymbols. (low, high): Remove. (size_symbols, fillup_symbols, size_srec, fillup): Remove. (white, skipwhite, pass_over, object_p): Remove. (srec_mkobject): Call srec_init. Adjust tdata initialization for field changes. (srec_get_byte, srec_bad_byte): New static functions. (srec_new_symbol, srec_scan): New static functions. (srec_object_p): Change type of b to bfd_byte. Explicitly set wrong_format error. Call srec_mkobject and srec_scan instead of object_p. (symbolsrec_object_p): Likewise. Also, change b to be only two bytes. (srec_read_section): New static function. (srec_get_section_contents): Call srec_read_section rather than pass_over. Handle zero length section correctly. (set_set_arch_mach): Change from function to macro. (srec_set_section_contents): Change data to bfd_byte *. (srec_write_record): Change data, end and src to bfd_byte *. (srec_write_header): Change buffer and dst to bfd_byte *. (srec_write_section): Change location to bfd_byte *. (srec_write_terminator): Change buffer to bfd_byte *. (srec_get_symtab_upper_bound): Don't call srec_get_section_contents. (srec_get_symtab): Rewrite.
1994-10-24 * ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.Ian Lance Taylor2-5/+10
1994-10-22 * valarith.c (value_binop): Take care of ANSI `value preserving'Peter Schauer3-6/+12
rule, which was not addressed by the previous change. * rs6000-tdep.c (skip_prologue): Handle `mr r31,r1', which is generated by gcc-2.6, as a synonym for `oril r31,r1,0'. * TODO: Remove item about RS/6000 shared libraries.
1994-10-22additions for binutils release from djKen Raeburn2-0/+33
1994-10-22 * config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.Ian Lance Taylor3-7/+82
(s_elf_section): New static function. * ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize the section when setting the storage class; default to sc_Data.
1994-10-21* libaout.h (machine_type): added M_68K_NETBSD and M_SPARC_NETBSD.J.T. Conklin5-8/+153
* i386netbsd.c, ns32knetbsd.c, sparcnetbsd.c: removed RCS Id's. changed how PAGE_SIZE and SEGMENT_SIZE are defined so they are consistant with each other. * netbsd.h (N_HEADER_IN_TEXT, TEXT_START_ADDR): NetBSD fits its header into the start of its text segment.
1994-10-21 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add case forIan Lance Taylor3-40/+108
_construct_extended_name_table. (bfd_target): Add _bfd_construct_extended_name_table. * archive.c (_bfd_archive_bsd_construct_extended_name_table): New function. (_bfd_archive_coff_construct_extended_name_table): New function. (_bfd_construct_extended_name_table): Renamed by adding a leading underscore, and made externally visible. Added trailing_slash argument, and used it instead of elf_style. Changed type of tablen to bfd_size_type *. (_bfd_write_archive_contents): Use BFD_SEND to call construct_extended_name_table. Use the returned name. * libbfd-in.h (_bfd_construct_extended_name_table): Declare. (_bfd_noarchive_construct_extended_name_table): Define. (_bfd_archive_bsd_construct_extended_name_table): Declare. (_bfd_archive_coff_construct_extended_name_table): Declare. * bfd-in2.h: Rebuild. * libbfd.h: Rebuild. * som.c (som_construct_extended_name_table): New static function. * aout-target.h (MY_construct_extended_name_table): Define. * coff-rs6000.c (rs6000coff_construct_extended_name_table): Define. * ieee.c (ieee_construct_extended_name_table): Define. * libecoff.h (_bfd_ecoff_construct_extended_name_table): Define. * oasys.c (oasys_construct_extended_name_table): Define.
1994-10-21fix BFD_ASSERT callsIan Lance Taylor2-6/+6
1994-10-21remove unused variableIan Lance Taylor1-1/+0
1994-10-21 Fix the ELF linker to not require an interpreter if no dynamicIan Lance Taylor5-600/+934
objects were seen, even when linking PIC code. * libelf.h (ELF_LINK_HASH_NEEDS_PLT): Define. (struct elf_link_hash_table): Add field dynamic_sections_created. * elfcode.h (elf_link_record_dynamic_symbol): Create dynstr if it doesn't already exist. (elf_link_add_object_symbols): Create dynamic sections based on dynamic_sections_created field, not dynobj field. Don't bother to set dynobj. (elf_link_create_dynamic_sections): If dynamic sections were already created, don't do anything. If dynobj is already set, use it; otherwise, set it to the bfd argument. Don't initialize dynsymcount. Only create dynstr if it does not exist. Set dynamic_sections_created to true. (NAME(bfd_elf,size_dynamic_sections)): Skip most of this function if no dynamic objects were seen. (elf_adjust_dynamic_symbol): If a symbol has the ELF_LINK_HASH_NEEDS_PLT flag set, let the backend adjust it. (elf_bfd_final_link): Change most decisions based on dynobj to check dynamic_sections_created instead. (elf_link_output_extsym): Only handle dynamic symbols if a dynamic object was seen. * elf.c (_bfd_elf_link_hash_table_init): Initialize new field dynamic_sections_created. Set dynsymcount to 1, not 0. * elf32-i386.c (elf_i386_create_dynamic_sections): Call elf_i386_create_got_section rather than creating the .got and .got.plt sections. (elf_i386_create_got_section): New static function. (elf_i386_check_relocs): Just call elf_i386_create_got_section if a GOT table is needed, not bfd_elf32_link_create_dynamic_sections. Only create the .rel.got section, and only make space for a reloc, for a global symbol or when generating a shared object. For a R_386_PLT32 reloc, just set the ELF_LINK_HASH_NEEDS_PLT flag. (elf_i386_adjust_dynamic_symbol): Rework initial assertion to permit ELF_LINK_HASH_NEEDS_PLT non dynamic symbols. Create a procedure linkage table entry for such symbols. But, if no dynamic objects were seen, never create a PLT entry. (elf_i386_size_dynamic_sections): If no dynamic objects were seen, skip most of this function, and force the size of the .rel.got section to zero. (elf_i386_relocate_section): For a R_386_GOT32 reloc against a global symbol when no dynamic object was seen, initialize the contents of the .got section. For a R_386_GOT32 against a local symbol, only create a R_386_RELATIVE reloc when generating a shared object. Treat a R_386_PLT32 reloc against a symbol for which we did not create a PLT entry as a R_386_PC32 reloc. (elf_i386_finish_dynamic_sections): Only fiddle with the dynamic entries and the PLT if we saw a dynamic object. * elf32-sparc.c (elf_sparc_howto_table): Fix R_SPARC_PC22 by setting rightshift to 10. Fix R_SPARC_WPLT20 by setting rightshift to 2, size to 2, bitsize to 30, and dst_mask to 0x3fffffff. (elf32_sparc_create_dynamic_sections): Don't set the size of the .plt section. Call elf32_sparc_create_got_section rather than creating the .got section. (elf32_sparc_check_relocs): Call elf32_sparc_create_got_section if a GOT table is needed, not bfd_elf32_link_create_dynamic_sections. Only create the .rela.got section, and only make space for a reloc, for a global symbol or when generating a shared object. Set the alignment of the .rela.got section to 2. For a R_SPARC_WPLT30 reloc, just set the ELF_LINK_HASH_NEEDS_PLT flag. (elf32_sparc_adjust_dynamic_symbol): Rework initial assertion to permit ELF_LINK_HASH_NEDS_PLT non dynamic symbols. Create a procedure linkage table for such symbols. But, if no dynamic objects were seen, never create a PLT entry. Initialize the size of the .plt section. (elf32_sparc_size_dynamic_sections): If no dynamic objects were seen, skip most of this function, and force the size of the .rela.got section to zero. Strip empty reloc sections, and strip an empty .plt section. (elf32_sparc_relocate_section): For a GOT reloc against a global symbol when no dynamic object was seen, initialize the contents of the .got section. For a GOT reloc against a local symbol, only create a R_SPARC_RELATIVE reloc when generating a shared object. Treat a R_SPARC_WPLT30 reloc against a symbol for which we did not create a PLT entry as a R_SPARC_WDISP30 reloc. (elf32_sparc_finish_dynamic_sections): Only fiddle with the dynamic entries and the PLT if we saw a dynamic object.
1994-10-21* configure.in (*-*-netware): Use config/mt-netware.J.T. Conklin5-5/+17
* config/mt-netware: New file. * config/mt-i386-netware: Removed, separate configs for different netware architectures are no longer needed now that we have --with-headers.
1994-10-21 * configure.in (target_libs): Remove libstdc++ for libg++-2.6.1.Per Bothner1-1/+3
1994-10-21 * configure.in: Add * at the end of m68k-hp-hpux.Ian Lance Taylor2-7/+11
1994-10-21 * config.guess: Merge with FSF.Per Bothner2-1/+6
* configure.in: Match on i?86-ncr-sysv4.3, not i?86-ncr-sysv43.
1994-10-21 * defs.h, infrun.c (wait_for_inferior), top.c: CallStu Grossman6-54/+366
target_wait_hook to allow GUI to handle blocking for inferior. Call call_command_hook in execute_command to provide means for wrapping commands with GUI state change updates. * gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur. * (gdb_stop): New tcl command to stop the target process. * (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target waits. * (gdbtk_call_command): Wrapper around command processing to alert GUI of target state changes. * (gdbtk_init): Get the fd of X server for doing async notification of X events (via x_event). Setup new hooks. * gdbtk.tcl: Add scrollbars to assembly and command windows. * Change window foreground & background colors. * Create margin tag for breakpoints in source and assembly windows. * Add new routines to be invoked when target state changes to/from idle. * Add start of expression window. * Change bindings of mouse button 1 in assembly and source window to just set or clear breakpoints when in the margin tag. * Change shape of register window to be more vertical to better reflect it's contents. * Add stop button. * Cleanup some code around command window bindings. * infrun.c (wait_for_inferior): Make sure through_sigtramp_breakpoint is non-null before deleting.
1994-10-20* configure: Since the "trap 0" handler will override the exit status on manyKen Raeburn1-0/+12
systems, only use it for "exit 1", and make it set a non-zero exit status; reset it before "exit 0". Also, check exit status of config.sub, and error out if it failed.
1994-10-20Added irix5 infoKaren Christiansen1-1/+12
1994-10-20 * objcopy.c (gap_fill_set, gap_fill): New static variables.Ian Lance Taylor4-7/+184
(copy_options): Accept --gap-fill. (copy_usage): Mention --gap-fill. (copy_object): Support --gap-fill. (get_sections, compare_section_vma): New static functions. (copy_main): Handle --gap-fill. * binutils.texi, objcopy.1: Document --gap-fill.
1994-10-20Added --with-stabs for alpha and sgi5.2Karen Christiansen1-11/+67
1994-10-20* config/powerpc/ppc-nw.mt (TDEPFILES): Removed exec.o.J.T. Conklin2-2/+5
1994-10-20 * elfcode.h (elf_map_symbols): Don't worry about section symbolsIan Lance Taylor2-82/+87
in a section not owned by any BFD. (elf_section_from_bfd_section): Separate out loop which calls backend routine. Check bfd_section and call the backend routine even for a section not owned by any BFD. * elf32-mips.c (mips_elf_section_from_bfd_section): Handle .acommon section.
1994-10-20 * Makefile.in (coffread.o): Depend on target.h.Jim Kingdon2-2/+7
(remote-vx.o): Depend on gdb-stabs.h objfiles.h symfile.h $(bfd_h).
1994-10-20 * gas/hppa/reloc/blebug3.s: New test.Jeff Law3-0/+25
* gas/hppa/reloc/reloc.exp: Run it.
1994-10-20 * config/tc-hppa.c (md_apply_fix): Set new_val to 8 for allJeff Law1-0/+6
fixups to branch instructions (not just pc-relative ones) which will generate SOM relocations.
1994-10-20* TODO: Fix typo.Jim Kingdon2-1/+5
1994-10-20 * objfiles.c (objfile_relocate): When relocating ->sections, useJim Kingdon6-7/+95
objfile not symfile_objfile. * symtab.h, minsyms.c (minsyms_sort): New function. * objfiles.c (objfile_relocate): Call it. * remote-vx.c (vx_add_symbols): Call breakpoint_re_set. * objfiles.c, objfiles.h (objfile_to_front): New function. * remote-vx.c (vx_add_symbols): Call it. * coffread.c (coff_symtab_read): Handle common symbols the same way that partial-stab.h does.
1994-10-20 * hppa-tdep.c: Remove include files a.out.h, ioctl.h, andRob Savoye1-3/+0
machine/psl.h. These are host files.
1994-10-19 * objfiles.h (struct objfile): Fix comment--minimal_symbol_countJim Kingdon2-1/+6
does *not* include the terminating NULL msymbol.