Commit Graph

2677 Commits

Author SHA1 Message Date
darran
9a00affba3 Fix a segfault in ctfmerge.
GCC can generate bogus dwarf attributes with DW_AT_byte_size set to 0xFFFFFFFF.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 .

GCC is currently doing this for external/bsd/tmux/dist/compat/imsg-buffer.c:
    readelf -a --debug-dump imsg-buffer.o
	...
	 <2><6e3>: Abbrev Number: 32 (DW_TAG_union_type)
	    <6e4>   DW_AT_byte_size   : 0xffffffff
	    <6e8>   DW_AT_decl_file   : 1
	    <6e9>   DW_AT_decl_line   : 229
	    <6ea>   DW_AT_sibling     : <0x705>

This resulted in ctfconvert generating a faulty CTF entry which then caused the
segfault in ctfmerge.

The fix has ctfconvert check for the bogus 0xFFFFFFFF value and works around it.
It also adds some protection to ctfmerge to avoid the segfault and fail
more gracefully if the error should occur in the future.
2012-01-10 08:42:22 +00:00
martin
853c5aadac When aggregate-allocating an index structure make sure to provide at least
natural alignement for pointers.
This makes firefox 3.6 work again on sparc64.
2012-01-09 11:20:20 +00:00
mrg
bf795abb8d - reorder the SUBDIR list to have correct .WAIT-based dependancies.
- fix the handling of subdir additional LIBDPLIBS so they're present
  when <bsd.lib.mk> is loaded.  fixes missing shlib links relative to
  what the normal package does.  (noted by wiz.)
2012-01-07 02:07:58 +00:00
joerg
3a4dc84ff4 Don't use dangling elses. 2012-01-06 15:16:02 +00:00
mhitch
2c13773a38 Add logical drive device ld - a number of raid controllers provide these.
Also fix a typo/pasto when checking devices against devices/types in the
configuration file:  use value from configuration, not the end of the
device_info table.  Devices which aren't explicitly specified in the
device_info table can now be used by adding a type entry in the config
file.
2012-01-04 16:37:45 +00:00
christos
020854a4e2 don't use %m in openpam_log, because it does not necessarily call syslog()
to process the message.
2012-01-03 18:56:49 +00:00
wrstuden
2f786af8b7 Tweak white space so I get my annual commit. 2012-01-01 01:19:20 +00:00
christos
ed5ecc934e Reverse the order of printf formatting to make it easier for compilers to
check printf arguments.
From joerg@
2011-12-28 14:53:38 +00:00
christos
f7d28ae6f9 don't allocate variable arrays on the stack for SSP (from joerg) 2011-12-27 20:29:08 +00:00
christos
a848253371 PR/45747: Henning Petersen: Fix icmp6 verbose printing. 2011-12-27 15:12:45 +00:00
njoly
5c047b9c03 Re-apply some lint comments that have been lost during move to
external tree.
2011-12-26 17:32:28 +00:00
christos
14a012c5ad lint and static module fixes 2011-12-25 23:18:56 +00:00
christos
1ae23164b0 apply our changes. 2011-12-25 22:27:55 +00:00
christos
44269bb5a3 from sourceforge
ENHANCE: removed static build autodetection, which didn't work anyway.
	 Use an explicit, user-specified preprocessor variable instead.
ENHANCE: cleaned up the documentation a bit.
ENHANCE: added openpam_subst(3), allowing certain PAM items to be embedded
	 in strings such as prompts. Apply it to the prompts used by
	 pam_get_user(3) and pam_get_authtok(3).
ENHANCE: added support for the user_prompt, authtok_prompt and
	 oldauthtok_prompt module options, which override the prompts passed
	 by the module to pam_set_user(3) and pam_get_authtok(3).
ENHANCE: rewrote the policy parser to support quoted option values.
ENHANCE: added pamtest(1), a tool for testing modules and policies.
ENHANCE: added code to check the ownership and permissions of a module before
	 loading it.
ENHANCE: added / improved input validation in many cases, including the policy
	 file and some function arguments.
2011-12-25 21:42:28 +00:00
christos
cc349219b4 PR/45739: Moritz Wilhelmy: top(1) segfaults on WINCH with unknown terminal 2011-12-24 22:29:48 +00:00
christos
7abb9aefee Don't use libpcap's bpf file, but use our own:
1. include <net/dlt.h> where needed since we have the information in a separate
   file.
2. #error in pcap/bpf.h to make sure it is not being used.
3. If we don't include <pcap/bpf.h> include <net/bpf.h> instead.
4. Install symlinks instead of copies of files.
2011-12-21 19:00:27 +00:00
christos
f0196baaf5 - make all the ifdefs match
- make it compile, and test
2011-12-19 22:25:45 +00:00
christos
84b663d32f Put back setitimer based code for the have-nots: (OS/X Lion) 2011-12-19 21:59:46 +00:00
joerg
68a438510c Update LLVM/Clang snapshot to r146851. Most noticable, this fixes the
vfork issues with RUMP depending on inlining certain functions and a bad
stdio simplification.
2011-12-19 14:07:40 +00:00
christos
b460fa25a2 fix killing code I just broke, and give program a chance to cleanup. 2011-12-19 03:16:05 +00:00
christos
7bfd5c4933 Don't use antiquated BSD API's that require global variable, use posix timers
instead.
2011-12-18 22:34:06 +00:00
njoly
e933eb3317 Lowercase arch strings, and add missing ones. 2011-12-18 13:40:08 +00:00
mlelstv
d07fe1b033 Apparently mknative didn't work right. Fix up losses. 2011-12-16 11:19:19 +00:00
mrg
7549abf063 mknative-gcc for sun2 and tls / new version fix. 2011-12-15 08:36:05 +00:00
mrg
fefbf74c02 make sure m68010-netbsdelf chooses the right unwinder. 2011-12-15 08:33:55 +00:00
mrg
633e66df05 regenerate mknative-gcc files for most platforms, post skrll@ fix
and joerg@'s enable tls change.

