• R/O
  • HTTP
  • SSH
  • HTTPS

List of commits

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

RSS
Rev. Time Author
eb4a096 2004-08-18 18:26:17 Joakim Tjernlund

Clean up the _dl_boot code and make it similar to arm and sh.

ec448a4 2004-08-18 05:00:42 Eric Andersen

Carl SHAW writes:

I finally tracked down the problem with SH4 shared library loading -

in file ldso/ldso/sh/dl-startup.h, the line

#define DL_BOOT(X) static void __attribute_used__ _dl_boot2 (X)

should be

#define DL_BOOT(X) static void* __attribute_used__ _dl_boot2 (X)

otherwise the application code will never be called and _dl_boot will
just return causing a segmentation fault.

Carl

ddca98c 2004-08-17 22:55:49 Joakim Tjernlund

David McCulloug writes:
"There's a bug in the SH asm, it calls into 'C' code without preserving
all the important scratch registers. I have been meaning to double
check the changes as I think more registers need to be saved, then I
was going to send it back to uClibc. From the sound of it this isn't
your problem, but you never know.
Attached is the patch as it stands for the loader on SH."

Glibc appears to do the same.

6d6f3a5 2004-08-17 22:37:54 Joakim Tjernlund

Let ldso decide if it should relocate itselft a second time. This
is needed if ldso should use libcs malloc whenever possible.

Fix RTLD_LAZY propagation to RTLD_NOW relocation when requested by
libdl.

d965f80 2004-08-17 22:09:01 Joakim Tjernlund

Fix make clean rule.

8d15864 2004-08-17 07:55:01 Eric Andersen

Audit pthread.h and exclude prototypes for pthread functions
that are not presently implemented in uClibc's libpthread.
-Erik

ae3f0ac 2004-08-17 07:16:45 Eric Andersen

I will always test before I commit.
I will always test before I commit.
I will always test before I commit.
-Erik

1c0a1a6 2004-08-17 05:35:15 Eric Andersen

Setup __pagesize from inside __uClibc_init(), or else when registering
dtors via atexit(), atexit may need to call realloc with __pagesize
still set to 0. ugh.
-Erik

61972df 2004-08-17 04:22:52 Eric Andersen

Be a bit more prominant about the fact that setuid handling
is not quite there...

a4541d4 2004-08-17 04:21:45 Eric Andersen

The variable used to store pagesize is not the same as the
_dl_pagesize variable in ldso, so avoid aliasing.
-Erik

aa1a5f5 2004-08-17 04:17:37 Eric Andersen

The pagesize variable used when starting up is _not_ the same
as the _dl_pagesize global, so do not alias the global.
-Erik

402649b 2004-08-15 17:01:45 Manuel Novoa III

Update to add missing c++ namespace support.

704b945 2004-08-15 12:59:36 Eric Andersen

Do not fail all lookups when /etc/resolv.conf is missing, as i.e.
checking on 127.0.0.1 is still valid w/o resolv.conf
-Erik

1fba51d 2004-08-15 10:55:02 Manuel Novoa III

Logic was reversed.

e8b9579 2004-08-14 16:23:48 Eric Andersen

req_search returned garbage. This teaches it to behave itself and
return the length and the actual dns packet as received, rather than
making stuff up.
-Erik

64c5a65 2004-08-14 08:39:45 Eric Andersen

Fixup PAGE_SIZE problems
-Erik

9f47eaf 2004-08-13 22:56:25 Joakim Tjernlund

Fix usage_count in ldso/libdl.
Don't' use atexit in libdl.
Make destrutor in libdl actually run and to dlclose all
dlopened libs.
Remove dlclosed libs from the _dl_symbol_tables list.

5e38368 2004-08-13 13:35:03 Manuel Novoa III

Always include the sqrtf wrapper in libm so that we don't need to worry
about conditionally configuring something else for libstdc++.

6ca9cc3 2004-08-11 03:47:06 Manuel Novoa III

Fix mips bug related to 2.6 headers by following glibc's lead. Based on
the comment, newer kernels appended "64" to __NR_pread and __NR_pwrite.

8b950d0 2004-08-11 01:43:12 Manuel Novoa III

Apparently the sigaction code added was broken, as it generated illegal
instruction errors. Disable it for now.

259fd03 2004-08-11 00:25:35 Joakim Tjernlund

Optimze _dl_memset() for PowerPC.
Other arches may also benefit from this iff it can do
unaligned stores.

a53036d 2004-08-11 00:18:18 Joakim Tjernlund

Forgot _dl_memcpy in previous checkin.

6f60320 2004-08-11 00:12:48 Manuel Novoa III

On Monday 02 August 2004 08:44 am, Mike Frysinger wrote:
> the gethostbyname_r() call itself is not segfaulting, but the memory
> returned in the h_aliases array seems to be wrong ...

