aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-03-20 * som.c (som_begin_writing): Fix braino (one call to alignJeff Law2-1/+6
space/subspace data was done unconditionally rather than just for executables.)
1994-03-20 * som.c (som_begin_writing): Align text in all executables toJeff Law2-1/+11
make HPUX kernel happy. Fixes strip/objcopy for shared executables.
1994-03-19 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.Jim Kingdon2-19/+11
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makefile.in: Change accordingly. * configure.in: Recognize cisco_core_vec. * config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec. * targets.c: Add cisco_core_vec. * bfd-in2.h: Rebuilt.
1994-03-19* config/m68k/{cisco.mt,tm-cisco.h}: New files.Jim Kingdon1-0/+5
1994-03-19 * config/m68k/{cisco.mt,tm-cisco.h}: New files.Jim Kingdon5-0/+59
* Makefile.in (ALLPARAM, ALLCONFIG): Add them. * configure.in: Recognize m68*-cisco*-*.
1994-03-19* config.sub: Recognize cisco.Jim Kingdon1-0/+4
1994-03-19New for ciscoJim Kingdon2-0/+0
1994-03-19 * Makefile.in (TAGS): Use variables directly, rather than usingJim Kingdon11-65/+231
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster and means that these filenames no longer need be unique across all the config/* directories. * configure.in: Put the config/*/ into TM_FILE, etc. * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk and trapv exceptions. * target.h (struct section_table), objfiles.h (struct obj_section): Change name of field sec_ptr to the_bfd_section. More mnemonic and avoids the (sort of, for the ptx compiler) name clash with the name of the typedef. * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c, solib.c, irix5-nat.c, objfiles.c, remote.c: Change users. * utils.c: Include readline.h. * Makefile.in (utils.o): Add dependency. * remote.c (getpkt): Add support for run-length encoding.
1994-03-19* cisco-core.c: New file.Jim Kingdon1-3/+60
1994-03-19 * som.c (som_begin_writing): Account for alignment needs ofJeff Law2-0/+30
subspaces too when writing executables. Never request a negative bss size. Fixes some problems with demand paged executables, still having problems with pure executables and shared executables.
1994-03-19 * som.h (som_copyable_section_data_struct): New structureJeff Law2-92/+237
containing all the private section information which needs to be copied from input section to output section during objcopy or strip. (som_section_data_struct): Remove several fields now in som_copyable_section_data_struct. Make the space and subspace dictionaries be pointers (to save space when only reading objects). * som.c (bfd_som_set_section_attributes): Now returns a boolean; some references changed. Allocate a copyable data stucture if none exists. Store info into the copyable data structure. (bfd_som_set_subsection_attributes): Likewise. (som_is_space, som_is_subspace, som_is_container): New functions. Use these instead of directly accessing private data. (som_prep_headers): Allocate space and subspace headers here. Fill in some fields in the space/subspace headers from the copyable data. (som_bfd_copy_private_section_data): Only copy the stuff that we really need to make objcopy and strip work. Allocate the copy_data structure for the output bfd before copying.
1994-03-19 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.Jim Kingdon1-0/+1
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makfile.in: Change accordingly. * bfd-in2.h: Rebuilt.
1994-03-19* utils.c (prompt_for_continue): Call readline, not gdb_readline.Jim Kingdon1-0/+3
1994-03-19 * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc notJim Kingdon3-1/+347
bfd_zalloc for rawptr, because later on we may call free, not bfd_release, on it. * bfd.c (struct _bfd): Add cisco_core_struct to tdata union. * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors. * cisco-core.c: New file. * Makfile.in: Change accordingly. * bfd-in2.h: Rebuilt.
1994-03-19 * som.h (struct som_exec_data): New structure to hold execJeff Law3-41/+124
info that must be preserved when running objcopy/strip. (struct somdata): Add new "exec_data" field and accessor macro. Add some comments on how the various fields are used. (som_section_data_struct): Make is_space and is_subspace bitfields. Delete unused subspace_index. All references now use the target_index field within the section structure itself. * som.c (make_unique_section): Delete unused declaration. (som_bfd_copy_private_bfd_data): New function. (som_object_setup): Allocate space for and save exec information that needs to be copied during objcopy/strip. (som_mkobject): Do not allocate space for a file header here. It is not used when only reading SOM objects. (som_prep_headers): Allocate space for and attach a file header to the output bfd. For executables, use the saved system_id value rather than trying to guess the right value. Do not abort wwhen setting file_hdr->entry* for executables. (som_begin_writing): For executables, set the exec_entry and exec_flags fields. (som_copy_private_backend_section_data): Always return a value.
1994-03-19 * libhppa.h (PA_PAGESIZE): Define.Jeff Law2-7/+115
* som.c (SOM_ALIGN): Define. (som_begin_writing): If writing an executable, initialize all fields in the exec header to zero. Update fields in the exec header as sizes of loadable subspaces are computed. Carefully preserve alignments when building executables. Actually write the exec after all the fields are filled in.
1994-03-19 * utils.c (prompt_for_continue): Call readline, not gdb_readline.Steve Chamberlain2-2/+21
1994-03-19* write.c (symbol_table_frozen): New variable, to be set after bfd_set_symtabKen Raeburn2-72/+130
is called. (dump_section_relocs): Note whether a symbol is a section symbol or not. (adjust_reloc_syms): For now, always supply an absolute symbol for fixups without symbols but not yet `done'. Use section_symbol to get the symbol, instead of going directly for abs_symbol. (write_relocs) [DEBUG4]: Abort if any symbol referred to by a reloc is not a section symbol and is not in the symbol table. (set_symtab): New function, broken out from write_object_file. Counts symbol table instead of relying on an earlier count. (write_object_file): Call set_symtab, but do it after potentially invoking the *_frob_file macros. Don't bother counting symbols. Call symbol_remove, instead of expanding it in place. Moved the conditionalized `object_file_size' declaration down to conditionalized block where it's used. When using the absolute symbol for a fixup without a symbol, set sy_used_in_reloc. (write_object_file) [BFD_ASSEMBLER]: Call section_symbol to get the correct symbol for the absolute section.
1994-03-19 * Better long-filename handling. Reads SOM ABI compliant extendedJeff Law2-16/+70
names, but doesn't quite write compliant extended names yet. * som.c (som_slurp_extended_name_table): Delete function. The generic code will handle things correctly. (som_slurp_armap): Seek to the beginning of the next member. (normalize): New function. (som_bfd_ar_write_symbol_stuff): Take the size of the extended name table into account when computing the file offsets in the SOM dictionary. Make sure to align to an even boundary. (som_write_armap): Initialize the checksum to zero. (ar_maxchars): Fix. Opps.
1994-03-19new for cisco crash dumpsJim Kingdon1-0/+0
1994-03-19sparc *13 relocs, obj_sec_sym_ok_for_reloc stuffKen Raeburn1-0/+22
1994-03-19 * dstread.c (record_minimal_symbol): New arg objfile. Pass it toJim Kingdon2-7/+14
prim_record_minimal_symbol. Callers: Pass it.
1994-03-19* aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bitKen Raeburn1-0/+5
machine. Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.
1994-03-19ic960coff.mt typo fixKen Raeburn1-0/+3
1994-03-19(TDEFINES): Fixed typo (MANY_SECTIONS, not MANY_SEGMENTS).Ken Raeburn1-1/+1
1994-03-19* configure.in: Eliminated all targets using obj-coff but not definingKen Raeburn2-14/+36
BFD_ASSEMBLER; I think all such targets that are supported will be matched by real CPU-OS combinations earlier in the case statement. (targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted. Made some comments about the dpx2 configuration, but left it disabled, since it couldn't be reached before. (target a29k-amd-ebmonold): Deleted.
1994-03-19Fri Mar 18 16:42:32 1994 Jason Merrill (jason@deneb.cygnus.com)Jason Merrill1-0/+9
* Makefile.in (CXXFLAGS): Add -fexternal-templates. So that libio will be built properly.
1994-03-18 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer byJim Kingdon2-17/+43
computing their offset from the start of the old buffer and adding to the new buffer, rather than by assuming we can add the difference between the old buffer and the new buffer (it might not fit in an int). Merge in cosmetic differences from emacs regex.c version of this macro.
1994-03-18 * ar.c (write_archive): Allocate space for the null byte. FromIan Lance Taylor1-0/+5
Robert Lipe <robertl@arnet.com>.
1994-03-17* bfd-in.h (BFD_VERSION): Use @VERSION@.Ken Raeburn3-7/+39
* Makefile.in (bfd.h): Replace it with contents of VERSION file. * bfd-in2.h: Regenerated.
1994-03-17(trad_unix_bfd_is_local_label): Fixed typo whereKen Raeburn2-0/+11
this was also named trad_unix_bfd_copy_private_bfd_data.
1994-03-17 * osf-core.c (osf_core_bfd_copy_private_bfd_data): RemoveIan Lance Taylor1-0/+4
duplicate definition. (osf_core_bfd_is_local_label): Define.
1994-03-17Don't need mpw-xconfig.in anymore.Stan Shebs3-21/+8
1994-03-17Thu Mar 17 12:55:51 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-3/+27
* mpw-configure: Conditionalize more Makefile insertions, set MAYBE_TARGET_DEFAULT for gcc, set NATDEPFILES for gdb, delete Makefile.tem, compute target_{cpu,vendor,os}. * mpw-config.in: Forward-include most .h files in include into extra-include. (readline): Don't build. mpw-build.in (install): Install GDB. mpw-README: Update/add helpful comments.
1994-03-17Various changes.Stan Shebs1-0/+11
1994-03-17More widely useable INFO-DIR entries.Roland Pesch2-2/+2
1994-03-17Minor update to list of programs for dir.info entry.Roland Pesch1-2/+3
1994-03-17More widely useful INFO-DIR fragment.Roland Pesch1-1/+1
1994-03-17 * gas/hppa/unsorted/importbug.s: New test.Jeff Law2-0/+43
* gas/hppa/unsorted/unsorted.exp: Run it.
1994-03-17 * config/tc-hppa.c (pa_import): Correctly handle importing of anJeff Law2-17/+36
already defined symbol.
1994-03-17 * Makefile.in: Built nm.new and strip.new to avoid problems withIan Lance Taylor2-10/+25
collect when . is in PATH. (STRIP_PROG): Change from strip to strip.new. (NM_PROG): Change from nm to nm.new. (install): Remove the .new when installing.
1994-03-17 * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,Jim Kingdon3-143/+159
elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0) returns NULL, it is not an error. It's possible that some of these checks are not necessary (because the size can never be zero), but putting in the checks is the conservative thing to do in light of the fact that some of these malloc calls replaced unchecked alloca calls, in which a zero argument would work fine.
1994-03-17Modified Files:Kung Hsu1-0/+2
.Sanitize * i386os9k.mt: add to things to keep. * tm-i386os9k.h: add to things to keep.
1994-03-17 * reloc.c (bfd_generic_get_relocated_section_contents): Don't failIan Lance Taylor1-0/+4
if malloc (0) fails. bfd_canonicalize_reloc returning 0 is not a failure indication, it merely means there are no relocs.
1994-03-17 * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use spaceIan Lance Taylor2-263/+279
after NAME, since SunOS /bin/cc can't handle it.
1994-03-17Fix typo.Jim Kingdon1-1/+5
1994-03-17 * gas/hppa/more.parse/regpopbug.s: Add trivial .equ test.Jeff Law2-0/+5
1994-03-17 * config/tc-hppa.c (pa_equ): Handle both .reg and .equ correctly.Jeff Law2-2/+7
1994-03-17 * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.David MacKenzie2-0/+14
From sukes@glue.umd.edu (Tasuki Hirata).
1994-03-16 * config/tc-mips.c (mips_ip): Only accept overly large values forIan Lance Taylor1-0/+4
the 'j' operand if there are no further alternatives for this instruction.