Commit Graph

487 Commits

Author SHA1 Message Date
peter
d0208572aa Tweak from the cvs sources just after the 1.9.26 release:
1998-03-07  Tim Pierce  <twp@skepsis.com>
    * rcs.c (RCS_checkout): Negation bug when checking out symlinks:
    existence_error should be !existence_error.

This shouldn't cause any major merge problems later.
1998-03-11 09:30:51 +00:00
jraynard
400707d96e Remove test sub-directory. 1998-03-10 19:28:47 +00:00
peter
6b449debea Merge changes from vendor branch into mainline 1998-03-10 13:58:02 +00:00
peter
a194b78bd2 This commit was generated by cvs2svn to compensate for changes in r34461,
which included commits to RCS files with non-trunk default branches.
1998-03-10 13:40:57 +00:00
peter
0c111e2b51 Import cvs-1.9.26 onto vendor branch 1998-03-10 13:40:57 +00:00
jb
c736173442 Change the LINK_SPEC to specify the same runtime loader as used on
i386-elf because that is what will be used for FreeBSD/Alpha.

Change the STARTFILE_SPEC to match the non-aout version of i386 so
that the csu files can be built in exactly the same way as i386-elf.
This means that FreeBSD/Alpha departs from NetBSD/Alpha which uses
crt0 and crtbegin/crtend. Since i386-aout uses crt0, I guess it was
decided that i386-elf should use crt1. i386-elf also references
crti and with this change, so does FreeBAS/Alpha.

I think it is important for FreeBSD to have a consistent implementation
across architectures and since ELF is quite compatible (ignoring
differences in 32 and 64 bits), gcc might as well be configured the
same.

Another change is that the entry symbol is _start, not __start as
in NetBSD.
1998-03-10 06:47:14 +00:00
peter
b0d1291cc8 Both our a.out (hacked) gas and the binutils gas support .weak
Prompted by: bde
1998-03-09 04:47:58 +00:00
peter
b4375c6592 Only do a.out/elf switching on i386 family 1998-03-09 04:13:31 +00:00
jb
dce663f91f This commit was generated by cvs2svn to compensate for changes in r34351,
which included commits to RCS files with non-trunk default branches.
1998-03-09 03:38:19 +00:00
jb
31cb88078d Import an extra source file from binutils 2.8.1 that is included on
alpha.
1998-03-09 03:38:19 +00:00
jb
64938d6e9c Add a FreeBSD entry for alpha-elf. 1998-03-09 03:34:53 +00:00
peter
b13939a64c Don't disable the use of $ in assembler labels.. It changes libstdc++
and libg++ so that they won't work with existing binaries (including
netscape!!).
1998-03-09 03:26:57 +00:00
jb
875cc1421c Our default rules tend to shove asm code through cpp, so comments
starting with hashes have a sub-optimal impact. This change adds
/* */ around the block comment in the header of each file to make
them friendly to cpp. Also added an Id keyword cause I like to
see revision numbers in source.
1998-03-08 21:09:04 +00:00
peter
075f262da2 Spell -Bshareable correctly... :-] 1998-03-08 16:09:57 +00:00
peter
5a58d42fe2 svr4.h defines ASM_IDENTIFY_GCC, but neglects to define
ASM_IDENTIFY_LANGUAGE.  Use the osfrose.h method, because gdb assumes
'C' by default, so there's no need to further clutter the symbol table.
1998-03-08 13:26:15 +00:00
peter
d616a733c3 Cosmetic cleanup for a.out asm generation.. Don't put the end-of-file
markers that the stabs-in-elf system uses.
1998-03-08 12:47:45 +00:00
peter
89f7f39c2e Put the function stabs in traditional order on a.out, or gdb doesn't see
function local variables.
1998-03-08 11:54:04 +00:00
peter
69d046431c Add hooks for John Birrell's kernel thread support library.
Submitted by: John Birrell <jb@cimlogic.com.au>
1998-03-08 05:33:24 +00:00
peter
c39aed21a8 First round of changes to support generation of assembler for the old
a.out gas and the binutils gas (elf or a.out) with a single compiler.

This uses other infrastructure not yet committed, in order to support
both a.out and elf it needs to be able to get to both a.out and elf
gas, ld, libs, crt* etc.  So for now, the support is pretty much dormant.

