MCPcopy Create free account
hub / github.com/Kitware/CMake / GetNumberOfSections

Method GetNumberOfSections

Source/cmELF.cxx:217–221  ·  view source on GitHub ↗

Return the number of sections as specified by the ELF header.

Source from the content-addressed store, hash-verified

215
216 // Return the number of sections as specified by the ELF header.
217 std::size_t GetNumberOfSections() const override
218 {
219 return static_cast<unsigned int>(this->ELFHeader.e_shnum +
220 this->SectionHeaders[0].sh_size);
221 }
222
223 // Get the file position of a dynamic section entry.
224 unsigned long GetDynamicEntryPosition(int j) override;

Callers 1

cmELFInternalImplMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected