aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
1994-10-19 * coffgen.c (coff_print_symbol): Make names for section number andJim Kingdon1-0/+7
storage class slightly more verbose. It's not clear how many characters I can justify using up, but before this change they both were abbreviated "sc" which is (IMHO) clearly unacceptable.
1994-10-19removed i386-nlmstub.cJ.T. Conklin1-1/+0
1994-10-19 * Makefile.in (check): Add a dummy else clause to the ifIan Lance Taylor2-1/+10
statement.
1994-10-19 * objcopy.c (copy_object): Revert yesterday's change.Ian Lance Taylor3-22/+7
* binutils.texi, objcopy.1: Remove special mention of --set-start and `binary' output format.
1994-10-19 * binary.c (binary_set_section_contents): Set the base fileIan Lance Taylor1-0/+3
position from the lowest section VMA, not the start address.
1994-10-19 * config/tc-a29k.c: Include ctype.h with angle brackets.Ian Lance Taylor2-12/+58
(define_some_regs): Add new special register names defined on the 29040. (parse_operand): Add argument opt. If non-zero, don't warn about a missing operand. (machine_ip): If handling argument type 'I', pass opt as non-zero to parse_operand. Handle new optional operand type 'I'. (md_undefined_symbol): Handle special register names (srNN).
1994-10-19 * a29k-dis.c (print_special): Add special register names definedIan Lance Taylor2-1/+23
on 29030, 29040 and 29050. (print_insn): Handle new operand type 'I'.
1994-10-19 * a29k.h: Add operand type 'I' for `inv' and `iretinv'. OnIan Lance Taylor1-2/+3
systems with a separate instruction and data cache, such as the 29040, these instructions take an optional argument.
1994-10-19 * aoutx.h (NAME(aout,slurp_symbol_table)): Don't return an errorIan Lance Taylor3-80/+129
if there are no symbols. * coffgen.c (coff_get_normalized_symtab): Likewise. * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
1994-10-19 * monitor.c (monitor_load_srec,monitor_make_srec): Add an asrecordRob Savoye1-0/+14
loader that reads files using BFD and converts it on the fly. * monitor.c (set_loadtype_command): Fixed so it doesn't core dump. * monitor.c (monitor_load): check the load type and load the file accordingly. Default to gr_load_image(). * monitor.c (monitor_load_ascii_srec): Load an ascii file in srecord format by downloading to the monitor. * w89k-rom.c, op50n-rom.c: set supported load types.
1994-10-19Add a ^C to the init string.Rob Savoye1-1/+1
1994-10-18rebuilt dependenciesIan Lance Taylor1-0/+1
1994-10-18 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not toIan Lance Taylor1-0/+5
YY_CHAR *.
1994-10-18 * Makefile.in (all-binutils): Depend upon all-byacc.Ian Lance Taylor2-1/+3
1994-10-18 * configure.in: Don't build emacs on Irix 5.Ian Lance Taylor2-1/+6
1994-10-18 * objcopy.c (copy_object): If the output file format is `binary',Ian Lance Taylor4-3/+67
and the start address was not set using --set-start, default the start address to zero. This hack is because the `binary' output file format uses the start address to set the virtual address of the first byte in the file. * binutils.texi, objcopy.1: Add some notes on generating S-records and binary files.
1994-10-18 * binary.c: New file for raw binary output format.Ian Lance Taylor5-6/+187
* Makefile.in (BFD_LIBS): Add binary.o. (CFILES): Add binary.c. * targets.c (binary_vec): Declare. (bfd_target_vector): Include binary_vec.
1994-10-18 * aout-target.h (MY_bfd_copy_private_section_data): Only copyIan Lance Taylor1-1/+5
subformat to another bfd_target_aout_flavour file.
1994-10-18 * srec.c (tdata_type): Add field tail.Ian Lance Taylor2-8/+38
(srec_mkobject): Initialize tail. (srec_set_section_contents): Sort S record list by address.
1994-10-18 * nm.c (print_symdef_entry): Call print_symname to print theIan Lance Taylor1-0/+3
symbol name, so that --demangle works.
1994-10-18 * Makefile.in (mostlyclean): Remove tmpdir.Ian Lance Taylor2-1/+4
1994-10-18 * binutils-all/objcopy.exp: New file.Ian Lance Taylor3-2/+271
* config/default.exp: Initialize OBJCOPY and OBJCOPYFLAGS.
1994-10-18 * objcopy.c (struct section_list): Add fields used, adjust, val.Ian Lance Taylor4-32/+356
(adjust_start, set_start_set, set_start): New static variables. (adjust_section_vma, adjust_sections): New static variables. (copy_options): Add --adjust-start, --adjust-vma, --adjust-section-vma, --adjust-warnings, --no-adjust-warnings, --set-start. (parse_vma): New static function. (copy_usage): Mention new options. (copy_object): Handle --set-start and --adjust-start. (setup_section): Correct type of last argument to PTR. Set used field if section is removed. Handle --adjust-vma and --adjust-section-vma. (copy_section): Correct type of last argument to PTR. (mark_symbols_used_in_relocations): Likewise. (strip_main): Clear used field when handling -R. (copy_main): Handle new options. * binutils.texi (objcopy): Document new options. * objcopy.1: Document new options.
1994-10-18 * write.c (renumber_sections): New static BFD_ASSEMBLER function.Ian Lance Taylor1-0/+5
(write_object_file): Call it after removing gas created sections.