Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to use custom linker script in Eclipse Mars?
Unable to use custom linker script in Eclipse Mars? [message #1817362] Thu, 21 November 2019 00:53 Go to next message
Eclipse UserFriend
Hi guys,

So after a long time scouring the internet, I've gotten to the stage where I'm able to use a cross-compiler in Eclipse Mars.

Problem is, I cannot figure out how to use a custom linker script.

This is what I've done:

1) File>New>C++ Project
2) Named my project
3) Chose "Empty Project" in "Project Type"
4) Chose "Cross GCC" in "Toolchain"
5) Highlighted the project in "Project Explorer", right clicked and chose "Properties"
6) C/C++ Build>Settings
7) In "Cross Settings" I put "i686-elf-" in Prefix and in Path I put the path to the cross-compiler

Doing just the above has allowed me to use the cross-compiler. But the problem now is that when I go to "General" under "Cross G++ Linker" The only options I have are:

Do not use standard start files (-nostartfiles)
Do not use default libraries(-nodefaultlibs)
No startup or default libs (-nostdlib)
Omit all symbol information (-s)

I don't have the option to explicitly tell eclipse to use a certain link.ld file of my choosing.

Any ideas?
Re: Unable to use custom linker script in Eclipse Mars? [message #1817423 is a reply to message #1817362] Thu, 21 November 2019 16:31 Go to previous message
Eclipse UserFriend
You can add -T link.ld to any of the following:


  • Miscellaneous Linker Flags
  • The linker Command
  • The Command Line Pattern
  • As two consecutive -Xlinker parms (-T, link.ld)


Previous Topic:Right-click in project explorer generates errors
Next Topic:How to add an external library to eclipse cmake projects
Goto Forum:
  


Current Time: Tue Jun 17 01:34:15 EDT 2025

Powered by FUDForum. Page generated in 0.04008 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top