Commit Graph

9251 Commits

Author SHA1 Message Date
Torbjorn Granlund
868b8e638b hppa.h: Fix typo in fstws arg string. 1994-02-17 20:31:08 +00:00
David MacKenzie
c4a081e172 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
	xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
1994-02-17 18:19:25 +00:00
David MacKenzie
f61b81b7c1 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
bfd_set_error and new error names.
1994-02-17 18:14:04 +00:00
David MacKenzie
5bcb7f28e1 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
bfd_set_error and new error names.
1994-02-17 18:12:17 +00:00
David MacKenzie
7681bc7b30 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
size.c: Use bfd_get_error and bfd_set_error and new error names.
1994-02-17 18:10:18 +00:00
David MacKenzie
d1ad85a6e6 * bfd.c (bfd_get_error, bfd_set_error): New functions.
(bfd_error): Make static.
	(bfd_error_type): Renamed from bfd_ec.  Prepend "bfd_error_" to
	all values.
	* bfd-in2.h: Regenerated.
	* aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h,
	aoutf1.h, aoutx.h, archive.c, archures.c,
	bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c,
	coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c,
	ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c,
	elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c,
	i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c,
	lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c,
	nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
	ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c,
	srec.c, sunos.c, syms.c, targets.c, tekhex.c,
	trad-core.c: Change callers.
1994-02-17 18:08:41 +00:00
Per Bothner
166557e7b1 * rltty.c: #if out some code if __GO32__. 1994-02-17 00:42:25 +00:00
Jeff Law
7430a99137 * som.c: Remove FIXMEs for things which have been dealt with. 1994-02-16 06:28:25 +00:00
Ian Lance Taylor
f1b4394723 * libiberty.h: Don't declare strsignal, to avoid conflicts with
Solaris system header files.
1994-02-16 06:09:08 +00:00
Roland Pesch
dd565f85bf (1) remove dangling references to old internal sections (pass1, difference)
(2) move explanation of new MIPS options from summary section to MIPS-options
    section; add summaries in appropriate spots.
(3) usual minor rephrasing in passing.
1994-02-16 01:52:25 +00:00
Ken Raeburn
c25be7f4e9 * configure.in: Support i960-vxworks versions > 5.0 as coff.
Default is still bout if no version is specified.
1994-02-16 01:28:59 +00:00
Ken Raeburn
7ff6f2daf5 i960-bout linker fixes, install-info bugfix 1994-02-16 01:20:05 +00:00
Ken Raeburn
09a5aa5eee (lang_size_sections): Clear bfd_error before calling bfd_relax_section, in case
it returns false but doesn't flag an error.  If an error is returned, indicate
which one it is in the error message.
1994-02-16 01:18:32 +00:00
Ken Raeburn
db0a7149be (install-info): Depend on ld.info, and use "$<*" so
it'll get picked up from $(srcdir) if appropriate.
1994-02-16 01:17:43 +00:00
Ken Raeburn
54196ea170 i960-bout linker fixes, i960 coff config changes 1994-02-16 01:00:57 +00:00
Ken Raeburn
1e02dc457c Support i960 vxworks versions > 5.0 with coff, not bout. Default with no
version number is still bout.  Support explicit i960-coff target too.
1994-02-16 00:59:39 +00:00
Ken Raeburn
ca16370388 (b_out_get_reloc_upper_bound): For BSS section, just return 0.
(aligncode): When shrinking, the addend should be set to the current offset in
the section plus the number of bytes of padding that will actually be retained.
(b_out_relax_section): If a section contains no relocations, don't bother
processing them.
(b_out_get_relocated_section_contents): Set reloc_done.  Assert that
bfd_get_section_contents returns true.  Check that relocs are properly ordered.
(b_out_get_relocated_section_contents, case ALIGNDONE): Assert that reloc's
addend falls between the current source offset and the raw size of the input
section.

