This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld: Simple Linker Script Example
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