This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 回复: how to generate 64 bit relocations with gcc 3.3.3
- From: 张?(Zhang Chong) <chongzhangscu at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 31 Mar 2012 13:27:48 +0800
- Subject: Re: 回复: how to generate 64 bit relocations with gcc 3.3.3
- References: <4f765e3c.8639320a.500b.763c@mx.google.com> <mcrmx6x74ns.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
Actually I am not able to run this binary. The Unix-like OS would
report an error when load the module as below:
The module contains 32 bit relocations - invalid types
I dumped all the relocation types in the binary
R_X86_64_PC32
R_X86_64_32S
R_X86_64_64
I suspect R_X86_64_32S is not supported in this os
Regards
ZhangChong
2012/3/31, Ian Lance Taylor <iant@google.com>:
> ""chongzhangscu@gmail.com"" <chongzhangscu@gmail.com> writes:
>
>> I have already generate the x86_64 binary
>> , however, it contains 32bit relocation and is not able to load by a Unix
>> like os which only allowed 64 bit relocation. I built the module with
>> option m64 mcmodel=medium. Is there some option I can use to generate only
>> 64 bit relocation in a x86_64 binary?
>
>
>
>
> **********************************************************************
>
> Please never send e-mail to both gcc-help@gcc.gnu.org and
> gcc@gcc.gnu.org. Please send any followups only to gcc-help. Thanks.
>
> **********************************************************************
>
>
> What precisely happens when you try to run this binary?
>
> When you say that it contains 32-bit relocations, what precisely do you
> mean?
>
> Ian
>