#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
298897 |
|
01-May-2016 |
pfg |
libexec: minor spelling fixes in comments.
No functional change.
|
#
298292 |
|
19-Apr-2016 |
pfg |
rtld-elf: use our roundup2() macro when param.h is available.
|
#
290222 |
|
31-Oct-2015 |
imp |
Move all the paths into a new path.h to centralize them.
|
#
264346 |
|
11-Apr-2014 |
alc |
Before calling mmap() on a shared library's text and data sections, rtld first calls mmap() with the arguments PROT_NONE and MAP_ANON to reserve a single, contiguous range of virtual addresses for the entire shared library. Later, rtld calls mmap() with the the shared library's file descriptor and the argument MAP_FIXED to place the text and data sections within the reserved range. The rationale for mapping shared libraries in this way is explained in the commit message for Revision 190885. However, this approach does have an unintended, negative consequence. Since the first call to mmap() specifies MAP_ANON and not the shared library's file descriptor, the kernel has no idea what alignment the vm object backing the file prefers. As a result, the reserved range's alignment is unlikely to be the same as the vm object's, and so mapping with superpages becomes impossible. To address this problem, this revision adds the argument MAP_ALIGNED_SUPER to the first call to mmap() if the text section is larger than the smallest superpage size.
To determine if the text section is larger than the smallest superpage size, rtld must always fetch the page size information. As a result, the private code for fetching the base page size in rtld's builtin malloc is redundant. Eliminate it. Requested by: kib
Tested by: zbb (on arm) Reviewed by: kib (an earlier version) Discussed with: jhb
|
#
262136 |
|
17-Feb-2014 |
brueffer |
Remove the 3rd clause ("advertising clause") of the BSD license as permitted by the University of Berkeley on July 22, 1999.
Reviewed by: imp MFC after: 1 week
|
#
233306 |
|
22-Mar-2012 |
kib |
Remove the fragments which are not needed on FreeBSD. The caltech malloc hardly would ever be updated.
Reviewed by: bde, kan MFC after: 2 weeks
|
#
225152 |
|
24-Aug-2011 |
kib |
Rtld links with the specially built pic static libc library to get some C runtime services, like printf(). Unfortunately, the multithread-safeness measures in the libc do not work in rtld environment.
Rip the kernel printf() implementation and use it in the rtld instead of libc version. This printf does not require any shared global data and thus is mt-safe. Systematically use rtld_printf() and related functions, remove the calls to err(3).
Note that stdio is still pulled from libc due to libmap implementaion using fopen(). This is safe but unoptimal, and can be changed later.
Reported and tested by: pgj Diagnosed and reviewed by: kan (previous version) Approved by: re (bz)
|
#
211413 |
|
17-Aug-2010 |
kib |
Use the newly provided aux vectors to get pagesize and osreldate information. Use local version of getpagesize(), rtld_getpagesize() in private allocator. Override the __getosreldate() previously fetched from libc_pic.a with local version that uses aux value if present. Note that __getosreldate() is used by rtld indirectly, by mmap(2) libc wrapper.
To be able to utilize aux, split digest_dynamic() for use by init_rtld() into two parts, where the first one does not call malloc(), and the second part uses it. init_rtld() is able to initialize global variables before digest_dynamic2() calls. In particular, pagesize and osreldate are set up from the aux values.
Now, rtld avoids (two) sysctl calls in startup.
Tested by: marius (sparc64) MFC after: 1 month
|
#
154248 |
|
12-Jan-2006 |
jasone |
In preparation for a new malloc implementation:
* Add posix_memalign().
* Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf).
* Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock.
Approved by: phk, markm (mentor)
|
#
119255 |
|
22-Aug-2003 |
imp |
Very minor style nit: sort include files alphabetically.
|
#
114625 |
|
03-May-2003 |
obrien |
Fix signed/unsigned comparison warnings.
|
#
110803 |
|
13-Feb-2003 |
kan |
Add missing include files I forgot about in previous commit.
|
#
110801 |
|
13-Feb-2003 |
kan |
Remove /usr/lib/elf from a default search path. Move xprintf to malloc.c, it is only used there. Make static.
Submitted by: phantom
|
#
102235 |
|
21-Aug-2002 |
imp |
Include stddef.h for NULL definition, rather than rolling our own here.
Reviewed by: jdp
|
#
89732 |
|
24-Jan-2002 |
dwmalone |
Change brk's prototype from char *brk(const char *) to int brk(const void *) and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).
This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations.
Also remove local declarations of sbrk and unnecessary casting.
PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
|
#
69793 |
|
09-Dec-2000 |
obrien |
Add `_PATH_DEVZERO'. Use _PATH_* where where possible.
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
38816 |
|
04-Sep-1998 |
dfr |
Add alpha support.
Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me) Obtained from: Probably NetBSD
|
#
34193 |
|
07-Mar-1998 |
jdp |
This commit was generated by cvs2svn to compensate for changes in r34192, which included commits to RCS files with non-trunk default branches.
|
#
34192 |
|
07-Mar-1998 |
jdp |
Import the ELF dynamic linker. This is the ElfKit version with quite a few enhancements and bug fixes. There are still some known deficiencies, but it should be adequate to get us started with ELF.
Submitted by: John Polstra <jdp@polstra.com>
|