The new freebsd.h file is based on the old freebsd-elf.h file (which has a
long lineage, right back through linux and svr4 files).  The change is
pretty dramatic from a gcc internals standpoint as it overrides a lot of
definitions in order to generate different output based on target mode.
There is potential for screw-ups, so please be on the lookout - gcc's
configuration mechanism wasn't really meant for this kind of thing.
It's believed to compile world etc just fine under both a.out and elf, can
handle global constructors and destructors, handles the differences in
a.out and elf stabs, and what sections things like exceptions go in.

The initial idea came from i386/osfrose.h which is a dual rose/elf format
target.  These two are not as diverse as a.out and elf it would seem.

The cc front-end uses external configuration to determine default object
format (still being thrashed out, so read the source if you want to see
it so far), and has a '-aout' and '-elf' override command line switch.
There are some other internal switches that can be accessed, namely -maout,
-mno-aout, -munderscores and -mnounderscores.  The underscore and local
symbol prefixing rules are controllable seperately to the output format.
(ie: it's possible to generate a.out without the _ prefixes on symbols and
also to generate elf with the _ prefixes.  This isn't quite optimal, but
does seem to work pretty well, except the linkers don't always recognise
the local symbols without their normal names)

The default format is a.out (still), nobody should see any major changes.

With both elf and a.out tools and libraries installed:

[1:26pm]/tmp-223> cc -elf -o hello hello.c
peter@beast[1:27pm]/tmp-224> file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped
[1:27pm]/tmp-225> ./hello
hello world!

[1:27pm]/tmp-226> cc -aout -o hello hello.c
[1:27pm]/tmp-227> file hello
hello: FreeBSD/i386 compact demand paged dynamically linked executable not stripped
1:27pm]/tmp-228> ./hello
hello world!

Since my co-conspirators put a lot of effort into this too, I'll add them
so they can share the blame^H^H^H^H^Hglory. :-)

Reviewed by: sos, jdp
1998-03-08 05:29:49 +00:00
jb
ab602aeb26 This commit was generated by cvs2svn to compensate for changes in r34204,
which included commits to RCS files with non-trunk default branches.
1998-03-07 21:27:49 +00:00
jb
7fbf66313a Import of the mpn asm source files for alpha from V2.0.2 which
appears to match the other libgmp files in the repository.
1998-03-07 21:27:49 +00:00
cvs2svn
8bd66fa336 This commit was manufactured by cvs2svn to create branch
'VENDOR-binutils'.
1998-03-01 23:26:33 +00:00
jdp
082b767ff5 Configuration changes to support FreeBSD. The linker only works for
ELF, not a.out.  But all the other tools support both.  I'm not so
sure about the assembler -- it might need more work.
1998-03-01 23:26:32 +00:00
jdp
96d45f0ff6 Don't use "/" as a comment starter. In some FreeBSD sources, "/"
means divide (duh).
1998-03-01 23:22:00 +00:00
jdp
cb17504105 Fix the output format of "nm" so that it works properly for FreeBSD's
"lorder" command.

GNU rejected this change because they felt it would be an unacceptable
incompatibility to change the output format at this point -- even
though it was wrong to begin with.
1998-03-01 23:20:03 +00:00
jdp
cad024a2ba Fix a bug which incorrectly caused files to be labeled as having
text relocations in certain situations.
1998-03-01 23:17:03 +00:00
jdp
d26a0cda03 Add automatic branding of FreeBSD ELF files. 1998-03-01 23:15:09 +00:00
jdp
5fa431f4cf Add upgrade instructions and helper file. 1998-03-01 23:13:26 +00:00
jdp
2cbd0590cd Initial import of GNU binutils version 2.8.1. Believe it or not,
this is heavily stripped down.
1998-03-01 22:58:51 +00:00
jdp
d0ed6da52d This commit was generated by cvs2svn to compensate for changes in r33965,
which included commits to RCS files with non-trunk default branches.
1998-03-01 22:58:51 +00:00
jb
7dedbef2ef Add #include <string.h> to get prototypes. 1998-02-20 07:48:36 +00:00
peter
d5c5dbdaff A hack to work around the sleep prior to calling the built-in diff. This
affects speed of doing 'cvs diff' (in all modes) and 'cvs update' over the
network.

