[uClibc-cvs] cvs commit to uClibc/ldso/ldso by andersen
andersen at codepoet.org
andersen at codepoet.org
Tue Nov 19 05:05:05 UTC 2002
Repository: uClibc/ldso/ldso
who: andersen
time: Mon Nov 18 22:05:04 MST 2002
Log Message:
Stefan Allius writes:
I fixed two little bugs in ldso.c:
- For LDD support we test the old environment variable
LD_TRACE_LOADED_OBJECTS.
- Before we init the GOT table of the dynamic loader
we have to check, if we have a DT_PLTGOT entry.
If DT_PLTGOT was zero we patch somthing in the header
of the dynamic loader. This was the cause, why we have to
enable the DO_MPROTECT_HACKS option for all targets, to avoid
segment faults.
In readelflib1.c I added a warning, if we try to load a shared library, which
wasn't compiled with -fPIC or -fpic. So if we disable the DO_MPROTECT_HACKS
option we are sure, that we don't waste memory by shared libraries which
aren't able to share their text segment. I think this is a helpful option on
little embedded systems.
Files:
changed: ldso.c readelflib1.c
More information about the uClibc-cvs
mailing list