Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ALPHA_A_OUT_H__ |
| 2 | #define __ALPHA_A_OUT_H__ |
| 3 | |
David Howells | 96433f6e | 2012-12-17 13:47:09 +0000 | [diff] [blame] | 4 | #include <uapi/asm/a.out.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 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. Shutemov | 5311248 | 2008-10-15 22:02:37 -0700 | [diff] [blame] | 12 | set_personality (((BFPM->taso || EX.ah.entry < 0x100000000L \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | ? ADDR_LIMIT_32BIT : 0) | PER_OSF4)) |
| 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #endif /* __A_OUT_GNU_H__ */ |