在UNIX下也算写了几个程序,发现居然没写过.so的东西,似乎连dlopen()也没用过,失败。。。这里有篇文字,通俗易懂讲解了dlopen()的使用。。
http://www.ibm.com/developerworks/cn/linux/sdk/dll/index.html再看了看 ld manual,嗯,自己还是很不熟悉 binutils 啊,多多努力学习。列出 ld 中常用的一些参数:
-b input-format
--format=input-format
-e entry
--entry=entry
-E
--export-dynamic
-larchive
--library=archive
-Lsearchdir
--library-path=searchdir
-r
--relocateable
-s
--strip-all
-S
--strip-debug
-T commandfile
--script=commandfile
--oformat output-format
-shared
-Bshareable
--wrap symbol
评论