Skip to content

Commit cdc7daa

Browse files
nabijaczleweligregkh
authored andcommitted
a.out: restore CMAGIC
Part of UAPI and the on-disk format: this means that it's not a magic number per magic-number.rst, and it's best to leave it untouched to avoid breaking userspace and suffer the same fate as a.out in general Fixes: 53c2bd6 ("a.out: remove define-only CMAGIC, previously magic number") Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Link: https://lore.kernel.org/r/20220926151554.7gxd6unp5727vw3c@tarta.nabijaczleweli.xyz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent aade55c commit cdc7daa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/uapi/linux/a.out.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ enum machine_type {
7070
The first page is unmapped to help trap NULL pointer references */
7171
#define QMAGIC 0314
7272

73+
/* Code indicating core file. */
74+
#define CMAGIC 0421
75+
7376
#if !defined (N_BADMAG)
7477
#define N_BADMAG(x) (N_MAGIC(x) != OMAGIC \
7578
&& N_MAGIC(x) != NMAGIC \

0 commit comments

Comments
 (0)