1: don't pause at all unless running in server protocol mode.
2: if running in server protocol mode, do a kludge that intercepts the
   stdout and stderr write functions and diverts them to cvs_output() and
   cvs_outerr().  Yes, this might be done with fwopen() etc, but that also
   requires copying "FILE" structs since you can't freopen stdout etc and
   specify functions at the same time.

This HACK will go away once the cvs folks have done their changes to the
library version of gnu diff to use the callbacks as mentioned in the
comments.
1998-02-14 09:47:14 +00:00
peter
d7aa12e045 Reduce the sleep(1) inbetween each diff, as suggested by bde some time
ago.  The real fix is rather large.
1998-02-08 06:48:37 +00:00
cwt
94da1d663c Painless merge... 1998-02-02 05:42:16 +00:00
cwt
21500fe3a2 This commit was generated by cvs2svn to compensate for changes in r33011,
which included commits to RCS files with non-trunk default branches.
1998-02-02 05:38:11 +00:00
cwt
490818046d Global v2.24 1998-02-02 05:38:11 +00:00
peter
1dfdccebc8 Cosmetic cleanups for the local tag support. Since rcs isn't called
anymore, don't do all the putenv's for it's benefit.
1998-01-31 01:39:40 +00:00
peter
8d90081216 Merge vendor changes to files that we've touched onto mainline.
(If only all import/merges were this trivial :-)
1998-01-30 15:35:26 +00:00
peter
c3a8ee0e80 Import cvs-1.9.24 since it came quite soon after the snapshot that was
imported a few days ago.  There is very little difference, except that
the remote protocol apparently supports wrappers and -k options better.
1998-01-30 15:31:47 +00:00
peter
2e8dbe568b This commit was generated by cvs2svn to compensate for changes in r32896,
which included commits to RCS files with non-trunk default branches.
1998-01-30 15:31:47 +00:00
peter
1d4373c3ec Update import instructions from last time. 1998-01-30 15:09:55 +00:00
peter
6669d79e32 Merge CYCLIC branch changes 1998-01-26 04:50:17 +00:00
peter
ef35b33b9f Restore file that was inadvertently deleted last time 1998-01-26 04:48:56 +00:00
peter
09c3704f4b Remove stray files 1998-01-26 04:47:16 +00:00
peter
2c9ec089a9 missing bracket 1998-01-26 03:54:53 +00:00
peter
164a615da2 Merge changes from CYCLIC onto main branch 1998-01-26 03:29:29 +00:00
peter
7a4c09bb43 Merge changes from CYCLIC branch onto mainline. rcs.[ch] still to come. 1998-01-26 03:24:11 +00:00
peter
e6e45661e4 Import cvs-1.9.23 as at 19980123. There are a number of really nice
things fixed in here, including the '-ko' vs. -A problem with
remote cvs which caused all files with -ko to be resent each time
(which is damn painful over a modem, I can tell you).  It also found a
heap of stray empty directories that should have been pruned with the -P
flag to cvs update but were not for some reason.

It also has the fully integrated rcs and diff, so no more fork/exec
overheads for rcs,ci,patch,diff,etc.  This means that it parses the control
data in the rcs files only once rather than twice or more.

If the 'cvs diff' vs. Index thing is going to be fixed for future patch
compatability, this is the place to do it.
1998-01-26 03:09:57 +00:00
peter
6389db38d7 This commit was generated by cvs2svn to compensate for changes in r32785,
which included commits to RCS files with non-trunk default branches.
1998-01-26 03:09:57 +00:00
imp
7d01b0b30c MFC: sprintf paranoia 1998-01-22 00:04:57 +00:00
ache
13e5834cba Back out my -L change, now "patch -I" usage supposed to get Index:
precedence
1998-01-21 15:20:29 +00:00
bde
92f63c1a9a Removed redundant declarations. Keymap functions are declared in
<readline/keymaps.h> which is included here.
1998-01-16 09:12:05 +00:00
bde
e6db38b6e8 Use the system __CONCAT() instead of /**/ for concatenation in the
non-ANSI case.  The system version is normally also /**/, but may
be different to support K&R compilers other than gcc -traditional.
1998-01-16 08:59:21 +00:00
bde
4859a7febe Fixed copying of N_TXTADDR() from the system version in the previous
revision.  N_TXTADDR() was 0x20 too high in the usual case.

