This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
转发: Call into a function?
- From: "Zhenyu Guo" <guozy03 at mails dot tsinghua dot edu dot cn>
- To: "Gcc" <gcc at gcc dot gnu dot org>,"'James E Wilson'" <wilson at specifixinc dot com>
- Date: Thu, 21 Apr 2005 11:44:26 +0800
- Subject: 转发: Call into a function?
Not really.
Here is my options:
gcc --static test.c -o test
Thx!
-----邮件原件-----
发件人: James E Wilson [mailto:wilson@specifixinc.com]
发送时间: 2005年4月21日 11:32
收件人: Zhenyu Guo
抄送: gcc@gcc.gnu.org
主题: Re: Call into a function?
Zhenyu Guo wrote:
> 0x4000000000000720 <gmon_initializer+48>: [BBB] nop.b 0x0
> 0x4000000000000721 <gmon_initializer+49>: (p08)
> br.cond.dpnt.few 0x4000000000000740 <gmon_initializer+80>
> 0x4000000000000722 <gmon_initializer+50>: br.call.sptk.many
> b0=0x4000000000000720 <gmon_initializer+48>;;
Most likely this means that you are looking at unlinked (i.e.
unrelocated) code. Did you run objdump on a .o file? In this case, the
actual call address is in the relocation. Try objdump -r and you will
see a relocation for the address 0x4000000000000722 that contains the
actual call target. Also try objdump -r -d.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com