Changed some indentation, deleted trailing whitespace, fixed some comments,
removed some "#if 1" lines.
(output_addr): New macro.
(calljx_callback, callj_callback, get_value, abs32code, aligncode,
b_out_get_relocated_section_contents): Use it for readability.
1994-02-16 00:59:19 +00:00
Ken Raeburn
66d9f06f6d (default_indirect_link_order): In assertion, compare link_order size field
against cooked size, not raw size, of input section.
1994-02-16 00:57:48 +00:00
Ken Raeburn
aaa486c3d0 (bfd_get_section_contents): Since this function reads unrelocated contents, the
section's raw size is always the one to use for bounds checking.
1994-02-16 00:57:15 +00:00
Per Bothner
f550cec5b1 * readline.c (_rl_output_character_function), display.c:
Return int, not void, to conform with the expected arg of tputs.
	* readline.c (init_terminal_io):  tgetflag only takes 1 arg.
	* readline.c (_rl_savestring):  New function.
	* chardefs.h:  To avoid conflicts and/or warnings, define
	savestring as a macro wrapper for _rl_savestring.
	* display.c (extern term_xn):  It's an int flag, not a string.
	* charsdefs.h, rldefs.h:  Remove HAVE_STRING_H-related junk.
1994-02-15 22:31:19 +00:00
Stan Shebs
848743c1b6 Tue Feb 15 12:44:30 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (CSEARCH): Add include/mpw to search path.
	* hosts/mpw.h (stat): Remove incomplete definition, now in
	include/mpw/sys.
	(POSIX_UTIME): Define.
1994-02-15 20:48:53 +00:00
Jeff Law
c6cdb69ae4 * som.c (som_bfd_prep_for_ar_write): Iterate through the SOM
symbols, not the BFD symbols.
        (som_bfd_ar_write_symbol_stuff): Likewise.
1994-02-15 17:01:39 +00:00
Rob Savoye
67d4024b7b "Default" procedures for any host. 1994-02-15 17:01:12 +00:00
Jeff Law
24a1f6a05f * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
have any symbols.
1994-02-15 07:48:56 +00:00
Jeff Law
6e033f8639 * Finish basic read-write support for SOM archive libraries. Bugs
surely remain as this hasn't been tested all that much.
	* som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define.
	(struct som_misc_symbol_info): New structure to hold info necessary
	to build both normal and library symbol tables.
	(som_derive_misc_symbol_info): New function to derive info necessary
	to build both normal and library symbol tables.
	(som_build_and_write_symbol_table): Use new function to derive misc
	symbol information.
	(som_slurp_symbol_table): Update backend private data for symbols
	appropriately.
	(som_bfd_prep_for_ar_write): New function.
	(som_bfd_ar_symbol_hash): New function.
	(som_bfd_ar_write_symbol_stuff): New function.
	(som_write_armap): Flesh out.
	(som_vec): Fix ar padding character.

	* som.c: Consistently use memset rather than bzero.
1994-02-15 07:05:04 +00:00
Rob Savoye
caa0901f00 Swap order of config names to match so vxworks is before m68k. 1994-02-15 04:30:10 +00:00
Rob Savoye
71ae6c3153 Set correct values for NM, SIZE etc... 1994-02-15 03:44:51 +00:00
Rob Savoye
d46d1d05d3 Leave it for the init file to identify proper binary to run. 1994-02-15 03:44:22 +00:00
Rob Savoye
6010088699 Use new config features of DejaGnu in site.exp file. 1994-02-15 03:33:46 +00:00
Rob Savoye
dcc5408195 Add "-N". 1994-02-15 03:32:22 +00:00
Stu Grossman
7d8752123a * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
appropriate.
	* rs6000-core.c:  Use HOST_AIX instead of COREFILES_PLEASE.
	* config/rs6000.mh:  Remove defs of ARCHIVES_PLEASE and
	COREFILES_PLEASE.
	* config/rs6000lynx.mh:  Turn on Lynx core file support.
	* hosts/rs6000.h:  #define HOST_AIX.
	* hosts/rs6000lynx.h:  Create this to enable Lynx host support.
