- 02 7月, 2011 1 次提交
-
-
由 Rich Felker 提交于
-
- 01 7月, 2011 7 次提交
-
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
STREAMS are utterly useless as far as I can tell, but some software was apparently broken by the presence of stropts.h but lack of macros it's supposed to define...
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
this should not be necessary - the invalid bit patterns cannot be created except through type punning. however, some broken gnu software is passing them to printf and triggering dangerous stack-smashing, so let's catch them anyway...
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
hopefully this resolves the rest of the issues with hideously nonportable hacks in programs that use gnulib.
-
- 30 6月, 2011 5 次提交
-
-
由 Rich Felker 提交于
this is a really ugly and backwards function, but its presence will prevent lots of broken gnulib software from trying to define its own version of fpurge and thereby failing to build or worse.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
these interfaces are required to be thread-safe even though they are not state-free. the random number sequence is shared across all threads.
-
- 29 6月, 2011 7 次提交
-
-
由 Rich Felker 提交于
per POSIX: The mprotect() function shall change the access protections to be that specified by prot for those whole pages containing any part of the address space of the process starting at address addr and continuing for len bytes. on the other hand, linux mprotect fails with EINVAL if the base address and/or length is not page-aligned, so we have to align them before making the syscall.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
this is mostly useless for shared libs (though it could help for prelink-like purposes); the intended use case is for adding support for calling the dynamic linker directly to run a program, as in: ./libc.so ./a.out foo this usage is not yet supported.
-
由 Rich Felker 提交于
prior to this change, copy relocations for initialized pointer variables would not reflect the relocated contents of the pointer.
-
- 28 6月, 2011 3 次提交
-
-
由 Rich Felker 提交于
some cruft was left and DESTDIR was not being used correctly.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
the path for the dynamic linker is now configurable, and failure to install the symlink for it will not stop the build.
-
- 27 6月, 2011 13 次提交
-
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
deps can be null if a library has no dependencies (such as libc itself)
-
由 Rich Felker 提交于
basically we temporarily make the library and all its dependencies part of the global namespace but only for the duration of performing relocations, then return them to their former state.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
some of the code is not yet used, and is in preparation for dlopen which needs to be able to handle failure loading libraries without terminating the program.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
- 26 6月, 2011 4 次提交
-
-
由 Rich Felker 提交于
1. search was wrongly beginning with lib itself rather than dso head 2. inconsistent resolution of function pointers for functions in plt
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
previously, a potentially-indeterminate value from we_offs was being used, resulting in wrong we_wordc and subsequent crashes in the caller.
-
由 Rich Felker 提交于
-