From 2572267baeb2ca37e114f2f0c5ef7053a7473721 Mon Sep 17 00:00:00 2001 From: ragge Date: Sat, 23 Sep 1995 14:57:40 +0000 Subject: [PATCH] relocation_info added. --- sys/arch/vax/include/aout_machdep.h | 30 ++++++++++++++++++++--------- sys/arch/vax/include/exec.h | 30 ++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 18 deletions(-) diff --git a/sys/arch/vax/include/aout_machdep.h b/sys/arch/vax/include/aout_machdep.h index 9f446e56bfa0..3d34ccc79e57 100644 --- a/sys/arch/vax/include/aout_machdep.h +++ b/sys/arch/vax/include/aout_machdep.h @@ -1,7 +1,7 @@ -/* $NetBSD: aout_machdep.h,v 1.3 1994/10/26 08:02:05 cgd Exp $ */ +/* $NetBSD: aout_machdep.h,v 1.4 1995/09/23 14:57:40 ragge Exp $ */ /* - * Copyright (c) 1994 Ludd, University of Lule}, Sweden + * Copyright (c) 1993 Christopher G. Demetriou * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -12,10 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed at Ludd, University of Lule} - * 4. The name of the author may not be used to endorse or promote products + * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR @@ -30,8 +27,23 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - /* All bugs are subject to removal without further notice */ - +#ifndef _VAX_EXEC_H_ +#define _VAX_EXEC_H_ -#define __LDPGSZ 1024 +#define __LDPGSZ 1024 +/* Relocation format. */ +struct relocation_info_vax { + int r_address; /* offset in text or data segment */ + unsigned int r_symbolnum : 24, /* ordinal number of add symbol */ + r_pcrel : 1, /* 1 if value should be pc-relative */ + r_length : 2, /* log base 2 of value's width */ + r_extern : 1, /* 1 if need to add symbol to value */ + r_baserel : 1, /* linkage table relative */ + r_jmptable : 1, /* relocate to jump table */ + r_relative : 1, /* load address relative */ + r_copy : 1; /* run time copy */ +}; +#define relocation_info relocation_info_vax + +#endif /* _VAX_EXEC_H_ */ diff --git a/sys/arch/vax/include/exec.h b/sys/arch/vax/include/exec.h index 4d0648fa5613..3493e317afa2 100644 --- a/sys/arch/vax/include/exec.h +++ b/sys/arch/vax/include/exec.h @@ -1,7 +1,7 @@ -/* $NetBSD: exec.h,v 1.3 1994/10/26 08:02:05 cgd Exp $ */ +/* $NetBSD: exec.h,v 1.4 1995/09/23 14:57:40 ragge Exp $ */ /* - * Copyright (c) 1994 Ludd, University of Lule}, Sweden + * Copyright (c) 1993 Christopher G. Demetriou * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -12,10 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed at Ludd, University of Lule} - * 4. The name of the author may not be used to endorse or promote products + * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR @@ -30,8 +27,23 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - /* All bugs are subject to removal without further notice */ - +#ifndef _VAX_EXEC_H_ +#define _VAX_EXEC_H_ -#define __LDPGSZ 1024 +#define __LDPGSZ 1024 +/* Relocation format. */ +struct relocation_info_vax { + int r_address; /* offset in text or data segment */ + unsigned int r_symbolnum : 24, /* ordinal number of add symbol */ + r_pcrel : 1, /* 1 if value should be pc-relative */ + r_length : 2, /* log base 2 of value's width */ + r_extern : 1, /* 1 if need to add symbol to value */ + r_baserel : 1, /* linkage table relative */ + r_jmptable : 1, /* relocate to jump table */ + r_relative : 1, /* load address relative */ + r_copy : 1; /* run time copy */ +}; +#define relocation_info relocation_info_vax + +#endif /* _VAX_EXEC_H_ */