LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::object::Elf_Nhdr_Impl< ELFT > Struct Template Reference

Note header. More...

#include "llvm/Object/ELFTypes.h"

Public Member Functions

size_t getSize (size_t Align) const
 Get the size of the note, including name, descriptor, and padding.
 

Public Attributes

Elf_Word n_namesz
 
Elf_Word n_descsz
 
Elf_Word n_type
 

Detailed Description

template<class ELFT>
struct llvm::object::Elf_Nhdr_Impl< ELFT >

Note header.

Definition at line 622 of file ELFTypes.h.

Member Function Documentation

◆ getSize()

template<class ELFT >
size_t llvm::object::Elf_Nhdr_Impl< ELFT >::getSize ( size_t  Align) const
inline

Get the size of the note, including name, descriptor, and padding.

Both the start and the end of the descriptor are aligned by the section alignment. In practice many 64-bit systems deviate from the generic ABI by using sh_addralign=4.

Definition at line 632 of file ELFTypes.h.

References llvm::alignToPowerOf2().

Referenced by llvm::object::Elf_Note_Iterator_Impl< ELFT >::operator++().

Member Data Documentation

◆ n_descsz

template<class ELFT >
Elf_Word llvm::object::Elf_Nhdr_Impl< ELFT >::n_descsz

Definition at line 625 of file ELFTypes.h.

Referenced by llvm::object::Elf_Note_Impl< ELFT >::getDesc().

◆ n_namesz

template<class ELFT >
Elf_Word llvm::object::Elf_Nhdr_Impl< ELFT >::n_namesz

◆ n_type

template<class ELFT >
Elf_Word llvm::object::Elf_Nhdr_Impl< ELFT >::n_type

Definition at line 626 of file ELFTypes.h.

Referenced by llvm::object::Elf_Note_Impl< ELFT >::getType().


The documentation for this struct was generated from the following file: