[libdl] fix formatting issue
This commit is contained in:
parent
8da9f78d72
commit
a25dbad37f
|
@ -86,8 +86,8 @@ typedef struct elfhdr
|
|||
header string table" entry offset */
|
||||
} Elf32_Ehdr;
|
||||
|
||||
|
||||
typedef struct elf64_hdr {
|
||||
typedef struct elf64_hdr
|
||||
{
|
||||
unsigned char e_ident[EI_NIDENT]; /* ELF Identification */
|
||||
Elf64_Half e_type; /* object file type */
|
||||
Elf64_Half e_machine; /* machine */
|
||||
|
@ -135,7 +135,6 @@ typedef struct
|
|||
Elf64_Xword sh_entsize; /* Entry size if section holds table */
|
||||
} Elf64_Shdr;
|
||||
|
||||
|
||||
/* Section names */
|
||||
#define ELF_BSS ".bss" /* uninitialized data */
|
||||
#define ELF_DATA ".data" /* initialized data */
|
||||
|
@ -171,7 +170,6 @@ typedef struct elf32_sym
|
|||
Elf32_Half st_shndx; /* section header index */
|
||||
} Elf32_Sym;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Elf64_Word st_name; /* Symbol name (string tbl index) */
|
||||
|
@ -182,8 +180,6 @@ typedef struct
|
|||
Elf64_Xword st_size; /* Symbol size */
|
||||
} Elf64_Sym;
|
||||
|
||||
|
||||
|
||||
#define STB_LOCAL 0 /* BIND */
|
||||
#define STB_GLOBAL 1
|
||||
#define STB_WEAK 2
|
||||
|
@ -244,8 +240,6 @@ typedef struct
|
|||
#define ELF32_R_TYPE(i) ((unsigned char) (i))
|
||||
#define ELF32_R_INFO(s,t) (((s) << 8) + (unsigned char)(t))
|
||||
|
||||
|
||||
|
||||
#define ELF64_R_SYM(i) ((i) >> 32)
|
||||
#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
|
||||
#define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type))
|
||||
|
@ -296,7 +290,6 @@ typedef struct
|
|||
Elf32_Word p_align; /* memory alignment */
|
||||
} Elf32_Phdr;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Elf64_Word p_type; /* Segment type */
|
||||
|
@ -309,10 +302,6 @@ typedef struct
|
|||
Elf64_Xword p_align; /* Segment alignment */
|
||||
} Elf64_Phdr;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* p_type */
|
||||
#define PT_NULL 0
|
||||
#define PT_LOAD 1
|
||||
|
@ -384,10 +373,9 @@ typedef Elf64_Sym Elf_Sym;
|
|||
typedef Elf64_Rela Elf_Rel;
|
||||
typedef Elf64_Addr Elf_Addr;
|
||||
#endif
|
||||
|
||||
int dlmodule_relocate(struct rt_dlmodule *module, Elf_Rel *rel, Elf_Addr sym_val);
|
||||
rt_err_t dlmodule_load_shared_object(struct rt_dlmodule* module, void *module_ptr);
|
||||
rt_err_t dlmodule_load_relocated_object(struct rt_dlmodule* module, void *module_ptr);
|
||||
|
||||
|
||||
rt_err_t dlmodule_load_shared_object(struct rt_dlmodule *module, void *module_ptr);
|
||||
rt_err_t dlmodule_load_relocated_object(struct rt_dlmodule *module, void *module_ptr);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue