Age | Commit message (Collapse) | Author |
|
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
|
|
|
|
at offset -1, the code that was here was very odd, the corrected code
was basically copied from the libsa version.
|
|
of relying on magic variable names, reqire that the library provide the
_init/_fini functions so that the linker will find them and create
the DT_INIT and DT_FINI sections of the .dynamic section of the shared library.
With the shared library providing the DT_INIT function pointer, it is
now possible to just check the init field and call it if defined, if not
defined no constructors are needed. This cleans up the code in ld.so greatly.
|
|
that appropriate constructors in each library are called.
|
|
build with ${CC} -shared like the rest of shared libraries
do now, instead of using ${LD}.
Other files:
make output more useful so that it is possible to tell if
a constructor/destructor is running the correct number of times.
|
|
it seems that the instruction cache will not get properly initialized
or a problem exists with mmaping code and being able to execute it.
This workaround is excessive in that it flushes the cache for the
entire mmaped library. This slows down program startup, but seems
to eliminate the problem.
|
|
but is more correct.
|
|
|
|
is going on
|
|
respect the LD_TRACE_LOADED_OBJECTS environment variable,
print loaded libraries and exit, do not execute program.
|
|
|
|
instead of #if 0, make them potentially useful -> LD_PRINTF_DEBUG
Deal with _dl_suid_ok correctly, this is not something that should
be hardcoded. - pointed out a few weeks ago.
|
|
|
|
|
|
|
|
design changes required by egcs.
added support for ldconfig/ld.so.hints
changes to low level relocation code, required by egcs pic
code generation that moved global variable loads to before the
self relocation was performed. Only powerpc supported, mips code not updated.
Code cleaned up somewhat reasonably.
This code needs to be reviewed closely for significant problems
such as correctness and security.
|
|
code and is fully BSD copyrighted.
This initial import contains a mostly working mips and partially working
powerpc version. No support for ld.so.hints or system run path exists.
|