dragonfly.git
12 years agoRevert "kernel: Don't disturb about-to-be reaped zombies."
YONETANI Tomokazu [Thu, 2 Jun 2011 05:17:39 +0000 (14:17 +0900)]
Revert "kernel: Don't disturb about-to-be reaped zombies."

p_nthreads == 0 just means that the process's threads have all exited,
but not necessarily means it's about to be reaped.  We still want it
to show up in the ps or top in case it gets stuck during the exit.

Pointed-out-by: dillon@
This reverts commit 9458c398c0b97d30032a6541f8ab452cd93f5a86.

12 years agorl(4): Fix an old typo
Sepherosa Ziehau [Thu, 2 Jun 2011 01:26:00 +0000 (09:26 +0800)]
rl(4): Fix an old typo

If receiving buffer wrapping happens, the first size of copy should be the
size of the buffer at the end of the receiving buffer.

DragonFly-Bug: http://bugs.dragonflybsd.org/issue2083

12 years agoacpi: Fix use-before-initialization bug
Sepherosa Ziehau [Thu, 2 Jun 2011 01:21:25 +0000 (09:21 +0800)]
acpi: Fix use-before-initialization bug

Reported-by: swildner@
12 years agokernel: Use cpu_vendor_id instead of strcmp(cpu_vendor, "...").
Sascha Wildner [Wed, 1 Jun 2011 21:50:54 +0000 (23:50 +0200)]
kernel: Use cpu_vendor_id instead of strcmp(cpu_vendor, "...").

12 years agox86_64: Split cpu_startup() into pic_finish() and cpu_finish()
Sepherosa Ziehau [Wed, 1 Jun 2011 09:17:15 +0000 (17:17 +0800)]
x86_64: Split cpu_startup() into pic_finish() and cpu_finish()

12 years agox86_64: Prepare mp_enable() for multi-stage procedure segmentation
Sepherosa Ziehau [Wed, 1 Jun 2011 08:06:54 +0000 (16:06 +0800)]
x86_64: Prepare mp_enable() for multi-stage procedure segmentation

12 years agokern: Prepare to split SI_BOOT2_SMP into multi-stages
Sepherosa Ziehau [Wed, 1 Jun 2011 07:19:28 +0000 (15:19 +0800)]
kern: Prepare to split SI_BOOT2_SMP into multi-stages

12 years agox86_64: Move base_memory from mp_machdep.c to machdep.c
Sepherosa Ziehau [Wed, 1 Jun 2011 06:32:04 +0000 (14:32 +0800)]
x86_64: Move base_memory from mp_machdep.c to machdep.c

12 years ago<libutil.h>: Allow it to be included standalone (fixes security/heimdal).
Sascha Wildner [Wed, 1 Jun 2011 08:40:34 +0000 (10:40 +0200)]
<libutil.h>: Allow it to be included standalone (fixes security/heimdal).

12 years agox86_64: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c
Sepherosa Ziehau [Tue, 31 May 2011 07:08:30 +0000 (15:08 +0800)]
x86_64: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c

12 years agoacpi/pstate: Don't allow intermittent disappearance of _PSD
Sepherosa Ziehau [Tue, 31 May 2011 04:54:43 +0000 (12:54 +0800)]
acpi/pstate: Don't allow intermittent disappearance of _PSD

12 years agoacpi/pstate: Support Integer _PSD
Sepherosa Ziehau [Tue, 31 May 2011 04:37:21 +0000 (12:37 +0800)]
acpi/pstate: Support Integer _PSD

Standard _PSD should be package, while some buggy BIOSes will use Integer
for _PSD, e.g. Gigbyte's GA-H67MA-UD2H-B3.

Following template is used for Integer _PSD, after I have fiddled
around with the hw.acpi.cpu sysctl tree a little bit:
- Coordination is set to software all
- The integer of _PSD is taken as the power domain number
- The number of CPUs in the power domain is updated when new CPU in that
  power domain is seen

12 years agoi386: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c
Sepherosa Ziehau [Mon, 30 May 2011 15:02:31 +0000 (23:02 +0800)]
i386: Move int_to_apicintpin from mp_machdep.c to apic/ioapic_abi.c

12 years agointr: Call machintr_intren() only for hardware interrupts
Sepherosa Ziehau [Mon, 30 May 2011 15:01:17 +0000 (23:01 +0800)]
intr: Call machintr_intren() only for hardware interrupts

12 years agomanpages: Remove a bunch of unneeded Pp macros.
Sascha Wildner [Mon, 30 May 2011 14:28:39 +0000 (16:28 +0200)]
manpages: Remove a bunch of unneeded Pp macros.

12 years agoLINT64: Uncomment vinum(4) (only VINUMDEBUG whines).
Sascha Wildner [Sat, 28 May 2011 19:57:22 +0000 (21:57 +0200)]
LINT64: Uncomment vinum(4) (only VINUMDEBUG whines).

12 years agoacpi: Add a missing initialization.
Sascha Wildner [Sat, 28 May 2011 19:41:44 +0000 (21:41 +0200)]
acpi: Add a missing initialization.

If acpi_get_handle() failed, the code would try to AcpiOsFree() a
garbage devinfo.

12 years agoAdjust some more to reflect the desired order of manpage prologue macros.
Sascha Wildner [Sat, 28 May 2011 07:57:13 +0000 (09:57 +0200)]
Adjust some more to reflect the desired order of manpage prologue macros.

12 years agoRevert a change that I accidentally committed but which is not ready yet.
Sascha Wildner [Sat, 28 May 2011 07:47:15 +0000 (09:47 +0200)]
Revert a change that I accidentally committed but which is not ready yet.

12 years agomanpages: Uniformly order the prologue macros by Dd/Dt/Os.
Sascha Wildner [Sat, 28 May 2011 07:43:08 +0000 (09:43 +0200)]
manpages: Uniformly order the prologue macros by Dd/Dt/Os.

This is the most widely used order and it also silences warnings
in mandoc -Tlint output.

12 years agoRemove binutils 2.17 build hierarchy from gnu/.
Sascha Wildner [Sat, 28 May 2011 05:44:57 +0000 (07:44 +0200)]
Remove binutils 2.17 build hierarchy from gnu/.

12 years agoRemove binutils 2.17 from contrib/.
Sascha Wildner [Sat, 28 May 2011 05:43:22 +0000 (07:43 +0200)]
Remove binutils 2.17 from contrib/.

12 years agoRemove binutils 2.17 remains via 'make upgrade'.
Sascha Wildner [Sat, 28 May 2011 05:27:52 +0000 (07:27 +0200)]
Remove binutils 2.17 remains via 'make upgrade'.

12 years agolibthread_xu: Fix a typo and add a missing STATIC_LIB_REQUIRE().
Sascha Wildner [Fri, 27 May 2011 15:55:47 +0000 (17:55 +0200)]
libthread_xu: Fix a typo and add a missing STATIC_LIB_REQUIRE().

Reported-by: Goetz Isenmann <gisenmann@web.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2058>

12 years agoedquota(8): Raise WARNS to 6.
Sascha Wildner [Fri, 27 May 2011 14:01:05 +0000 (16:01 +0200)]
edquota(8): Raise WARNS to 6.

12 years agoi386: Move mp_naps from mp_machdep.c to machdep.c
Sepherosa Ziehau [Fri, 27 May 2011 14:04:20 +0000 (22:04 +0800)]
i386: Move mp_naps from mp_machdep.c to machdep.c

12 years agoinstall(1): Raise WARNS to 6.
Sascha Wildner [Fri, 27 May 2011 13:50:13 +0000 (15:50 +0200)]
install(1): Raise WARNS to 6.

12 years agokernel: Don't disturb about-to-be reaped zombies.
YONETANI Tomokazu [Fri, 27 May 2011 13:27:39 +0000 (22:27 +0900)]
kernel: Don't disturb about-to-be reaped zombies.

Processes in zombproc with p_nthreads == 0 are about to be reaped,
so just leave them in peace.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1996>

12 years agox86_64: Move mp_naps from mp_machdep.c to machdep.c
Sepherosa Ziehau [Fri, 27 May 2011 12:34:25 +0000 (20:34 +0800)]
x86_64: Move mp_naps from mp_machdep.c to machdep.c

12 years agoi386: Move imcr_present from mp_machdep.c to machdep.c
Sepherosa Ziehau [Fri, 27 May 2011 12:24:41 +0000 (20:24 +0800)]
i386: Move imcr_present from mp_machdep.c to machdep.c

