Why there is eh_frame in strcmp.o?
In the linker script for our project I added an error message that complains when some kinds of sections are found which I do not expect. One of them is eh_frame, because I thought this shouldn't be needed in a simple plain C program.
The code is compiled for Cortex-M3 and linked with --specs=nano.specs --specs=nosys.specs using 4_9-2015q1. I realized that there is one single eh_frame, which comes from arm-none-
It is the variant ./libc/
Thank you!
Thomas
---------------
Full output:
arm-none-
./lib_a-strcmp.o: file format elf32-littlearm
./lib_a-strcmp.o
architecture: arm, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
private flags = 5000000: [Version5 EABI]
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000014 00000000 00000000 00000034 2**1
1 .data 00000000 00000000 00000000 00000048 2**0
2 .bss 00000000 00000000 00000000 00000048 2**0
3 .eh_frame 00000028 00000000 00000000 00000048 2**2
4 .ARM.attributes 0000001c 00000000 00000000 00000070 2**0
SYMBOL TABLE:
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .eh_frame 00000000 .eh_frame
00000000 l d .ARM.attributes 00000000 .ARM.attributes
00000000 g F .text 00000014 strcmp
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET TYPE VALUE
0000001c R_ARM_REL32 .text
---------------
Checked if other object files contain this section type using:
arm-none-
3 .eh_frame 00000028 00000000 00000000 00000048 2**2
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Giesel
- Solved:
- Last query:
- Last reply: