Deleted Added
full compact
sgs.h (178529) sgs.h (178540)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

30 * Global include file for all sgs.
31 */
32
33#ifndef _SGS_H
34#define _SGS_H
35
36#pragma ident "%Z%%M% %I% %E% SMI"
37
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

30 * Global include file for all sgs.
31 */
32
33#ifndef _SGS_H
34#define _SGS_H
35
36#pragma ident "%Z%%M% %I% %E% SMI"
37
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/* <assert.h> keys off of NDEBUG */
44#ifdef DEBUG
45#undef NDEBUG
46#else
47#define NDEBUG
48#endif
49
50#ifndef _ASM
51#include <sys/types.h>
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42/* <assert.h> keys off of NDEBUG */
43#ifdef DEBUG
44#undef NDEBUG
45#else
46#define NDEBUG
47#endif
48
49#ifndef _ASM
50#include <sys/types.h>
51#if defined(sun)
52#include <sys/machelf.h>
52#include <sys/machelf.h>
53#else
54#include <elf.h>
55#endif
53#include <stdlib.h>
54#include <libelf.h>
55#include <assert.h>
56#include <alist.h>
57#endif /* _ASM */
58
59/*
60 * Software identification.
61 */
62#define SGS ""
63#define SGU_PKG "Software Generation Utilities"
64#define SGU_REL "(SGU) Solaris-ELF (4.0)"
65
66
67#ifndef _ASM
68
56#include <stdlib.h>
57#include <libelf.h>
58#include <assert.h>
59#include <alist.h>
60#endif /* _ASM */
61
62/*
63 * Software identification.
64 */
65#define SGS ""
66#define SGU_PKG "Software Generation Utilities"
67#define SGU_REL "(SGU) Solaris-ELF (4.0)"
68
69
70#ifndef _ASM
71
69extern const char link_ver_string[]; /* Linker version id */
70 /* see libconv/{plat}/vernote.s */
71/*
72/*
73 * link_ver_string[] contains a version string for use by the link-editor
74 * and all other linker components. It is found in libconv, and is
75 * generated by sgs/libconv/common/bld_vernote.ksh. That script produces
76 * libconv/{plat}/vernote.s, which is in turn assembled/linked into
77 * libconv.
78 */
79extern const char link_ver_string[];
80/*
72 * Macro to round to next double word boundary.
73 */
74#define S_DROUND(x) (((x) + sizeof (double) - 1) & ~(sizeof (double) - 1))
75
76/*
77 * General align and round macros.
78 */
79#define S_ALIGN(x, a) ((x) & ~(((a) ? (a) : 1) - 1))

--- 208 unchanged lines hidden ---
81 * Macro to round to next double word boundary.
82 */
83#define S_DROUND(x) (((x) + sizeof (double) - 1) & ~(sizeof (double) - 1))
84
85/*
86 * General align and round macros.
87 */
88#define S_ALIGN(x, a) ((x) & ~(((a) ? (a) : 1) - 1))

--- 208 unchanged lines hidden ---