12 years agoi386: Split out machine/mptable.h from machine/smp.h
Sepherosa Ziehau [Fri, 27 May 2011 12:09:34 +0000 (20:09 +0800)]
i386: Split out machine/mptable.h from machine/smp.h

12 years agoi386: Remove no longer used interrupt vector declaration
Sepherosa Ziehau [Fri, 27 May 2011 12:02:29 +0000 (20:02 +0800)]
i386: Remove no longer used interrupt vector declaration

12 years agoi386: Set EBDA address even for UP
Sepherosa Ziehau [Fri, 27 May 2011 12:01:23 +0000 (20:01 +0800)]
i386: Set EBDA address even for UP

12 years agore(4): Correct EEPROM location for certain versions of 8168F/8168E-VL
Sepherosa Ziehau [Fri, 27 May 2011 08:53:20 +0000 (16:53 +0800)]
re(4): Correct EEPROM location for certain versions of 8168F/8168E-VL

12 years agore(4): Preliminary 8168F support
Sepherosa Ziehau [Fri, 27 May 2011 08:26:58 +0000 (16:26 +0800)]
re(4): Preliminary 8168F support

12 years agore(4): Add 8168DP support
Sepherosa Ziehau [Fri, 27 May 2011 08:18:07 +0000 (16:18 +0800)]
re(4): Add 8168DP support

12 years agore(4): Correct 8168E settings
Sepherosa Ziehau [Fri, 27 May 2011 08:13:35 +0000 (16:13 +0800)]
re(4): Correct 8168E settings

12 years agosockstat(1): Fix a warning and raise WARNS to 6.
Sascha Wildner [Fri, 27 May 2011 06:39:05 +0000 (08:39 +0200)]
sockstat(1): Fix a warning and raise WARNS to 6.

12 years agopowerd: Take 'nice' into consideration
Sepherosa Ziehau [Thu, 26 May 2011 09:45:39 +0000 (17:45 +0800)]
powerd: Take 'nice' into consideration

12 years agodevattr.8: Add missing .El
Sascha Wildner [Thu, 26 May 2011 03:41:14 +0000 (05:41 +0200)]
devattr.8: Add missing .El

12 years agofrexp.3: Use .Eo/.Ec instead of .Bo/.Pc
Sascha Wildner [Thu, 26 May 2011 03:38:03 +0000 (05:38 +0200)]
frexp.3: Use .Eo/.Ec instead of .Bo/.Pc

12 years agomkinitrd.8: Remove blank line.
Sascha Wildner [Thu, 26 May 2011 03:26:33 +0000 (05:26 +0200)]
mkinitrd.8: Remove blank line.

12 years agoprop_{array,dictionary}_util.3: Add missing .Nd's.
Sascha Wildner [Thu, 26 May 2011 03:24:21 +0000 (05:24 +0200)]
prop_{array,dictionary}_util.3: Add missing .Nd's.

12 years agobridge.4: Add missing .Bl/.El
Sascha Wildner [Thu, 26 May 2011 03:10:06 +0000 (05:10 +0200)]
bridge.4: Add missing .Bl/.El

12 years agox86_64: Move imcr_present from mp_machdep.c to machdep.c
Sepherosa Ziehau [Wed, 25 May 2011 09:32:00 +0000 (17:32 +0800)]
x86_64: Move imcr_present from mp_machdep.c to machdep.c

12 years agox86_64: Split out machine/mptable.h from machine/smp.h
Sepherosa Ziehau [Wed, 25 May 2011 09:21:21 +0000 (17:21 +0800)]
x86_64: Split out machine/mptable.h from machine/smp.h

12 years agox86_64: Remove no longer used interrupt vector declaration
Sepherosa Ziehau [Wed, 25 May 2011 09:03:20 +0000 (17:03 +0800)]
x86_64: Remove no longer used interrupt vector declaration

12 years agox86_64: Set EBDA address even for UP
Sepherosa Ziehau [Wed, 25 May 2011 08:56:01 +0000 (16:56 +0800)]
x86_64: Set EBDA address even for UP

12 years agoacpi: Fix up the interrupt timer after enabling ACPI
Sepherosa Ziehau [Wed, 25 May 2011 05:08:01 +0000 (13:08 +0800)]
acpi: Fix up the interrupt timer after enabling ACPI

So that the interrupt cputimer that is choked by ACPI power management
could be resurrected before probing various devices.

