Bona Fide OS Development
http://forums.osdever.net/

Linker scripts
http://forums.osdever.net/viewtopic.php?f=6&t=357
Page 1 of 1

Author:  MTK358 [ Thu May 06, 2010 11:16 am ]
Post subject:  Linker scripts

What exactly are linker scripts?

I wasn't able to find a good explanation by searching.

Author:  Kieran [ Thu May 06, 2010 2:20 pm ]
Post subject:  Re: Linker scripts

A linker script basically tells the linker what objects to link and how.
Allowing you to specify link addresses, executable format and which segments to put in the executable and their order.

Author:  MTK358 [ Thu May 06, 2010 3:49 pm ]
Post subject:  Re: Linker scripts

Is using a linker script necessary?

How to write one? Any good tutorials?

Author:  Kieran [ Fri May 07, 2010 6:27 am ]
Post subject:  Re: Linker scripts

http://sources.redhat.com/binutils/docs-2.10/ld_3.html#SEC33

That link may provide a better understanding.

To answer your first question, no they are not allways needed, but they do provide a great amount of control over your final executable.

Author:  chrisadam2 [ Mon Sep 20, 2010 1:16 am ]
Post subject:  Re: Linker scripts

The main purpose of the linker script is to describe how the sections in the input files should be mapped into the output file, and to control the memory layout of the output file. Most linker scripts do nothing more than this. However, when necessary, the linker script can also direct the linker to perform many other operations, using the commands described below.

______________________________________________________

Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo pecialist

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/