was playing around with the source today and eventually the obvious answer hit
me ... while read_etc_hosts_r() generatings an array of strings fo h_aliases
and populates it, the dns path does not :)

find attached a patch that'll actually generate the h_aliases list in the
normal dns code path ... i used the etc_hosts_r() code as a template for some
of it ...

note that this is just a simple fix ... it fills the alias list with just the
hostname gethostbyname_r was passed ... the proper fix i think would be to
parse the dns packet down in __dns_lookup() and pass the info back via the
resolv_answer struct ...
but this fix is better than the current state of things ... that is, h_aliases
currently is never initailized in the dns code path :)

7e8a7b3 2004-08-11 00:11:51 Manuel Novoa III

At solar's request...

635d456 2004-08-11 00:06:30 Joakim Tjernlund

_dl_strlen,_dl_strcat,_dl_strcpy,_dl_strcmp,_dl_strncmp,
_dl_strchr,_dl_strrchr,_dl_strstr,_dl_memcmp:
Optimize for archs which can do pre increment/decrement and load/store
in one instruction.

1939e0e 2004-08-10 23:44:34 Joakim Tjernlund

_dl_get_last_path_component:
handle "" strings and optimze it.

_dl_simple_ltoa,_dl_simple_ltoahex:
Optimize for archs which can do pre increment/decrement and load/store
in one instruction.

856860e 2004-08-10 19:04:35 Joakim Tjernlund

Revmoved _dl_brkp and _dl_envp. They are not needed anymore.

7c2d617 2004-08-10 18:50:07 Joakim Tjernlund

Mike Frysinger writes:
i was sticking some libraries in non-standard (i.e. not-hardcoded) paths and
then updating ld.so.conf accordingly ... oddly though, i couldnt get binaries
that linked against those libraries to run ... `ldconfig -v` showed the
required libraries being detected/cached, so something seemed wrong ...

turns out the libraries were being tagged as LIB_ELF_LIBC0 in the cache and
the loader currently only accepts LIB_ELF_LIBC{5,6} ... since readsoname.c in
ldconfig defines needed_tab with the mapping 'libc.so.0' -> LIB_ELF_LIBC0 it
seems like the loader should accept this type too

find attached a small patch which adds LIB_ELF_LIBC0 along side
LIB_ELF_LIBC{5,6} as an accepted lib type in the loader when dealing with the
ld.so.cache file

9d4b81d 2004-08-10 18:23:57 Joakim Tjernlund

Mike Frysinger writes:
in libdl, the XXFLAGS is set incorrectly if DODEBUG=y ... it has 'I.' added to
it instead of '-I.' ... this of course pisses of gcc :)

find attached a patch that cleans up the XXFLAGS setting so as to minimize
this kind of thing ... when asked, mjn3 said it was a kosher idea ;)

and later writes:
hmm it seems ldso also utilizes USE_CACHE in the code (but LIBRARY_CACHE never
propogates down to the Makefiles)
so the fix is to add $(LIBRARY_CACHE) while setting $(XXFLAGS)


Applied with minor fixes and also fixed up ldso/Makefile to match
libdl/Makefile.

4e65142 2004-08-10 17:58:12 Joakim Tjernlund

Mike Frysinger writes:
while playing around with Gentoo on uClibc, i hit some troubles with ldconfig

first, i found that it kept trying to read 'etc/ld.so.conf' ... it didnt want
to read '/etc/ld.so.conf' ... looking at the source, the default conf file is
defined as UCLIBC_RUNTIME_PREFIX "etc/ld.so.conf" ... all fine and dandy, but
the utils/Makefile builds the .c files with this:
-DUCLIBC_RUNTIME_PREFIX=$(R_PREFIX)
i couldnt find where R_PREFIX was defined/used anywhere else, but i did find
that every other time UCLIBC_RUNTIME_PREFIX was defined, it was set like:
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
changing the utils/Makefile to be like this fixed things for me

next up, i found that i wasnt getting an /etc/ld.so.cache file when i ran
`ldconfig` ... looking at the code, USE_CACHE needs to be defined ...
Rules.mak has a line that reads LIBRARY_CACHE:=#-DUSE_CACHE by default, but
then LIBRARY_CACHE is never used anywhere :)
so the fix here is to add $(LIBRARY_CACHE) to the lines in utils/Makefile
where the .c files are compiled

perhaps a suggestion then ? in my mind it makes sense to utilize a cache file
when running uclibc native but perhaps not while cross compiling ... so
perhaps add LIBRARY_CACHE:=-DUSE_CACHE to the section in Rules.mak where LDSO
is set to the uclibc linker (i.e. native) but set LIBRARY_CACHE:=#-DUSE_CACHE
where LDSO is the $(SYSTEM_LDSO) (i.e. cross compiling)

Applied with minor fixes.