Skip to content

Commit b1445ae

Browse files
committedAug 2, 2015
dyld: style
1 parent 6a1b0b3 commit b1445ae

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

Diff for: ‎software/libdyld/dyld.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
static int fixup_rela(struct dyld_info *info, Elf32_Rela *rela,
77
Elf32_Addr (*resolve_import)(const char *),
8-
const char **error_out) {
8+
const char **error_out)
9+
{
910
Elf32_Sym *sym = NULL;
1011
if(ELF32_R_SYM(rela->r_info) != 0)
1112
sym = &info->symtab[ELF32_R_SYM(rela->r_info)];
@@ -51,7 +52,8 @@ static int fixup_rela(struct dyld_info *info, Elf32_Rela *rela,
5152

5253
int dyld_load(void *shlib, Elf32_Addr base,
5354
Elf32_Addr (*resolve_import)(const char *),
54-
struct dyld_info *info, const char **error_out) {
55+
struct dyld_info *info, const char **error_out)
56+
{
5557
Elf32_Ehdr *ehdr = (Elf32_Ehdr *)shlib;
5658

5759
const unsigned char expected_ident[EI_NIDENT] = {
@@ -162,7 +164,8 @@ static unsigned long elf_hash(const unsigned char *name)
162164
return h;
163165
}
164166

165-
void *dyld_lookup(const char *symbol, struct dyld_info *info) {
167+
void *dyld_lookup(const char *symbol, struct dyld_info *info)
168+
{
166169
unsigned hash = elf_hash((const unsigned char*) symbol);
167170
unsigned index = info->hash.bucket[hash % info->hash.nbucket];
168171
while(strcmp(&info->strtab[info->symtab[index].st_name], symbol)) {

0 commit comments

Comments
 (0)
Please sign in to comment.