Commit Graph

1324 Commits

Author SHA1 Message Date
tv
a3aeedcdb7 Tag all version strings with "nb1" to make FSF/binutils/gcc/gdb people
happy.  (This flags the version as deviating from the official FSF
distribution inside the NetBSD source tree.)
2001-12-19 21:32:49 +00:00
scw
37f114189c G/C some #define's which are already in ../netbsd.h.
Gets libgcc compiling again.
2001-12-19 18:14:20 +00:00
thorpej
06811a827d Go back to the nop/unop pattern, and pick up rev. 1.35 from the
master FSF sources (rth):

	* config/tc-alpha.c (alpha_handle_align): Encode unop with RB as $sp.
2001-12-18 00:33:35 +00:00
thorpej
cc4beed398 From the master FSF sources, rev. 1.7 (rth):
* alpha-opc.c (unop): Encode with RB as $sp.
2001-12-18 00:31:52 +00:00
thorpej
c7af981281 Make a note about what "nop" and "unop" actually are. 2001-12-17 01:51:44 +00:00
thorpej
e93b1005a7 Apply rev 1.4 of gnu/dist/gcc/config/sh/sh.h:
fix REGISTER_MOVE_COST bug (gcc original rev. 1.43):

> *sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS
2001-12-16 18:56:45 +00:00
thorpej
3274936f9b Apply rev 1.3 of gnu/dist/gcc/config/sh/sh.h (fix ASM_OUTPUT_REG_PUSH
and ASM_OUTPUT_REG_POP):

fix two bugs:
	- cc1 dumps core when "-pg" is used
	- gas produces a syntax error
2001-12-16 18:54:10 +00:00
thorpej
d63c80c2c6 Apply rev. 1.2 of gnu/dist/gcc/config/sh/sh.h:
set DWARF_LINE_MIN_INSTR_LENGTH to 2 because the length of instruction
is fixed to 16bits.
2001-12-16 18:50:16 +00:00
thorpej
c8a285e813 Apply rev. 1.7 of gnu/dist/config/sh/sh.c:
apply gcc original rev. 1.59:

 > * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
 > sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
 > const0_rtx.
2001-12-16 18:47:47 +00:00
thorpej
ff7287ad08 Apply change from rev 1.5 of gnu/dist/gcc/config/sh.c:
fix output_ieee_ccmpeq() bug:

- 2nd argument is not rtx but rtx *
- return value of output_ieee_ccmpeq is not void but char *
2001-12-16 18:38:19 +00:00
scw
f87b859f0d After a discussion with Richard Henderson (rth at redhat dot com), add
the patch I posted to tech-toolchain@netbsd.org as a workaround for the
GOT bug whereby the callee-saved register %a5 can be trashed in certain
optimised -fPIC functions.

This may yet need to be fixed a different way, pending input from
Andreas Schwab on his change in revison 1.33 of this file in the
FSF source...

