March 16th Friday (三月 十六日 金曜日)
来源:互联网 发布:mac怎么玩lol国服 编辑:程序博客网 时间:2024/04/19 06:40
Today I wrote a function in assembly language. I wrote a test program in C language to call that
function. I used "ld -dynamic-linker /lib/ld-linux.so.2 ...". I got a warning report. After running
the binary program I got a "segment fault" message. For this quesion I tried other ways to link these
two program together. Finally, I found I can used "gcc" to make a correct binary program. Why I can
use a linker tool to make?
After trial again and again, and many thought, I found the answer. I used "gcc -S ..." to produce
a assembly program from the original C program. From the assembly source, I found "gcc" made a "main"
label for main() funciton in the C source file. But the "ld", a linker tool, must consided "_start"
label as a entry point. In other words, it can not find out a correct entry point in that there is not a "_start" label in main program. So, although I loaded the ".so" library there is still a run error.
今日白さんの彼の卓球試合があります。
- March 16th Friday (三月 十六日 金曜日)
- 2009 March 16th Monday (三月 十六日 月曜日)
- March 23th Friday (三月 二十三日 金曜日)
- 2008 March 7th Friday (三月 七日 金曜日)
- 2009 March 6th Friday (三月 六日 金曜日)
- 2009 March 13th Friday (三月 十三日 金曜日)
- 2009 March 20th Friday (三月 二十日 金曜日)
- 2009 March 27th Friday (三月 二十七日 金曜日)
- March 9th Friday (三月 八日 木曜日)
- March 26th Monday (三月 二十六日 月曜日)
- 2008 March 26th Wednesday (三月 二十六日 水曜日)
- 2009 March 26th Thursday (三月 二十六日 木曜日)
- Februray 16th Friday (一月 十六日 金曜日)
- 2008 May 16th Friday (五月 十六日 金曜日)
- 2008 March 21th Friday (三月 二十一日 金曜日)
- March 2nd Friday (三月 二日 金曜日)
- October 26th Friday (十月 二十六日 金曜日)
- 2008 September 26th Friday (九月 二十六日 金曜日)
- March 13th Tuesday (三月 十三日 火曜日)
- 异地开发的问题讨论
- March 14th Wednesday (三月 十四日 水曜日)
- March 15th Thursday (三月 十五日 木曜日)
- 如何实现公司软件产品保密
- March 16th Friday (三月 十六日 金曜日)
- March 19th Monday (三月 十九日 月曜日)
- March 20th Tuesday (三月 二十日 火曜日)
- March 21th Wednesday (三月 二十一日 水曜日)
- 项目团队管理问题
- March 22th Thursday (三月 二十二日 木曜日)
- March 23th Friday (三月 二十三日 金曜日)
- March 26th Monday (三月 二十六日 月曜日)
- tomcat配置技巧