This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Linkerscript


On Thu, 2004-09-30 at 07:29, Meulendijks, J. wrote:
> Is there anybody who can answer this question??

The -L option only tells the linker where to look for libraries, it
has no effect on explicitly mentioned .o files.

I'm quite sure you'll need to put the absolute path name for data.o
on the command line.

> 
> -----Original Message-----
> From: Meulendijks, J. 
> Sent: donderdag 30 september 2004 12:46
> To: 'Nick Garnett'
> Cc: 'ecos-discuss@ecos.sourceware.org'
> Subject: RE: [ECOS] Linkerscript
> 
> 
> I added data.o to the command line but it gave the same result! :-(
> 
> -----Original Message-----
> From: Nick Garnett [mailto:nickg@ecoscentric.com]
> Sent: donderdag 30 september 2004 12:33
> To: Meulendijks, J.
> Cc: 'ecos-discuss@ecos.sourceware.org'
> Subject: Re: [ECOS] Linkerscript
> 
> 
> "Meulendijks, J." <Meulendijks@WT.TNO.NL> writes:
> 
> > Hi all,
> > 
> > I read the following on the internet:
> > 
> > "You can specify a file name to include sections from a particular file. You
> > would do this if one or more of your files contain special data that needs to
> be
> > at a particular location in memory. For example, use the following input.
> >   
> > data.o(.data)"
> > 
> > But when I use this the linker says: "cannot find data.o". But the linkcommand
> > is including the directory in which data.o is located. I do this with the -L
> > option.
> > I don't see what's is wrong with it but I only get this to work if I replace
> > "data.o(.data)" with "c:/bla/bla/data.o(.data)". So I must give the absolute
> > path and that's NOT what I want.
> 
> 
> I believe this only works with files that are mentioned on the command
> line, or are found in libraries. So add data.o to the command line.
> 
> -- 
> Nick Garnett                    eCos Kernel Architect
> http://www.ecoscentric.com/     The eCos and RedBoot experts
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]