12 years agokernel/lapic: Remove the special handling for VMware w/ 1 CPU again.
Sascha Wildner [Tue, 24 May 2011 21:30:30 +0000 (23:30 +0200)]
kernel/lapic: Remove the special handling for VMware w/ 1 CPU again.

I've done some further testing here and it looks like I was on the
wrong path when I reported it to sephe.

The problem seems to be a local one. It fails occasionally (SMP kernel
or not) when the ISO is on my file server, but always succeeds when
the ISO is on the disk of the box running VMware.

12 years agosmp.4: Adjust the apic io tunable name to the preferred name.
Sascha Wildner [Tue, 24 May 2011 14:14:51 +0000 (16:14 +0200)]
smp.4: Adjust the apic io tunable name to the preferred name.

12 years agoioapic: Alias hw.apic_io_enable with hw.ioapic_enable
Sepherosa Ziehau [Tue, 24 May 2011 13:08:05 +0000 (21:08 +0800)]
ioapic: Alias hw.apic_io_enable with hw.ioapic_enable

12 years agokernel: Remove unused #include.
Sascha Wildner [Tue, 24 May 2011 13:52:09 +0000 (15:52 +0200)]
kernel: Remove unused #include.

12 years agonrelease/installer: No longer build and offer separate UP and SMP kernels.
Sascha Wildner [Tue, 24 May 2011 12:05:04 +0000 (14:05 +0200)]
nrelease/installer: No longer build and offer separate UP and SMP kernels.

Due to sephe's recent work, SMP kernels should boot on UP machines as
well. This is to give his work more exposure.

Also remove the (now redundant) *_SMP configs.

In-discussion-with: sephe

12 years agoPut 'options SMP' in our standard GENERIC and X86_64_GENERIC configs.
Sascha Wildner [Tue, 24 May 2011 12:04:43 +0000 (14:04 +0200)]
Put 'options SMP' in our standard GENERIC and X86_64_GENERIC configs.

Due to sephe's recent work, SMP kernels should boot on UP machines as
well. This is to give his work more exposure.

While doing this, remove the no longer needed APIC_IO options from
all configs (it is 1 by default since commit ed4d621d) and comment
'options SMP' in the LINT* configs so the still existing UP code
paths are still build-tested.

In-discussion-with: sephe

12 years agoioapic: Move ioapic_enable from machdep.c to apic/ioapic.c
Sepherosa Ziehau [Mon, 23 May 2011 11:53:08 +0000 (19:53 +0800)]
ioapic: Move ioapic_enable from machdep.c to apic/ioapic.c

Enable I/O APIC by default.

12 years agomail(1) & battlestar(6): Rename some files.
Sascha Wildner [Mon, 23 May 2011 11:00:41 +0000 (13:00 +0200)]
mail(1) & battlestar(6): Rename some files.

All these files had names which are reserved in Windows, which led
to our tree being not correctly checked out to NTFS, for example.

Reported-by: Adam Hoka <adam.hoka@gmail.com>
12 years agokernel: Fix building with NETATALK but without NETATALKDEBUG.
Sascha Wildner [Sun, 22 May 2011 18:34:17 +0000 (20:34 +0200)]
kernel: Fix building with NETATALK but without NETATALKDEBUG.

at_rmx.c is required in any case.

Reported-by: Max Herrgard <herrgard@gmail.com>
12 years agoioapic: apic_io_enable -> ioapic_enable
Sepherosa Ziehau [Sun, 22 May 2011 13:21:41 +0000 (21:21 +0800)]
ioapic: apic_io_enable -> ioapic_enable

12 years ago<machine/specialreg.h>: Whitespace
Sascha Wildner [Sun, 22 May 2011 13:21:58 +0000 (15:21 +0200)]
<machine/specialreg.h>: Whitespace

12 years agox86_64/lapic: Allow vmware with single CPU to boot SMP kernel
Sepherosa Ziehau [Sun, 22 May 2011 11:22:33 +0000 (19:22 +0800)]
x86_64/lapic: Allow vmware with single CPU to boot SMP kernel

12 years agoi386/lapic: Allow vmware with single CPU to boot SMP kernel
Sepherosa Ziehau [Sun, 22 May 2011 11:10:10 +0000 (19:10 +0800)]
i386/lapic: Allow vmware with single CPU to boot SMP kernel

