aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
1994-10-18 * monitor.c (set_loadtype_command): Fixed so it doesn't core dump.Rob Savoye3-46/+287
* 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-17 * oasys.c (oasys_slurp_symbol_table): Use udata.p rather than justIan Lance Taylor2-6/+43
udata.
1994-10-17 * symbols.c (symbol_create): Use udata.p, not just udata.Ian Lance Taylor1-0/+4
* config/obj-elf.c (obj_ecoff_set_ext): Likewise. (elf_get_extr): Likewise.
1994-10-17 * elfcode.h (elf_map_symbols): Sort the symbols into a new array,Ian Lance Taylor1-9/+0
rather than messing with Elf_Sym_Extra. Store the symbol index in the udata.i field. (swap_out_syms): Use outbound_syms as a pointer rather than as an array. Don't worry about elf_sym_num. (elf_symbol_from_bfd_symbol): Use udata.i rather than just udata. * libelf.h (struct elf_sym_extra): Don't define. (Elf_Sym_Extra): Don't define. (struct elf_obj_tdata): Remove sym_extra field. (elf_sym_extra): Don't define. * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Use udata.i rather than elf_sym_extra array. (elf32_hppa_backend_symbol_table_processing): Don't set symextn_hdr->size; just use sh_size.
1994-10-17* configure.in (*-*-netware*): Add libio.J.T. Conklin2-1/+5
1994-10-17 * read.c (read_a_source_file): The second argument to as_where isIan Lance Taylor2-4/+17
unsigned int *, not int *.
1994-10-17 Use a hash table when writing out ELF symbol names.Ian Lance Taylor5-378/+1046
* elfcode.h (elf_stringtab_init): New static function. (bfd_new_strtab, bfd_add_to_strtab, bfd_add_2_to_strtab): Remove. Change all callers to use elf_stringtab_init or _bfd_stringtab_add, and get stringtab lengths using _bfd_stringtab_size. (elf_fake_sections): Change ignored argument to pointer to boolean, and set the boolean to true if an error occurs. If an error has already occurred, don't do anything. (assign_section_numbers): Just set sh_size, not contents. (elf_compute_section_file_positions): Pass the address of a boolean to elf_fake_sections. Pass the address of a bfd_strtab_hash to swap_out_syms. Write out the .strtab section. (prep_headers): Change shstrtab to bfd_strtab_hash. (swap_out_syms): Take a pointer to a bfd_strtab_hash as an argument. Set it to the symbol names. (NAME(bfd_elf,write_object_contents)): Write out the section header names using _bfd_stringtab_emit. (elf_debug_section): Remove first argument; get the section name via the bfd_section pointer. Change caller. (elf_bfd_final_link): Write out the symbol names using _bfd_stringtab_emit. Likewise for the .dynstr section contents. Free the symbol names at the end of the function. (elf_link_input_bfd): Remove the last argument, output_names, from relocate_section. Save the old symbol contents before calling elf_link_output_sym, and restore them afterward. * libelf.h (struct elf_link_hash_table): Change dynstr field to struct bfd_strtab_hash. (struct elf_backend_data): Remove last argument, output_names, from elf_backend_relocate_section field. (struct strtab): Don't define. (struct elf_obj_tdata): Change strtab_ptr field to struct bfd_strtab_hash. * elf32-hppa.c (elf32_hppa_relocate_section): Remove last argument, output_names. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-mips.c (mips_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1994-10-17* scripttempl/nw.sc: Gather constructors and destructors andJ.T. Conklin1-1/+6
define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
1994-10-17Fix typo in my recent ChangeLog entry.Jim Kingdon1-1/+1
1994-10-17Fix thinko in ian's ChangeLog entryJim Kingdon1-1/+1
1994-10-17 * Makefile.in (ALLDEPFILES): Remove xcoffexec.c.Jim Kingdon5-259/+410
* Makefile.in: Remove xcoffexec.o rule. * exec.c (exec_file_command): Add comment. Fix data and bss relocation for VxWorks 5.1: * remote-vx.c (vx_add_symbols): New function. (vx_load_command, add_symbol_stub): Call it instead of symbol_file_add. (vx_wait): Remove comment which was wrong to useless. * remote-vx.c: Reindent much of file. * coffread.c (cs_to_section, find_targ_sec): New functions. (process_coff_symbol): Set SYMBOL_SECTION to result from cs_to_section. (coff_symtab_read): Call cs_to_section and deal appropriate rather than assuming sections are in a certain order. Deal with BSS. * coffread.c: Remove text_bfd_scnum variable.
1994-10-17updated versionKen Raeburn2-3/+19
1994-10-17 * libbfd-in.h (DEFAULT_STRING_SPACE_SIZE): Don't define.Ian Lance Taylor1-0/+5
(bfd_add_to_string_table): Don't declare. * libbfd.h: Rebuild. * libbfd.c (bfd_add_to_string_table): Remove.
1994-10-17 * elfcode.h (elf_swap_shdr_in): Use rawdata, not bfd_section.Ian Lance Taylor5-2092/+2116
Clear contents field. (bfd_section_from_shdr): In SHT_STRTAB case, check bfd_section, not rawdata. Don't set rawdata if e_shstrndx. Use bfd_section rather than rawdata in commented out code. In SHT_REL[A] case, don't bother to check elf_section_data of section returned by section_from_elf_index. (elf_fake_sections): Set bfd_section, not rawdata. Don't set size. (elf_map_symbols): Don't set elf_num_section_syms. Don't create section symbols that already exist. (assign_file_position_for_section): Use bfd_section, not rawdata. (section_from_elf_index): Just check bfd_section field. (elf_section_from_bfd_section): Likewise. (elf_debug_section): Don't print rawdata, contents, or size. (elf_link_add_object_symbols): Don't error out if section_from_elf_index returns NULL. (elf_bfd_final_link): Check return value from section_from_elf_index against NULL, not bfd_is_abs_section. (elf_link_input_bfd): Don't check section_from_elf_index return value. * libelf.h (struct elf_obj_tdata): Remove num_section_syms field. (elf_num_section_syms): Don't define. * elf.c (elf_get_str_section): Store section contents in contents field rather than rawdata field. (elf_string_from_elf_section): Likewise. (_bfd_elf_make_section_from_shdr): Store BFD section pointer in bfd_section field rather than rawdata field. * elf32-hppa.c (elf32_hppa_read_symext_info): Use bfd_section rather than rawdata. (elf32_hppa_size_stubs): Likewise. * elf32-mips.c (mips_elf_final_write_processing): Use bfd_section rathern than rawdata. (mips_elf_section_from_shdr): Likewise. (mips_elf_section_processing): Likewise. (mips_elf_section_from_bfd_section): Remove rawdata check.
1994-10-17 * srec.c (pass_over): Set the start address for S7, S8 or S9.Ian Lance Taylor2-1/+23
1994-10-17 * gas/hppa/reloc/reduce3.s: New test.Jeff Law2-0/+52
* gas/hppa/reloc/reloc.exp: run it.
1994-10-17 * gas/hppa/reloc/reloc.exp (r_no_reloc): Tweak output to matchJeff Law2-5/+79
current reality.
1994-10-16 * corelow.c: Format to standard.Stan Shebs2-77/+89
(core_close): Use name instead of bfd_filename.
1994-10-15 * symfile.c (reread_symbols): Include bfd_errmsg string in errorJim Kingdon6-8/+28
message if bfd_close fails. * exec.c (exec_close), solib.c (clear_solib), corelow.c (core_close), objfiles.c (free_objfile), irix5-nat.c (clear_solib), osfsolib.c (clear_solib), remote-utils.c (gr_load_image): Check for errors from bfd_close. * solib.c (look_for_base), remote-utils.c (gr_load_image), remote-udi.c (download), corelow.c (core_open), symfile.c (symfile_bfd_open), symfile.c (generic_load): Add comment regarding error from bfd_close. * remote-udi.c (download), remote-utils.c (gr_load_image): Add comment about bogus handling of errors from bfd_openr. * exec.c (exec_close): Add comment regarding memory leak and dangling reference to vp->name.