Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/imgact_elf.h
| Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | typedef struct { | ||||
| int brand; | int brand; | ||||
| int machine; | int machine; | ||||
| const char *compat_3_brand; /* pre Binutils 2.10 method (FBSD 3) */ | const char *compat_3_brand; /* pre Binutils 2.10 method (FBSD 3) */ | ||||
| const char *interp_path; | const char *interp_path; | ||||
| struct sysentvec *sysvec; | struct sysentvec *sysvec; | ||||
| const char *interp_newpath; | const char *interp_newpath; | ||||
| int flags; | int flags; | ||||
| const Elf_Brandnote *brand_note; | const Elf_Brandnote *brand_note; | ||||
| bool (*header_supported)(const struct image_params *, | bool (*const header_supported)(const struct image_params *, | ||||
kib: To add more to the const fest. | |||||
Not Done Inline ActionsNone of the other fields are const though? jrtc27: None of the other fields are const though? | |||||
Not Done Inline ActionsThis is why I am talking about fest. kib: This is why I am talking about fest. | |||||
Done Inline Actionsconst header_supported is now in final commit. zlei: `const header_supported` is now in final commit. | |||||
| const int32_t *, const uint32_t *); | const int32_t *, const uint32_t *); | ||||
| /* High 8 bits of flags is private to the ABI */ | /* High 8 bits of flags is private to the ABI */ | ||||
| #define BI_CAN_EXEC_DYN 0x0001 | #define BI_CAN_EXEC_DYN 0x0001 | ||||
| #define BI_BRAND_NOTE 0x0002 /* May have note.ABI-tag section. */ | #define BI_BRAND_NOTE 0x0002 /* May have note.ABI-tag section. */ | ||||
| #define BI_BRAND_NOTE_MANDATORY 0x0004 /* Must have note.ABI-tag section. */ | #define BI_BRAND_NOTE_MANDATORY 0x0004 /* Must have note.ABI-tag section. */ | ||||
| #define BI_BRAND_ONLY_STATIC 0x0008 /* Match only interp-less binaries. */ | #define BI_BRAND_ONLY_STATIC 0x0008 /* Match only interp-less binaries. */ | ||||
| } __ElfN(Brandinfo); | } __ElfN(Brandinfo); | ||||
| Show All 28 Lines | |||||
| bool __elfN(parse_notes)(const struct image_params *, const Elf_Note *, | bool __elfN(parse_notes)(const struct image_params *, const Elf_Note *, | ||||
| const char *, const Elf_Phdr *, | const char *, const Elf_Phdr *, | ||||
| bool (*)(const Elf_Note *, void *, bool *), void *); | bool (*)(const Elf_Note *, void *, bool *), void *); | ||||
| /* Machine specific function to dump per-thread information. */ | /* Machine specific function to dump per-thread information. */ | ||||
| void __elfN(dump_thread)(struct thread *, void *, size_t *); | void __elfN(dump_thread)(struct thread *, void *, size_t *); | ||||
| extern int __elfN(fallback_brand); | extern int __elfN(fallback_brand); | ||||
| extern Elf_Brandnote __elfN(freebsd_brandnote); | extern const Elf_Brandnote __elfN(freebsd_brandnote); | ||||
| extern Elf_Brandnote __elfN(kfreebsd_brandnote); | extern const Elf_Brandnote __elfN(kfreebsd_brandnote); | ||||
| #endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
| #endif /* !_SYS_IMGACT_ELF_H_ */ | #endif /* !_SYS_IMGACT_ELF_H_ */ | ||||
To add more to the const fest.