* RE: Gcc longcall option
@ 2003-07-25 16:14 Diaconescu Bogdan-BDIACON1
0 siblings, 0 replies; 4+ messages in thread
From: Diaconescu Bogdan-BDIACON1 @ 2003-07-25 16:14 UTC (permalink / raw)
To: Franz Sirl; +Cc: linuxppc-dev
Thanks,
I'll try gcc-3.3 version whith the pragm you said.
Bogdan
-----Original Message-----
From: Franz Sirl [mailto:Franz.Sirl-ppc@lauterbach.com]
Sent: Thursday, July 24, 2003 2:11 PM
To: Diaconescu Bogdan-BDIACON1
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Gcc longcall option
At 17:34 22.07.2003, Diaconescu Bogdan-BDIACON1 wrote:
>Hi guys,
>
>I have a question not strictly related to kernel but more related to
>gcc and it's options.
>
>I try to create a big exe image (around 800M with symbolics) using
>gcc-2.95.x and I run into the problems of relative branch addressing
>which has only 24 bits for PPC. I know if I use some __atribute__
>((longcall)) for function prototypes the addressing is done through LR
>so it's changed to indirect branch. I was looking for options like
>-mlongcall or -mlong-calls but it seems they don't exist for PPC.
>
>Now the question: do you know a distribution in which gcc is having
>such options or do you know another way to get the link done with the
>big exe image I have?
Starting with gcc-3.3 there is "#pragma longcall (1)", so depending on
where you put this pragma, you can default your project/module/file to
longcalls.
Franz.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gcc longcall option
[not found] <DD38D67B9196D31189EC00508B62563701C4921F@zro01exm01.corp.m ot.com>
@ 2003-07-24 11:11 ` Franz Sirl
0 siblings, 0 replies; 4+ messages in thread
From: Franz Sirl @ 2003-07-24 11:11 UTC (permalink / raw)
To: Diaconescu Bogdan-BDIACON1; +Cc: linuxppc-dev
At 17:34 22.07.2003, Diaconescu Bogdan-BDIACON1 wrote:
>Hi guys,
>
>I have a question not strictly related to kernel but more related to
>gcc and it's options.
>
>I try to create a big exe image (around 800M with symbolics) using
>gcc-2.95.x and I run into the problems of relative branch addressing
>which has only 24 bits for PPC. I know if I use some __atribute__
>((longcall)) for function prototypes the addressing is done through LR
>so it's changed to indirect branch. I was looking for options like
>-mlongcall or -mlong-calls but it seems they don't exist for PPC.
>
>Now the question: do you know a distribution in which gcc is having
>such options or do you know another way to get the link done with the
>big exe image I have?
Starting with gcc-3.3 there is "#pragma longcall (1)", so depending on
where you put this pragma, you can default your project/module/file to
longcalls.
Franz.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gcc longcall option
2003-07-22 15:34 Diaconescu Bogdan-BDIACON1
@ 2003-07-24 10:42 ` Michel Dänzer
0 siblings, 0 replies; 4+ messages in thread
From: Michel Dänzer @ 2003-07-24 10:42 UTC (permalink / raw)
To: Diaconescu Bogdan-BDIACON1; +Cc: linuxppc-dev
On Tue, 2003-07-22 at 17:34, Diaconescu Bogdan-BDIACON1 wrote:
>
> I have a question not strictly related to kernel but more related to
> gcc and it's options.
>
> I try to create a big exe image (around 800M with symbolics) using
> gcc-2.95.x and I run into the problems of relative branch addressing
> which has only 24 bits for PPC. I know if I use some __atribute__
> ((longcall)) for function prototypes the addressing is done through LR
> so it's changed to indirect branch. I was looking for options like
> -mlongcall or -mlong-calls but it seems they don't exist for PPC.
>
> Now the question: do you know a distribution in which gcc is having
> such options or do you know another way to get the link done with the
> big exe image I have?
I'm not a gcc expert, but have you tried -fPIC and friends?
--
Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Gcc longcall option
@ 2003-07-22 15:34 Diaconescu Bogdan-BDIACON1
2003-07-24 10:42 ` Michel Dänzer
0 siblings, 1 reply; 4+ messages in thread
From: Diaconescu Bogdan-BDIACON1 @ 2003-07-22 15:34 UTC (permalink / raw)
To: linuxppc-dev
Hi guys,
I have a question not strictly related to kernel but more related to
gcc and it's options.
I try to create a big exe image (around 800M with symbolics) using
gcc-2.95.x and I run into the problems of relative branch addressing
which has only 24 bits for PPC. I know if I use some __atribute__
((longcall)) for function prototypes the addressing is done through LR
so it's changed to indirect branch. I was looking for options like
-mlongcall or -mlong-calls but it seems they don't exist for PPC.
Now the question: do you know a distribution in which gcc is having
such options or do you know another way to get the link done with the
big exe image I have?
Regards,
Bogdan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-25 16:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-25 16:14 Gcc longcall option Diaconescu Bogdan-BDIACON1
[not found] <DD38D67B9196D31189EC00508B62563701C4921F@zro01exm01.corp.m ot.com>
2003-07-24 11:11 ` Franz Sirl
-- strict thread matches above, loose matches on Subject: below --
2003-07-22 15:34 Diaconescu Bogdan-BDIACON1
2003-07-24 10:42 ` Michel Dänzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.