gelf_rel.c (302408) | gelf_rel.c (340309) |
---|---|
1/*- 2 * Copyright (c) 2006,2008 Joseph Koshy 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 --- 76 unchanged lines hidden (view full) --- 85 (Elf64_Xword) ELF32_R_SYM(rel32->r_info), 86 ELF32_R_TYPE(rel32->r_info)); 87 88 } else { 89 90 rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx; 91 92 *dst = *rel64; | 1/*- 2 * Copyright (c) 2006,2008 Joseph Koshy 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 --- 76 unchanged lines hidden (view full) --- 85 (Elf64_Xword) ELF32_R_SYM(rel32->r_info), 86 ELF32_R_TYPE(rel32->r_info)); 87 88 } else { 89 90 rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx; 91 92 *dst = *rel64; |
93 94 if (_libelf_is_mips64el(e)) 95 dst->r_info = _libelf_mips64el_r_info_tom(rel64->r_info); |
|
93 } 94 95 return (dst); 96} 97 98int 99gelf_update_rel(Elf_Data *ed, int ndx, GElf_Rel *dr) 100{ --- 50 unchanged lines hidden (view full) --- 151 } 152 rel32->r_info = ELF32_R_INFO( 153 (Elf32_Word) ELF64_R_SYM(dr->r_info), 154 (Elf32_Word) ELF64_R_TYPE(dr->r_info)); 155 } else { 156 rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx; 157 158 *rel64 = *dr; | 96 } 97 98 return (dst); 99} 100 101int 102gelf_update_rel(Elf_Data *ed, int ndx, GElf_Rel *dr) 103{ --- 50 unchanged lines hidden (view full) --- 154 } 155 rel32->r_info = ELF32_R_INFO( 156 (Elf32_Word) ELF64_R_SYM(dr->r_info), 157 (Elf32_Word) ELF64_R_TYPE(dr->r_info)); 158 } else { 159 rel64 = (Elf64_Rel *) d->d_data.d_buf + ndx; 160 161 *rel64 = *dr; |
162 163 if (_libelf_is_mips64el(e)) 164 rel64->r_info = _libelf_mips64el_r_info_tof(dr->r_info); |
|
159 } 160 161 return (1); 162} | 165 } 166 167 return (1); 168} |