- 07 2月, 2012 2 次提交
-
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
this is mainly in hopes of supporting c++ (not yet possible for other reasons) but will also help applications/libraries which use (and more often, abuse) the gcc __attribute__((__constructor__)) feature in "C" code. x86_64 and arm versions of the new startup asm are untested and may have minor problems.
-
- 03 2月, 2012 1 次提交
-
-
由 Rich Felker 提交于
these don't work (or do anything at all) but at least make it possible to static link programs that insist on "having" dynamic loading support...as long as they don't actually need to use it. adding real support for dlopen/dlsym with static linking is going to be significantly more difficult...
-
- 24 1月, 2012 1 次提交
-
-
由 Rich Felker 提交于
this issue affected programs which use global variables exported by non-libc libraries.
-
- 23 1月, 2012 2 次提交
-
-
由 Rich Felker 提交于
even with this change, PIE will not work yet due to deficiencies in the crt1.o startup code.
-
由 Rich Felker 提交于
-
- 21 1月, 2012 1 次提交
-
-
由 Rich Felker 提交于
this fixes an issue using gold instead of gnu ld for linking. it also should eliminate the need of the startup code to even load/pass the got address to the dynamic linker. based on patch submitted by sh4rm4 with minor cosmetic changes. further cleanup will follow.
-
- 17 1月, 2012 1 次提交
-
-
由 Rich Felker 提交于
this only affects non-ascii symbol names, which are probably not in use anyway..
-
- 19 9月, 2011 1 次提交
-
-
由 Rich Felker 提交于
it does not work, but some configure scripts will falsely detect support then generate programs that crash when they call dlopen.
-
- 16 8月, 2011 4 次提交
-
-
由 Rich Felker 提交于
this does not change behavior, but the idea is to avoid letting other code build up between these two points, whereby the environment variables might get used before security it checked.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
the asm wrapper is needed to get the return address without compiler-specific extensions.
-
由 Rich Felker 提交于
-
- 25 7月, 2011 1 次提交
-
-
由 Rich Felker 提交于
-
- 24 7月, 2011 3 次提交
-
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
instead of creating temp dso objects on the stack and moving them to the heap if dlopen/dlsym are used, use static objects to begin with, and just donate them to malloc if we no longer need them.
-
- 02 7月, 2011 1 次提交
-
-
由 Rich Felker 提交于
-
- 01 7月, 2011 1 次提交
-
-
由 Rich Felker 提交于
-
- 29 6月, 2011 4 次提交
-
-
由 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.
-
- 27 6月, 2011 7 次提交
-
-
由 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 提交于
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.
-
- 26 6月, 2011 3 次提交
-
-
由 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 提交于
-
- 25 6月, 2011 3 次提交
-
-
由 Rich Felker 提交于
first, use $LD_LIBRARY_PATH unless suid. if that fails, read path from /etc/ld-musl-$ARCH.path and fallback to a builtin default.
-
由 Rich Felker 提交于
eventually (once dlopen exists) this behavior will be conditional on dlopen/dlsym not being reachable.
-
由 Rich Felker 提交于
-
- 24 6月, 2011 1 次提交
-
-
由 Rich Felker 提交于
the use of this test will be much stricter than glibc and other typical implementations; the environment will not be honored whatsoever unless the program is confirmed non-suid/sgid by the aux vector the kernel passed in. no fallback to slow syscall-based checking is used if the kernel fails to provide the information; we simply assume the worst (suid) in this case and refuse to honor environment.
-
- 19 6月, 2011 2 次提交
-
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
some notes: - library search path is hard coded - x86_64 code is untested and may not work - dlopen/dlsym is not yet implemented - relocations in read-only memory won't work
-