01bc9d5012
between all platforms and a small assembler stub in crt0.S is used for setting up the proper stack and whatever else MD needs. Extract crti.S and crtn. from the old dot_init.h files. Prepare other platforms that use the 6-argument form of __(_)start for this. Rewrite the crtbegin and crtend modules in assembler to make them compiler independent. Document the interface in README.
13 lines
503 B
CFEngine3
13 lines
503 B
CFEngine3
include <sys/param.h>
|
|
include <sys/exec_elf.h>
|
|
|
|
define ELF_NOTE_NETBSD_NAMESZ ELF_NOTE_NETBSD_NAMESZ
|
|
define ELF_NOTE_NETBSD_DESCSZ ELF_NOTE_NETBSD_DESCSZ
|
|
define ELF_NOTE_TYPE_NETBSD_TAG ELF_NOTE_TYPE_NETBSD_TAG
|
|
#define ELF_NOTE_NETBSD_NAME ELF_NOTE_NETBSD_NAME
|
|
define __NetBSD_Version__ __NetBSD_Version__
|
|
define ELF_NOTE_PAX_NAMESZ ELF_NOTE_PAX_NAMESZ
|
|
define ELF_NOTE_PAX_DESCSZ ELF_NOTE_PAX_DESCSZ
|
|
define ELF_NOTE_TYPE_PAX_TAG ELF_NOTE_TYPE_PAX_TAG
|
|
#define ELF_NOTE_PAX_NAME ELF_NOTE_PAX_NAME
|