How to define symbol for linker file (.ld) ?

Sysprogs forums Forums VisualGDB How to define symbol for linker file (.ld) ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31212
    Waszniowski
    Participant

    Hallo all,

     

    I am using VisualGDB for ARM embedded project. I have a problem to define a symbol for linker file.

    I have the following line in my .ld file:

    M_VECTOR_RAM_SIZE = DEFINED(__flash_vector_table__) ? 0x0 : 0x0400;

     

    I need to define __flash_vector_table__ to be evaluated by linker to set M_VECTOR_RAM_SIZE = 0x0.

    I tried to define it in main.c

    #define __flash_vector_table__

    I tried to define it in VisualGDB project properties and also in Visual Studio properties.

     

    But the generated map file still shows

    0x00000400                M_VECTOR_RAM_SIZE = DEFINED (__flash_vector_table__)?0x0:0x400

    It means that the symbol __flash_vector_table__ was not defined during linking.

     

    Please can anybody help me to define symbol to be considered in .ld file??

     

    Thanks,

    Libor

    #31213
    support
    Keymaster

    Hi,

    According to our records, your support period has expired a while ago. We can gladly point you to the relevant documentation, however we would kindly ask you to renew your support first.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.