differences between the versions of binutils

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
hippykin
Posts: 11
Joined: Mon Feb 11, 2008 3:44 pm
Location: UK

differences between the versions of binutils

Post by hippykin »

Hello, i recently had a rather interesting and infuriating problem with binutils: i have a simple kernel which prints "hello world" to the screen, i developed it to this stage on fedora 8 - using the already resident gcc & binutils (specifically Ld), i developed using binutils 2.17. For uninteresting reasons i recently had to change my build environment into [gasp with horror] cygwin (under windows vista!!), i built a cross compiler (gcc-3.4.4 & binutils 2.16.1) and for some reason Ld insisted on creating a binary which was 256 KB in size, when built on FC8 with binutils 2.17 it had been just 3 KB, eventually i managed to solve the problem by using the MEMORY directive in my liker script, i am not posting in the other forums because i solved the problem - clearly there are differences between the ways the Ld linker in binutils 2.17 and 2.16.1 treat liker scripts - i don't know what they are but perhaps they should be mentioned in the wiki if someone knows.

Thanks
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

That reminds me of that good ole saying: Have you got the latest version? :twisted:

My OS doesn't compile with a pre-2.17 binutils either, only for a different reason.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
hippykin
Posts: 11
Joined: Mon Feb 11, 2008 3:44 pm
Location: UK

Post by hippykin »

yes, i couldn't get binutils 2.17 to build under cygwin :cry:
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Hmmm... GCC Cross-Compiler indicates otherwise (2.17 being successfully tested with GCC 4.1.*).

Make sure you use the source tarballs from gnu.org, not those coming with Cygwin!
Every good solution is obvious once you've found it.
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

hippykin wrote:yes, i couldn't get binutils 2.17 to build under cygwin :cry:
Also make sure that you set the file mode to binary when you ran the cygwin setup program.
hippykin
Posts: 11
Joined: Mon Feb 11, 2008 3:44 pm
Location: UK

Post by hippykin »

I was trying to build a cross compiler with 64 bit support hosted on a 32 bit machine (i don't know how relevant the table is when trying to do this) - thank you for all your suggestions and sorry if i somehow seem to have started 'help me' thread in the wiki forum.
The BBC micro could have become the world standard - it was so ahead of its time
Post Reply