1994-02-15 01:30:25 +00:00
Stu Grossman
5cf354ef0e * hosts/rs6000lynx.h: Create this to enable Lynx host support. 1994-02-15 01:29:26 +00:00
Stu Grossman
8b8ddedb93 * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
appropriate.
	* rs6000-core.c:  Use HOST_AIX instead of COREFILES_PLEASE.
	* config/rs6000.mh:  Remove defs of ARCHIVES_PLEASE and
	COREFILES_PLEASE.
	* config/rs6000lynx.mh:  Turn on Lynx core file support.
	* hosts/rs6000.h:  #define HOST_AIX.
1994-02-15 01:28:16 +00:00
Rob Savoye
ff08df75bb Rearranging so cross testing will work. 1994-02-14 18:30:48 +00:00
Jeff Law
34535b4433 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
* gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
1994-02-14 17:59:19 +00:00
Jeff Law
1e95993e94 * gas/hppa/basic/fmemLRbug.s: New test.
* gas/hppa/basic/basic.exp: Run it.
1994-02-14 17:25:25 +00:00
Jeff Law
50c5c4ad12 * som.h (som_symbol_data): Safely access backend private data
for BFD symbols.  All callers changed.
1994-02-14 06:15:00 +00:00
Jeff Law
3c37f9ca0c * som.c (som_bfd_count_ar_symbols): New helper function.
(som_bfd_fill_in_ar_symbols): New helper function.
        (som_slurp_armap): New function to read a SOM LST.
1994-02-13 23:34:52 +00:00
Jeff Law
6863eb4b74 * som.h: Include <lst.h> and <ar.h>. 1994-02-13 22:30:51 +00:00
Jeff Law
5e829a3440 * elfcode.h (elf_map_symbols): Fix typo.
(write_object_contents): Check return values from prep_headers and
        elf_compute_section_file_positions.
        (set_section_contents): Likewise.
1994-02-13 06:36:41 +00:00
Jeff Law
45fc3ed43b * libiberty.h (xexit): Use __volatile__ to avoid losing if
compiling with gcc -traditional.
1994-02-13 06:12:45 +00:00
Roland Pesch
71165d7698 Formatting improvements from first eyeball once-over. 1994-02-12 07:12:40 +00:00
Steve Chamberlain
8aff8146d2 * gencode.c (main, gendefines): New -d option prints table of defines.
* interp.c (trap): Add a load of system calls.
	(sim_memory_size): Now default to 8Mbyte.
        (PARANOID): Keep vector of registers with undefined contents.
1994-02-12 06:02:09 +00:00
Steve Chamberlain
3b5442f9c8 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
(remove_commands, add_commands): Add/remove hms-drain when target
	is connected.
1994-02-12 05:52:11 +00:00
Roland Pesch
68ac42f696 Clean formatting under TeX/FSF layout and TeX/Cygnus layout 1994-02-12 04:53:38 +00:00
Roland Pesch
24b9a4e211 Keep the new gasp manual. 1994-02-12 04:25:34 +00:00
Roland Pesch
bddd4c2329 A manual for the GNU assembler preprocessor. 1994-02-12 03:59:03 +00:00
David MacKenzie
09aaf97a9f * ldlex.l (comment): Increment line number when newline is read. 1994-02-12 01:31:11 +00:00
Stu Grossman
d87d7b10af * configure.in: Add Lynx/rs6000 support.
* lynx-nat.c:  Clean up some Sparc stuff.  Clean up ptrace error
	messages.  Add rs6000 support.  Don't try to modify unwritable
	registers.
	* rs6000-nat.c:  Move lots of native dependent stuff (like core
	file support) from rs6000-tdep.c & xcoffexec.c to here.
	* rs6000-tdep.c:  Move native dependent stuff to nat.c.
	* xcoffexec.c:  Move native dependent stuff to nat.c.
	* config/rs6000/nm-rs6000.h:  Move defs of SOLIB_* macros to here
	from tm	file.
	* config/rs6000/tm-rs6000.h:  Remove defs of SOLIB_* funcs, cuz they're
	really native.
	* config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
	New files to support Lynx/rs6000.
1994-02-12 01:08:29 +00:00
David MacKenzie
a15691a56e * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
(bfd_construct_extended_name_table): Check result of normalize.
1994-02-12 00:59:26 +00:00