It looks like that if only one CPU is configured in vmware, then
LAPIC will not work at all, so LAPIC will not be enabled if this
kind of configuration is detected.

Currently we detect vmware using cpu_feature2's CPUID2_VMM bit.

Thank swildner@ for providing necessary information on this.

12 years agoc++filt: Remove compiler version makefiles
John Marino [Sat, 21 May 2011 11:42:51 +0000 (13:42 +0200)]
c++filt: Remove compiler version makefiles

12 years agoc++filt: Switch from compiler to binutils versions
John Marino [Sat, 21 May 2011 11:38:10 +0000 (13:38 +0200)]
c++filt: Switch from compiler to binutils versions

12 years agobinutils 2.20: Upgrade to version 2.20.1
John Marino [Sat, 21 May 2011 09:35:14 +0000 (11:35 +0200)]
binutils 2.20: Upgrade to version 2.20.1

In addition to the point upgrade, the makefiles have been prepared to
generate c++filt.  Soon the version of c++filt will be moved from the
compilers to binutils.

12 years agoMerge branch 'vendor/BINUTILS220'
John Marino [Sat, 21 May 2011 11:07:29 +0000 (13:07 +0200)]
Merge branch 'vendor/BINUTILS220'

12 years agobinutils220: Update vendor branch to version 2.20.1 vendor/BINUTILS220
John Marino [Sat, 21 May 2011 11:29:20 +0000 (13:29 +0200)]
binutils220: Update vendor branch to version 2.20.1

12 years agoRevert "objformat(1): Remove an unneeded default case."
Sascha Wildner [Fri, 20 May 2011 22:43:57 +0000 (00:43 +0200)]
Revert "objformat(1): Remove an unneeded default case."

This reverts commit 6308114003c9933e09f3d6362af7e14638b6c223.

There are numerous ways to pass garbage to the switch(), even with
an enum, so we want the default.

