This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to extract sections with the same name(different attributes) from .axf?

There are 2 sections with the same name and different attributes in out .axf file.

I can see it in output of objdump (GNU) and arm-none-eabi-objcopy - see below

When running objcopy to extract this section, both sections with this name are extracted and concatenated in 1 binary.

How can I extract each section separately?

Duplicated section is ER_DATA2 -see below

 9 ER_DATA2        00026540  31000000  31000000  0000c7e0  2**4

                 CONTENTS, ALLOC, LOAD, READONLY, CODE

10 ER_DATA2        0000b3e8  31026540  31026540  00032d20  2**4

                  CONTENTS, ALLOC, LOAD, DATA