public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RE: Linkerscript
@ 2004-10-08  7:45 Meulendijks, J.
  0 siblings, 0 replies; 3+ messages in thread
From: Meulendijks, J. @ 2004-10-08  7:45 UTC (permalink / raw)
  To: 'Nick Clifton', Meulendijks, J.
  Cc: 'binutils@sources.redhat.com'

It is defined as:
#define SECTION_vectors(_region_, _vma_, _lma_)        \
  .vectors _vma_ : _lma_                                              \
  { FORCE_OUTPUT; KEEP(*(.vectors)) }         \
  > _region_

And FORCE_OUTPUT = _. = ._

But if FORCE_OUTPUT is left away it still will generate a output in my
opinion....

-----Original Message-----
From: Nick Clifton [mailto:nickc@redhat.com]
Sent: vrijdag 8 oktober 2004 09:22
To: Meulendijks, J.
Cc: 'binutils@sources.redhat.com'
Subject: Re: Linkerscript


Hi jeroen,

> I have a question about the linkerscript automatically generated by eCos. 

For which particular target ?

> On a
> couple of lines the expression ". = .;" is used. What is de meaning of this?
> What does it do?

Nothing - it is a null operation.

> Example:
>     .vectors 0x00400000 : { . = .; KEEP(*(.vectors)) } > ram

The source for this particular linker script appears to be eCos 
specific, since I did not find it in the binutils repository.  My guess 
would be that in the original source there is an extra expression which 
can be conditionally included as part of this assignment.  eg something 
like:

  .vectors 0x00400000 : { . = . $(VECTOR_OFFSET);

where VECTOR_OFFSET might be defined as "" under some circumstances and 
as say "+ 0x1000" under other circumstances.  (I am just guessing here).

Cheers
   Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linkerscript
  2004-10-08  7:05 Linkerscript Meulendijks, J.
@ 2004-10-08  7:17 ` Nick Clifton
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2004-10-08  7:17 UTC (permalink / raw)
  To: Meulendijks, J.; +Cc: 'binutils@sources.redhat.com'

Hi jeroen,

> I have a question about the linkerscript automatically generated by eCos. 

For which particular target ?

> On a
> couple of lines the expression ". = .;" is used. What is de meaning of this?
> What does it do?

Nothing - it is a null operation.

> Example:
>     .vectors 0x00400000 : { . = .; KEEP(*(.vectors)) } > ram

The source for this particular linker script appears to be eCos 
specific, since I did not find it in the binutils repository.  My guess 
would be that in the original source there is an extra expression which 
can be conditionally included as part of this assignment.  eg something 
like:

  .vectors 0x00400000 : { . = . $(VECTOR_OFFSET);

where VECTOR_OFFSET might be defined as "" under some circumstances and 
as say "+ 0x1000" under other circumstances.  (I am just guessing here).

Cheers
   Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Linkerscript
@ 2004-10-08  7:05 Meulendijks, J.
  2004-10-08  7:17 ` Linkerscript Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Meulendijks, J. @ 2004-10-08  7:05 UTC (permalink / raw)
  To: 'binutils@sources.redhat.com'

Hi all,

I have a question about the linkerscript automatically generated by eCos. On a
couple of lines the expression _. = .;_ is used. What is de meaning of this?
What does it do?

Example:
    .vectors 0x00400000 : { . = .; KEEP(*(.vectors)) } > ram

Thanks in advance!

Jeroen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-08  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08  7:45 Linkerscript Meulendijks, J.
  -- strict thread matches above, loose matches on Subject: below --
2004-10-08  7:05 Linkerscript Meulendijks, J.
2004-10-08  7:17 ` Linkerscript Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).