Otniel-Bogdan Mercea
Otniel-Bogdan Mercea

Reputation: 405

Linux ELF FILE SECTIONS NAME

I have a c program which get information from an ELF file.My question is : all section names have to start with dot(for example .sffa) ? It is a must or it is rather only for system files?

Upvotes: 1

Views: 1271

Answers (1)

ysdx
ysdx

Reputation: 9325

Section names beginning with a dot are reserved for system stuff but other sections names can be used:

Section names with a dot prefix are reserved for the system, although applications may use these sections if their existing meanings are satisfactory. Applications may use names without the prefix to avoid conflicts with system sections. The object file format lets one define sections not in the list above. An object file may have more than one section with the same name.

Upvotes: 1

Related Questions