1

I'm using linker .ld file to create a section called SECVAR

  .SECVAR : {
    *(.SECVAR )
  }

using the below command in my .c file to create a variable called Dummy under section:

unsigned short Dummy __attribute__((section(".SECVAR")))

After compiling it by using MinGW compiler the generated output.map file has no variable called Dummy under the section name SECVAR

How to correctly create a variable under section?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.