Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Link script for GCC 3.2?   Message List  
Reply | Forward Message #12845 of 15019 |
Hi All...

Is anyone using a DevKitAdv based on GCC 3.2 with the lnkscript and
crt0.S from devrs.com? Or the gba.x and crt0.S from Dark Fader's
MyLib? Here's the relevant background information:

I have a nearly completed game written in C++ using DevKitAdv (based
on GCC 3.0.2). Its working pretty well, but I'd really like to
upgrade to GCC 3.2 because of the better C++ code it produces. This
group pointed me to Thomas Maniero's DevKitAdv/GCC3.2 binaries at
http://digilander.libero.it/funnybits/devkitadv.html. These binaries
were a great help, but I'm still having some problems.

I'm using gba.x and crt0.S that came with Dark Fader's MyLib.
They're based on the crtls.zip from devrs.com (which I've also tried,
with no luck). The first problem I ran into when using GCC 3.2 was a
linker error:

section .iwram [08185738 -> 08187a13] overlaps
section .gcc_except_table [08183c18 -> 0818575b]

I eventually tracked this down to the fact that GCC 3.2 is apparently
adding 3 new sections that were not created by GCC
3.0.2: .init, .fini, and .jcr. Once I added these to the link script
and included them in the LMA calculations, I was able to link
sucessfully. Unfortunately, the two emulators I've tried (VisualBoy
Advance and Mappy) both choke on this exectuable. I simply get a
blank white screen. The same application built using GCC 3.0.2 works
just fine. Since I know next to nothing about link scripts (the
changes I made to get it to link were merely guesses) I'm fairly
confident in saying that my link script is somehow causing the
problem.

I'd be happy to post my link script or a sample application if anyone
thinks it might help. But mostly I'm hoping that someone here is
using Thomas Maniero's version of DevKitAdv (or another version based
on GCC 3.2) successfully with a link script and crt0.s similar to
those in devrs.com's crtls.zip or Dark Fader's MyLib. If so, I'd
love to see your link script!

Thanks!
Kevin





Tue Oct 1, 2002 9:55 pm

ternarykevin
Offline Offline
Send Email Send Email

Forward
Message #12845 of 15019 |
Expand Messages Author Sort by Date

Hi All... Is anyone using a DevKitAdv based on GCC 3.2 with the lnkscript and crt0.S from devrs.com? Or the gba.x and crt0.S from Dark Fader's MyLib? Here's...
ternarykevin
Offline Send Email
Oct 1, 2002
11:27 pm

... From: "ternarykevin" <kevin-ng@...> To: <gbadev@yahoogroups.com> Sent: Tuesday, October 01, 2002 11:55 PM Subject: [gbadev] Link script for GCC...
gersen
gersen01
Offline Send Email
Oct 3, 2002
1:42 pm

From: "gersen" <gersen@...> ... Actually you can use full or relative paths for crt0.o and linkscript. I do something very like this (the real one is more...
John Seghers
johnse98072
Offline Send Email
Oct 3, 2002
6:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help