Commit Graph

3502 Commits

Author SHA1 Message Date
simonb ad8890a6fa Add the bfd-mdsetimage pkgsrc version of mdsetimage - this is Chris
Demetriou's origianal mdsetimage with modifications by Kazuki Sakamoto
to use libbfd.  It lives in gnusrc because libbfd is GPL, not LGPL.
2001-10-22 03:19:29 +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 32bac67e87 Exclude Y2K bug flag files from the build; fixes undefined symbol errors
reported by jbernard@mines.edu in PR bin/14222.
2001-10-19 03:33:35 +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 9744d3aebc If MACHINE_ARCH == arm, install into /usr/include/${MACHINE_ARCH} 2001-10-18 06:12:48 +00:00
matt 1532b67157 Update from toolchain2netbsd run. (though some only have the updated
toolchain2netbsd version run)
2001-10-18 05:45:26 +00:00
matt e42e6e66e6 Updated files from new toolchain2netbsd 2001-10-18 05:42:26 +00:00
jmc e5447065e5 Add cpp.1 as an MLINK 2001-10-17 05:39:04 +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
nathanw 7f59122d03 Use @true instead of @${TRUE} in includes-foo targets, since there is no
variable TRUE defined in our makefile system.

This prevents "make includes" from breaking with older bsd.subdir.mk, and is
more consistent with the uses of "true" in the rest of the tree.
2001-10-12 21:05:08 +00:00
tv e2fa0e8e96 CLEANFILES has to be set before including <bsd.prog.mk> to make sure that
clean/cleandir does its job (this should be fixed).  Work around it, and
fix some parallelism problems.
2001-10-08 23:18:11 +00:00
tv c88b6a3e03 Deal brute-force with parallelism. In order to accomodate breaking the
build in the middle and restarting on another platform (requiring atomic
host tool builds), and keep parallelism, the ".lo" rules can't be used
at all.  Instead, compile all host .c files directly into executables.
2001-10-08 22:56:31 +00:00
bjh21 59ba87fb54 Add an entry for NetBSD/arm. 2001-10-08 22:47:31 +00:00
tv 68c509655a Single-target subdir builds no longer work at all since the introduction
of "dependall" and .WAIT; add a .WAIT here and nuke the dependencies for now.
2001-10-08 22:27:34 +00:00
aymeric fa554f783e shut up newer gcc warning about (actually mutually exclusive)
"possibly uninitialized" variables.
2001-10-08 22:11:31 +00:00
aymeric 866fad714d fix an obvious bug when loading sun relocatable objects.
When was this code last triggered?
XXX I didn't run the code, was looking for something else.
2001-10-08 22:09:20 +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
tv bf8eb2fc2d Generate ldcripts as "native" for a native linker. However, disable
installation into /usr/share/ldscripts at the moment, as the scripts will
no longer be shareable on all targets.  This will be tweaked at a later
date to generate "cross style" scripts for all targets (native ones are
compiled into the ld binary) so that they will indeed be shareable.

Should fix PR bin/14114, pkg/14122, and related issues.
2001-10-04 17:46:22 +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
tv 531012d19e Skip the "includes" phase of gnu/libexec, gnu/usr.bin, and gnu/usr.sbin. 2001-09-21 21:04:59 +00:00
tv 3ab74bd348 Set SHLIB_{MAJOR,MINOR} explicitly instead of using shlib_version files.
(This currently means that checkver doesn't work with these libs, but that
will be fixed.)
2001-09-21 15:38:15 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
itojun 1f8d9cbdd1 pull patch from openbsd Errata 033:
A security hole exists in uucp(1), uux(1) and uuxqt(1) that may allow
an attacker on the local machine to run arbitrary commands with
root privileges.
Fix:
Pay more attention to commandline parsing of long options.
Patch from jbj@redhat.com via millert@.
2001-09-12 07:51:03 +00:00
simonb 2db48f4c88 Add "Remember to update distrib/sets..." lines (and NetBSD RCS IDs in
some cases).
2001-09-10 11:18:41 +00:00
matt 6be82855aa Final config file for VAX ELF. 2001-09-10 06:04:02 +00:00
itojun 2067808a2a compare IPv6 address correctly, for net_interfaces directive.
KAME PR 382.
2001-09-09 02:52:44 +00:00
matt f6225f91fb Rebuild USE_NEW_TOOLCHAIN files for vax. Add binutils, etc. .. 2001-09-08 18:26:05 +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 798e998541 Add (commented out) some language-related FILES that could also
be installed.
2001-09-02 23:00:30 +00:00
wiz b47aecd969 Install some more locale files. 2001-09-02 22:55:58 +00:00
wiz dac7d101b7 Reduce diff to config.h created by texinfo-4.0. 2001-09-02 22:18:51 +00:00
wiz e405b87d8f Normalize man page handling: Man pages are now done in the same dir as the
program they are referring to, instead of being all done in the main
Makefile.
2001-09-02 22:16:58 +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
matt 33ebc9435e Regenerate so that ${DIST} is not expanded. 2001-08-30 01:31:49 +00:00
matt 61cb93c98c Commit NEW_TOOLCHAIN files. Do not attempt to use these unless you know
what you are doing!
2001-08-28 07:08:54 +00:00
thorpej bef08d29d9 Also accept (and ignore) -export-dynamic (already accepted --export-dynamic). 2001-08-26 00:02:46 +00:00
mrg 69879ba2e5 regenerate. 2001-08-25 12:23:49 +00:00
wiz 251b3464be heirarchy -> hierarchy 2001-08-24 10:24:45 +00:00
itojun 3b7e3e08b4 upgrade to 8.11.6. fixes security issue in command line parsing. 2001-08-21 07:13:20 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
mrg ee333eaabb add missing o: to the strip(1) getopt format string. 2001-08-20 04:47:29 +00:00
matt 87cdecebcb Update new toolchain that now toolchain2netbsd has been
run natively on an ARM ELF system.
2001-08-19 17:48:49 +00:00
matt c757135288 When making the ldscripts, set MACHINE to "". elf.sc makes bad scripts
if MACHINE is set.
2001-08-19 17:19:46 +00:00
matt 4af2f898e7 preliminary new toolchain support for ARM ELF. 2001-08-19 16:21:21 +00:00
matt cd345950b6 Prelim ARM ELF support for binutils. 2001-08-19 16:18:59 +00:00
matt f5c0264a5d New toolchain support for ARM ELF. 2001-08-19 16:05:02 +00:00
mrg 05a8e5fe04 build & install info & man page documentation. 2001-08-19 14:23:55 +00:00
mrg c5716adacf copy across our gcov.1 from egcs. 2001-08-19 14:22:24 +00:00
mrg 21207fbaae build c89 from gnu/usr.bin. 2001-08-19 14:21:02 +00:00
mrg 7f85f1f0c3 build & install info documentation. 2001-08-19 14:19:38 +00:00
wiz a0831b3afc Doesn't need libz: File compression handling is done by forking gzip. 2001-08-18 14:50:03 +00:00
wiz 4b5fcdbfec Use our getopt_long. 2001-08-18 14:48:55 +00:00
mrg f05a7e7c12 fix the NetBSD comment char (already fixed in net binutils.) 2001-08-17 11:12:34 +00:00
mrg e6de26d11c include ../../Makefile.inc to set BINDIR. 2001-08-16 16:59:24 +00:00
mrg 318911587e regenerate. 2001-08-15 02:44:58 +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 5e6e5d8bf4 Nuke; this was never set up to be built. 2001-08-14 07:28:46 +00:00
tv 8f264ae2fc Regen. 2001-08-14 05:18:26 +00:00
tv e9ca096740 Typo -- fix sed substitution to make sure it's actually a version number. 2001-08-14 05:17:59 +00:00
tv 75c2396dcc Regen. 2001-08-14 05:14:59 +00:00
tv 2634f75160 Strip NetBSD version numbers from target triplets in all generated files. 2001-08-14 05:11:50 +00:00
tv daaabffb64 Nuke DRIVER_DEFINES from list of gcc variables. 2001-08-14 04:59:32 +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 dabda76181 For now, just to make sure we don't conflict with an out-of-the-box
gcc 3.0 build (as noted by mrg), bump shlib major again, to version 4.0.

