differences between the versions of binutils
Posted: Sat Mar 15, 2008 2:37 pm
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
Thanks