There are 20 section headers, starting at offset 0x26894:
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 08000000 010000 000194 00 A 0 0 256
[ 2] .text PROGBITS 08000194 010194 000138 00 AX 0 0 4
[ 3] .data PROGBITS 20000000 020000 000000 00 WA 0 0 1
[ 4] .bss NOBITS 20000000 020000 000004 00 WA 0 0 4
[ 5] .noinit NOBITS 20000004 000000 000000 00 WA 0 0 1
[ 6] .debug_info PROGBITS 00000000 020000 0002cb 00 0 0 1
[ 7] .debug_abbrev PROGBITS 00000000 0202cb 0001e4 00 0 0 1
[ 8] .debug_loclists PROGBITS 00000000 0204af 000063 00 0 0 1
[ 9] .debug_aranges PROGBITS 00000000 020512 000068 00 0 0 1
[10] .debug_rnglists PROGBITS 00000000 02057a 000040 00 0 0 1
[11] .debug_macro PROGBITS 00000000 0205ba 000ff2 00 0 0 1
[12] .debug_line PROGBITS 00000000 0215ac 000305 00 0 0 1
[13] .debug_str PROGBITS 00000000 0218b1 0040ba 01 MS 0 0 1
[14] .comment PROGBITS 00000000 02596b 000026 01 MS 0 0 1
[15] .ARM.attributes ARM_ATTRIBUTES 00000000 025991 00002e 00 0 0 1
[16] .debug_frame PROGBITS 00000000 0259c0 000078 00 0 0 4
[17] .symtab SYMTAB 00000000 025a38 000760 10 18 28 4
[18] .strtab STRTAB 00000000 026198 000629 00 0 0 1
[19] .shstrtab STRTAB 00000000 0267c1 0000d3 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
D (mbind), y (purecode), p (processor specific)
ashish@ashish-pc:~/projects/MachineWatch$ arm-none-eabi-nm -n firmware.elf
00000200 A _Min_Heap_Size
00000400 A _Min_Stack_Size
08000000 R __isr_vector_start
08000000 R vector_table
08000194 W ADC_IRQHandler
08000194 W BusFault_Handler
08000194 W DebugMonitor_Handler
08000194 T Default_Handler
08000194 W DMA1_STREAM0_IRQHandler
08000194 W DMA1_STREAM1_IRQHandler
08000194 W DMA1_STREAM2_IRQHandler
08000194 W DMA1_STREAM3_IRQHandler
08000194 W DMA1_STREAM4_IRQHandler
08000194 W DMA1_STREAM5_IRQHandler
08000194 W DMA1_STREAM6_IRQHandler
08000194 W DMA1_STREAM7_IRQHandler
08000194 W DMA2_STREAM0_IRQHanlder
08000194 W DMA2_STREAM1_IRQHanlder
08000194 W DMA2_STREAM2_IRQHanlder
08000194 W DMA2_STREAM3_IRQHanlder
08000194 W DMA2_STREAM4_IRQHanlder
08000194 W DMA2_STREAM5_IRQHanlder
08000194 W DMA2_STREAM6_IRQHanlder
08000194 W DMA2_STREAM7_IRQHanlder
08000194 W EXTI0_IRQHandler
08000194 W EXTI15_10_IRQHandler
08000194 W EXTI17_RTC_ALRM_IRQHandler
08000194 W EXTI18_OTG_FS_WKUP_IRQHandler
08000194 W EXTI1_IRQHandler
08000194 W EXTI2_IRQHandler
08000194 W EXTI3_IRQHandler
08000194 W EXTI4_IRQHandler
08000194 W EXTI9_5_IRQHandler
08000194 W FLASH_IRQHandler
08000194 W FPU_IRQHandler
08000194 W HardFault_Handler
08000194 W I2C1_ER_IRQHandler
08000194 W I2C1_EV_IRQHandler
08000194 W I2C2_ER_IRQHandler
08000194 W I2C2_EV_IRQHandler
08000194 W I2C3_ER_IRQHandler
08000194 W I2C3_EV_IRQHandler
08000194 R __isr_vector_end
08000194 W MemManage_Handler
08000194 W NMI_Handler
08000194 W OTG_FS_IRQHandler
08000194 W PendSV_Handler
08000194 W PVD_IRQHandler
08000194 W RCC_IRQHandler
08000194 W RTC_WKUP_IRQHandler
08000194 W SDIO_IRQHandler
08000194 W SPI1_IRQHandler
08000194 W SPI2_IRQHandler
08000194 W SPI3_IRQHandler
08000194 W SPI4_IRQHandler
08000194 W SVC_Handler
08000194 W SysTick_Handler
08000194 W TAMP_STAMP_IRQHandler
08000194 W TIM1_BRK_TIM9_IRQHandler
08000194 W TIM1_CC_IRQHandler
08000194 W TIM1_TRG_COM_TIM11_IRQHandler
08000194 W TIM1_UP_TIM10_IRQHandler
08000194 W TIM2_IRQHandler
08000194 W TIM3_IRQHandler
08000194 W TIM4_IRQHandler
08000194 W TIM5_IRQHandler
08000194 W UsageFault_Handler
08000194 W USART1_IRQHandler
08000194 W USART2_IRQHandler
08000194 W USART6_IRQHandler
08000194 W WWDG_IRQHandler
08000198 T Reset_Handler
080001dc T system_init
080002c8 T main
080002cc T _etext
080002cc D __exidx_end
080002cc D __exidx_start
080002cc A _sidata
20000000 B data_1
20000000 D _edata
20000000 B _sbss
20000000 D _sdata
20000004 B _ebss
20000008 B _end
20000008 B end
20000008 A __HeapBase
2000fc00 A __HeapLimit
2000fc00 A __StackLimit
20010000 R _estack
20010000 A __StackTop
ashish@ashish-pc:~/projects/MachineWatch$ arm-none-eabi-readelf -l firmware.elf
Elf file type is EXEC (Executable file)
Entry point 0x8000199
There are 2 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x010000 0x08000000 0x08000000 0x002cc 0x002cc R E 0x10000
LOAD 0x020000 0x20000000 0x080002cc 0x00000 0x00004 RW 0x10000
Section to Segment mapping:
Segment Sections...
00 .isr_vector .text
01 .data .bss
ashish@ashish-pc:~/projects/MachineWatch$ arm-none-eabi-objdump -h firmware.elf
firmware.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .isr_vector 00000194 08000000 08000000 00010000 2**8
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 00000138 08000194 08000194 00010194 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .data 00000000 20000000 080002cc 00020000 2**0
CONTENTS, ALLOC, LOAD, DATA
3 .bss 00000004 20000000 080002cc 00020000 2**2
ALLOC
4 .noinit 00000000 20000004 080002d0 00000000 2**0
ALLOC
5 .debug_info 000002cb 00000000 00000000 00020000 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
6 .debug_abbrev 000001e4 00000000 00000000 000202cb 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
7 .debug_loclists 00000063 00000000 00000000 000204af 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
8 .debug_aranges 00000068 00000000 00000000 00020512 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
9 .debug_rnglists 00000040 00000000 00000000 0002057a 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
10 .debug_macro 00000ff2 00000000 00000000 000205ba 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
11 .debug_line 00000305 00000000 00000000 000215ac 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
12 .debug_str 000040ba 00000000 00000000 000218b1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
13 .comment 00000026 00000000 00000000 0002596b 2**0
CONTENTS, READONLY
14 .ARM.attributes 0000002e 00000000 00000000 00025991 2**0
CONTENTS, READONLY
15 .debug_frame 00000078 00000000 00000000 000259c0 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
ashish@ashish-pc:~/projects/MachineWatch$ arm-none-eabi-objdump -h firmware.elf
firmware.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .isr_vector 00000194 08000000 08000000 00010000 2**8
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 00000138 08000194 08000194 00010194 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .data 00000000 20000000 080002cc 00020000 2**0
CONTENTS, ALLOC, LOAD, DATA
3 .bss 00000004 20000000 080002cc 00020000 2**2
ALLOC
4 .noinit 00000000 20000004 080002d0 00000000 2**0
ALLOC
5 .debug_info 000002cb 00000000 00000000 00020000 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
6 .debug_abbrev 000001e4 00000000 00000000 000202cb 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
7 .debug_loclists 00000063 00000000 00000000 000204af 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
8 .debug_aranges 00000068 00000000 00000000 00020512 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
9 .debug_rnglists 00000040 00000000 00000000 0002057a 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
10 .debug_macro 00000ff2 00000000 00000000 000205ba 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
11 .debug_line 00000305 00000000 00000000 000215ac 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
12 .debug_str 000040ba 00000000 00000000 000218b1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
13 .comment 00000026 00000000 00000000 0002596b 2**0
CONTENTS, READONLY
14 .ARM.attributes 0000002e 00000000 00000000 00025991 2**0
CONTENTS, READONLY
15 .debug_frame 00000078 00000000 00000000 000259c0 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
Loading
st-nucleo-c031c6
st-nucleo-c031c6