In the meantime, I've built and installed several NetBSD shared libraries
(including libc) with my change and found no problems.
2001-12-16 18:28:15 +00:00
thorpej
037cacf7e2 Define __NO_LEADING_UNDERSCORES__, since this sh-elf toolchain doesn't
use them.
2001-12-16 18:09:46 +00:00
thorpej
75acdbe31a Undo a local change inherited from our local binutils 2.9 that
is not needed in binutils 2.11.
2001-12-16 17:50:56 +00:00
thorpej
f6e3c2a3da Make this compile. Still needs work. 2001-12-16 07:26:22 +00:00
thorpej
583334b6ca Avoid infinite #include recursion. 2001-12-16 07:19:42 +00:00
thorpej
c17876b1d2 Use the elf64alpha_nbsd linker emulation. 2001-12-16 04:26:17 +00:00
thorpej
7a362db4f3 After discussing the entry point issue w/ rth@redhat.com, add an
elf64alpha_nbsd linker emulation that sets the entry point correctly
for NetBSD.
2001-12-16 04:06:51 +00:00
thorpej
e3e5021be2 We need the versions of ASM_DECLARE_FUNCTION_NAME and
ASM_DECLARE_FUNCTION_SIZE from <alpha/alpha.h>, but <netbsd.h>
re-defines them.  So, re-define them again here to what
we need.
2001-12-16 04:02:48 +00:00
thorpej
72a263b8f7 Catch up with other Alpha-ELF changes. This will get cleaned up
even more somtime soon.
2001-12-16 03:09:19 +00:00
thorpej
80ed7d6a42 Clean up a bunch of the ELF support (looks like there was some sort
of merge error), and make the function/object type/size macros work
with the Alpha.
2001-12-16 03:07:59 +00:00
thorpej
85d454e712 Reset ENTRY to __start (this was changed to _start in rev 1.5
of this file in the master FSF sources; I obviously disagree
with the change, since it was apparently made to appease one
particular OS, even though previous binutils releases had been
made with ENTRY=__start, and have brought it up on
binutils@sources.redhat.com).
2001-12-15 17:55:39 +00:00
thorpej
f589c8c881 Make sure SET_ASM_OP is undefined; the Alpha assembler uses .set
for assembler options.
2001-12-15 16:49:57 +00:00
thorpej
6ed87749ed Add support for building sh-*-netbsdelf (elf32-sh-big) and
shle-*-netbsdelf (elf32-sh-little).
2001-12-15 02:18:24 +00:00
thorpej
2e065d7d6f Revert previous after further discussion w/ Todd. 2001-12-14 16:54:08 +00:00
thorpej
8937074afd Add an alpha*-*-netbsd* target. 2001-12-14 06:52:06 +00:00
thorpej
7482fd8b1e Remove the case that excludes gdb from alpha-*-netbsd*. 2001-12-14 06:51:08 +00:00
thorpej
6464462736 Remove the code that supports the old PLT format (the code for that
is not present in the master FSF version of this file).
2001-12-14 01:15:08 +00:00
thorpej
5ddefb1229 Garbage-collect the code that created old-format PLT entires.
The NetBSD/alpha ld.elf_so understands both formats, now.
2001-12-14 01:12:24 +00:00
thorpej
7a3fcb2adf Convert unaligned relocs to aligned relocs if they happen to be
aligned.  Corresponds to part of rev 1.21 of this file in the
master FSF sources.

Thanks to Michael Rauch <mrauch@netbsd.org> for fishing out the patch.
2001-12-13 00:21:57 +00:00
thorpej
d043d0d483 Revert previous, as was done so in the master FSF sources. The
original problem will be fixed in a forthcoming commit.
2001-12-13 00:18:50 +00:00
thorpej
e787c227a0 New NetBSD/sparc GDB native dependent module, cloned from the new
sp64nbsd-nat.c.  (new-toolchain was using the SunOS 4 native module!)
2001-12-11 04:03:55 +00:00
thorpej
cef2225213 Correct a warning message. 2001-12-11 03:59:52 +00:00
thorpej
02be0ec37b * Massive overhaul, including sharing the code that supplies registers
with both the inferior and core targets.
* Add support for ELF core files.

Similar changes for 32-bit sparc forthcoming.
2001-12-10 22:43:34 +00:00
thorpej
09c0648a6e Fix a typo in fetch_core_registers() which caused the integer regs
to get scribbled over.
2001-12-10 17:52:51 +00:00
thorpej
ef3e78deb9 * Clean up the way registers are supplied to the debugger proper.
* Add support for ELF core files.
2001-12-09 23:30:58 +00:00
thorpej
58b0ec8af6 * Clean up the way registers are provided to the debugger proper.
* Add support for ELF core files.
2001-12-09 23:29:47 +00:00
thorpej
ecd90c39d1 Add support for ELF core files. 2001-12-09 23:26:51 +00:00
thorpej
24ae1eda13 Add support for NetBSD-style ELF core file notes. 2001-12-09 23:24:34 +00:00
thorpej
e40269dc73 Define HAVE_SSE_REGS. 2001-12-08 07:34:40 +00:00
scw
56e14dc08b Add a fetch_kcore_registers() function.
Pasted from our m68k's gdb.old source.

Fixes an m68k new-toolchain build problem initially reported by
Americ Vincent on tech-toolchain.
2001-12-07 22:12:29 +00:00
jmc
8e9f3cf335 Account for possible alignment space before the exception table pointer when
dealing with the "eh" frames
2001-12-07 02:41:13 +00:00
jmc
39faa9cf1e Make sure the reloc for __EXCEPTION_TABLE__ in the "eh" exception frames is
fully aligned for the given arch. The sparc64 ld can't handle unaligned
relocs.
2001-12-07 02:40:36 +00:00
fredette
3ec17be693 Applied a strength-reduction patch from gcc-current. The patch
is in their revision 1.186, from schwab@suse.de, and said:

  Don't call reg_used_between_p if the insn from BL2 is after
  the insn from BL.

