elf_machdep.c (901b68c1855e5124b1999be1e9f7848581cc24b5) | elf_machdep.c (757686b11510174fffffec96b816204c8d659fba) |
---|---|
1/*- 2 * Copyright 1996-1998 John D. Polstra. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 105 unchanged lines hidden (view full) --- 114static int 115elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, 116 int type, int local, elf_lookup_fn lookup) 117{ 118 Elf64_Addr *where, val; 119 Elf32_Addr *where32, val32; 120 Elf_Addr addr; 121 Elf_Addr addend; | 1/*- 2 * Copyright 1996-1998 John D. Polstra. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 105 unchanged lines hidden (view full) --- 114static int 115elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, 116 int type, int local, elf_lookup_fn lookup) 117{ 118 Elf64_Addr *where, val; 119 Elf32_Addr *where32, val32; 120 Elf_Addr addr; 121 Elf_Addr addend; |
122 Elf_Word rtype, symidx; | 122 Elf_Size rtype, symidx; |
123 const Elf_Rel *rel; 124 const Elf_Rela *rela; 125 126 switch (type) { 127 case ELF_RELOC_REL: 128 rel = (const Elf_Rel *)data; 129 where = (Elf_Addr *) (relocbase + rel->r_offset); 130 rtype = ELF_R_TYPE(rel->r_info); --- 119 unchanged lines hidden --- | 123 const Elf_Rel *rel; 124 const Elf_Rela *rela; 125 126 switch (type) { 127 case ELF_RELOC_REL: 128 rel = (const Elf_Rel *)data; 129 where = (Elf_Addr *) (relocbase + rel->r_offset); 130 rtype = ELF_R_TYPE(rel->r_info); --- 119 unchanged lines hidden --- |