Question

What are the predefined code sections that can be referenced in an ELF linker command file? In addition to any others that may be available, I am specifically wondering about these:

  • .text
  • .rodata
  • .sdata
  • .sbss
  • .bss
  • .data

Finding documentation has proven most difficult. If anyone can also tell me what the acronym ELF stands for in this context, that would be a plus. Thanks.

Was it helpful?

Solution

Not sure what you mean about not finding documentation. Wikipedia has a large collection of links about the Executable and Linkable Format. One of the links there describes the ELF sections you are interested in (plus lots of other stuff). Another link here describes additional ELF special sections (.sbss/.sdata).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top