archdep.h (c7d8e820) | archdep.h (3b50b772) |
---|---|
1/* $OpenBSD: archdep.h,v 1.11 2017/01/21 01:15:00 guenther Exp $ */ | 1/* $OpenBSD: archdep.h,v 1.12 2017/01/24 07:48:37 guenther Exp $ */ |
2 3/* 4 * Copyright (c) 1998 Per Fogelstrom, Opsycon AB 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 48{ 49 if (ELF_R_TYPE(r->r_info) == R_ARM_RELATIVE) { 50 *p += v; 51 } else if (ELF_R_TYPE(r->r_info) == R_ARM_GLOB_DAT) { 52 *p += v + s->st_value; 53 } else if (ELF_R_TYPE(r->r_info) == R_ARM_ABS32) { 54 *p += v + s->st_value; 55 } else { | 2 3/* 4 * Copyright (c) 1998 Per Fogelstrom, Opsycon AB 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 48{ 49 if (ELF_R_TYPE(r->r_info) == R_ARM_RELATIVE) { 50 *p += v; 51 } else if (ELF_R_TYPE(r->r_info) == R_ARM_GLOB_DAT) { 52 *p += v + s->st_value; 53 } else if (ELF_R_TYPE(r->r_info) == R_ARM_ABS32) { 54 *p += v + s->st_value; 55 } else { |
56 /* XXX - printf might not work here, but we give it a shot. */ 57 _dl_printf("Unknown bootstrap relocation.\n"); | |
58 _dl_exit(6); 59 } 60} 61 62#define RELOC_GOT(obj, offs) 63 64#endif /* _ARM_ARCHDEP_H_ */ | 56 _dl_exit(6); 57 } 58} 59 60#define RELOC_GOT(obj, offs) 61 62#endif /* _ARM_ARCHDEP_H_ */ |