OAR

RTEMS GNU Tools On-Line Library


Expressions

PREV UP NEXT Bookshelf

3.10: Expressions in Linker Scripts

The syntax for expressions in the linker script language is identical to that of C expressions. All expressions are evaluated as integers. All expressions are evaluated in the same size, which is 32 bits if both the host and target are 32 bits, and is otherwise 64 bits.

You can use and set symbol values in expressions.

The linker defines several special purpose builtin functions for use in expressions.

  • Constants Constants
  • Symbols Symbol Names
  • Location Counter The Location Counter
  • Operators Operators
  • Evaluation Evaluation
  • Expression Section The Section of an Expression
  • Builtin Functions Builtin Functions

  • PREV UP NEXT Bookshelf

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.