diff options
Diffstat (limited to 'ld/align.h')
-rw-r--r-- | ld/align.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/align.h b/ld/align.h new file mode 100644 index 0000000..ba33fb8 --- /dev/null +++ b/ld/align.h @@ -0,0 +1,10 @@ +/* align.h - memory alignment requirements for linker */ + +/* Copyright (C) 1994 Bruce Evans */ + +#ifndef S_ALIGNMENT +# define align(x) +#else +# define align(x) ((x) = ((int) (x) + (S_ALIGNMENT-1)) & ~(S_ALIGNMENT-1)) + /* assumes sizeof(int) == sizeof(char *) */ +#endif |