Pointed-out-by: aggelos
12 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Jan Lentfer [Fri, 20 May 2011 12:21:33 +0000 (14:21 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

12 years agoldns/drill: Update local files to 1.6.9, too
Jan Lentfer [Fri, 20 May 2011 12:07:36 +0000 (14:07 +0200)]
ldns/drill: Update local files to 1.6.9, too

12 years agokernel ELF: Implement AT_OSRELDATE aux vector
John Marino [Fri, 20 May 2011 11:17:03 +0000 (13:17 +0200)]
kernel ELF: Implement AT_OSRELDATE aux vector

We have several unimplemented non-standard enumerations of the ELF aux
vectors brought in with a recent sync with FreeBSD.  In general they won't
be implemented because of philosophical reasons or lack of necessity.  In
the case of AT_OSRELDATE, it makes sense to provide this simple update
as the release date comes directly from the ELF binary and it's already
available thanks to recent comments regarding osreldate.

12 years agortld-elf - Don't pass -elf to the linker
Alex Hornung [Fri, 20 May 2011 09:53:06 +0000 (10:53 +0100)]
rtld-elf - Don't pass -elf to the linker

* Don't pass -elf to the linker, only our binutils217 understands it.
  All others interpret it as using the symbol 'lf' as entry point. We
  didn't have a problem so far because the regular ld (bfd) falls back
  to a reasonable entry point (start of .text), but gold doesn't and
  falls back to 0.

* This enables us to run world linked with gold.

12 years agobinutils221 - remove some foo from ld Makefile
Alex Hornung [Fri, 20 May 2011 09:52:25 +0000 (10:52 +0100)]
binutils221 - remove some foo from ld Makefile

* Remove some leftovers from, presumably, experimentation.

12 years agoobjformat(1): Remove an unneeded default case.
Sascha Wildner [Fri, 20 May 2011 09:30:40 +0000 (11:30 +0200)]
objformat(1): Remove an unneeded default case.

Since cmd_type is an enum now, gcc will handle missing and unknown values.

12 years agoobjformat(1): Some cleanup (no functional change).
Sascha Wildner [Fri, 20 May 2011 09:05:22 +0000 (11:05 +0200)]
objformat(1): Some cleanup (no functional change).

* Use NELEM()

* Use an enum for the command types

* Remove BINUTILS1 handling

12 years ago<sys/param.h>: Fix a typo in the NELEM() definition.
Sascha Wildner [Fri, 20 May 2011 08:53:57 +0000 (10:53 +0200)]
<sys/param.h>: Fix a typo in the NELEM() definition.

This way it resolves to sizeof(foo[0]) instead of sizeof(foo)[0].

Interestingly, both ways work and give the same results. But the former
looks clearer.

12 years agoMerge branch 'vendor/LDNS'
Jan Lentfer [Fri, 20 May 2011 08:41:42 +0000 (10:41 +0200)]
Merge branch 'vendor/LDNS'

12 years agoldns/drill: Update vendor branch to 1.6.9
Jan Lentfer [Fri, 20 May 2011 08:22:39 +0000 (10:22 +0200)]
ldns/drill: Update vendor branch to 1.6.9

12 years agokernel ELF: Removed unwanted return
John Marino [Thu, 19 May 2011 22:52:12 +0000 (00:52 +0200)]
kernel ELF: Removed unwanted return

12 years agokernel ELF: Improve OS Release Date handling
John Marino [Thu, 19 May 2011 22:33:16 +0000 (00:33 +0200)]
kernel ELF: Improve OS Release Date handling

This brings in FreeBSD's method of having separate OS Release Date
(osreldate) handling for each brand.  Previously the decoding method
was hardcoded for *BSD, which meant it was broken for the Linux brand.
Now all supported brands (DragonFly, FreeBSD, Linux) are retrieving the
osreldate values correctly.

12 years agokernel ELF: Use interpreter paths outside of first page
John Marino [Thu, 19 May 2011 19:54:27 +0000 (21:54 +0200)]
kernel ELF: Use interpreter paths outside of first page

The ELF handler was returning ENOEXEC error whenever it encountered a
binary with an interpreter program header located outside of the first
page.  This patch allows these binaries to execute normally.

Additionally, the handler will now ignore subsequent interpreter headers
encountered.  Before it would overwrite the previous pointer it had
stored.

12 years agosendmail: Update vendor branch to v8.14.15
Jan Lentfer [Thu, 19 May 2011 11:51:37 +0000 (13:51 +0200)]
sendmail: Update vendor branch to v8.14.15

13 years agoUpdate to ldns-1.6.7
Jan Lentfer [Thu, 30 Dec 2010 00:30:02 +0000 (01:30 +0100)]
Update to ldns-1.6.7

14 years agoInitial vendor import of ldns-1.6.4 into contrib.
Jan Lentfer [Tue, 9 Mar 2010 20:42:10 +0000 (21:42 +0100)]
Initial vendor import of ldns-1.6.4 into contrib.

14 years agoImport binutils-2.20
Simon Schubert [Wed, 28 Oct 2009 09:53:46 +0000 (10:53 +0100)]
Import binutils-2.20

54 years ago"Fix" kernel profiling for i386
Alex Hornung [Sat, 3 Jan 1970 05:16:21 +0000 (06:16 +0100)]
"Fix" kernel profiling for i386

* It is actually quite a hack-ish fix, but better than nothing; it even
  seems to work with these changes.

* Note that the ICU bintr/eintr has been removed because it gave
  link-time collisions with the bintr/eintr macros in the apic code.
  If one doesn't use the APIC, it's probably a good idea to restore
  those bintr/eintr macros.

* The spinlock foo is using some old spinlock_deprecated structures
  which should probably be changed.

12 years agokernel ELF: Add missing return after exec_map_page error
John Marino [Thu, 19 May 2011 09:12:45 +0000 (11:12 +0200)]
kernel ELF: Add missing return after exec_map_page error

12 years agohammer.8: Add dedup period of 0 description.
Max Herrgard [Thu, 19 May 2011 08:07:48 +0000 (10:07 +0200)]
hammer.8: Add dedup period of 0 description.

12 years agoKernel Elf: Expand ABI.note-tag search to cover entire file
John Marino [Wed, 18 May 2011 23:36:03 +0000 (01:36 +0200)]
Kernel Elf: Expand ABI.note-tag search to cover entire file

The FreeBSD code that provides the new ABI.note-tag search limits itself
to the first page PT_NOTE header found and there could be more than one.
Moreover, that header is ignored if it doesn't fall within the first page.

The problem is that 99% of the binaries produced right now have their
note-tag outside of the first page, and perhaps the culprit is the new
binutils 2.21.  Due to this, we are required to search the entire
binary to look for these tags, and the previous code of DragonFly did
this so part of it was brought back here.

12 years agoUse OpenBSD's glob in OpenSSH.
Peter Avalos [Thu, 19 May 2011 00:56:40 +0000 (14:56 -1000)]
Use OpenBSD's glob in OpenSSH.

This fixes a bus error caused by globbing in the ssh utils (specifically
'ls *' in sftp).

12 years agoMerge branch 'vendor/OPENSSH'
Peter Avalos [Thu, 19 May 2011 00:47:11 +0000 (14:47 -1000)]
Merge branch 'vendor/OPENSSH'

12 years agoAdd OpenBSD's compat glob.c for OpenSSH.
Peter Avalos [Thu, 19 May 2011 00:26:17 +0000 (14:26 -1000)]
Add OpenBSD's compat glob.c for OpenSSH.

The latest version of OpenSSH uses OpenBSD-specific features.

12 years agogold: Local modification to add --relocatable synonym
John Marino [Wed, 18 May 2011 05:23:38 +0000 (07:23 +0200)]
gold: Local modification to add --relocatable synonym

Until a change to the binutils master branch two days ago, the gold linker
simply ignored the -i switch, which is considered to be a synonym of
the --relocatable (-r) switch by the ld linker.

This mainly affects makefiles that use gold directly rather than having it
invoked by gcc, and there was a case like this in the DragonFly base.
While the base was easily modified to use the -r switch, it was deemed a
good idea to apply this modification to the gold of binutils 2.21 in case
any pkgsrc software try to use the linker directly.

12 years agoActivate building of gold linker in binutils 2.21
John Marino [Wed, 18 May 2011 05:20:14 +0000 (07:20 +0200)]
Activate building of gold linker in binutils 2.21

12 years agoKernel ELF: Restore legacy FreeBSD brand
John Marino [Tue, 17 May 2011 23:10:13 +0000 (01:10 +0200)]
Kernel ELF: Restore legacy FreeBSD brand

During the rework of the kernel/ELF branding code, the FreeBSD brand
was intentionally left off due to having an interpreter path of
/usr/libexec/ld-elf.so.1, which is no longer built.

However, some users have been building old DragonFly 1.x servers up
which still have that old rtld running, and are still running FreeBSD
branded binaries.  For the sake of legacy, the FreeBSD brand is being
restored.

12 years agokernel - Fix netgraph MP race
Matthew Dillon [Wed, 18 May 2011 01:54:00 +0000 (18:54 -0700)]
kernel - Fix netgraph MP race

* Fix a netgraph MP race due to netgraph not acquiring required tokens
  when manipulating the socket's sockbuf structure.

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
12 years agoLinuxulator: Fix recent breakage, part II
John Marino [Tue, 17 May 2011 22:44:51 +0000 (00:44 +0200)]
Linuxulator: Fix recent breakage, part II

The linux files still aren't getting branded correctly after the recent
kernel/ELF modifications.  Hopefully this will fix it.

Reported-by: Thomas Nikolajsen
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue9908>

12 years agobtx: tweak makefile for gold linker
John Marino [Tue, 17 May 2011 19:49:27 +0000 (21:49 +0200)]
btx: tweak makefile for gold linker

gold linker ignores the -i flag, which is considered a synonym for -r
flag (--relocatable) by ld linker.  This causes the btx build of crt0
to fail under gold.  The easy solution changes the -i flag to -r since
both linkers understand it.

This is the only instance of "-i" in the system.  All the other products
that require the relocatable switch use the "-r" option, so now there
are no "-i" flags left.

12 years agoRevert "gcc 44: Change shared library search order (embedded rpath)"
Sascha Wildner [Tue, 17 May 2011 14:06:12 +0000 (16:06 +0200)]
Revert "gcc 44: Change shared library search order (embedded rpath)"

This reverts commit e42b0192f1e7ce6df0aa461075bde4978fa72adc.

This commit broke the pkgsrc bootstrap (which is using its own
libfetch that is not compatible with ours).

Reported-by: Max Herrgard <herrgard@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2076>

12 years agobinutils221: Remove /usr/{local,pkg}/lib as libdirs from ld(1).
Sascha Wildner [Tue, 17 May 2011 13:38:35 +0000 (15:38 +0200)]
binutils221: Remove /usr/{local,pkg}/lib as libdirs from ld(1).