summaryrefslogtreecommitdiffstats
path: root/libexec (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove #ifdef PASSWD, it was always enabled and is a leftover from krb5 days.reyk2018-06-133-11/+5
| | | | | | No other uses of -DPASSWD were found in the tree. OK deraadt@ tb@ brynet@
* Bail out if fchmod(2) fails.cheloha2018-06-081-2/+5
| | | | | | | | | Don't quietly install ld.so.hints with mode 0600 because this adds overhead to shlib lookup for non-root processes. From Nan Xiao. ok guenther@
* Bump ELF_RANDOMIZE_LIMIT to 1MB.mortimer2018-06-011-2/+2
| | | | ok deraadt@
* On arm64 negate the whole 64-bit register otherwise system call wrapperskettenis2018-05-151-2/+2
| | | | | | | | that return ssize_t will not return a negative value upon error. Fixes dynamical loading of shared objects using dlopen(). ok guenther@
* Add an explanation to relink.log what a failed checksum of /bsdrpe2018-05-011-2/+12
| | | | | | | means and show how to re-enable KARL. Prodded by and OK deraadt Feedback and OK tb
* Make sure ld.so doesn't use floating point registers, as the lazy-bindingguenther2018-04-271-2/+2
| | | | | | stub doesn't preserve them and some may be used for passing arguments ok kettenis@ deraadt@ mlarkin@
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-266-46/+12
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* nuke trailing whitespacebeck2018-04-261-3/+3
|
* Add support for the DF_TEXTREL flag.kettenis2018-03-091-1/+3
| | | | ok patrick@, millert@
* Use a static chacha instance to fill randomdata sections. Avoids loopingmortimer2018-02-092-33/+247
| | | | | | over a syscall for randomdata sections larger than 256B. ok djm@ deraadt@ kettenis@
* sync with libc malloc: use consistent style for for loop in unmap(),otto2018-02-071-3/+1
| | | | no functional change
* Expand Type strings by one space, to fit ld.so, in the same ugly way "exe "deraadt2018-02-041-6/+6
| | | | was being handled.
* don't forget to increment loop var; infinite loops spotted by sthen@otto2018-02-011-0/+1
|
* No need to add ffs.c as we use .VPATH to reach over into libc/string.kettenis2018-01-301-40/+0
| | | | ok otto@
* provide ffs, gcc generates calls to it, even when __builtin_ffs() is used.otto2018-01-302-2/+42
| | | | ok deraadt@
* kill a gcc warningotto2018-01-301-1/+1
|
* port over the malloc changes from libc. prompted by deraadt@otto2018-01-301-305/+294
|
* Unlike other archs, mips64 needs ld.so to know about symbol visibility andguenther2018-01-181-3/+4
| | | | | | | skip symbol lookup on protected symbols. Add visibility #defines to <sys/exec_elf.h> to support that. ok kettenis@ visa@
* Fix one possible buffer overflow and one underflow. Also some minormillert2017-12-241-17/+29
| | | | cleanups. From Jan Kokemueller. OK deraadt@
* Implement missing bits to support lazy binding. Note that the codekettenis2017-12-212-46/+38
| | | | | | | | | | deliberately does not save the floating-point argument registers before calling _dl_bind(). Doing so would force an FPU context switch upon every function call through the PLT. But since we compile ld.so with -march=armv8-a+nofp+nosimd this is safe since nothing in the _dl_bind() codepath uses he FPU registers. ok guenther@, drahn@
* ld.so's syscall _dl_* API/ABI doesn't reurn errno, but -errno.deraadt2017-12-121-2/+4
| | | | | Reviewing behaviour artifacts with pledge, I discover a close(-ENOSYS).. ok guenther
* spacingderaadt2017-12-121-2/+2
|
* also cleanout ld.so.aderaadt2017-12-081-1/+3
|
* Everyone knows this as ld.so, nor by the ancient name rtld.deraadt2017-12-084-10/+10
| | | | ok guenther
* Redo the calculation of the alignment and placement of static TLS data toguenther2017-12-013-17/+215
| | | | | | | | | | correctly take into account the segment p_align. Previously, anything with a size belong the natural alignment or with alignment larger than the natural one would either not be intialized correctly, be misaligned, or result in the TIB being misaligned. Problems reported by Charles Collicutt (charles (at) collicutt.co.uk) ok kettenis@
* Implement a DL_REFERENCE dlctl. To be used by the upcomingkettenis2017-11-281-1/+18
| | | | | | __cxa_thread_atexit() implementation. ok guenther@
* Tweak bitmask calculation to match i386 and avoid clang warning.kettenis2017-11-151-3/+4
| | | | ok tom@
* Consolidate lib.so.*.a, ld.so.a and the kernel relink kit intorpe2017-11-052-11/+13
| | | | | | | | | | one location under /usr/share/relink. Be more specific in src/etc/rc reorder_libs() what filesystems need r/w remount and ensure that their mount state is restored. Idea and positive feedback from deraadt@ OK aja@ tb@
* Prefer <elf.h> to the non portable <sys/exec_elf.h>.mpi2017-10-291-1/+1
| | | | ok jca@, deraadt@
* Use <elf.h> instead of <elf_abi.h>mpi2017-10-2712-24/+24
| | | | ok jasper@, jca@, deraadt@
* If LD_BIND_NOW is in force then all relocations are performed eagerly,guenther2017-10-261-1/+5
| | | | | | | when the object is loaded. Since kbind(2) will never be used in that case, disable it early, before invoking any library or application code. ok deraadt@ kettenis@
* R_AARCH64_NONE should be zero, not 256. The latter was a deprecatedguenther2017-10-241-3/+3
| | | | | | assignment and isn't used by clang/lld. ok jsg@
* Make blacklist entries override the whitelist. When running spamdmillert2017-10-184-17/+133
| | | | | | | | in greylisting mode, it is not uncommon for an IP to get whitelisted before it shows up on a spam blacklist. With this change, spamd will check its blacklists before adding a WHITE entry to the <spamd-white> pf table. If the IP matches a blacklist, the WHITE entry will be removed. OK phessler@
* add missing HISTORY; based on CVS logs and release announcementsschwarze2017-10-171-2/+9
|
* Use a binary search to speed up blacklist lookups. OK phessler@millert2017-10-172-38/+132
|
* Check for asprintf() returning -1 instead of assuming that themillert2017-10-121-2/+3
| | | | pointer will remain unchanged when fails. OK deraadt@
* __plt_{start,end} are no longer generated or necessary, having beenguenther2017-10-103-20/+3
| | | | | | | superseded by the generic ?WX and RELRO support. Stop trying to look up and use them. ok kettenis@ deraadt@
* Sync with libc malloc, doing delayed free double-free check alwaysotto2017-10-051-21/+15
|
* Make sure to freezero() the wide-character copy of the user supplied password.anton2017-09-161-11/+20
| | | | | | | While here, change the mbstowcs() error checking making it complaint with what's documented in the manual and zap some stray whitespace. ok benno@ tb@
* Remove superfluous mprotect()ing of the PLT that's been obsoleted byguenther2017-09-091-6/+8
| | | | | | the generic handling of RWX segments. ok aoyama@
* Fix m88k problem in recent ld.so changes.aoyama2017-09-032-8/+13
| | | | | | | | | | | | - move _dl_cerror function from SYS.h to ldasm.S to avoid duplicate definition when linking - [SYS.h] pull some macros from lib/libc/arch/m88k/DEFS.h - [ldasm.S] add "'never hit' but needed" br again in _dl_cacheflush (thanks to Miod Vallat) - [ldasm.S] change ld.hu into ld.h in order to get a correctly signed and sign-extended value (also thanks to Miod Vallat) ok deraadt@
* rename *fdprint function to *dprintf, like libc versionderaadt2017-08-293-24/+24
|
* whitespacederaadt2017-08-282-5/+5
|
* whitespacederaadt2017-08-284-10/+10
|
* fix arm64 buildjsg2017-08-281-2/+2
| | | | ok deraadt@
* Place all .o files, Symbols.map, and the test program into /usr/libdata/ld.so.a.deraadt2017-08-271-1/+10
| | | | | My work is done; the next piece is coming from rpe. ok visa kettenis
* The test program run before ld.so is installed was encoding the $OBJDIRderaadt2017-08-271-2/+2
| | | | | | path to ld.so. Since the testprogram is run from inside $OBJDIR, encode with a ./ path instead. ok kettenis visa
* Link the ~45 .o which become ld.so in a random order.deraadt2017-08-271-3/+4
| | | | ok kettenis visa
* hppa & sh use support functions from libgcc. Rather than linking againstderaadt2017-08-273-6/+17
| | | | | the library, extract the specific pieces and link them directly. ok kettenis visa
* Replace heaps of hand-written syscall stubs with a simpler frameworkderaadt2017-08-2739-801/+683
| | | | | which is largely MI. ok visa kettenis