Commit Graph

14362 Commits

Author SHA1 Message Date
Niklas Hallqvist
d0ae7d95f7 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
	(em68k4knbsd.c): New rule.

	* configure.tgt: Added support for the NetBSD m68k4k arch.

	* genscripts.sh, ldint.texinfo,
	emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
	gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
	hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
	i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
	m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
	pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
	st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
	PAGE_SIZE to TARGET_PAGE_SIZE.

	* emulparams/m68knbsd.h: Ditto.
	(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
	(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
	being.

	* emulparams/m68k4knbsd.sh: New file.

	* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 01:40:02 +00:00
Niklas Hallqvist
6fd1f40d22 * m68k4knetbsd.c: New file.
* hosts/mipsnbsd.h: New file.
1995-10-28 01:01:52 +00:00
Niklas Hallqvist
a6623488c9 Initial revision 1995-10-28 00:58:22 +00:00
Niklas Hallqvist
f552f751e9 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
	i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
	i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
	ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
	Change PAGE_SIZE to TARGET_PAGE_SIZE.

	* m68knetbsd.c: Ditto as well as add support for the m68k4k object
	format.

	* netbsd.h: Double ditto (incl. m68k4k support).  NetBSD's text
	segments includes the a.out header.  See to that the magic number
	*always* is big-endian.

	* config.bfd: Add m68*-hp*-netbsd* case.  Cross-pollinate m68k and
	m68k4k NetBSD configurations.

	* configure.in, configure: Separate i386 & mips NetBSD
	configurations from other BSD ones.  Don't assume DEC is the only
	thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
	configurations.  Add support for m68k4k NetBSD object format.

	* libaout.h: Added M_68K4K_NETBSD magic.

	* hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.

	* hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
	<machine/endian.h>.
1995-10-28 00:45:51 +00:00
Niklas Hallqvist
7be23c26d4 Define HOST_BIG_ENDIAN_P according to <machine/endian.h>. 1995-10-28 00:36:29 +00:00
Niklas Hallqvist
f1d56a7340 Do not define HOST_BIG_ENDIAN_P 1995-10-28 00:35:40 +00:00
Niklas Hallqvist
ec1c8dd231 Added M_68K4K_NETBSD magic. 1995-10-28 00:34:30 +00:00
Niklas Hallqvist
69a374c0c4 Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume
DEC is the only thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
configurations.  Add support for m68k4k NetBSD object format.
1995-10-28 00:34:10 +00:00
Niklas Hallqvist
11ab6da4d9 Add m68*-hp*-netbsd* case. Cross-pollinate m68k and m68k4k NetBSD
configurations.
1995-10-28 00:30:38 +00:00
Niklas Hallqvist
34e9ffbccc Change PAGE_SIZE to TARGET_PAGE_SIZE 1995-10-28 00:26:12 +00:00
Ian Lance Taylor
cf79773cb1 * emultempl/aix.em: Include ldctor.h.
(gld${EMULATION_NAME}_after_open): New static function.
	(gld${EMULATION_NAME}_before_allocation): Call find_relocs.
	(gld${EMULATION_NAME}_find_relocs): New static function.
	(gld${EMULATION_NAME}_find_exp_assignment): New static function.
	(ld_${EMULATION_NAME}_emulation): Use new after_open function.
	* scripttempl/aix.sc: Use CONSTRUCTORS in .data.
	* ldctor.c (struct set_info): Move definition into ldctor.h.
	(struct set_element): Likewise.
	(sets): Make non-static.
	(ldctor_add_set_entry): Add name parameter.  Save it in the new
	set element.
	(ldctor_build_sets): Avoid being called twice.  Pass set element
	name to lang_add_reloc.
	* ldctor.h (struct set_info): Move definition here from ldctor.c.
	(struct set_element): Likewise.  Add new field name.
	(sets): Declare.
	(ldctor_add_set_entry): Declare new name parameter.
	* ldwrite.c (build_link_order): Don't insist that either name or
	section be NULL in a lang_reloc_statement.
	* ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
	new name parameter.
	(constructor_callback): Pass name to ldctor_add_new_set_entry for
	new name parameter.
1995-10-27 22:21:43 +00:00
Ian Lance Taylor
2d7de17d61 * xcofflink.c: More improvements, mostly to fix handling of
constructors and a few other special cases.
	* coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
	zero, reverting yesterday's change.
	* bfd-in.h (bfd_xcoff_link_record_set): Declare.
	(bfd_xcoff_link_count_reloc): Declare.
	(bfd_xcoff_record_link_assignment): Declare.
	* bfd-in2.h: Rebuild.
1995-10-27 22:20:19 +00:00
Stu Grossman
0fb3e100cb * config/mips/tm-magic.h config/mips/magic.mt: New files for
magic target support.
1995-10-27 17:53:44 +00:00
Stu Grossman
cd10c7e388 * breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
around calls to create_longjmp_breakpoint.  Why install the
	breakpoints if we can't find the longjmp target?
	* infrun.c (wait_for_inferior):  Cleanup comments near call test.
	* remote-mips.c:  Fixed a bunch of prototypes to avoid char/int
	complaint from picky compilers.  Add comment to mips_expect.
	Replace all instances of sr_get_debug with remote_debug.
	* (mips_readchar):  Don't jam init string to monitor.
	mips_initialize() handles that.
	* (mips_receive_header):  Print better message when we get too
	much garbage.
	* (mips_request):  Allow caller to pass in buff to allow them to
	analyze the returned message.
	* (mips_initialize):  Re-do initialization to try sending a BREAK,
	a ^C, and then a download escape sequence.  Cleanup protocol
	startup.  Eliminate sleeps.  Clear breakpoints (if using monitor
	breakpoints).  Re-init frame.
	* (mips_detach):  Close down target.
start-sanitize-gm
	* (mips_resume):  Pass signal down to target.
	* (mips_create_inferior):  Start target with TARGET_SIGNAL_PWR.
end-sanitize-gm
	* (mips_wait):  Handle return status with registers, or breakpoint stuff.
	* (mips_kill):  Add ^C handling.
	* (mips_insert_breakpoint mips_remove_breakpoint):  Call new
	breakpoint stuff if enabled.
	* (calculate_mask remote_mips_set_watchpoint
	remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint):
	Hardware watchpoint/breakpoint stuff.
	* (common_breakpoint):  Common code for new monitor breakpoint commands.
	* (mips_load):  Don't use `prompt'.  It's a global variable.
	* top.c (dont_repeat_command):  New command for use in
	user-defined commands to suppress auto-repeat (by hittin return key).
start-sanitize-gm
	* utils.c (request_quit):  Call target_kill here.  Good idea.
	Needs a better implementation.
end-sanitize-gm
	* valops.c:  Add start of auto function-call abandonment capability.

start-sanitize-gm
	* c-exp.y:  Add code (currently disabled) to handle GM dynamic
	structures (it conflicts with @!).
	* eval.c (evaluate_subexp_standard):  ditto.
	* expprint.c (print_subexp dump_expression):  ditto.
	* expression.h (enum exp_opcode):  ditto.
	* parse.c (length_of_subexp):  ditto.
	* configure, configure.in:  Add mip*-*-magic* target.
	* magic.c magic.h:  Special routines to handle GM stuff (like
	stepping through dispatcher).
end-sanitize-gm
1995-10-27 17:48:36 +00:00
Stu Grossman
d6d44ef984 * config.bfd: Add config stuff for mips*-*-magic* to set
targ_defvec to ecoff_big_vec.
1995-10-27 16:45:28 +00:00
Stu Grossman
2f9bfdfa15 * configure.in: Make sure that CC is undefined (as opposed to
null) if toplevel/config/mh-{host} doesn't define it.  Fixes a
	problem with autoconf trying to configure on a host without GCC.

	* config.sub:  Add `magic' as an OS target for General Magic.
1995-10-27 16:39:10 +00:00
Stan Shebs
7391e11c40 * mpw-configure: Set host alias from choice of host compiler,
only use generic MPW Makefile sed if present, edit a file
	named "hacked_Makefile.in" instead of "Makefile.in" if present.
	* mpw-README: Add problem notes about CW6 and CW7.
1995-10-27 05:39:36 +00:00
Stan Shebs
276703d400 New file 1995-10-27 05:32:46 +00:00
Stan Shebs
aacc02d70f Reflect updates to Mac support 1995-10-27 05:30:14 +00:00
Stan Shebs
49af8a4ec7 * mpw-config.in: Add PowerMac target support, generate config.h.
* mac-ld.r: New file, Mac resources.
	* mpw-make.sed: New file, edits Makefile.in into MPW syntax.
	* mpw-make.in: Remove.
	* mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
1995-10-27 05:28:17 +00:00
Stan Shebs
e33bf0ab90 * config/xm-mpw.h: New file, all-Mac host support.
* config/m68k/xm-mpw.h: Move most definitions into generic Mac
	support.
	* config/powerpc/xm-mpw.h: New file, PowerMac host support.
1995-10-27 05:19:11 +00:00
Stan Shebs
7bd447bae3 * mpw-config.in: Add support for PowerMac host, add beginnings
of native support.
	* mpw-make.sed: Disable subdir recursion, edit out useless rule.
	* mac-xdep.c (Values.h): Don't include.
	(GestaltEqu.h): Include Gestalt.h instead.
	(do_mouse_down): Comment out control tracking, needs to be
	updated to use UPP before will work on PowerMac.
1995-10-27 05:04:44 +00:00
Stan Shebs
d5115c2bc6 Remove unnecessary CYGNUS LOCAL 1995-10-27 04:59:01 +00:00
Ian Lance Taylor
aad2c618d3 more XCOFF linker tweaks 1995-10-27 03:36:17 +00:00
Ian Lance Taylor
27b4433688 * ld-bootstrap/bootstrap.exp: On AIX, pass -bI/lib/syscalls.exp
along with --static.
1995-10-27 03:30:15 +00:00
Ian Lance Taylor
b18896d9bd * ld-scripts/script.s: Make symbols global. 1995-10-27 02:53:47 +00:00
Ian Lance Taylor
c7c8b500b9 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
-static as a synonym for -bnso.
1995-10-27 01:59:30 +00:00
Ian Lance Taylor
1d04caa1f9 fix output location of common symbols 1995-10-27 00:10:05 +00:00
Brendan Kehoe
811f1bdce6 * regex.h: Renamed to gnu-regex.h.
* regex.c: Renamed to gnu-regex.c.
	* Makefile.in (POSSLIBS): Refer to gnu-regex.h and gnu-regex.c.
	(REGEX, REGEX1): Change to gnu-regex.o instead of regex.o.
	(regex.o): Renamed to gnu-regex.o; refer to gnu-regex.c.
	(irix5-nat.o, osfsolib.o, gnu-regex.o, solib.o, source.o, symtab.o):
	Likewise.
	* irix5-nat.c, osfsolib.c, gnu-regex.c, solib.c, source.c, symtab.c):
	Include "gnu-regex.h" instead of "regex.h".
	* alpha-tdep.c (in_prologue): Rename to alpha_in_prologue, to
	avoid conflicts with symtab.h.

fixes building gdb under OSF/1 4.0
1995-10-26 23:54:44 +00:00
Ken Raeburn
9bfaf1b952 doc fixes from Roland 1995-10-26 23:48:41 +00:00
Ian Lance Taylor
bdaff47eb7 do not output symbols which need relocs until the end 1995-10-26 23:39:19 +00:00
Ian Lance Taylor
230de6b868 get symndx right for TOC relative relocs 1995-10-26 23:03:34 +00:00
Stan Shebs
972821a346 Cosmetic improvements 1995-10-26 21:29:50 +00:00
David Edelsohn
ae143278fc * tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
instruction.
1995-10-26 18:46:28 +00:00
Ian Lance Taylor
e1371ad18c tweak .loader reloc counting 1995-10-26 18:42:46 +00:00
Ian Lance Taylor
867d923d18 * xcofflink.c: Numerous changes to get closer to a working XCOFF
linker.
	* libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
	toc_section, and entry_section fields.
	(struct xcoff_section_tdata): Remove ldrel_count field.
	* libcoff.h: Rebuild.
	* coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
	fields.
	(coff_compute_section_file_positions): If RS6000COFF_C, generate
	full a.out header if full_aouthdr is set in xcoff_data.
	(coff_write_object_contents): Likewise.  Set o_snentry and o_sntoc
	based on sections stored in xcoff_data.
	* coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
	fields.
	* coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
	value stored in ret rather than returning a pointer value.
1995-10-26 18:25:13 +00:00
Ian Lance Taylor
328e5a48e8 * scripttempl/aix.sc: Move special symbols inside sections.
Always start .data at 0.
1995-10-26 18:12:41 +00:00
Michael Meissner
e89929cd79 Delete *.i and *.out files for clean 1995-10-26 18:10:13 +00:00
Michael Meissner
22ddef466e Fix SWAP_8 and optimize it; print out the failing address if a signal is issued for non-gdb runs 1995-10-26 16:43:00 +00:00
Ken Raeburn
65f1be0633 Makefile.in (taz): Use ";" not ";;". 1995-10-26 09:47:14 +00:00
Michael Meissner
6bd9ffdb07 Remove MAC object format support from powerpc-eabi for now 1995-10-26 03:12:19 +00:00
Angela Marie Thomas
3bf13a4ef9 trying to nuke for crash... files no longer needed 1995-10-26 00:11:31 +00:00
Jason Molenda
588753450f don't keep mh-aix mh-sun. 1995-10-25 23:53:11 +00:00
Per Bothner
6b9e3a780b * Makefile.in (taz): Grep for '^diststuff:' or '^info:' in
sub-directory Makefiles, instead of using DISTSTUFFDIRS and
	DISTDOCDIRS.
	(DISTSTUFFDIRS, DISTDOCDIRS):  Removed - no longer used.
	(newlib.tar.gz):  Don't pass DISTDOCDIRS to recursive make.
1995-10-25 22:23:40 +00:00
Jeff Law
9d14250f9d * som.c (som_slurp_string_table): Allocate the strings with malloc
since they're free'd by free_cached_info.
        (som_slurp_symbol_table): Similarly for the symbol table.
Fixes crash (nm /lib/libc.a on hpux10).
1995-10-25 22:23:33 +00:00
Ken Raeburn
b008b7bf76 updated for jsmith's file renaming 1995-10-25 22:07:38 +00:00
Per Bothner
a2bd052926 * Makefile.in (diststuff): Don't make headers. 1995-10-25 21:59:47 +00:00
Per Bothner
fd83c2d212 * Makefile.in (DISTDOCDIRS): Remove ld gprof bnutils gas libg++ gdb
and gnats, because they are now subsumed by DISTSTUFFDIRS.
	Move bfd to DISTSTUFFDIRS.
1995-10-25 21:54:55 +00:00
Ian Lance Taylor
356cd46521 * Makefile.in: Rebuild dependencies. 1995-10-25 20:42:36 +00:00
Ian Lance Taylor
b73322d9fd fix XCOFF line number handling 1995-10-25 20:33:38 +00:00