There might be a better solution to this kind of thing in the future; I'll
have to think about it.
2001-08-14 01:21:23 +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
rafal ff23a23f1d Fix comment delimiting start of gdb section to say `gdb' instead of `gcc' 2001-08-13 03:25:41 +00:00
mrg feaf6caf3c build sparc & sparc64 binutils & gdb. 2001-08-10 15:35:37 +00:00
mrg 5b25536c3b build libbfd for sparc & sparc64. 2001-08-10 12:42:37 +00:00
mrg 14c389e8b1 regenerate 2001-08-10 12:41:19 +00:00
mrg 82f7a2e6a2 build in gcc directory as well. 2001-08-10 12:34:45 +00:00
mrg a9c88b6f92 don't build in here if USE_NEW_TOOLCHAIN. 2001-08-10 12:33:55 +00:00
mrg 8d54deacdd regenerate. 2001-08-10 12:01:48 +00:00
mrg 5f38c885be build libstdc++ for sparc & sparc64. 2001-08-10 11:59:50 +00:00
mrg 8375332080 regenerate. 2001-08-10 11:59:22 +00:00
mrg 220ef62d75 with USE_NEW_TOOLCHAIN, install all required libstdc++ headers. this needs
toolchain2netbsd to be re-run for each platform.  (sparc, sparc64 and i386
updates coming shortly.)
2001-08-10 11:57:48 +00:00
mrg eda65d255d deal with no TEMPLATE_NAME being defined for a target 2001-08-10 10:39:10 +00:00
matt 4ce1ea0d33 USE_NEW_TOOLCHAIN powerpc files for libg2c & libstdc++ 2001-08-10 06:46:31 +00:00
matt f88f89f0d4 Update/add new files for powerpc with USE_NEW_TOOLCHAIN 2001-08-10 06:44:06 +00:00
mrg 19a0a03e84 install the C++ headers with the new toolchain. 2001-08-09 16:10:56 +00:00
mrg 4a850cf2d7 include bsd.own.mk before testing USE_NEW_TOOLCHAIN. 2001-08-09 16:09:52 +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
wiz 7a1835dd36 Fix typo. 2001-08-08 14:59:26 +00:00
tv b15841eee9 Add MKPIC=no explicitly for old-toolchain build structure, to avoid shlib
version mismatch with new toolchain.
2001-08-07 03:28:07 +00:00
tv 16083edcc0 Add new toolchain gdb build structure, in new subdir to go along with
gdbserver and gdbreplay in the future.
2001-08-06 23:28:53 +00:00
tv 1ac83e35b9 Add gdb bits (but not yet gdbserver/gdbreplay). 2001-08-06 23:26:28 +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 e7ad5cd6ce Turn this off on USE_NEW_TOOLCHAIN. 2001-08-06 20:01:23 +00:00
tv 3db6f60ffe Use target_alias without a release number; toolchain2netbsd strips this now. 2001-08-06 20:00:02 +00:00
tv 923efdf600 Add gprof. 2001-08-06 19:59:39 +00:00
tv 29c91043c8 Add bits for gcov and gprof; strip version number from target_alias in ld
before going into defs.mk.
2001-08-06 19:58:25 +00:00
tv c3c7f78d4f Add gcov. 2001-08-06 19:46:12 +00:00
tv 1ba4ad89e1 Turn this off on USE_NEW_TOOLCHAIN temporarily. 2001-08-06 19:36:58 +00:00
tv aff074824e Install ldscripts into /usr/share/ldscripts. (Currently non-unified, so the
install will only add scripts for the current target to /usr/share/ldscripts.
This will be fixed to build all applicable scripts for all NetBSD targets.)
2001-08-06 19:34:22 +00:00
tv 51bac62604 Add binutils fragments. 2001-08-06 19:33:11 +00:00
tv 362f95d733 Add new toolchain binutils build structure. 2001-08-06 19:11:59 +00:00
tv fa1ff75b0b Add a missing const to squelch a gcc warning/error. 2001-08-06 18:00:55 +00:00
tv 763f361733 Disable these in the case of USE_NEW_TOOLCHAIN (the new versions are
moving into the gnu/usr.bin/binutils directory to reflect GNU's
encapsulation of these packages).
2001-08-06 15:56:07 +00:00
tv e9a42fcb22 Re-add these files; they're needed by the old-toolchain bfd build until
that has been nuked.
2001-08-06 15:49:42 +00:00
tv a70f325713 BFD library for new toolchain. Currently uses the non-unified layout; once
several architectures are available, I'll test and add the unified layout
bits.
2001-08-06 15:47:17 +00:00
tv 6acda9b510 Remove a = to += transform for libbfd. 2001-08-06 15:31:23 +00:00
mrg a630fd8b23 dwarf2 exceptions work on sparc & sparc64 now. 2001-08-05 18:45:57 +00:00
enami c48795553f Remove a hack to copy grep.info to build it from grep.texi. 2001-08-03 14:42:35 +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
tv b852eb128e Revert previous. The building of the new toolchain will be determined by a
top-level automatic setting of USE_NEW_TOOLCHAIN when the rest of the stuff
is committed, and the top-level bootstrap is in place.
2001-07-30 16:04:18 +00:00
matt 36dc943f75 Change ARM-ELF to LP64 friendly types. 2001-07-28 07:42:28 +00:00
matt 71986448fd Don't make libstdc++ with old toolchain on ARM ELF 2001-07-28 06:59:02 +00:00
matt faa73ac4d2 Regen new toolchain ARM ELF files with toolchain2netbsd.
Include libg2c, libobjc, libstdc++ ARM ELF config files.
2001-07-28 06:57:07 +00:00
matt ee544f340c Remake with toolchain2netbsd 1.3 2001-07-28 06:51:59 +00:00
eeh 508945a491 Let profiling binaries be built without requiring special options. 2001-07-27 23:05:11 +00:00
eeh 905da8170b Build the sparc64 compiler for a change. 2001-07-27 23:01:22 +00:00
mrg e662284883 include <unistd.h> on NetBSD to get vfork() prototype (rename) 2001-07-26 17:18:39 +00:00
mrg c9a8c7833a build new sparc & sparc64 fortran libraries. 2001-07-26 11:40:26 +00:00
mrg 7aa1593d24 build new sparc & sparc64 objective c libraries. 2001-07-26 11:36:05 +00:00
mrg 4c86457e13 regenerate. 2001-07-26 11:30:07 +00:00
mrg 160521eb33 install the C++ libgcc headers (exception, new, new.h & typeinfo.) 2001-07-26 11:28:21 +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 e4ab707ade update build infrastructure for texinfo 4.0 2001-07-25 16:47:50 +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
aymeric 6919941456 include <link_aout.h>, which is needed at least when building a cross-linker 2001-07-25 11:59:22 +00:00
aymeric d2b58bf21f Make it possible to compile a cross-linker by just defining TARGET_MACHINE_ARCH
to the desired architecture.

