Skip to content

Add support for one memory section duplicated in two memory areas. #38

Description

@AndersHoglund

Typically in an embedded application the .data section occupies space in both FLASH and RAM. Currently it seems as only RAM is supported. Please take look at the linker command files attached in PR #37., where the .data spec looks like this :

  .data :
  {
    . = ALIGN(4);
    _sdata = .;        /* create a global symbol at data start */
    *(.data)           /* .data sections */
    *(.data*)          /* .data* sections */

    . = ALIGN(4);
     _edata = .;        /* define a global symbol at data end */
  } >RAM AT> FLASH

The closing line indicates that .data exists in both RAM (run time) and FLASH (initializers)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions