^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ALPHA_A_OUT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ALPHA_A_OUT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <uapi/asm/a.out.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) /* Assume that start addresses below 4G belong to a TASO application.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Unfortunately, there is no proper bit in the exec header to check.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Worse, we have to notice the start address before swapping to use
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /sbin/loader, which of course is _not_ a TASO application. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define SET_AOUT_PERSONALITY(BFPM, EX) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) set_personality (((BFPM->taso || EX.ah.entry < 0x100000000L \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) ? ADDR_LIMIT_32BIT : 0) | PER_OSF4))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif /* __A_OUT_GNU_H__ */