perseant
72d61f7290
In lfs_cleanerd, check errno earlier, to avoid premature exit when the
...
real errno was EAGAIN.
When coalescing, check against NULL to avoid seg fault.
2012-01-02 21:35:17 +00:00
christos
1e34420a70
there is a macro for that, use it.
2011-12-23 16:56:54 +00:00
joerg
e86a1635be
Align in the stack before calling _rtld in the way the x86_64 ABI
...
specifies. This is necessary to ensure that init functions are always
called with the correct alignment, e.g. in case they use SSE
instructions.
2011-12-11 22:07:26 +00:00
joerg
934a3ac455
Mark xassert as __dead
2011-12-11 11:05:11 +00:00
skrll
df83e35987
Remove unused file.
2011-12-05 07:36:32 +00:00
skrll
248fe9e5bd
Use the tlsoffset from the correct object.
2011-12-04 16:53:08 +00:00
skrll
8737e6c85f
Restore backwards compatibility by removing unnecessary addition of
...
dlvsym to Obj_Entry.
Add some comments.
2011-12-02 09:06:49 +00:00
joerg
5b3faf1c05
Unbreak RTLD_NEXT and co on platforms that don't inline or tail call
...
do_dlsym.
2011-11-25 21:27:15 +00:00
dholland
51d1d7e7c4
Rename struct ufs_quota_entry -> struct quotaval.
2011-11-25 16:55:05 +00:00
joerg
7878f85385
Replace if() NADA else if() NADA else continue logic with one explicit
...
block. Split out the MIPS handling to make it explicit and readable.
2011-11-25 14:39:02 +00:00
joerg
6133e96c53
Add TLS support for m68k.
2011-11-22 15:25:28 +00:00
joerg
10dc456d4b
Hook up TLS support on ARM. Tested by martin@, kernel support from matt@
2011-11-18 16:10:02 +00:00
mrg
41f9e94281
merge bozohttpd 20111118
2011-11-18 09:51:31 +00:00
wiz
c54b7cd091
Bump date for previous.
2011-11-17 23:19:30 +00:00
mrg
d0ddf3e7e4
allow the -I option to be useful in non-daemon mode, by letting it force
...
the returned port number
2011-11-17 22:09:12 +00:00
joerg
cc2f98ece2
FreeBSD bug report 161344: TLS area for the main thread is set up to
...
early, if e.g. pointers to functions are used as initializers.
2011-11-17 16:20:11 +00:00
christos
4448e43f58
PR/45542: Henning Petersen: Misplaced parenthesis in rshd.c
2011-10-30 16:54:58 +00:00
chs
d7bbed6455
avoid linker warnings with the new binutils by not forcing ld.elf_so
...
to be soft-float. the floating-point usage in ld.elf_so is only
because of stdarg functions like printf(), and gcc 4.5 is good
about not actually executing the FP instructions in such functions
unless FP values are passed to them, which ld.elf_so doesn't do.
2011-10-26 15:56:58 +00:00
christos
1f1b5ad097
Don't block SIGTRAP so that on architectures where the debugger needs to
...
be able to receive sigtrap for breakpoints to work, it can. For example
we are setting breakpoints inside dlopen(), after we've blocked the signal,
so the process keep trapping and looping over the trap instruction without
being able to send the signal. Another way would be to move the
_rtld_debug_state() calls outside the critical section...
2011-10-23 21:06:07 +00:00
plunky
f65a48c2ec
max WARNS is 4
2011-10-13 17:23:28 +00:00
mrg
4a9d1308c3
obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
...
for platforms with shlibs already (and are.)
this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
2011-10-07 09:15:21 +00:00
mrg
1862dafe3f
match EXIT() with LEAF_ENTRY() so that sizes are actually constants.
...
fixes binutils 2.21 build issues reported by he and chuq.
2011-09-30 03:05:43 +00:00
mrg
b7e0bd3662
match END() with a relevant ENTRY*(). gas 2.21 complains about the
...
non-constant-ness of the symbol otherwise.
2011-09-26 01:52:22 +00:00
chs
b398f9d2e5
gcc 4.5 generates an extra plabel in ld.elf_so,
...
so expand the array of preallocated ones.
2011-09-25 13:34:54 +00:00
christos
23c075161b
add printflike
2011-09-17 14:25:43 +00:00
christos
8017e7237a
log to both syslog and stderr.
2011-09-17 01:50:54 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
lukem
30781daf0c
Reduce priority of syslog message if getpeername returns ENOTCONN.
...
PR bin/18934 by Greg A. Woods (with supplied fix).
2011-09-04 23:16:41 +00:00
plunky
87d4f6076b
Apply casts to cases where xdrproc_t is expected but is not
...
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
joerg
9eba1e423c
Use __dead
2011-08-29 20:41:06 +00:00
elric
95bd2d4a1e
Remove crypto/dist/heimdal and its associated build infrastructure as
...
it has been replaced by crypto/external/bsd/heimdal.
2011-08-28 16:21:57 +00:00
joerg
0c18f61e04
Use static. Don't manipulate environ directly, just reset it and use
...
setenv.
2011-08-27 17:46:34 +00:00
joerg
17941b2b14
staticfy. Use __dead.
2011-08-27 15:46:59 +00:00
joerg
c59117b957
ANSIfy. staticfy. Bail out on command line error. Use __dead.
2011-08-27 15:45:52 +00:00
joerg
973abb9784
De-__P. staticfy. Use __dead, __printflike.
2011-08-27 15:40:31 +00:00
joerg
43d0646972
Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
...
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
2011-08-27 15:33:59 +00:00
joerg
6839411995
Rename err() to avoid overlap with libc. Mark it dead.
2011-08-27 15:08:58 +00:00
hannken
0456a9b514
Fix typo.
2011-08-21 10:45:33 +00:00
christos
2ead252a82
use const char [] for format.
2011-08-21 09:03:20 +00:00
christos
5353040f23
document non-literal format strings
2011-08-16 10:35:03 +00:00
christos
41592955fd
remove gcc-4.5 hack
2011-08-14 11:46:28 +00:00
christos
a96758e4b9
XXX: gcc avoid non-literal strings
2011-08-14 11:38:11 +00:00
christos
c5e4118a6b
consistent debugging info for program headers
2011-08-13 22:25:20 +00:00
christos
9813f2c42a
printing the pathname of the shared object is much more useful than the
...
object's address.
2011-08-13 22:24:57 +00:00
christos
89c8b6528a
disable debugging that makes us core dump
2011-08-13 22:24:24 +00:00
mbalmer
631d5867a0
According to the Oxford Dictionary of Etymology, a wether is a male sheep
...
or ram.
2011-08-01 12:28:53 +00:00
joerg
017dd250ef
Fix memset usage.
2011-07-01 02:46:24 +00:00
joerg
30dc9201bb
Fix memcpy usage.
2011-07-01 02:46:15 +00:00
uwe
d1a523b49d
sh3 also needs libgcc_pic for millicode (cf. revision 1.107)
2011-06-27 14:27:56 +00:00
nonaka
c52f9a5df2
PR/45015: ld.elf_so: support ELF symbol versioning
...
Applied latest patch.
2011-06-25 05:45:10 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
christos
94e4c3614b
Add libgcc_pic for millicode.
2011-06-05 23:08:17 +00:00
joerg
9ad3c16b3a
Use -Wl,-Bsymbolic directly for clang
2011-05-30 16:30:01 +00:00
christos
b9972d39ce
Don't use division since we are only dealing with powers of 2.
2011-05-25 14:41:46 +00:00
joerg
6c5e962381
Disable use of various X86 extensions since _rtld_bind_start doesn't
...
save the necessary registers.
2011-05-20 22:22:44 +00:00
joerg
5a156c51e2
Explicitly disable linking against libgcc and friends.
2011-05-20 22:21:32 +00:00
elric
07b0c75a48
We no longer need -I/usr/include/krb5.
2011-04-24 21:42:06 +00:00
elric
5e6c3b7a0c
#include <com_err.h> -> #include <krb5/com_err.h>.
2011-04-24 21:18:24 +00:00
jmmv
9ef6767558
List myself as a contributor.
2011-04-24 07:18:59 +00:00
jmmv
94a4f45f78
Remove the "This option..." sentence prefix for all option definitions.
...
Adjust some sentences so that the new text makes sense. OK mrg@.
2011-04-24 07:17:02 +00:00
joerg
c5f8d1393d
Fix a Freudian slip found by rmind
2011-04-23 16:40:08 +00:00
elric
98fbe74f8c
Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
...
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
matt
f126fa1c9a
Add support for TLS relocations.
...
From Joerg Sonnenberger
2011-04-12 16:40:04 +00:00
matt
14d704c9e9
Add a workaround for older crt0.o that overwrite r2 (tcb pointer).
...
(save tcb pointer using _lwp_setprivate in ld.elf_so and retrieve the tcb
via _lwp_getprivate in libc and use it to restore the value in r2).
2011-04-07 02:19:28 +00:00
joerg
278d108904
Revert pthread_atfork related change not intended for commit yet.
2011-04-02 16:49:49 +00:00
joerg
241421a0db
Unbreak HPPA
2011-04-02 12:30:41 +00:00
mbalmer
17ab36f183
fix typo, bump date
2011-04-02 07:44:15 +00:00
skrll
45f37e968c
Enable TLS for alpha - a 2nd class^Wtier system in pookaBSD^WNetBSD
...
alpha_reloc.c diff from joerg on port-alpha.
2011-03-31 15:30:31 +00:00
nakayama
dbbd50a95f
Add missing comma.
2011-03-31 12:47:01 +00:00
mrg
a45221975c
add .mp4 as video/mp4.
2011-03-31 01:19:37 +00:00
martin
9f905ee41c
Add support for TLS relocations
2011-03-30 09:22:29 +00:00
martin
3a4af49105
Add support for 64 bit TLS relocations.
2011-03-30 08:37:52 +00:00
joerg
8fa6585514
Block signals when using the exclusive lock.
2011-03-29 20:56:35 +00:00
jmmv
83bb438905
Add pid file support: if the new -P option is provided, it specifies the
...
location of the pid file to create.
OKed by mrg@.
2011-03-29 07:22:31 +00:00
joerg
e49f915c10
Refine locking scheme around init/fini to not hold the exclusive lock.
...
Use a simple generation count instead and restart looking for work if it
changed (e.g. due to an dlopen call from an init function).
Leave the possible dlclose() race for now.
2011-03-28 00:37:40 +00:00
joerg
7435c9ba49
exit, not enter
2011-03-27 22:20:51 +00:00
joerg
23a805d314
Handle _rtld_exit as full entry point since other threads may still be
...
running at the time.
2011-03-27 21:58:50 +00:00
joerg
2feaef06e3
Add some debug messages for explicit rtld entry points
2011-03-27 13:15:34 +00:00
joerg
0bc9be2143
Locking around dlclose()
2011-03-27 13:14:42 +00:00
joerg
d5a77cf108
Fix merge error that broke HPPA
2011-03-26 21:40:37 +00:00
joerg
cb1cd7e860
Add basic locking to ld.elf_so.
2011-03-25 18:07:04 +00:00
bouyer
d9210c2405
Add a new libquota library, which contains some blocks to build and/or
...
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
skrll
83c1874f74
Another TLS reloc. Thanks to joerg for a hint.
2011-03-17 22:07:52 +00:00
matt
7e7a53defe
Add support for the MIPS TLS reloc types in shared libraries.
2011-03-15 07:40:52 +00:00
skrll
be1a58855d
More PLABELS are required due to TLS stuff.
2011-03-14 08:49:29 +00:00
skrll
d3aab036e1
Handle some TLS relocs.
2011-03-14 08:21:54 +00:00
skrll
92c298c3a1
First cut at mdtls.c for hppa.
2011-03-14 08:20:15 +00:00
joerg
e7a5551d99
Fill in TLS related fields in dl_iterate_phdr if TLS is supported
2011-03-13 21:08:45 +00:00
joerg
854e6cd69f
Add TLS support for AMD64, i386 and SH3.
...
This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-12 22:54:36 +00:00
bouyer
72918bae56
Define qfextension here
2011-03-12 12:30:39 +00:00
matt
130f2d3d4c
Add TLS support for PowerPC.
...
If the port has __lwp_gettcb_fast or __lwp_settcb use them instead of
__lwp_getprivate_fast or lwp_setprivate.
2011-03-12 07:43:53 +00:00
joerg
7197db08bd
Add some clarifications
2011-03-10 17:38:30 +00:00
joerg
9c18c3d543
Add source reference for _lwp_makecontext and
...
__HAVE___LWP_GETPRIVATE_FAST. Fix enumeration.
2011-03-10 17:22:17 +00:00
reed
728c26c193
A filename with a colon in it made it appear to be the URI scheme
...
to various web browsers. So follow RFC 3986 4.2 and prepend ./
to the filename in the generated index hyperlink.
Okayed by mrg.
2011-03-10 14:39:40 +00:00
reed
92d8a7ba74
Fix typo.
2011-03-10 14:37:16 +00:00
joerg
de4cf97515
Fix prototype for __tls_get_addr. Add a generic implementation of it
...
using __tls_get_addr. Update TLS notes.
2011-03-10 14:27:31 +00:00
skrll
ff1072d23a
Whitespace.
2011-03-10 12:53:42 +00:00
joerg
aad599979d
Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
...
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.
Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.
This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
2011-03-09 23:10:05 +00:00
bouyer
063f96f3c2
merge the bouyer-quota2 branch. This adds a new on-disk format
...
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
matt
4fee4fe7b3
Don't rely on >32bit math.
2011-03-04 00:40:48 +00:00
pooka
33ee52c7dc
make DEBUG compile without RTLD_DEBUG
2011-02-24 10:58:54 +00:00
matt
483a1c95a2
Fix problem with bss-plt objects which a reloc index, not offset.
...
(secure-plt uses an offset (index*sizeof(rela), bss-plt uses an index)
secure-plt will now take the offset and divide by 12 for an index.
2011-02-10 02:28:20 +00:00
pooka
eb725c2168
Call daemon() later to make sure there is a listening socket by
...
the time the foreground process exits.
discussed with mrg.
2011-02-06 19:00:53 +00:00
skrll
3770380428
Unbreak gdb by ensuring _rtld_debug_state is in the dynamic symbol table.
...
mmm 1 line diffs
mmm not breaking backwards compatibility for anything known/unknown or
public/private.
2011-01-25 12:25:43 +00:00
matt
709c8a2f01
Move powerpc gotptr to the end to preserve binary compatibility.
2011-01-16 15:56:37 +00:00
matt
b094d98191
Warn about DT_TEXTRELs
2011-01-16 02:36:05 +00:00
matt
d31dbd7578
Add secure-plt support for powerpc to ld.elf_so. As part of this, we have to
...
stop calling into the GOT/_DYNAMIC since they are no longer executable.
2011-01-16 01:22:29 +00:00
christos
bfd4da8575
PR/44390: Paul Koning: make code gcc-4.5.1 friendly.
2011-01-14 23:56:13 +00:00
pooka
09159e5c0a
Make sure bozo_auth_check_401() isn't called with a NULL "request".
...
reviewed by mrg
2011-01-12 19:29:24 +00:00
plunky
f302f6417c
the Name for this manpage is "ld.aout_so". Use it.
2011-01-01 16:34:52 +00:00
skrll
f1d73a2c94
Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
...
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).
Mark libpthread as DF_1_NOOPEN and use it to test the functionality.
Somewhat taken from FreeBSD.
Fixes PR 42029.
OK from christos and joerg.
2010-12-24 12:41:42 +00:00
mlelstv
e5275d16e0
Deduce raw device correctly by prepending "r" to basename.
2010-12-23 18:08:41 +00:00
skrll
1f45aab781
Sprinkle some KNF.
2010-12-19 17:26:51 +00:00
skrll
ad7786ec8b
Remove unnecessary #ifdef RTLD_DEBUG
2010-12-19 17:17:50 +00:00
wiz
617acddc41
Remove superfluous Pp.
2010-12-17 08:50:26 +00:00
skrll
1ee8ff33ba
Remove implementation detail.
...
Bump date.
2010-12-17 07:04:52 +00:00
joerg
c4120e324e
Replace use of errlist with a single concatenated version and an offset
...
array. This requires less storage and avoids one runtime relocation per
errno value.
2010-12-16 22:52:32 +00:00
joerg
67cc8c0871
Don't use normal environment handling functions from libc, but iterate
...
once over the array and clean out entries as needed.
2010-12-16 22:47:27 +00:00
skrll
126c589398
s/rdbg/dbg/ in a few places.
2010-12-16 19:59:39 +00:00
skrll
76d5f138f4
Remove incorrect comment.
2010-12-16 19:35:38 +00:00
wiz
fbc697a1ed
Note that $ORIGIN kernel support (in kern/kern_exec.c) is currently disabled.
...
Info from skrll@.
Bump date.
2010-12-16 19:25:41 +00:00
tls
eaa351b215
When invoking a content handler specified via -C, set the REDIRECT_STATUS
...
CGI variable to "200". This approximates the Apache behavior which is
required by phpcgi in PHP 5.3 (and by some compilations of older PHP
versions).
I have a revolutionary idea. Perhaps instead of imposing bizarre
requirements on other programs in the name of "security", the PHP
developers should make their own code compile with oh, I don't know,
maybe -Wuninitialized. That might have an effect on the security of
systems using PHP rather than on the "security" of such systems...
...excuse me, got to go now, I think my airquotes just wore out.
2010-12-14 13:27:39 +00:00
joerg
67e01e0a99
Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
...
to simplify the assembler code.
2010-12-05 00:56:06 +00:00
joerg
91118529e4
ANSIfy
2010-12-03 23:07:49 +00:00
joerg
239c31f883
Add comment about the unusual stack alignment in .rtld_bind_start.
2010-12-03 22:48:25 +00:00
tron
1fbd900608
Don't use internal libc function __findenv().
2010-11-14 22:09:16 +00:00
christos
acfd35dad9
PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
...
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.
2010-10-29 15:08:17 +00:00
skrll
8b916d603d
Add cast so that usr.bin/ldd/elf32 builds.
2010-10-16 17:48:12 +00:00
skrll
e6cdac9c4b
Implement dl_iterate_phdr.
...
Somewhat taken from FreeBSD. Manual page from OpenBSD.
2010-10-16 10:27:06 +00:00
skrll
0a77584d8f
Revert previous for now. It's part of a larger commit which will arrive
...
soon.
2010-10-15 15:08:05 +00:00
skrll
a048346afd
Be more tolerant to the location of PT_PHDR in the segment list.
2010-10-15 07:22:44 +00:00
christos
45bdf1678c
restore binary compatibility for pre-2.0 binaries, requested by skrll and core.
2010-10-10 21:27:16 +00:00
skrll
a108583dc7
Oops. Remove trailing whitespace in previous.
2010-09-30 19:45:24 +00:00
skrll
d965c46816
Improve debug output.
2010-09-30 19:43:11 +00:00
skrll
0e07ba7138
Add the magic branch instruction that is used by GCC's
...
__canonicalize_funcptr_for_compare() function to fixup relocations in
order to do function pointer comparisons.
From OpenBSD.
2010-09-30 19:32:40 +00:00
skrll
06acf46b03
Introduce a new type Elf_Symindx for use in decoding the symbol hash table
...
section and allow this type to be overridden.
The ELF specification says it should always be uint32_t (Elf_Word), but
alpha decided to be different (not sure why). Define Elf_Symindx to be
uint64_t on alpha.
Alpha no longer uses non-standard definitions of Elf64_Sword and
Elf64_Word. Remove the ability to override these types.
Fixes ld.elf_so after Herculean effort from me and martin.
2010-09-30 09:11:18 +00:00
matt
af56990d0c
Make the GOT1_MASK 64-bit clean.
2010-09-24 15:20:52 +00:00
skrll
8f77c5159b
Comment reformat.
2010-09-24 12:00:10 +00:00
skrll
2c56298dd9
Wrap long line.
2010-09-24 11:59:28 +00:00
skrll
09601c884f
Whitespace.
2010-09-24 11:57:11 +00:00
skrll
6229c56fea
Wrap long lines
...
Reformat comments.
2010-09-24 11:41:46 +00:00
joerg
11fdf81f84
Avoid casting from d_val to plttype of different signedness.
...
Just two booleans for the same purpose.
2010-09-23 13:03:35 +00:00
wiz
8d65c98f7a
Fix typo.
2010-09-21 07:05:28 +00:00
mrg
df5be5736c
merge bozohttpd 20100920
2010-09-20 23:11:38 +00:00
mrg
729c374954
initial import of bozohttpd 20100920. the only change missing in here is:
...
o fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg
44128f48a9
fix an error in the previous.
2010-09-20 22:18:22 +00:00
mrg
109d4102cc
fix a serious error in virtual hosting support, noticed by seanb@netbsd,
...
and disallow ".." as a virtual host name! also ".".
patch from sean.
2010-09-20 21:58:43 +00:00
skrll
07666b6356
Wrap long line.
2010-09-11 11:11:52 +00:00
mrg
e0a4d05008
fix another compile error if NO_DAEMON_MODE is defined. also from rudolf.
2010-09-09 04:41:49 +00:00
mrg
f3a95c474f
fix a compile error if NO_DIRINDEX_SUPPORT is defined. from rudolf.
2010-09-08 00:47:44 +00:00
pooka
0fb1ef7452
Don't exit when running as a lib after FS is unmounted, just return
...
from the mainloop.
2010-08-16 22:11:55 +00:00
dogcow
172b076ece
...and free() memory malloc()ed by scandir so we don't leak.
2010-08-16 18:32:44 +00:00
dogcow
035f1ce17b
readdir -> scandir and requisite changes, so that bozohttpd now sorts
...
directory listings.
2010-08-16 10:00:56 +00:00
joerg
6972211664
Stricter matching for _rtld_invalid_paths by ensuring separator.
...
Use mem* functions instead of str* for strings of known size.
2010-08-07 19:47:34 +00:00
joerg
f40b256f09
Reduce header pollution for mdreloc.c. Make Obj_Entry argument of
...
_rtld_relocate_nonplt_objects non-const in preparation for TLS support.
2010-08-06 16:33:17 +00:00
pooka
d9a3123e84
Do the semaphore trick only if the cleaner is run as a lib -- the
...
standard installation doesn't get linked against librt or libpthread.
2010-07-29 14:09:45 +00:00
pooka
4f52188eb0
Add a method for posting a semaphore when cleaner init has reached
...
the main loop. This is useful for very quickly executed lfs runs
such as those in tests, as an initialization phase cleaner may
prevent file system unmount.
2010-07-29 14:07:39 +00:00
pooka
fc729209b1
always add to SRCS
2010-07-28 22:35:52 +00:00
mrg
c8cf27943d
make sure to look in CFLAGS, COPTS and CPPFLAGS for abi options.
...
fixes sgimips64 build of n64 ld.elf_so.
2010-07-11 07:43:12 +00:00
mrg
ee1ac2b96d
avoid an unused variable warning(error) for MKCRYPTO=no builds.
2010-07-11 03:13:08 +00:00
mrg
4c92852a80
remove almost all the ability to build netbsd with an a.out target.
...
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.
this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.
i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.
some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
wiz
88b9c8a3fe
Fix typo, remove trailing whitespace.
2010-06-22 07:00:12 +00:00
mrg
30539536b5
merge bozohttpd 20100621
2010-06-22 05:24:12 +00:00
mrg
aeb27ed42c
merge bozohttpd 20100617.
2010-06-17 19:43:30 +00:00
dholland
971935362c
Remove zombie file.
2010-05-29 23:58:33 +00:00
dholland
8aaae434e3
Remove useless cast, probably motivated by an older and stupider lint.
2010-05-29 23:12:30 +00:00
dholland
3ba8be7347
Update outdated comment (and docs) about which header lines are printed.
...
I appear to have been carrying this patch around since 2002.
2010-05-29 23:08:06 +00:00
dholland
5f666bd308
Don't launder const
2010-05-29 23:05:22 +00:00
mrg
1fe1233e27
merge bozohttpd 20100512
2010-05-15 06:48:27 +00:00
mrg
d4586f7382
merge 20100510 properly
2010-05-10 14:53:17 +00:00
mrg
a07e0db33b
merge bozohttpd 20100510.
2010-05-10 14:44:19 +00:00
mrg
ce2063081a
merge bozohttpd 20100509.
2010-05-10 03:37:45 +00:00
mrg
390458fa54
import bozohttpd 20100509. it has these changes:
...
o major rework and clean up of internal interfaces. move the main
program into main.c, the remaining parts are useable as library.
add bindings for lua. by Alistair G. Crooks <agc@netbsd.org>
o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325
special thanks to al for the majority of these changes.
2010-05-10 03:30:04 +00:00
wiz
55767fc891
Wording.
2010-04-29 21:34:04 +00:00
hubertf
81fae5271a
Rename -w to -c by popular demand
...
(allow file 'c'reation - 'w'riting was always available, with some twist;
plus there's already such a feature elsewhere, so let's try to not
diverge needlessly)
2010-04-29 20:13:46 +00:00
wiz
c80baa2258
Sort options in SYNOPSIS; improve wording.
2010-04-29 07:04:44 +00:00
hubertf
cb578cac71
tftpd(8): Add -w so files can be uploaded without requiring them
...
to be created before the upload. See the section on security
considerations before enabling. [hubertf 20100429]
Addresses PR bin/43164.
2010-04-28 22:21:51 +00:00
joerg
ff0f2fb483
Use fast_remainder32 for the ELF hash. For the hot cache case, this
...
speeds up Firefox startup by over 2% on AMD64.
Limit hash table buckets to 32bit.
2010-04-05 14:01:26 +00:00
joerg
5e015e5e29
Use .In instead of .Aq Pa for header files.
2010-03-22 18:58:31 +00:00
lukem
f009f7a2e4
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
...
PR/43023: Bruce Cran: FTPD bug remote crash
2010-03-21 20:27:26 +00:00
christos
692b0132a0
PR/43023: Bruce Cran: FTPD bug remote crash
...
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
2010-03-20 18:23:30 +00:00
skrll
134b0fcc8f
Only apply -Wno-stack-protector where alloca is used.
2010-03-20 16:36:35 +00:00
roy
51085124f6
Use the gcc directive to disable SSP warnings.
2010-03-19 20:53:50 +00:00
roy
d5e8f757b8
Use alloca(3) instead of local xmalloc for creating our DoneLists.
...
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.
2010-03-18 22:17:55 +00:00
roy
b02ec7e9f8
Implement negative cache checks for symbol lookups.
...
Uses the Donelist idea from FreeBSD.
2010-02-27 11:16:38 +00:00
mlelstv
b076c4eba1
Read the padded superblocks to avoid problems with disks that have
...
larger sectors than 512 Bytes.
2010-02-16 23:13:13 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
skrll
d306de736d
Restore backwards compatibility for binaries referencing the main
...
Obj_Entry.
2010-01-17 08:04:20 +00:00
skrll
2e0bcc8d3b
Remove cargo cult dlinfo entry point.
2010-01-16 10:37:51 +00:00
skrll
418048d731
Put the dlopen,and friends entry points back.
...
They're needed by pre-2.0 binaries. Backward compatibiliity for these
was broken by another commit recently which I'll fix shortly.
2010-01-15 07:07:11 +00:00
skrll
699646b3ea
Remove the entry points for dlopen() and friends. They haven't been used
...
since Aug 2003.
2010-01-14 21:52:07 +00:00
skrll
15b7ff0199
Make DEBUG build compile.
2010-01-14 12:12:07 +00:00
skrll
f88b3d9061
Wrap a few long lines.
2010-01-14 11:58:31 +00:00
skrll
c2796a5929
Shut gcc up.
2010-01-14 11:57:06 +00:00
skrll
8b4b9f3e56
Shut gcc up.
2010-01-13 22:34:07 +00:00
christos
12bd4dbd45
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
...
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
2010-01-13 20:17:21 +00:00
skrll
8f7db61734
Reset the COMBRELOC cache Obj_Entry if it was freed.
...
Fixes PR 41482. Done slightly differently to the patch in the PR.
2010-01-10 07:29:47 +00:00
skrll
fa7832d0b1
Fixup comment.
2010-01-10 06:37:32 +00:00
skrll
09298c1411
Small tidyup.
2010-01-09 15:36:43 +00:00