* [U-Boot] ppc -Os and _restgpr_##_x errors
@ 2011-11-10 4:10 Mike Frysinger
2011-11-10 5:32 ` Wolfgang Denk
2011-11-10 19:47 ` McClintock Matthew-B29882
0 siblings, 2 replies; 11+ messages in thread
From: Mike Frysinger @ 2011-11-10 4:10 UTC (permalink / raw)
To: u-boot
am i the only one seeing errors like:
board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
board/esd/cpciiser4/cpciiser4.c:139: undefined reference to `_restgpr_26_x'
i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from Linux
to fix this ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111109/60dfe963/attachment.pgp
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-10 4:10 [U-Boot] ppc -Os and _restgpr_##_x errors Mike Frysinger
@ 2011-11-10 5:32 ` Wolfgang Denk
2011-11-10 17:05 ` Mike Frysinger
2011-11-10 19:47 ` McClintock Matthew-B29882
1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2011-11-10 5:32 UTC (permalink / raw)
To: u-boot
Dear Mike Frysinger,
In message <201111092310.56181.vapier@gentoo.org> you wrote:
>
> am i the only one seeing errors like:
> board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
> board/esd/cpciiser4/cpciiser4.c:139: undefined reference to `_restgpr_26_x'
>
> i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from Linux
> to fix this ?
No, we should not. You should switch to a compiler version where this
problem has been fixed. See second entry at
http://www.denx.de/wiki/U-Boot/GccBugsAndIssues
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He is truly wise who gains wisdom from another's mishap.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
[not found] <4EBBF18F.2070708@embedded-sol.com>
@ 2011-11-10 16:00 ` Felix Radensky
2011-11-10 18:28 ` Wolfgang Denk
0 siblings, 1 reply; 11+ messages in thread
From: Felix Radensky @ 2011-11-10 16:00 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
On 11/10/2011 05:45 PM, Felix Radensky wrote:
> No, we should not. You should switch to a compiler version where this
> problem has been fixed. See second entry at
> http://www.denx.de/wiki/U-Boot/GccBugsAndIssues
>
It is not clear from the link above which GCC version solves the problem.
Is it 4.5.3 ?
Thanks.
Felix.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-10 5:32 ` Wolfgang Denk
@ 2011-11-10 17:05 ` Mike Frysinger
0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2011-11-10 17:05 UTC (permalink / raw)
To: u-boot
On Thursday 10 November 2011 00:32:45 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > am i the only one seeing errors like:
> > board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
> > board/esd/cpciiser4/cpciiser4.c:139: undefined reference to
> > `_restgpr_26_x'
> >
> > i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from
> > Linux to fix this ?
>
> No, we should not. You should switch to a compiler version where this
> problem has been fixed. See second entry at
> http://www.denx.de/wiki/U-Boot/GccBugsAndIssues
thanks ... upgrading to gcc-4.6.2 from gcc-4.5.3 fixed things. when i read the
gcc thread, it sounded like it wasn't optional behavior, but i guess they
changed that with gcc-4.6.x.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111110/e27a0ac6/attachment.pgp
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-10 16:00 ` Felix Radensky
@ 2011-11-10 18:28 ` Wolfgang Denk
0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2011-11-10 18:28 UTC (permalink / raw)
To: u-boot
Dear Felix Radensky,
In message <4EBBF502.40702@embedded-sol.com> you wrote:
>
> On 11/10/2011 05:45 PM, Felix Radensky wrote:
> > No, we should not. You should switch to a compiler version where this
> > problem has been fixed. See second entry at
> > http://www.denx.de/wiki/U-Boot/GccBugsAndIssues
>
> It is not clear from the link above which GCC version solves the problem.
> Is it 4.5.3 ?
I don't know when exactly the fixes were added. None of the 4.5.x
versions worked for me, and I'm not even sure about 4.6.0. It is
fixed in the 4.6.1 that comes with Yocto 1.1 or ELDK 5.1.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In the realm of scientific observation, luck is granted only to those
who are prepared. - Louis Pasteur
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-10 4:10 [U-Boot] ppc -Os and _restgpr_##_x errors Mike Frysinger
2011-11-10 5:32 ` Wolfgang Denk
@ 2011-11-10 19:47 ` McClintock Matthew-B29882
2011-11-11 20:12 ` Scott Wood
1 sibling, 1 reply; 11+ messages in thread
From: McClintock Matthew-B29882 @ 2011-11-10 19:47 UTC (permalink / raw)
To: u-boot
On Wed, Nov 9, 2011 at 10:10 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> am i the only one seeing errors like:
> board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
> board/esd/cpciiser4/cpciiser4.c:139: undefined reference to `_restgpr_26_x'
>
> i'm using a gcc-4.5.x toolchain here. ?should we import crtsavres.S from Linux
> to fix this ?
Some projects fix this manually. For example kexec adds this:
https://github.com/horms/kexec-tools/blob/master/purgatory/arch/ppc/misc.S
Not that this is a good approach....
-M
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-10 19:47 ` McClintock Matthew-B29882
@ 2011-11-11 20:12 ` Scott Wood
2011-11-14 20:41 ` McClintock Matthew-B29882
2011-11-14 21:58 ` Wolfgang Denk
0 siblings, 2 replies; 11+ messages in thread
From: Scott Wood @ 2011-11-11 20:12 UTC (permalink / raw)
To: u-boot
On 11/10/2011 01:47 PM, McClintock Matthew-B29882 wrote:
> On Wed, Nov 9, 2011 at 10:10 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> am i the only one seeing errors like:
>> board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
>> board/esd/cpciiser4/cpciiser4.c:139: undefined reference to `_restgpr_26_x'
>>
>> i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from Linux
>> to fix this ?
>
> Some projects fix this manually. For example kexec adds this:
>
> https://github.com/horms/kexec-tools/blob/master/purgatory/arch/ppc/misc.S
>
> Not that this is a good approach....
Shouldn't libgcc provide this?
-Scott
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-11 20:12 ` Scott Wood
@ 2011-11-14 20:41 ` McClintock Matthew-B29882
2011-11-14 21:42 ` Marek Vasut
2011-11-14 21:58 ` Wolfgang Denk
1 sibling, 1 reply; 11+ messages in thread
From: McClintock Matthew-B29882 @ 2011-11-14 20:41 UTC (permalink / raw)
To: u-boot
On Fri, Nov 11, 2011 at 2:12 PM, Scott Wood <scottwood@freescale.com> wrote:
> Shouldn't libgcc provide this?
It's not being provided by certain toolchains...
-M
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-14 20:41 ` McClintock Matthew-B29882
@ 2011-11-14 21:42 ` Marek Vasut
2011-11-14 21:52 ` McClintock Matthew-B29882
0 siblings, 1 reply; 11+ messages in thread
From: Marek Vasut @ 2011-11-14 21:42 UTC (permalink / raw)
To: u-boot
> On Fri, Nov 11, 2011 at 2:12 PM, Scott Wood <scottwood@freescale.com> wrote:
> > Shouldn't libgcc provide this?
>
> It's not being provided by certain toolchains...
>
> -M
Well there is a reason why one should stick to ELDK ;-)
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-14 21:42 ` Marek Vasut
@ 2011-11-14 21:52 ` McClintock Matthew-B29882
0 siblings, 0 replies; 11+ messages in thread
From: McClintock Matthew-B29882 @ 2011-11-14 21:52 UTC (permalink / raw)
To: u-boot
On Mon, Nov 14, 2011 at 3:42 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> Well there is a reason why one should stick to ELDK ;-)
It depends on what version of GCC you want to use as well.
-M
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] ppc -Os and _restgpr_##_x errors
2011-11-11 20:12 ` Scott Wood
2011-11-14 20:41 ` McClintock Matthew-B29882
@ 2011-11-14 21:58 ` Wolfgang Denk
1 sibling, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2011-11-14 21:58 UTC (permalink / raw)
To: u-boot
Dear Scott Wood,
In message <4EBD81A2.7000402@freescale.com> you wrote:
>
> >> i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from Linux
> >> to fix this ?
...
> > Not that this is a good approach....
>
> Shouldn't libgcc provide this?
If GCC generates such instruction sequences, it definitely should
provide support for these in libgcc. Even better if it doesn't
generate such code at all.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A woman should have compassion.
-- Kirk, "Catspaw", stardate 3018.2
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-11-14 21:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 4:10 [U-Boot] ppc -Os and _restgpr_##_x errors Mike Frysinger
2011-11-10 5:32 ` Wolfgang Denk
2011-11-10 17:05 ` Mike Frysinger
2011-11-10 19:47 ` McClintock Matthew-B29882
2011-11-11 20:12 ` Scott Wood
2011-11-14 20:41 ` McClintock Matthew-B29882
2011-11-14 21:42 ` Marek Vasut
2011-11-14 21:52 ` McClintock Matthew-B29882
2011-11-14 21:58 ` Wolfgang Denk
[not found] <4EBBF18F.2070708@embedded-sol.com>
2011-11-10 16:00 ` Felix Radensky
2011-11-10 18:28 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox