ld: Simple Linker Script Example

Ian Lance Taylor ian@wasabisystems.com
Fri Nov 7 03:23:00 GMT 2003


Barry Rountree <rountree@uga.edu> writes:

> On Thursday 06 November 2003 09:01 pm, Ian Lance Taylor wrote:
> > Barry Rountree <rountree@uga.edu> writes:
> > > I'm puzzling my way through the ld documentation and I think I'm in need
> > > of the "hello, world!" of linker scripts -- the minimal linker script
> > > that will link two C files together into an executable.
> >
> > Well, what kind of executable?  
> 
> Ah, that would help.  GNU/Linux and statically compiled.

If you are linking statically--i.e., passing -static on the linker
command line and not explicitly listing any .so files--then I would
expect a fairly simple linker script to work.

What kind of problems are you seeing?

Ian



More information about the Binutils mailing list