Deleted Added
full compact
gelf_rela.c (302408) gelf_rela.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

--- 77 unchanged lines hidden (view full) ---

86 ELF32_R_TYPE(rela32->r_info));
87 dst->r_addend = (Elf64_Sxword) rela32->r_addend;
88
89 } else {
90
91 rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
92
93 *dst = *rela64;
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

--- 77 unchanged lines hidden (view full) ---

86 ELF32_R_TYPE(rela32->r_info));
87 dst->r_addend = (Elf64_Sxword) rela32->r_addend;
88
89 } else {
90
91 rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
92
93 *dst = *rela64;
94
95 if (_libelf_is_mips64el(e))
96 dst->r_info =
97 _libelf_mips64el_r_info_tom(rela64->r_info);
94 }
95
96 return (dst);
97}
98
99int
100gelf_update_rela(Elf_Data *ed, int ndx, GElf_Rela *dr)
101{

--- 52 unchanged lines hidden (view full) ---

154 (Elf32_Word) ELF64_R_SYM(dr->r_info),
155 (Elf32_Word) ELF64_R_TYPE(dr->r_info));
156
157 LIBELF_COPY_S32(rela32, dr, r_addend);
158 } else {
159 rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
160
161 *rela64 = *dr;
98 }
99
100 return (dst);
101}
102
103int
104gelf_update_rela(Elf_Data *ed, int ndx, GElf_Rela *dr)
105{

--- 52 unchanged lines hidden (view full) ---

158 (Elf32_Word) ELF64_R_SYM(dr->r_info),
159 (Elf32_Word) ELF64_R_TYPE(dr->r_info));
160
161 LIBELF_COPY_S32(rela32, dr, r_addend);
162 } else {
163 rela64 = (Elf64_Rela *) d->d_data.d_buf + ndx;
164
165 *rela64 = *dr;
166
167 if (_libelf_is_mips64el(e))
168 rela64->r_info = _libelf_mips64el_r_info_tof(dr->r_info);
162 }
163
164 return (1);
165}
169 }
170
171 return (1);
172}