Note that this is for the old ld of the old toolchain.
2001-07-25 11:58:04 +00:00
itojun ff1a865b9f there's no binmail(1). PR 13549 2001-07-25 00:16:04 +00:00
tv 87c9b9136c Add missing dependency on ${G_md_file} for host tools, noticed by matt@. 2001-07-24 21:16:08 +00:00
tv f6709db6c6 Add new toolchain build structure for libg2c, libobjc, and libstdc++.
Note that old build system still exists under .if conditionals; this
will be removed once all platforms are using the new toolchain.
2001-07-24 19:44:47 +00:00
tv b224b62a84 Add config segments for libg2c, libobjc, and libstdc++. 2001-07-24 19:39:52 +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
matt c8e381be8c Adding VAX gcc 2.95.3 (ELF). 2001-07-20 04:59:06 +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
matt 5ac8a0b7ba powerpc support for 2.95.3 2001-07-19 22:13:23 +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
mrg 4523fd67d7 build a mipsel-netbsd gcc & libgcc. 2001-07-19 18:35:22 +00:00
matt 77315351bc Fix a warning (missing const). 2001-07-19 18:31:57 +00:00
matt acfa102212 Rework Makefile (perhaps not optimally) to keep all ojbects in ${.OBJDIR}.
Due to SRCS containing directories, the objects went in those same
directories.
2001-07-19 18:06:19 +00:00
matt ac07e0c6c6 ARMELF support for libgcc 2001-07-19 15:33:09 +00:00
matt 3847d1eab8 ARM support for -liberty 2001-07-19 15:30:36 +00:00
matt 15d3102358 Initial 2.95.3 support for ARM-ELF. 2001-07-19 15:27:16 +00:00
mrg c88bdb3273 build a sparc (elf) gcc 2.95.3 2001-07-19 15:20:13 +00:00
mrg 4acc89ca46 build sparc libiberty. 2001-07-19 15:17:59 +00:00
mrg 3963922c9b build a sparc libgcc 2001-07-19 15:16:39 +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
mrg ac4b8b619b mipsel libiberty. 2001-07-19 13:46:14 +00:00
mrg 96b4d81d72 sparc64 libiberty. 2001-07-19 13:45:09 +00:00
tv 178c5459ad Another missing ${.CURDIR}. 2001-07-19 12:51:05 +00:00
mrg 8666107a13 build a sparc64 libgcc. 2001-07-19 12:39:26 +00:00
mrg ba4c57fc10 opdel.o needs to be built with -DL_op_delete, not -DL_op_del. add a special
rule for this...
2001-07-19 06:14:27 +00:00
mrg 4331a0fffa freshly generated sparc64 config that seems able to build a working c & c++
compiler....  now we just need binutils & gdb :)
2001-07-19 00:54:24 +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 d370057cd9 Add a missing ${.CURDIR}. 2001-07-18 20:20:01 +00:00
tv 0b01c492fb i386 libgcc makefile bits from toolchain2netbsd. 2001-07-18 18:29:17 +00:00
tv f59cc167de Add build structure for the new gnu/dist/toolchain/gcc based libgcc, preserving
old structure for now in an .if based on USE_NEW_TOOLCHAIN.
2001-07-18 18:29:02 +00:00
tv 652e52ca13 Use g++spec.c, not cppspec.c. (Thinko.) 2001-07-18 18:25:29 +00:00
tv 77c3a78e27 Regen. 2001-07-18 18:17:58 +00:00
tv f94113d0f7 Add CCCP_OBJS to the getvars list for gcc/Makefile. 2001-07-18 18:17:20 +00:00
tv f392296088 Fix BINDIR/MKMAN. 2001-07-18 14:02:43 +00:00
tv 75050b108b Add cpp and cpp0. 2001-07-18 14:02:26 +00:00
tv 9bfd60ec3d Add frontend /usr/bin/cpp (now a real binary) and /usr/libexec/cpp0
(formerly /usr/libexec/cpp).
2001-07-18 14:01:14 +00:00
tv 8ee0a1461c Fix links and manpages. 2001-07-18 14:00:11 +00:00
tv 865939c423 Make "make depend" work correctly. 2001-07-18 13:59:17 +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
tv b1e9e38236 First framework for libiberty, now used by all the toolchain components (so
no longer merged with libbfd).  Conditional on USE_NEW_TOOLCHAIN for now.
2001-07-18 12:17:15 +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 a126663857 Compile fixu* for MACHINE_ARCH of arm 2001-07-13 19:54:28 +00:00
lukem 03a3aa379d use off_t instead of long to store sizes which will be displayed with "--list".
fixes wacky display problems for files > 2GB in size.  tested ok on i386 and
alpha (no change for the latter).
2001-07-07 21:57:41 +00:00
enami 4655e8da67 Some man page here requires processing by tbl. 2001-06-26 01:43:58 +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 634ebd4dc4 Add gcc 2.95.2 build framework, and i386 config files from toolchain2netbsd.
This should not be used directly for building host tools; rather, the top
level bootstrap (to be committed separately) should be used to build the
entire system including this compiler.
2001-06-18 16:18:30 +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
tv 82e96808ff First copy of toolchain2netbsd script, used to generate the platform-specific
GNU toolchain files in one pass (which are then committed).  Still missing
is support for gdb (in progress).
2001-06-18 16:07:07 +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
chris 9255039c1a Add port-cats to list available categories for send-pr. 2001-06-10 20:53:52 +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
thorpej 395cb02158 Add port-algor. 2001-06-05 17:40:08 +00:00
simonb 976bdd3f47 Change to new libbz2 API. 2001-06-03 13:43:01 +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 655a3a0437 check BOOTSTRAP_ELF (from Katsuomi Hamajima) 2001-05-21 18:26:48 +00:00
msaitoh 97fac3124c s/shl/shlunx/ 2001-05-21 18:21:37 +00:00
soren a657f17343 Add port-sun2 category, per PR admin/12657. 2001-05-17 09:13:58 +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
mason 0f5d49210e Don't build libstdc++ on sparc64. 2001-05-10 12:53:02 +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
itojun 3eeb49727d sync with 20010228 pl02. 2001-05-08 05:15:54 +00:00
itojun 94a4066862 postfix 20010228-pl02 2001-05-08 04:55:29 +00:00
matt 0cd6e25685 Turn on SVR4_SHARED_LIBRARIES (make gdb build on i386). 2001-05-04 04:18:03 +00:00
martin 84364a741b Fix logic botch that enabled this (broken for that arch) gas on sparc64:
- we never want gas.new on sparc64
 - we generally do not want it on m68k and ns32k, unless we are ELF
   already or we are bootstrapping ELF right now
2001-05-03 21:47:28 +00:00
is 2afc3dfa0d Don't divide by zero when computing timeout values, else we SIGFPE when
sending "long" files over pipe links.
This fix closely follows the one suggested by <felix@subnet.sub.net> in
an email to Ian Lance Tailor years ago.
2001-05-03 20:43:16 +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