mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 09:20:29 +00:00
Try to make fixupobj forward-compatible
This commit is contained in:
parent
2ab7e30352
commit
67bc4cb452
2 changed files with 4 additions and 2 deletions
|
@ -86,7 +86,8 @@
|
|||
#define EM_BPF 247
|
||||
|
||||
/* the ape flag, "lol cat 5" */
|
||||
#define EF_APE_MODERN 0x101ca75
|
||||
#define EF_APE_MODERN 0x101ca75
|
||||
#define EF_APE_MODERN_MASK 0x1ffffff
|
||||
|
||||
#define GRP_COMDAT 1
|
||||
#define STN_UNDEF 0
|
||||
|
|
|
@ -332,7 +332,8 @@ static void UseFreebsdOsAbi(void) {
|
|||
}
|
||||
|
||||
static void WriteApeFlags(void) {
|
||||
elf->e_flags |= EF_APE_MODERN;
|
||||
/* try to be forward-compatible */
|
||||
elf->e_flags = (elf->e_flags & ~EF_APE_MODERN_MASK) | EF_APE_MODERN;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue