|
|
|
|
|
|
|
[Original]
[Print]
[Top]
|
现在发现当glibc通过ld.so加载动态库是增加了hwcap功能,会搜索一些儿无用的目录,这样会浪费不少时间,我想去除hwcap功能。google了一下搜到相关的maillist如下。
> open("v5l/fast-mult/half/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
> such file or directory) open("v5l/fast-mult/libpthread.so.0",
> O_RDONLY) = -1 ENOENT (No such file
or
This is done by the hwcap mechanism in ld.so: the idea is to allow a single filesystem to be used by multiple CPU types, with the most optimal libraries being automatically selected. However, the current implementation is a little bit mixed up: as you've observed, it tends to result in a lot of unnecessary open() calls. In this case, since
ARMv5 includes both UMULL and LDRH as standard, it is clearly useless to search for "fast-mult" and "half" within the v5l subdirectory. (With hindsight, it was also rather useless to encode the endianness in the name of the architecture directory, since sharing a filesystem between different endiannesses is unlikely ever to work.)
If this stuff is causing you a problem, you can turn it off by patching dl-procinfo.h in glibc.
请问大家,除了打patch还有没有其他的方法解决此问题吗?
|
|
|
[Original]
[Print]
[Top]
|
|
« Previous thread
内存释放问题 |
C/C++编程版
第21页 |
Next thread »
snprintf是否需要清空? |
|