This fixes a cc1 SEGV on sys/dev/scsipi/ch.c rev 1.48 under -O2 or -Os,
seen on m68k and vax.
2001-12-06 18:50:34 +00:00
rafal
b28234c5b3 Catch up to the thorpe-o-tiller:
| Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
| headers, namely <link_elf.h>).
|
| Fixes build of cross-gdb.
2001-12-06 12:31:16 +00:00
thorpej
4cac6e8609 * Overhaul:
* move the code that supplies the integer and FP registers into
    separate functions, rather than duplicating the code for the
    ptrace and core file cases.
  * Use supply_register() rather than just copying directly into
    the register array and calling registers_fetched().  This way,
    only the registers actually supplied are marked as valid within
    the debugger.
* Add support for SSE/SSE2 registers via the PT_{GET,SET}XMMREGS
  ptrace(2) request.

(Blocked on the FSF assignment clerk for feeding this back to
the master GDB sources.)
2001-12-06 02:07:03 +00:00
rafal
7919399e4a Since gprof builds on mips platforms happily, add a mips*-*-netbsd* case
that doesn't add it to noconfigdirs.
2001-12-05 05:56:57 +00:00
rafal
49df24a942 Add MIPS (both target and host) support to the NEW_TOOLCHAIN GDB, based on
the 4.17 NetBSD support from our tree.  Original port by Chris Sekiya, with
minimal tweaks and cleanups by me (mainly: build bi-endian by default, add
NetBSD kcore support back).
2001-12-05 05:31:44 +00:00
jmc
dad5e6ef6d Add ${CONFIG_SHELL-/bin/sh} in front of all calls to $ac_config_sub.
Makes sure things don't break when execute permission doesn't exist
2001-12-02 04:52:41 +00:00
jmc
e134e4e037 Add sh in front of all calls to move-if-change as it might no have execute
permission turned on
2001-12-02 04:10:11 +00:00
jmc
23e8627939 Fix test -r to test -x typo. 2001-12-02 02:58:51 +00:00
msaitoh
6da382e0f0 add "-big" options for little endian 2001-11-29 09:24:24 +00:00
thorpej
20241f1e3d Add ser-tcp.o to XDEPFILES so that "target remote host:port" works,
like GDB on other NetBSD hosts.
2001-11-29 08:24:21 +00:00
thorpej
5715014189 Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
headers, namely <link_elf.h>).

Fixes build of cross-gdb.
2001-11-29 08:23:26 +00:00
thorpej
3de3b8c207 - Split some target-dependent stuff for i386-netbsd out of i386nbsd-nat.c
and place it in i386nbsd-tdep.c (new file).
- Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
  headers, namely <link_elf.h>).

Fixes build of cross-gdb pointed at i386--netbsd target.
2001-11-29 08:21:48 +00:00
thorpej
87bbb48244 Put solib.o back in NATDEPFILES; gdb really drives me crazy sometimes. 2001-11-23 22:08:20 +00:00
itojun
68c998d0d9 sync with 20010228-pl08 2001-11-20 03:58:40 +00:00
itojun
4f1d006b34 postfix-20010228-pl08 2001-11-20 03:52:29 +00:00
itojun
273a0d13f3 cleanup leftover of IPv6 patch 2001-11-20 03:50:49 +00:00
thorpej
06cf8784f0 Add _initialize_armnbsd_nat(), which registers our core file
handlers.  Whee, can fetch registers from core files now.
2001-11-20 02:58:31 +00:00
thorpej
4a4183056d Back out part of previous; needs more thought as to what to do
wrt. 26 vs 32 bit for kcore.
2001-11-20 02:41:14 +00:00
thorpej
5bf7d42e9c Move solib.o to TDEPFILES. Add kcore-nbsd.o to NATDEPFILES, -lkvm
to NAT_CLIBS.
2001-11-19 22:17:42 +00:00
tv
f8e299ca7c Merge alpha support from src/gnu/dist. Doesn't necessarily build or work
yet, but enough to get "configure" working at this stage.
2001-11-16 15:58:47 +00:00
tv
811d7372d5 Add a gdb_host=nbsd line for alpha hosts. 2001-11-16 15:55:39 +00:00
bjh21
868c7b3592 sim works for ARM targets again now (since sim/arm/Makefile.in 1.2). 2001-11-16 14:42:19 +00:00
msaitoh
d7367c00ef apply gcc original rev. 1.198 (as rev. 1.116)
> combine.c (simplify_comparison): Fix typo.

