Hello, I am new to this site, and have been developing an operating system. My problem: I can't use regular ld command with argument -T.
I have googled for a long time but with no results. Here is my specs:
* Developing on: Macbook, while 2010, Xcode 3.2, with i686-pc-elf toolchain installed.
Any help would be awesome. Thanks!!
-- wxwsk8er
Help with linker
Help with linker
Last edited by deleted on Wed Jul 23, 2014 3:49 pm, edited 1 time in total.
Re: Help with linker
You cannot use OS X's 'ld' tool to link.
Make a GCC Cross Compiler, then use the LD from your i686-elf-pc-ld to link.
Make a GCC Cross Compiler, then use the LD from your i686-elf-pc-ld to link.
[nx] kernel: http://github.com/zhiayang/nx
Re: Help with linker
When do this:requimrar wrote:You cannot use OS X's 'ld' tool to link.
Make a GCC Cross Compiler, then use the LD from your i686-elf-pc-ld to link.
Code: Select all
walt-pachs-macbook:~ Walt$ /usr/i686-pc-elf/bin/ld -T
/usr/i686-pc-elf/bin/ld: unrecognized option '-T'
/usr/i686-pc-elf/bin/ld: use the --help option for usage information
Code: Select all
walt-pachs-macbook:~ Walt$ i686-pc-elf-ld -T
i686-pc-elf-ld: unrecognized option '-T'
i686-pc-elf-ld: use the --help option for usage information
Code: Select all
walt-pachs-macbook:~ Walt$ /usr/i686-pc-elf/bin/ld.gold -T
/usr/i686-pc-elf/bin/ld.gold: -T: missing argument
/usr/i686-pc-elf/bin/ld.gold: use the --help option for usage information
Thanks for the help
- Combuster
- 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:
Re: Help with linker
I have a nagging suspicion that none of those cross-linkers were built according to the tutorial though.
Re: Help with linker
Even my cross compiler gives this error when run with the -T option and no linker script name specified:You also have to specify a linker script file.
Regards,
John.
Code: Select all
$ i586-elf-ld -T
i586-elf-ld: unrecognized option '-T'
i586-elf-ld: use the --help option for usage information
Regards,
John.
Re: Help with linker
I downloaded the binarys, but I will try what you said. With the option and let you know how it works thanks!!
Re: Help with linker
It worked!!
Thanks for all your help!!
Thanks for all your help!!