summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/libelf/common/newehdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/libelf/common/newehdr.c')
-rw-r--r--usr/src/cmd/sgs/libelf/common/newehdr.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/usr/src/cmd/sgs/libelf/common/newehdr.c b/usr/src/cmd/sgs/libelf/common/newehdr.c
index fe85f1ad73..1e7807804b 100644
--- a/usr/src/cmd/sgs/libelf/common/newehdr.c
+++ b/usr/src/cmd/sgs/libelf/common/newehdr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,17 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-#if !defined(_ELF64)
-#pragma weak elf32_newehdr = _elf32_newehdr
-#endif
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "syn.h"
#include <stdlib.h>
#include <errno.h>
#include "decl.h"
@@ -60,7 +54,7 @@
#define ELFCLASS ELFCLASS32
#define _elf_ehdr_init _elf32_ehdr_init
-#define elf_newehdr _elf32_newehdr
+#define elf_newehdr elf32_newehdr
#define getehdr elf32_getehdr
#endif /* ELF64 */
@@ -69,7 +63,6 @@
Ehdr *
elf_newehdr(Elf * elf)
{
- register
Ehdr *eh;
if (elf == 0)