GTU, LTU, GEU, "GEU" -> GTU, LTU, GEU, "LEU"
2001-11-16 07:25:18 +00:00
skrll
9b3e60238e Pull up code from binutils 2.11.3 to fix a problem when linking against
libraries that have their dependencies recorded via NEEDED/RPATH so
that the location of the dependent libraries doesn't have to be supplied.

This closes bin/14583 by myself.

OK'd by Todd Vierling <tv@netbsd.org>
2001-11-15 20:06:27 +00:00
christos
d751d184e1 Apply fix from Wietse:
The Postfix SMTP server maintains a record of SMTP conversations
for debugging purposes. Depending on local configuration details
this record is mailed to the postmaster whenever an SMTP session
terminates with errors.

During code maintenance, a stupid error was introduced into the
code due to which the SMTP session log could grow to an unreasonable
size. This stupid error made Postfix vulnerable to a memory
exhaustion attack.
2001-11-15 18:18:51 +00:00
bjh21
a25491ad73 Don't use $< in non-implicit rules. Instead, name the source explicitly.
This should help with PR 14588, and has been submitted upstream.
2001-11-15 15:21:53 +00:00
tv
9f77222197 Move noconfigdirs=gdb for alpha from host to target block.
Set noconfigdirs=sim for ARM NetBSD targets; the ARM sim isn't building.
2001-11-15 01:00:12 +00:00
tv
b24bb409e3 Put solib support in native files, as gdb build will bomb on cross otherwise.
Put longjmp target function in the native .h, since it only works natively.
2001-11-15 00:58:29 +00:00
tv
4402226ec5 Allow $M4 to contain command line options. 2001-11-14 23:48:33 +00:00
tv
bf1762d391 Remove hooks to doc subdir. 2001-11-14 20:00:40 +00:00
tv
7ae8ff46ed Shrink size quite a bit by leaving only autoconf.info (remove all sources). 2001-11-14 19:55:57 +00:00
tv
4218eaa025 Some patches from Marc Espie that make autoconf 2.52 work with the updated
/usr/bin/m4.  (Turn off some GNU m4 checks, and go back to non-frozen
source files.)
2001-11-14 19:53:25 +00:00
tv
2766c577c2 Import autoconf 2.52 for the benefit of maintaining src/tools. 2001-11-14 19:47:22 +00:00
tv
afb39f175a Fix up the bogosity in .y->.cc handling. Don't generate files in $(srcdir),
and make sure to have dependencies for lex.o in eqn and pic (so that the .h
is guaranteed to exist).
2001-11-12 17:09:03 +00:00
tv
eac2d50e6e Work around problem with "groff2netbsd" not preserving execute permission.
(Change "mkinstalldirs" invocation to use "sh makeinstalldirs".)
2001-11-12 16:44:10 +00:00
itojun
ebdef2d397 backout IPv6 patch to postfix. IPv6 support for "mynetworks" check was
left unimplemented, and postfix daemon could become an open relay for
IPv6 connectivity.  it seems that we need to torture-test IPv6 patch outside
of the tree more.
From moley@wide.ad.jp
2001-11-11 05:26:50 +00:00
bjh21
7bdb61e034 Fix from Richard Earnshaw to make MASK_RETURN_ADDR work on both 26-bit and
32-bit ARMs, switching at run time.
2001-11-08 20:47:56 +00:00
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
aymeric
589ec775e4 Make xmalloc() and xrealloc()'s definitions match their prototypes in
scan.h
2001-11-05 20:49:47 +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
tv
d20ff568a2 Remove all traces of "aux.m4" so as not to conflict with Microsoft host OS's.
(Since we aren't A/UX, this is not much of a loss for a NetBSD host.)
2001-10-19 02:53:02 +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
f5e1b9570e Update version numbers to match the current state of the world. 2001-10-15 18:28:28 +00:00
bjh21
59ba87fb54 Add an entry for NetBSD/arm. 2001-10-08 22:47:31 +00:00
mycroft
210dd84627 Enable AltiVec goop with -m7400. 2001-10-08 09:01:29 +00:00
mycroft
60bf22ac89 Snarf AltiVec goo from binutils-current. 2001-10-08 08:42:56 +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
mycroft
34876aa7e9 Implement `info float'. 2001-09-26 03:41:52 +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
itojun
2067808a2a compare IPv6 address correctly, for net_interfaces directive.
KAME PR 382.
2001-09-09 02:52:44 +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
wiz
cbf30c4010 Minimize diff to texinfo-4.0. 2001-09-02 21:55:03 +00:00
wiz
d56ab1d29b Fix merge botch. 2001-09-02 21:42:49 +00:00
wiz
fecd6a27e1 Not in texinfo-4.0, either. 2001-09-02 21:26:49 +00:00
wiz
0eea4da15e Not in texinfo-4.0. 2001-09-02 21:24:38 +00:00
wiz
376efde5a3 These files are not part of texinfo-4.0. 2001-09-02 21:19:47 +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
itojun
3b7e3e08b4 upgrade to 8.11.6. fixes security issue in command line parsing. 2001-08-21 07:13:20 +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
itojun
3c86caea97 sync wth 20010228-pl04. 2001-08-09 08:10:17 +00:00
itojun
48a8a26166 postfix 20010228-pl04 2001-08-09 07:59:02 +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
thorpej
7b96659b6c Add ldmxcsr/stmxcsr insns. 2001-08-03 00:44:39 +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
thorpej
528686cb43 Add the "fxsave" and "fxrstor" insns. 2001-08-02 18:47:09 +00:00
itojun
3d03bdc5ce sync with 8.11.5. 2001-08-01 03:27:31 +00:00
itojun
bb79953585 sendmail 8.11.5 2001-08-01 02:49:58 +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
assar
aba70549ed fix merge left-overs 2001-07-25 17:40:09 +00:00
assar
017bc8c2e8 merge texinfo-4.0 2001-07-25 16:46:19 +00:00
assar
dac62dcd99 Import texinfo 4.0 2001-07-25 16:20:30 +00:00
itojun
ff1a865b9f there's no binmail(1). PR 13549 2001-07-25 00:16:04 +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
simonb
1d282c352f Add some 4xx-series opcodes from binutils 2.11. 2001-06-08 04:53:17 +00:00
itojun
b3c3c41bd0 sync with 20010228-pl03. 2001-06-07 11:10:35 +00:00
itojun
7cf386438a postfix 20010228-pl03 2001-06-07 11:00:49 +00:00
itojun
4110a47157 fix port number in master_listen(). hotta@kddlabs.co.jp 2001-06-07 07:59:24 +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
itojun
731b8156e5 sync with 8.11.4. 2001-05-29 04:18:24 +00:00
itojun
865ea0f61c sendmail 8.11.4 2001-05-29 03:55:36 +00:00
msaitoh
97fac3124c s/shl/shlunx/ 2001-05-21 18:21:37 +00:00
simonb
38e4ed8f09 Pass -D_SOFT_FLOAT to cpp if called with -msoft-float. 2001-05-16 15:36:47 +00:00
assar
d303561a5a enable encryption support in client-server CVS.
patch from PR bin/12618, by lha@stacken.kth.se
2001-05-15 09:56:30 +00:00
itojun
c98f5d554b handle EAI_SYSTEM. part of jumbo patch on PR 12876 2001-05-14 21:44:07 +00:00
itojun
9d367630fc do not check sizeof(hbuf). part of PR 12876 2001-05-14 21:36:09 +00:00
itojun
4a960a79c0 update INET6 case as well 2001-05-09 21:19:34 +00:00
itojun
38c869fbdc non-INET6 case fix - remove length limitation on FQDN hostname got from
reverse lookup.  PR 12876
2001-05-09 20:40:50 +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
itojun
c3ecbfbe3a correct checks against getnameinfo result code. PR 12876. 2001-05-09 02:12:30 +00:00