blob: 9abbd2455306fffe6822ec9cc9ec12466efc353b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ALPHA_A_OUT_H__
2#define __ALPHA_A_OUT_H__
3
David Howells96433f6e2012-12-17 13:47:09 +00004#include <uapi/asm/a.out.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7/* Assume that start addresses below 4G belong to a TASO application.
8 Unfortunately, there is no proper bit in the exec header to check.
9 Worse, we have to notice the start address before swapping to use
10 /sbin/loader, which of course is _not_ a TASO application. */
11#define SET_AOUT_PERSONALITY(BFPM, EX) \
Kirill A. Shutemov53112482008-10-15 22:02:37 -070012 set_personality (((BFPM->taso || EX.ah.entry < 0x100000000L \
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 ? ADDR_LIMIT_32BIT : 0) | PER_OSF4))
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#endif /* __A_OUT_GNU_H__ */