missing: m68010 (coming shortly) and m68k (breaks the build)

XXX: didn't test i re-merged the powerpc by-hand changes properly
2011-12-15 06:35:45 +00:00
agc
0c1bafa6f0 include inttypes.h to get the fixed size integer types - from Gregor Riepl 2011-12-14 07:20:31 +00:00
dholland
03f684ff54 We don't have 'Secure' RPC, and we aren't going to get it, so set
HasSecureRPC to NO rather than YES.
2011-12-13 04:32:32 +00:00
skrll
686829eb3c Revert last change to elf32-hppa.c and pull across the fix to my binutils
PR 13476.

tests/lib/libc/tls on hppa still passes with this change.
2011-12-12 07:40:56 +00:00
joerg
9613dd451b Update to LLVM/Clang r146325. This fixes a number of issues for i386. 2011-12-11 14:58:50 +00:00
tron
5939d9ebbc Remove ".gitignore" files which blacklist some files that actually are
in the NetBSD sources. This should fix build problems for people using
GIT to track current.

Problem reported by Evgeniy Ivanov on "current-users" mailing list.
2011-12-05 10:43:24 +00:00
macallan
4aeefed6a9 actually pass $COPTS to the compiler
ok mrg@
2011-12-02 22:28:47 +00:00
skrll
a273c995fc Pull across the fix for target/50691
ok'ed by mrg@
2011-12-02 09:44:48 +00:00
skrll
fd5c19ebdc Revert
http://sourceware.org/ml/binutils/2010-01/msg00594.html

which broken TLS relocations for DSOs - the relocation wasn't being
adjusted wrt the GP.

A proper fix is in the pipeline.
2011-12-02 09:40:18 +00:00
skrll
a058087d27 Provide some more registers. 2011-12-01 09:16:28 +00:00
tron
bb4b748000 Don't build postscreen(8) if "MKCRYPTO" is set to "no". It cannot be
built without TLS support, at least not without major surgery.
I've only tested this by building with "MKCRYPTO" set to "yes"
because the build fails much ealier otherwise.

Problem reported by Nick Hudson in private e-mail.
2011-11-28 16:22:14 +00:00
tsutsui
997e5ef587 Remove no longer necessary -Wno-error and set WARNS?=2 . 2011-11-27 00:50:37 +00:00
christos
324a1c22f5 Only set symbols not provided from the linker script as regular so
that we can find their version from verdef not vertree. This bug
showed up on the hp700 build of heimdal's libkrb5, where we got
the "end" symbol with a bad version from libhx509. The hp700 linker
script defines that end symbol.
2011-11-26 15:59:34 +00:00
skrll
28126bca61 Slight merge mistake. Now no difference to verndor branch. 2011-11-26 15:54:02 +00:00
roy
07c692851d sync 2011-11-24 00:37:40 +00:00
roy
02c18234cd Import openresolv-3.4.5 with the following changes since the last version:
* More printf portabitiy fixes.
* Use read -r to avoid backslash problems.
* If we have a valid domain, put that in resolv.conf as well as search.
  This does not fix a technical problem, just stops me getting bug reports.
* Update metric and privacy even if resolv.conf didn't change.
* sortlist is now supported.
* Ensure subscriber config directories exist before writing the configs
* Don't create pdnsd.conf if it doesn't exist or is not writeable.
2011-11-24 00:36:05 +00:00
matt
a52d311628 Add mips64*-netbsd* clauses 2011-11-23 19:41:50 +00:00
christos
070df59c8a - make decimal conversions use the maximum width integers available on the
architecture.
- make signed and unsigned code consistent.
2011-11-22 22:30:22 +00:00
christos
dd89f66f56 make this compile again. VOP_CLOSE is really vn_close() through macros. 2011-11-21 17:51:03 +00:00
christos
bde7230620 correct declaration of vn_close()
XXX: Should all those dup declarations be here?
2011-11-21 05:50:11 +00:00
christos
6a2b307489 close file in a way that it does not trigger an assertion :-)
now zpool create works again.
2011-11-21 00:24:24 +00:00
dholland
c8530f0b4f Add missing CLEANFILES+=x11perfcomp 2011-11-20 21:02:23 +00:00
christos
eb50a1b80e enough with the compile time warnings. 2011-11-20 02:54:25 +00:00
mlelstv
329d131575 Fix passing of floating point registers. 2011-11-19 13:00:38 +00:00
joerg
22f467edff Update LLVM/Clang snapshot to r144933. Besides the usual bugfixes and
improvements, this brings the first of the address sanity checker and
the new tainted variable logic for the analyzer.
2011-11-18 15:56:53 +00:00