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.

有帮助吗?

解决方案

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).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top