Arm: How does objcopy know which sections from an elf to include in a binary or ihex?
问题 I'm working on a project which involves parsing an arm elf file and extracting the sections from it. There are obviously plenty of sections in an elf file which do not get loaded into flash, but I'm wondering how exactly objcopy knows which sections to include in a binary to be flashed directly into flash? Take for example the following readelf of an arm elf file: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .isr_vector PROGBITS