Commit Graph

613 Commits

Author SHA1 Message Date
rafal
f317d28b1a New toolchain files for mipseb. Mainly toolchain2netbsd output with some
changes to configuration stuff to (a) recognize `mipseb', and (b) build a
BE-default GCC on mipseb.  gprof and gdb still not done.

WARNING: Binutils 2.11.2 (maybe earlier) changed the MIPS ABI, so any
shared libs built by this toolchain WILL NOT WORK without either a whack
to BFD to fix that or a patch to ld_elf.so to work around it.  I need to
chase the binutils folks on this issue still.

That said, the new toolchain seems to work quite well once the ABI change
is worked around/fixed -- I'm committing from a machine running a user-
land built with the new compiler.
2001-11-08 07:21:53 +00:00
tv
f965ecc2a3 Give mips*-*-netbsd* a gdb_target=nbsd line. 2001-11-06 16:32:33 +00:00
scw
e994d009cd Add target/rule for m68kelfnbsd.o 2001-11-05 19:50:35 +00:00
scw
faad780fa8 Change target_emul for m68*-*-netbsdelf* to m68kelfnbsd. 2001-11-05 19:49:45 +00:00
scw
dd0e9d09ce Need "gdbcore.h" for struct core_fns. 2001-11-04 09:22:50 +00:00
scw
8f7fc0baa2 Build kcore and gdbserver support into m68k gdb. 2001-11-04 09:22:07 +00:00
scw
116d3a49bf Define SVR4_SHARED_LIBS when __ELF__ is defined now that most of NetBSD's
m68k ports have made the switch.
2001-11-04 09:20:26 +00:00
bjh21
18f0b6b3bd Move the code for splitting and joining a 26-bit R15 into arm-tdep.c, since
it should be sharable with other 26-bit systems (Linux, RISC iX?).

Also use supply_register(), since it seems to be the modern thing to do.
2001-10-29 20:37:59 +00:00
mrg
d59ba42415 disable gdb on alpha host. XXX FIXME 2001-10-28 13:53:37 +00:00
mrg
857523fed5 fix a compile error when _not_:
#if HOST_BITS_PER_WIDE_INT == 32

found building cross powerpc compiler on sparc64 host.
2001-10-26 03:14:55 +00:00
bjh21
b685397e2d When fetching registers, if CPSR is zero (and hence we've just fetched from
a 26-bit target), split R15 into PC and CPSR.  Similarly, when storing
registers, copy CPSR back into R15 if CPSR indicates a 26-bit mode.
This makes single-stepping work correctly on arm26.

Also, when fetching registers, set arm_apcs_32 based on the mode the target's
in.  This removes the need to kludge it manually.  The variable should really
be lost entirely, and arm-tdep.c should look at the mode bits in CPSR, but
the ARM Linux target is horribly broken in this area, and will either need
fixing or working around.
2001-10-25 20:55:13 +00:00
thorpej
98f31d05a1 Apply patch from misc/13927. Also corresponds to master binutils
rev 1.24 of this file.  Binutils log message:

Fri Sep 14 13:56:45 2001 UTC by nickc:
Fix bug emitting R_SPARC_UA32 relocs into shared objects
2001-10-24 21:01:31 +00:00
bjh21
61d38b1990 Fix up the Makefile fragments for GDB on NetBSD/arm so they actually
correspond to the files we've got.
2001-10-24 13:47:52 +00:00
bjh21
8523ec52e8 Replace Mark Brinicombe's NetBSD/arm glue with Richard Earnshaw's, since the
latter is likely to be easier to get into the GNU sources.  I believe the only
functional change is the loss of a working get_longjmp_target().
2001-10-22 21:09:47 +00:00
bjh21
44b78e0623 Correct a comment: NetBSD uses an undefined instruction as a breakpoint,
not a SWI.
2001-10-22 19:07:10 +00:00
bjh21
27c601625f Apply Richard Earnshaw's gdb.step.patch, which adds software single-step
support to GDB ARM targets in general, and make corresponding changes to
NetBSD-specific code.

The first half of this has already been send to gdb-patches by Richard.
The second half is irrelevant to them since they don't yet have NetBSD/arm
support in their tree yet.
2001-10-22 18:58:50 +00:00
bjh21
318cfb14be Add a hack to automatically switch to 26-bit mode when starting up on an
arm26 system.  This could be done better.
2001-10-20 17:44:58 +00:00
bjh21
408ac67774 Oops: Get the test for 32-bitness the right way around. 2001-10-20 17:14:36 +00:00
bjh21
f3da28335b arm_addr_bits_remove: Stop believing in the existence of 26-bit Thumb.
arm_frame_saved_pc: Use arm_addr_bits_remove to strip the retrieved PC.

These seem to make stack backtraces work on arm26.
2001-10-20 16:57:42 +00:00
bjh21
e426602284 Update ARM software single-stepping support to work with GDB 5.0. 2001-10-19 00:53:21 +00:00
bjh21
02e1edfb30 Small changes to make GDB for arm--netbsdelf compile:
1: Don't include arm-convert.o.  arm-convert.s contains only comments, and our
   build procedure can't cope with .s files.
2: Add "check_format" and "core_sniffer" entries to netbsd_core_fns, the same
   as in i386nbsd_nat.c.

The first of these will need toolchain2netbsd to be re-run.  While these
changes let GDB compile, I haven't tried running it on an ARM ELF system yet.
2001-10-18 15:52:57 +00:00
matt
73b0a5ab88 disable minmax_arithsi pattern (from Richard Earnshaw). 2001-10-15 20:54:06 +00:00
bjh21
59ba87fb54 Add an entry for NetBSD/arm. 2001-10-08 22:47:31 +00:00
thorpej
55a63fe9b4 Add a cast to a chunk of code already marked as broken in the main
GDB sources so that it avoids a warning on LP64 systems.
2001-10-05 22:59:55 +00:00
thorpej
ff05390aba Cast ints to u_longs before casting to char *. Avoids warning on
LP64 platforms.
2001-10-05 22:55:14 +00:00
thorpej
ff5464ee1e Cast ints to u_longs before casting to void *. Avoids warning on
LP64 platforms.
2001-10-05 22:00:23 +00:00
thorpej
882fbe6d23 Need <stdlib.h> for getenv() protoype (to avoid warning on LP64).
XXX This patch probably isn't right, but I'm not interested in
detangling the GNU include file nightmare right now.
2001-10-05 18:48:01 +00:00
thorpej
28a8ddfdd3 Need <stdlib.h> for malloc() protoype (to avoid warning on LP64).
XXX This patch probably isn't right, but I'm not interested in
detangling the GNU include file nightmare right now.
2001-10-05 18:47:42 +00:00
thorpej
c3aaaae7a0 Provide an extern decl for strlen() all the time, not just if __alpha__
(so this builds on sparc64).  XXX Why we don't just use <string.h> is
beyond me...
2001-10-05 07:38:22 +00:00
thorpej
4e3296004c Need <string.h> for memset()/memcpy(). 2001-10-05 07:35:04 +00:00
thorpej
044932d6cc Need <string.h> when building the exception handler stuff on LP64
systems (like sparc64).
2001-10-05 07:04:04 +00:00
rafal
eff7f464bc Pick up warning fixes from rev 1.115 of bintutils cvs. Part of the following
change, though I'm only picking up elf32-mips.c here.

2001-09-21  Nick Clifton  <nickc@cambridge.redhat.com>

        * elfxx-ia64.c: Fix compile time warning messages.
        * coff-mcore.c: Fix compile time warning messages.
        * coff-ppc.c: Fix compile time warning messages.
        * coffcode.h: Fix compile time warning messages.
        * elf32-mips.c: Fix compile time warning messages.
        * elf64-alpha.c: Fix compile time warning messages.
        * libbfd.c: Fix compile time warning messages.
        * bfd-in2.h: Regenerate.
2001-10-04 04:03:50 +00:00
wiz
5554debffd Add a missing va_end. 2001-09-24 14:33:50 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
simonb
b77ae95a9e For ns32k-netbsd, don't add ns32k/xm-netbsd.h to $xm_file; it gets
included in tconfig.h anyway.
2001-09-23 13:55:13 +00:00
simonb
8e868c5d17 Don't define mem{cmp,cpy,set}; from gcc-current after the 2.95.3 release. 2001-09-23 13:42:39 +00:00
matt
71e81eb955 Also apply a fix if there are no symbols involved (which means that no
reloc will be emitted for the fix).
2001-09-08 16:38:32 +00:00
matt
649981af00 The don't apply fix if not NO_RELOC only applies to OBJ_ELF. 2001-09-08 04:38:34 +00:00
matt
f23306e36f We need md_apply_fix is there is NO_RELOC. 2001-09-08 04:33:58 +00:00
matt
239fd58a71 md_apply_fix is a NOP for ELF. So macro it away. Simplify the resulting
one for the non-ELF case.
2001-09-07 17:14:24 +00:00
matt
b3b6be7160 Only use data from the r_addend, not the relocation slot itself. Make sure
pcrel relocations enable pcrel_offset and augment that for VAX specific
needs.
2001-09-07 17:12:15 +00:00
mrg
3a6f34a1f2 fix part of previous: do pass -mcmodel=medlow to the 64 bit cc1 if -p*. 2001-09-07 07:19:52 +00:00
matt
bb46238ed7 Merge in 2.11.2 changes into my ELF support 2001-09-07 05:06:51 +00:00
matt
e934346ca9 Make -mvec as an alternative for -m7400 since -mvec existed in binutil 2.9 2001-09-06 21:07:07 +00:00
matt
b3fe7bae05 Add the AltiVec data stream instructions that seemingly got lost between
binutils 2.9 and 2.11.
2001-09-06 21:02:29 +00:00
mrg
6e2daf5a64 fix the -m32 code to use /usr/lib/32 paths. don't pass -mcmodel to the 32bit cc1, it doesn't like that. 2001-08-30 09:30:40 +00:00
matt
115cd493b5 Do not compare to chars to >= 0 since this will cause a warning where
chars are unsigned.  instead, change it from ((c) < foo && (c) >= 0) to
((unsigned char)(c) < foo) which does the same thing but avoids the warning
2001-08-30 02:15:42 +00:00
mrg
ee333eaabb add missing o: to the strip(1) getopt format string. 2001-08-20 04:47:29 +00:00
mrg
f05a7e7c12 fix the NetBSD comment char (already fixed in net binutils.) 2001-08-17 11:12:34 +00:00
tv
7157e2832f XXX - force handing down of -no-gcc to off, so that cpp will predefine
__GNUC__ automatically.

Note that this is probably not the Right solution; we should fix any in-tree
uses of /usr/bin/cpp to use $CC -E.  However, this is being added for now
for backwards compatibility.
2001-08-14 13:46:14 +00:00
tv
0bcc7933e9 Trim the gcc frontend's paths way down to size. We know where system-supplied
libraries and so forth are, so we don't need to go looking in 9+ locations
for it.
2001-08-14 13:36:09 +00:00
mrg
8d35d68bd3 backout this change. we aren't yet ready for it.
2000-08-16  Andrew Macleod  <amacleod@cygnus.com>

	* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
	four extra entries at the beginning of the .rela.plt section.
	(sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
	section to account for the four reserved entries in the .plt section.
2001-08-14 11:37:10 +00:00
tv
53f1af26cd Resolve conflicts from binutils 2.11.2 import
(Also fix some cosmetic garbage added by autoconf, automake, or CVS merges
to get our files closer to the FSF versions.)
2001-08-14 04:43:05 +00:00
tv
cb093d3c1d Import binutils 2.11.2. 2001-08-14 02:57:43 +00:00
tv
2e1e353192 Import binutils 2.11.2. 2001-08-14 02:47:42 +00:00
tv
6c78eab38c Add the LINTCOMMENT hack, unconditional (no #ifdefs). Since gcc 3.0's cpp
does this Right (without even the overwrite-with-whitespace kludge), we
don't need to worry about breaking anything here.  Both -C and -CC will
result in full lint-capable comments.
2001-08-14 01:13:34 +00:00
mrg
4ccab74b56 enable dwarf2 exception handling. 2001-08-09 16:08:46 +00:00
mrg
8655405d18 call this GDB 5.0-nb1 2001-08-09 16:07:20 +00:00
tsubai
e89a6ab2cd Add powerpc-*-netbsd support. 2001-08-08 21:33:45 +00:00
tv
1b95f4bdaf Cast &readline_line_completion_function to a (Function *) to make it the
proper fully qualified ANSI type.

XXX: Cast it again to a (void *) because libedit's readline emulation thinks
that rl_completion_entry_function should be a (CPFunction *) -- perhaps more
correct, but it breaks compatibility.  libedit might be better to change to
conform to what readline wants.
2001-08-06 22:50:07 +00:00
tv
13eedd3c97 Update nm and tm files to <> include syntax too. 2001-08-06 22:37:30 +00:00
tv
6d6211445a Use <> instead of "" for including the common xm-nbsd.h, to avoid possible
include path confusion (since these files are named the same but in
different directories).
2001-08-06 22:16:57 +00:00
tv
9bc2e4cc45 Don't make init.c depend on $(INIT_FILES); this causes a build of all .o's
before grepping through .c's can begin.  Instead, depend on Makefile.
2001-08-06 21:37:30 +00:00
tv
55613cc1a4 Add mips support from gnu/dist/gprof. 2001-08-06 20:13:28 +00:00
tv
8066c02b8c ldfile.h now needs to be included before ldemul.h. 2001-08-06 20:05:48 +00:00
tv
bae83eee9b Merge manpage changes for gprof from gnu/dist/gprof. 2001-08-06 20:05:16 +00:00
tv
fa1ff75b0b Add a missing const to squelch a gcc warning/error. 2001-08-06 18:00:55 +00:00
mrg
a630fd8b23 dwarf2 exceptions work on sparc & sparc64 now. 2001-08-05 18:45:57 +00:00
bjh21
d019eb1665 Correct resolution of R_ARM_REL32 relocations. They were being resolved
relative to the start of the section rather than the location of the
relocation.  This made differences of two symbols in different files stop
working.

I believe GCC never generates this kind of relocation, which is why this bug
hasn't surfaced before.

This patch has been sent to <bug-gnu-utils@gnu.org>.
2001-08-02 23:35:00 +00:00
matt
36dc943f75 Change ARM-ELF to LP64 friendly types. 2001-07-28 07:42:28 +00:00
eeh
508945a491 Let profiling binaries be built without requiring special options. 2001-07-27 23:05:11 +00:00
mrg
e662284883 include <unistd.h> on NetBSD to get vfork() prototype (rename) 2001-07-26 17:18:39 +00:00
matt
9edddea9c5 Nuke -D__KPRINTF_ATTRIBUTE__ 2001-07-26 07:27:59 +00:00
mrg
eb80d6af65 s/SPARC/UltraSPARC/ in a comment. 2001-07-22 12:20:29 +00:00
mrg
041c56a6d7 fix LINK_SPEC 2001-07-21 13:48:40 +00:00
mrg
febe7ce944 - clean up more after <mips/elf.h> lossage, including killing the forced
support for "__main" (really __gccmain for mips), and the ctors/dtors
lists associated with this.
- add -G to SWITCH_TAKES_ARG(), so `-G 0' works as well as `-G0'
- add support for .init, .fini and .rodata (const) sections (basically
merging the generic ELF support with the MIPS support.)

kernel links and runs happily now.
2001-07-20 18:15:33 +00:00
matt
593fff9e8d Default elf32 for vax to have a NetBSD OSABI. Allow for Linux/VAX to get
an Linux OSABI.
2001-07-20 11:57:48 +00:00
matt
cdb827bd00 Fix the polarity of a test. 2001-07-20 07:12:06 +00:00
matt
e2fd07f958 Fix another warning. 2001-07-20 05:21:50 +00:00
matt
1cf42fcda9 Fix warning. 2001-07-20 05:16:56 +00:00
mrg
5877244037 set MIPS_DEFAULT_GVALUE to 0. undefine DWARF_FRAME_REGNUM,
DWARF_FRAME_RETURN_COLUMN and INCOMING_RETURN_ADDR_RTX so GCC doesn't think
we have dwarf2 unwind info support.  now this mostly works, though c++
exceptions seem to bus error...
2001-07-19 23:43:37 +00:00
mrg
b82cf772de don't do dwarf2 eh if not DWARF2_UNWIND_INFO 2001-07-19 23:41:12 +00:00
mrg
337651a310 make this actually work: use <mips/elf.h> and <netbsd.h>, plus a few
little twiddles.
2001-07-19 18:37:38 +00:00
matt
77315351bc Fix a warning (missing const). 2001-07-19 18:31:57 +00:00
matt
8251c8dd77 Don't emit JUMP_SLOT at all (match behave of gas-current for arm). 2001-07-19 14:55:51 +00:00
tv
0dfc6a96e1 These two files make .PATH:ing a PITA, because they have the same names as
those in libU77.  These versions aren't used anymore; nuke 'em.
2001-07-18 20:42:58 +00:00
tv
38b4263bc6 Add missing %(cpp_cpu). 2001-07-18 13:54:47 +00:00
tv
25da59331f Remove -Dunix and -Di386. 2001-07-18 13:54:19 +00:00
tv
4c834f8068 Rename GCC_INCLUDE_DIR to STANDARD_INCLUDE_DIR for INCLUDE_DEFAULTS; change
STANDARD_INCLUDE_DIR to apply to all languages ("GCC" -> 0).
2001-07-18 13:07:05 +00:00
matt
4fbde64366 More changes to get gdb to run on NetBSD/arm 2001-07-15 07:43:12 +00:00
matt
a5024ec2b0 Grabbed from gnu/gdb/config/arm. Slightly tweaked for ELF. 2001-07-15 05:32:31 +00:00
matt
ad91959ada NetBSD should not default to embed on arm. 2001-07-15 05:30:27 +00:00
matt
768aea4cbc Collapse all netbsd vax entries to one. Allow ld for a.out (which works
for static only).
2001-06-25 14:11:34 +00:00
matt
8998641810 Shrink back to one vax--netbsd entry. Reorder includes so that we work
the new emitted tm.h files.
2001-06-25 05:49:43 +00:00
matt
31b2119a86 Back some changes until I figure out why they break things. 2001-06-25 05:15:34 +00:00
matt
6c85c2af2a Put in the proper output format. (with this change, you cross build
vax kernels).
2001-06-25 04:52:45 +00:00
tv
0e7c732fef Add m68k ELF support from gnu/dist/ld. 2001-06-18 16:14:31 +00:00
tv
487eab27f7 Remove reduntant ARRAY_SIZE definition. 2001-06-18 16:13:37 +00:00
tv
ee71b1bb7d Update Alpha support to changes from gnu/dist/gcc. 2001-06-18 16:10:27 +00:00
tv
8d750b2c7d Update ARM support to changes from gnu/dist/gcc. 2001-06-18 16:09:21 +00:00
tv
ed84490d60 Add m68k ELF and update a.out to changes from gnu/dist/gcc. 2001-06-18 16:08:51 +00:00
matt
c8b785d4a5 Rename make_temp_file to xmake_temp_file to avoid a conflict
with libiberty.a
2001-06-16 04:55:37 +00:00
tv
876e40a10a Don't build language "proto" (protoize, unprotoize) by default. This whole
"SYSCALLS.c.X" business is just more annoyance that it's worth.  It can
still be enabled manually by putting "proto" in LANGUAGES.
2001-06-02 00:54:20 +00:00
tv
d6df4ff7e1 Completely nuke autoconf/autoheader remaking. We don't want or need this,
and it's only an annoyance when checking out of CVS.  Hopefully later
versions of GCC will be smarter with autoconf and use @AUTOCONF@ parameters
(which can be replaced with `true').
2001-06-01 23:52:14 +00:00
tv
4909bd1ed2 Add (const char **) cast to some struct initializers to make the type-correct
(fixes warning in toplev.c).  As far as the appropriate code is concerned in
toplev.c, these values are const; they're initialized exactly once beforehand.
2001-06-01 13:31:46 +00:00
tv
ff53e0cd93 Add a cast for proper type conversion, which was causing a warning. 2001-06-01 02:42:26 +00:00
tv
763e939509 Make all ELF platforms properly use -dynamic-linker, crt0, crtbegin, and
crtend, primarily for testing.  Fixes bootstrap ld testsuite failures.
2001-05-31 19:48:58 +00:00
tv
737585d43c Merge from gnu/dist/gdb:
- Kill KERNEL_U_ADDR stuff, etc. [gwr]
- Provide a descriptive error message if "-k" is used. [gwr]
- Use NO_SOLIB to turn off inclusion of "solib.h". [msaitoh]
2001-05-31 17:08:54 +00:00
tv
9dd3a5f4b8 Add ignore case for N_WARNING [adapted from gwr]. 2001-05-31 16:59:15 +00:00
tv
3fc4ebc16d Remove dupe for sparc-netbsdaout (which will match anyway on sparc-netbsd*). 2001-05-31 16:50:04 +00:00
tv
d49ce936d5 Merge change from gnu/dist/gdb [jonathan]:
patch solib.c from gdb 4.16 to work around non-relocation and
misfeatures with ELF on mips. Without this, gdb gets addresess in
shared-libraries wrong and reports `heuristic fencepost' error.
(cf. the special-case solib functions duplicated in irix5-nat.c.)

tv: XXX this should be migrated to a MD file in the future.
2001-05-31 16:45:39 +00:00
tv
d582978a38 Re-add kcore support for i386. 2001-05-31 16:39:08 +00:00
tv
3fe2119317 Use rs6000/xm-sysv4.h as the xm_file for powerpc (much closer to what we
really have than the default xm-rs6000.h).
2001-05-31 15:17:11 +00:00
tv
c482b60bca Revert previous. The problem is generated by a wrong xm_file defining USG. 2001-05-31 15:15:46 +00:00
tv
d60682457b Revert previous; this isn't where the problem is. 2001-05-31 15:07:05 +00:00
tv
b3161809b7 Turn off COFF support, as that's not the file format used by powerpc-netbsd.
(Causes problems compiling collect2 natively.)
2001-05-31 14:58:59 +00:00
simonb
9babc4d28c Add the -msoft-float/-D_SOFT_FLOAT change from the older toolchain. 2001-05-31 05:13:45 +00:00
tv
5f257ba0f7 Merge from gnu/dist/gdb [kristerw]:
Prevent gdb from getting stuck in _PROCEDURE_LINKAGE_TABLE_ ()
Closes my PR bin/6323.
2001-05-31 04:35:30 +00:00
tv
14f19b14d5 Migrate from i386bsd.h to i386.h; define our own SIGTRAMP_* [gwr, fvdl]. 2001-05-31 04:32:47 +00:00
tv
308c6d8c21 Only define SVR4_SHARED_LIBS if the native system is ELF. 2001-05-31 04:28:15 +00:00
tv
3a73dea4e5 No, NetBSD doesn't have <syms.h> either; add us to the very long
#if !defined... line.
2001-05-30 20:34:53 +00:00
tv
a9cd1d161e Make sparc-netbsdelf and powerpc-netbsd targets work. 2001-05-30 18:47:24 +00:00
tv
6772c74f98 At the suggestion of mrg and insistence of libstdc++-v2, reenable building
libiberty for cross targets.  Whee.
2001-05-30 17:36:17 +00:00
tv
7ed9d2501e Merge change from src/gnu/dist/libstdc++ [tv]:
Reduce code size of programs using the Allocator by externalizing some
template instantiations.
2001-05-30 10:51:55 +00:00
tv
312dd92261 Avoid redeclaring (improperly) symbols already in NetBSD #includes. 2001-05-30 09:51:10 +00:00
tv
ba2a0f2139 Fix -Wtraditional warning. 2001-05-30 09:23:30 +00:00
tv
05d1203a2e Move @ac_libiberty_warn_cflags@ earlier in COMPILE.c so that -Wno-* flags
added to CFLAGS at configure time actually do something useful.  (Needed
so that some warnings can be turned off under -Werror.)
2001-05-30 09:22:08 +00:00
tv
ab63d93530 Update i386 support; native and cross now works properly with an i386 target. 2001-05-30 09:05:09 +00:00
tv
808a6f169b Merge from gnu/dist/gcc [christos]:
In the NO_UNDERSCORES case we need an extra `*' in ASM_GENERATE_INTERNAL_LABEL
otherwise using the macro in dbxout.c, eats the initial `.'. Probably someone
forgot that one, because the `*' is present in other implementations.
2001-05-30 09:04:13 +00:00
tv
32ed83ebd0 Major overhaul of target/host file handling for NetBSD. Make this uniform,
with a basic NetBSD template and some specific platform overrides.  This
also results in dropping most of the "xm-netbsd.h" and "t-netbsd" files.
2001-05-30 09:02:42 +00:00
tv
7363ff3bc0 Don't build libiberty for the target of a cross. (IMNSHO, this is just
stupid, but the GNU tools love having dozens of libiberty copies sitting
around in all kinds of places....)
2001-05-30 08:59:11 +00:00
tv
cf37b2b1f0 gethostname() doesn't return error on NetBSD if the string is too short;
merge workaround.  This needs a more complete rewrite and submission to
FSF....
2001-05-30 07:02:39 +00:00
matt
cf2c5819fa More bug fixes. -fpic now produces significantly better code than
-fno-pic.  Make the pic'ifying simpler.
2001-05-09 15:04:48 +00:00
matt
e5efdf6e7f Emit relocs for NetBSD/vax a.out correctly. 2001-05-09 15:02:59 +00:00
matt
0cd6e25685 Turn on SVR4_SHARED_LIBRARIES (make gdb build on i386). 2001-05-04 04:18:03 +00:00
matt
5eee102e5a Add ELF VAX support. (simply the VAX COFF support by using a convienence
macro).
2001-05-03 18:22:51 +00:00
matt
7ad2f6a918 A small change elfos.h for VAX ELF. configure* need to about
{vax,arm*}--netbsdelf*.  ARM ELF changes for NetBSD (from bjh).
2001-05-03 18:20:46 +00:00
matt
bc6a8a09a0 Add ELF support for VAX; fix (from bjh) ARM ELF for NetBSD 2001-05-03 18:15:12 +00:00
matt
db74c7bd9d Add NetBSD/vax ELF support (& NetBSD/arm ELF support too). 2001-05-03 17:28:46 +00:00
matt
a53dfa8ffd Add NetBSD/vax support. Fix compile bug in vax-tdep.c 2001-05-03 17:25:45 +00:00
matt
2fda2568f5 Add vax ELF header. 2001-05-03 17:24:46 +00:00
matt
d8ad732276 print register offsets in decimal since they are signed. 2001-05-03 17:23:15 +00:00
matt
26f751e159 Fix 3 problem. Be more stringest in testing register for use. Fix ffs
builtin.  Fix addsi2 pattern.
2001-05-03 17:12:52 +00:00
matt
f365cec4fe fix the ffs builtin. 2001-05-01 00:54:52 +00:00
matt
6becddcc57 Fix two code generation problems. The first is to fix how negative const
int values are added in DI (if the the constant is <0 & > -2*1024*1024 then
use a decl/subl and sbwc $0 instead of addl/adwc).  The second fix is to
disallow register elimination peepholes when that register is used by
other operands in the other instructions in the peephole.
2001-04-30 06:19:58 +00:00
bjh21
5907bb14c3 Fix missing-parenthesis typo. 2001-04-24 21:57:08 +00:00
bjh21
0b339990b0 Don't declare pic_code twice in the OBJ_ELF case. 2001-04-23 18:08:52 +00:00
tv
515079da0a Add ELF tagging (-netbsdelf) to the arm target. 2001-04-23 15:17:59 +00:00
tv
f49e16abfb Make the NetBSD block work correctly/more cleanly. 2001-04-23 15:12:39 +00:00
tv
4031f2faa5 Resolve conflicts from binutils 2.11 import. 2001-04-23 14:16:30 +00:00
tv
27b65c5cd9 Import binutils 2.11. 2001-04-23 12:27:01 +00:00
tv
2e935485da Nuke files that are no longer relevant to this directory (it's now imported
solely from binutils; these are gcc files).
2001-04-23 12:26:59 +00:00
tv
35f354e86d Import binutils 2.11. 2001-04-23 12:24:25 +00:00
tv
dbfa9a0b9b Resolve conflicts from gcc 2.95.3 import. 2001-04-23 12:23:26 +00:00
tv
f54fbfcb75 Import gcc 2.95.3. 2001-04-23 11:57:48 +00:00
tv
1220abdf9e Remove obsolete files. 2001-04-23 11:50:24 +00:00
simonb
d8655509d6 Pull in rev 1.11 from the Cygnus binutils CVS repo:
* ppc-opc.c (insert_mbe): Shift mask initializer as long.

Fixes cross-assembly problems when compiling for a ppc target on an
alpha.
2001-04-04 16:23:14 +00:00
christos
9de44fdf69 don't allow others to read the history file [from OpenBSD] 2001-03-20 00:03:27 +00:00
mrg
7fc33b5fc8 pull across a few changes from gcc-current for sparc64:
1999/08/02  Jakub Jelinek  <jj@ultra.linux.cz>
	* config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
	(RTX_OK_FOR_OLO10): Likewise.
	(GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
	%lo(), allow it in addresses...
	(PRINT_OPERAND_ADDRESS): ... and print it appropriately.
	* config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
	does not make sense.
	* config/sparc/sparc.c (sparc_hard_reg_printed): New array.
	(sparc_output_scratch_registers): New function.
	(output_function_prologue, sparc_flat_output_function_prologue): Use
	it.
	* varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
	defined.
	* tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.

	1999/07/30  Jakub Jelinek  <jj@ultra.linux.cz>
	* config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
	Fix patterns so that they actually match.
	(cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
	(mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
	(const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
	TARGET_HARD_MUL32.
	(mulsidi3): Reflect this in the expand.
	(smulsi3_highpart): Only on TARGET_ARCH32.
	(umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
	(const_umulsidi3_sp32): Renamed from const_umulsidi3.
	(umulsidi3): Reflect this in the expand.
	(umulsi3_highpart): Only on TARGET_ARCH32.
	(divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
	don't require g0 to be zero.
	(udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
	({,u}divsi3): New expands.
	({,u}divsi3_sp64): New patterns.
	(after lshrdi3_v8plus): Four new patterns to help combiner
	optimizing nested mixed mode shifts.
2001-03-06 05:21:47 +00:00
mrg
a37de8f33c pull across a patch from gcc-current, that allows "cc -m32 -pg" to work.
1999-12-14  Jakub Jelinek  <jakub@redhat.com>
	* config/sparc/sparc.c (sparc_override_options): Allow block
	profiling with -m32.
2001-03-03 08:14:06 +00:00
tv
0ea3d2ad44 Rather than hacking it with __NetBSD__, leverage ld --traditional-format to
flag the old elf64-alpha PLT format (in use by NetBSD/alpha ld.elf_so).
2001-02-09 17:23:46 +00:00
eeh
62c6232960 Remove some debug printfs. 2001-02-05 19:39:45 +00:00
eeh
0feeda0dfd Add some support for debugging 32-bit binaries. But watch out: addresses
are not truncated to 32-bits yet.
2001-02-05 18:47:10 +00:00
tv
515bd1397b This xmakefile is unneeded. 2001-02-03 04:37:17 +00:00
tv
fc00f26810 Clean up and add comments.
Draw from t-freebsd: Don't use the ginclude "override" headers; the ones
that come with NetBSD are already complete enough for gcc.
2001-02-03 04:26:06 +00:00
tv
07a5bebdd8 Add cast to last change to ensure value fits in destination ((char) added). 2001-02-02 19:00:18 +00:00
tv
834ac1455a Merge from gnu/dist, rewrite:
On systems with signed "char", truncating (int)128 to (char) will result
in the value -128 (and so forth, through -1).  Instead, use the real values
0..255 correctly.
2001-02-02 18:57:04 +00:00
tv
ddc206813d Sync with configure.in. 2001-02-02 18:25:10 +00:00
tv
0c07dad326 Handle NetBSD targets uniformly. 2001-02-02 18:23:01 +00:00
tv
c8170b9e0d Merge from gnu/dist from mycroft:
Make sure the dynsym section and the reserved bits in the RPDR are fully
initialized.
2001-02-02 17:59:53 +00:00
tv
d343831d3e Sync. 2001-02-02 17:47:04 +00:00
tv
4f6af44984 Add arm*-*-netbsd* with netbsd-core.lo.
Remove redundant powerpc-*-netbsd*.
2001-02-02 17:45:46 +00:00
tv
1950ad24e5 Handle NetBSD targets separately and uniformly, so that they don't modify
other targets' settings.
2001-02-02 17:39:54 +00:00
tv
35a4641431 Add cases for m68k4k-*-netbsd* and vax1k-*-netbsd*. 2001-02-02 16:56:29 +00:00
tv
ebc635b547 Fix frobbing of UNAME_RELEASE (meant to strip _{ALPHA,BETA} endings); it
was originally just adding a trailing period.
2001-02-02 16:49:11 +00:00
tv
99643b940c Undo utter braindamage regarding i*86-*-netbsdelf (config.guess exists for
this purpose!), and undo the spewage from using autoconf to regen the
"configure" file.
2001-01-31 20:18:40 +00:00
tv
b640d66262 Merge from gnu/dist:
Make the null printf format string warning enabled only if -pedantic is
supplied.  This allows printf format attributes on err/warn.  A fix to handle
this properly is in the works for the next major gcc release.
2001-01-31 19:58:32 +00:00
tv
4ee5340670 Accept -Wno-format-extra-args as a compatibility no-op until the next gcc
release (which handles this situation more cleanly).
2001-01-31 19:56:28 +00:00
tv
8f90d7b078 Remove the "too many arguments for format" warning until the next major
release of gcc, which handles this more cleanly.
2001-01-31 19:55:23 +00:00
tv
daa1fb34df Accept -Wno-format-y2k as a no-op, pending the next gcc version (which
handles strftime y2k warnings more cleanly).
2001-01-31 19:52:09 +00:00
tv
7b53faae31 Completely nuke the strftime warnings for y2k. These are handled more
cleanly in the next version of gcc, and aren't critical to keep.
2001-01-31 19:50:16 +00:00
tv
93c650f20d Fix typo in comment. 2001-01-31 19:37:32 +00:00
tv
800fc36bec Use the now-standard BFD_RELOC_ARM_JUMP_SLOT name in lieu of
BFD_RELOC_ARM_JMPSLOT.
2001-01-31 19:35:11 +00:00
tv
871b150e31 Disable ld by default on a.out targets; also disable gas on m68k-a.out and
ns32k-a.out.
2001-01-31 16:29:52 +00:00
tv
ec2f0083f2 Merge from gnu/dist:
This is also called "f77" and "fort77".
2001-01-31 15:26:42 +00:00
tv
04a11cccb0 Merge from gnu/dist:
Need <string.h> for strcpy() and strlen() prototypes.
2001-01-31 15:22:51 +00:00
tv
718eabbba3 Merge from gnu/dist:
Accept %F in strftime format checking.
2001-01-31 15:18:32 +00:00
tv
402b9b56e1 va_list is "char *" on NetBSD's sparc64; conditionalize this, as the old
case was to use "void *" on __arch64__ being predefined.
2001-01-30 22:36:39 +00:00
tv
f17240abbc The sparc include file is now sparc/netbsd-elf.h, not sparc/netbsdelf.h. 2001-01-30 22:09:01 +00:00
tv
351c7e5945 exit() -> _exit() when coupled with our [true] vfork(). 2001-01-30 19:45:09 +00:00
tv
250a65c838 Show "-d" in the usage output for strip(1). 2001-01-30 19:24:54 +00:00
tv
45d7253aee Merge from gnu/dist:
Document the compatibility "-d" option to strip.
2001-01-30 19:23:22 +00:00
tv
8798a9a1bb Resolve conflicts from binutils 2.10.1 import. 2001-01-30 19:08:57 +00:00
tv
8a46e5b0f4 Import binutils 2.10.1. 2001-01-30 18:32:08 +00:00
eeh
f616788686 Fix problem with shared library symbols. 2001-01-16 23:35:19 +00:00
matt
cb70721fea Improve some of the DImode support. Add/improve a bunch more peepholes.
Generate smaller/faster code in general.
2001-01-02 04:33:40 +00:00
matt
647505be57 Fix/optimize a few DImode moves. 2000-12-30 07:35:13 +00:00
matt
83d1ef55c4 Fix/reorder CONST_OK_FOR_LETTER for better optimization. 2000-12-30 07:33:43 +00:00
matt
5b5b167396 Eliminate things that moved to netbsd.h 2000-12-29 22:06:04 +00:00
matt
1fb988a3ee Massive changes to include PIC support including a mostly revamp machine
description.
2000-12-29 21:34:11 +00:00
matt
78172bb22d This now works for a.out using no-pic. Eg. back to where I started from. 2000-12-29 03:40:27 +00:00
matt
2b22fba4b0 Pick up a change from gcc-current. For those targets without call or
call_value, use call_pop and call_value_pop.  (this is needed for vax)
2000-12-29 03:39:14 +00:00
matt
d1ff29768d Add a few more cases to print_operand_address (and be more helpful on aborts). 2000-12-28 05:29:25 +00:00
matt
c30c93b03c Add legitimize_pic_address and the netbsd-elf.h for ELF support. 2000-12-22 16:48:36 +00:00
matt
5b49016829 Add half-pic mode. Default to half-pic mode. 2000-12-22 16:37:37 +00:00
matt
4241925fa2 More merging. Move GO_IF_LEGITIMATE_ADDRESS stuff into vax.c from vax.h.
Extend it to properly deal with indirect and indexed addressing modes.
Add preliminary PIC support.
2000-12-22 06:16:45 +00:00
matt
a9c4c35371 Merge in 1st layer of ELF differences. This is a just a cleanup. No ELF
specific changes.
2000-12-22 04:59:35 +00:00
wiz
779cdb4e70 Improve error output if executable file format isn't recognized. 2000-11-28 18:44:46 +00:00
mrg
77b1d2266f #include <elfos.h> only for i386 compiler for now -- it causes lossage
in other ports and is required only there (for now).
2000-10-29 12:21:14 +00:00
mrg
9b051e142a restore the contents of this file so that the g77 texi builds. 2000-10-26 03:59:28 +00:00
mycroft
fa3aaf6d8b Modify LIB_SPEC and LIBGCC_SPEC so that -lc and -lgcc are not included when
-shared or -symbolic (as on other platforms).  Also, override LIBGCC_SPEC for
all platforms (where it would incorrectly include the .a file explicitly on
some).
This should fix Mozilla on macppc.
2000-10-23 13:19:35 +00:00
bjh21
2307f87106 We only need one version of cons_fix_new_arm() -- merge them. 2000-10-22 11:44:56 +00:00
eeh
b555818569 Add _rtld_debug_state to the list of symbols where GDB may stop the
dynamic linker.
2000-09-25 17:10:28 +00:00
mrg
4da440af9a make this work for i386-netbsdelf. most of this work is based on patches
from thorpej that includes a rewrite of the config/i386/netbsd-elf.h file.
2000-09-14 03:56:04 +00:00
mrg
0dc7000eaa - define SPARC_BI_ARCH
- move CPP_PREDEFINES to netbsd-elf-common.h
- define CPP_SUBTARGET_SPEC to -D__sparc64__
- copy and modify many SPARC_BI_ARCH `specs' from <sparc/sol2-sld-64.h>.
  these currently look for 32 bit things in /emul/netbsd32, but this is
  temporary


with these changes, i can succesfully build working 32 bit binaries on
a 64 bit system, as long as libgcc, *crt*.o and necessary libraries
exist under /emul/netbsd32.
2000-08-31 14:14:32 +00:00
mrg
e486a9a452 - move CPP_PREDEFINES to netbsd-elf-common.h
- define CPP_SUBTARGET_SPEC to "-D__sparc", preserving old CPP_PREDEFINES
  semantics.
2000-08-31 14:10:09 +00:00
mrg
1148c9223a - add missing %(asm_arch) to ASM_SPEC
- merge <netbsd.h> & <sparc/sparc.h> CPP_SPEC's.
- move CPP_PREDEFINES here from the 32bit/64bit configurations.
2000-08-31 14:08:02 +00:00
tv
09c7751d41 Put vax in the "nbsd" emulation. 2000-08-22 17:41:24 +00:00
tv
35db5d3725 Re-add TARGET_SYMBOL_FIELDS until this is redone correctly using
TC_SYMFIELD_TYPE.
2000-08-22 17:39:43 +00:00
tv
b3e56e61e9 Add some compatibility vectors to allow objdump'ing and objcopy'ing of
formats used by COMPAT_ emulations.
2000-08-20 18:01:51 +00:00
tv
0ed3ab1dff Add vaxnetbsd_vec. 2000-08-20 17:58:17 +00:00
tv
83b3d9e356 Add netbsdaout.lo to i386netbsd_vec. 2000-08-18 18:28:13 +00:00
tv
7869cbfce2 plt_offset->plt.offset fix 2000-08-18 18:21:29 +00:00
tv
64dfdf4c5c Add definition for mipselnetbsd_vec. 2000-08-18 18:20:42 +00:00
eeh
99150af770 Fix `call'. This can panic the kernel due to an unhandled FPU exception. 2000-08-18 18:14:09 +00:00
tv
f5781c1805 Add some more targ_extra_emuls. 2000-08-18 17:40:34 +00:00
tv
9ef2ad5184 Define SET_ARCH_MACH only if not already set. 2000-08-18 16:54:23 +00:00
tv
b30f55f2f3 Add other-endian mips emulations and sparc32 on sparc64 for target_extra_emuls. 2000-08-18 16:50:09 +00:00
tv
0a7caaf76f Revert changes caused by running autoconf in this directory; leave only the
NetBSD additions (makes future import merges much easier).
2000-08-18 16:18:45 +00:00
tv
4a00eaa0a3 Fix const warnings surrounding bfd_target_vector. 2000-08-18 15:58:57 +00:00
mrg
2d76e7037d in define_split, only check "reload_completed", removing the bogus 64-bit
and FPU checks that caused compile failures for no good reason.
from: <root@ihack.net>
2000-08-18 15:45:28 +00:00
tv
a516c80d78 Add a hack to force HOST_WIDE_INT to "long long" if the target is alpha or
sparc64 and the host is using gcc.
2000-08-18 12:56:30 +00:00
mrg
80e98bec22 pull across a patch from gcc-current that fixes ~90% of the sparc64 compile
problems:

        * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
2000-08-17 04:01:30 +00:00
mrg
9ee127a42c back out previous, and do it properly:
copy the ASM_OUTPUT_CONSTRUCTOR and ASM_OUTPUT_DESTRUCTOR defines from
sol2-sld-64.h.
2000-08-11 03:31:41 +00:00
mrg
239844c32c if TARGET_CPU_DEFAULT is TARGET_CPU_v9 or TARGET_CPU_ultrasparc, define
ASM_LONG to be ".xword".  this makes C++ global ctors and dtors work
on the sparc64.  noted by mycroft.
2000-08-11 03:13:32 +00:00
tv
3f6d813859 Merge change from gnu/dist/gcc/objc: don't put absolute relocs in ro-data
if compiling PIC, else RRS text relocs will be generated.
2000-08-10 21:06:50 +00:00
tv
6e4a918853 Merge changes from gnu/dist/ld. 2000-08-10 20:41:51 +00:00
tv
cbef3ca9f3 Merge changes from gnu/dist/binutils. 2000-08-10 19:53:54 +00:00
tv
9af6ca142f Update to 2.10's definition of undefined_symbol(). 2000-08-10 19:33:02 +00:00
tv
2fe7204081 Recanonicalize ELF hosts (that were formerly a.out) uniformly:
ARCH-unknown-netbsdelfVERSION
ELF hosts that started that way are not changed.
2000-08-10 19:02:56 +00:00
tv
874ca5d37d Merge from (binutils-2.9.1 based) gnu/dist/gas. 2000-08-10 18:47:32 +00:00
tv
3a56a942e3 Merge from (binutils-2.9.1 based) gnu/dist/gas. 2000-08-10 18:47:31 +00:00
tv
d977b907c5 Merge from (binutils-2.9.1 based) gnu/dist/gas. 2000-08-10 18:47:29 +00:00
tv
48e789cc92 Merge from (binutils-2.9.1 based) gnu/dist/gas. 2000-08-10 18:47:28 +00:00
tv
cc17a82660 Merge from (binutils-2.9.1 based) gnu/dist/gas. 2000-08-10 18:47:26 +00:00
tv
78bd242fd9 Merge changes from (binutils 2.9.1-based) gnu/dist/bfd. 2000-08-10 17:36:49 +00:00
tv
fc02cabeaf Merge from src/gnu/dist. Add armv2 and mipseb, and eliminate old `netbsd386'
shorthand alias.
2000-08-10 15:46:35 +00:00
tv
78da8a8e6b More compatible yet: sysctl used to be in /usr/sbin, not /sbin, so add both
locations to $PATH before trying to run sysctl.
2000-08-10 14:57:22 +00:00
tv
8b87324ac7 Merge the MACHINE_ARCH logic from gnu/dist/config.guess, but do this in
a backwards-compatible way (prefer uname -p, but fall back to
/sbin/sysctl -n hw.machine_arch).
2000-08-10 14:54:34 +00:00
tv
339b9c00a1 Merge from gnu/dist/include. 2000-08-10 13:52:05 +00:00
mrg
b6328d2c74 redefine LINK_SPEC properly. 2000-08-08 14:29:17 +00:00
mrg
491b443ab4 #define NETBSD_ELF 2000-08-08 14:28:13 +00:00
eeh
19b86fa1f6 Make gmon work a bit on sparcv9 machines. 2000-08-03 21:42:01 +00:00
eeh
c018ba7889 Add sparc64-*-netbsd support. 2000-08-02 21:00:31 +00:00
tv
45a5f2e009 Remove conflicting definition for "make_temp_file" now found in libiberty. 2000-07-28 01:10:32 +00:00
tv
12b2c44a51 Use the libiberty from binutils; it is much newer and required by binutils. 2000-07-28 01:09:12 +00:00
mrg
9f3da9fc1b add sparc64-netbsd & sparc-netbsdelf support (from me via binutils-current) 2000-07-26 16:35:12 +00:00
mrg
e9a5e01d04 support all sparc targets (from me via binutils-current) 2000-07-26 16:32:57 +00:00
mrg
e1575802a6 add sparc64-netbsd support (from me via binutils-current) 2000-07-26 16:30:56 +00:00
mrg
1600ba0055 - pull across the new gcc/config/netbsd.h
- pull across the sparc-netbsdelf and sparc64-netbsd targets
2000-07-26 16:28:04 +00:00
tv
3129068ae5 Import of gdb 5.0 into new gnu/dist/toolchain layout. 2000-07-26 00:32:27 +00:00
tv
1de46e6cd7 Import of binutils 2.10 into new gnu/dist/toolchain layout. 2000-07-26 00:22:40 +00:00
tv
dc36174cbd Import of gcc 2.95.2 into new gnu/dist/toolchain layout. 2000-07-26 00:17:09 +00:00