Reported by:	luoqi@watermarkgroup.com (Luoqi Chen)
1998-01-16 08:46:50 +00:00
ache
6057fb933d Fix wrong ---/*** names produced using -L diff option
CVS gurus from info-cvs agrees that previous Index: usage is bogus
1998-01-16 06:00:36 +00:00
steve
08b49644b3 vmunix -> kernel
PR:		5484
Submitted by:	Vasily V. Grechishnikov <bazilio@ns1.ied-vorstu.ac.ru>
1998-01-13 14:17:10 +00:00
julian
993698cd4d Allow a -D'date' option to be included with a -r'branch'
on a checkout.
this allows us to do:
cd /usr/src/sys
cvs update -rRELENGE_2_2 -D"Yesterday"
which has been a feature sorely needed for any project with active branches.

warning: this breaks on usr.sbin/pkg_install for some reason.
everything else works as advertised.
(other things allready break on pkg_install, so it's not the fault of
this patch, it just falls faul of another bug somewhere)
If I had more time I'd make -r always accept the same syntax as -j (tag:data)
1998-01-12 06:51:07 +00:00
jb
e430c03c79 Upgrade the cpp pre-defines to include -Dunix. Turns out we need that
to compile m4.

And don't just define __FreeBSD__, but define it as -D__FreeBSD__=3
like on i386.
1998-01-12 02:53:28 +00:00
jb
f0c9fe97ad Add the alpha MD files for gcc to product ELF for FreeBSD/Alpha.
See freebsd.h and freebsd-elf.h for the silly comment that cgd@netbsd.org
wanted me to add about his claim that uncommented source files that
have been publicly available for ftp for nearly a year; that are
configuration patches to a GPL'ed program; are owned by his previous
employer who refuses to release them. Well... I did as he said. As if
that makes a difference!

At this point we've got cpp, gcc, g++ ported to FreeBSD/Alpha so all
the code that uses __FreeBSD__ is correctly pre-processed. Yay.

I'll commit the bootstrap makefile next to let others play, then on
to libc.
1998-01-11 04:39:46 +00:00
jb
97367c5e32 NetBSD has sys_errlist in errno.h, not stdio.h like FreeBSD. 1998-01-09 20:02:20 +00:00
steve
d25208f22b Fix an anomaly in the option descriptions.
PR:		5469
Submitted by:	NOKUBI Hirotaka <h-nokubi@yyy.or.jp>
1998-01-09 18:46:53 +00:00
ache
77a7340ab7 Remove library funcs we already have 1998-01-04 20:45:41 +00:00
ache
f2852b4193 Reflect new import 1998-01-04 20:28:01 +00:00
ache
656b2e5431 This commit was generated by cvs2svn to compensate for changes in r32243,
which included commits to RCS files with non-trunk default branches.
1998-01-04 20:25:29 +00:00
ache
438e7809d9 Raw import of patch 2.5 1998-01-04 20:25:29 +00:00
pst
a472b7fd71 Handle frame relay, decode ATM VP/VC info, and handle ISO over FR. 1998-01-01 04:13:54 +00:00
pst
a610ac10b8 Add frame-relay decode support. 1997-12-31 21:50:31 +00:00
wosch
9689b05da5 Add OS macros for FreeBSD 2.2.6, OpenBSD 2.2, OpenBSD 2.3. 1997-12-28 18:20:05 +00:00
steve
c1ac2cdd1c Remove one last /etc/sysconfig reference.
PR:		3460
Pointed out by:	hoek@FreeBSD.org
1997-12-27 20:00:13 +00:00
jkh
7c6fbc207a diff to /usr/share/tmac/mdoc/mdoc-syms to accept
.Fx 2.2.1
   .Fx 2.2.2
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1997-12-27 05:55:15 +00:00
alex
cbab4c9147 YTK fix. 1997-12-22 23:00:35 +00:00
jb
b93ad9c7b6 Reviewed by: William LeFebvre <wnl@groupsys.com>
Change errno -> error in local structure to avoid a clash with the
thread-aware version of errno which is required for a thread-safe libc.

Have discussed this with the author and he has agreed to this change. 8-)
1997-12-22 19:39:20 +00:00
jraynard
0c9ee5593c Year 2000 fixes for groff
PR:		4930
Submitted by:	Stephen J. Roznowski
1997-12-20 22:29:55 +00:00
bde
e3217cf458 Don't print "Making info file ...' except in verbose mode. 1997-12-19 21:20:07 +00:00
bde
93f1da9dce Backed out all FreeBSD changes. They are unnecessary now that bfd
understands kernels.

Reviewed by:	jdp
1997-12-19 21:09:20 +00:00
bde
98ed8d085c Override gdb's version of N_TXTADDR() with the (new) system version
so that gdb gets the text address right for kernels.  Override some
other macros to get a consistent set.

Reviewed by:	jdp
1997-12-19 21:08:54 +00:00
bde
a3800989c1 Close some file descriptors on exec so that the inferior process gets
a normal environment.  Fd's 3 and 4 were usually left open.
1997-12-17 13:23:51 +00:00
cwt
de0e4f242e Remove extra cruft. The previouos commit silently removed source ifles no longer required as of v2.2.1 as well. 1997-12-15 23:27:04 +00:00
cwt
7cb55de6f5 Resolve -Wall issues and be stylistic about #include directives. 1997-12-15 23:23:35 +00:00
cwt
4fda3be450 Merge and resolve conflicts... 1997-12-15 23:13:53 +00:00
cwt
2d4696c8a0 Import of virgin Global v2_2_1 sources 1997-12-15 23:08:46 +00:00
cwt
b1200e5a86 This commit was generated by cvs2svn to compensate for changes in r31750,
which included commits to RCS files with non-trunk default branches.
1997-12-15 23:08:46 +00:00
wollman
0890a7ca8a This is a hack. Decode IEEE 802.1Q VLAN tagging so that we can decode
tagged traffic according to the encapsulated protocol.  It needs in
addition modifications to the filter generator which would deal with
checking the ethertype and vlan header as required.
1997-12-08 21:42:35 +00:00
charnier
25d74465e2 MFC: no \n in syslog strings. Change -P to -p in flags. EOF -> -1. Use err(3). 1997-12-08 07:41:13 +00:00
imp
d06debb088 Buffer overflow from bitblt's commit to OpenBSD. Committed here for lack
of a better place to do it.

Reviewed by:	joerge
Obtained from: OpenBSD
1997-12-04 02:54:05 +00:00
jdp
769d92643f The previous revision (objfiles.c:1.2) fixed backtracing in the
absence of full debugging symbols for the kernel, but broke it for
application programs.  This commit disables that change except when
kernel debugging mode is in effect.

This needs to go into -2.2 as well, after a suitable burn-in period.
1997-11-27 21:26:08 +00:00
pst
edc7af1d41 Resolve merge conflicts. 1997-11-27 19:52:45 +00:00
pst
10ddeda1f7 This commit was generated by cvs2svn to compensate for changes in r31434,
which included commits to RCS files with non-trunk default branches.
1997-11-27 19:49:05 +00:00
pst
8bd128dbdc Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
steve
9e7dd67979 Make this manpage reveal its true identity. A diff of these
changes has also been sent to opie-bugs@inner.net.

PR:		5129
Submitted by:	jkh
1997-11-27 18:10:42 +00:00
peter
594e73c310 Import ipfilter 3.2.1 (update from 3.1.8) 1997-11-16 04:52:19 +00:00
peter
e30be53f51 This commit was generated by cvs2svn to compensate for changes in r31183,
which included commits to RCS files with non-trunk default branches.
1997-11-16 04:52:19 +00:00
jmg
b1709507f7 fix return type so that it returns both bytes (instead of just first)
Found-by: conrads@neosoft.com
Fix-by: Luigi
1997-11-12 08:48:13 +00:00
ache
d8926c95c3 Merge changes 1997-11-06 01:00:03 +00:00
ache
53ee3efdd8 Update to current bash version 1997-11-06 00:50:44 +00:00
ache
48d5f5c4e5 This commit was generated by cvs2svn to compensate for changes in r30971,
which included commits to RCS files with non-trunk default branches.
1997-11-06 00:50:44 +00:00
ache
11e7abd36c Some FreeBSD files to add... 1997-10-30 19:35:17 +00:00
ache
764fe6ddf3 Temp remove config.h, was imported to FSF branch 1997-10-30 19:34:01 +00:00
ache
3bc106256b This commit was generated by cvs2svn to compensate for changes in r30858,
which included commits to RCS files with non-trunk default branches.
1997-10-30 19:13:48 +00:00
ache
f75ef5d3d4 Add file needed for configure 1997-10-30 19:13:48 +00:00