Module Name: src Committed By: christos Date: Tue Aug 2 16:44:01 UTC 2011
Modified Files: src/sys/kern: exec_elf.c src/sys/sys: exec_elf.h Log Message: Add SuSE note To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/exec_elf.c cvs rdiff -u -r1.115 -r1.116 src/sys/sys/exec_elf.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/exec_elf.c diff -u src/sys/kern/exec_elf.c:1.30 src/sys/kern/exec_elf.c:1.31 --- src/sys/kern/exec_elf.c:1.30 Tue Jul 19 15:45:36 2011 +++ src/sys/kern/exec_elf.c Tue Aug 2 12:44:01 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf.c,v 1.30 2011/07/19 19:45:36 christos Exp $ */ +/* $NetBSD: exec_elf.c,v 1.31 2011/08/02 16:44:01 christos Exp $ */ /*- * Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.30 2011/07/19 19:45:36 christos Exp $"); +__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.31 2011/08/02 16:44:01 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_pax.h" @@ -913,6 +913,9 @@ sizeof(epp->ep_pax_flags)); break; + case ELF_NOTE_TYPE_SUSE_TAG: + break; + default: #ifdef DIAGNOSTIC printf("%s: unknown note type %d\n", epp->ep_kname, Index: src/sys/sys/exec_elf.h diff -u src/sys/sys/exec_elf.h:1.115 src/sys/sys/exec_elf.h:1.116 --- src/sys/sys/exec_elf.h:1.115 Tue Jul 19 15:46:42 2011 +++ src/sys/sys/exec_elf.h Tue Aug 2 12:44:01 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf.h,v 1.115 2011/07/19 19:46:42 christos Exp $ */ +/* $NetBSD: exec_elf.h,v 1.116 2011/08/02 16:44:01 christos Exp $ */ /*- * Copyright (c) 1994 The NetBSD Foundation, Inc. @@ -795,6 +795,25 @@ */ #define ELF_NOTE_TYPE_GNU_BUILD_ID 3 +/* SuSE-specific note type: version + * name: SuSE\0\0\0\0 + * namesz: 8 + * desc: + * word[0] = VVTTMMmm + * + * V = version of following data + * T = product type: [box, sles, nld, whatever] + * M = product major version + * m = product minor version + * descsz: 8 + */ +#define ELF_NOTE_TYPE_SUSE_TAG 0x45537553 /* SuSE in LE */ +/* NetBSD-specific note name and description sizes */ +#define ELF_NOTE_SUSE_NAMESZ 8 +#define ELF_NOTE_SUSE_DESCSZ 8 +/* NetBSD-specific note name */ +#define ELF_NOTE_SUSE_NAME "SuSE\0\0\0\0" + /* NetBSD-specific note type: Emulation name. * name: NetBSD\0\0 * namesz: 8