From 1175179058fa809c57d724cd2043c67edc511695 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 19 Aug 2021 22:58:57 +0300 Subject: New build system (WIP) --- include/apos/init.h | 4 ++-- include/apos/link.lds.h | 43 +++---------------------------------------- include/apos/types.h | 4 ++++ 3 files changed, 9 insertions(+), 42 deletions(-) create mode 100644 include/apos/types.h (limited to 'include') diff --git a/include/apos/init.h b/include/apos/init.h index 1c4bc9d..82f1774 100644 --- a/include/apos/init.h +++ b/include/apos/init.h @@ -3,7 +3,7 @@ #include -#define __init __section(".init.text") -#define __initdata __section(".init.data") +#define __init +#define __initdata #endif /* APOS_INIT_H */ diff --git a/include/apos/link.lds.h b/include/apos/link.lds.h index aa9f2e2..ddb1f65 100644 --- a/include/apos/link.lds.h +++ b/include/apos/link.lds.h @@ -1,45 +1,8 @@ #ifndef APOS_LINK_LDS_H #define APOS_LINK_LDS_H -#define DWARF_DEBUG \ - /* DWARF 1 */ \ - .debug 0 : { *(.debug) } \ - .line 0 : { *(.line) } \ - /* GNU DWARF 1 extensions */ \ - .debug_srcinfo 0 : { *(.debug_srcinfo) } \ - .debug_sfnames 0 : { *(.debug_sfnames) } \ - /* DWARF 1.1 and DWARF 2 */ \ - .debug_aranges 0 : { *(.debug_aranges) } \ - .debug_pubnames 0 : { *(.debug_pubnames) } \ - /* DWARF 2 */ \ - .debug_info 0 : { *(.debug_info \ - .gnu.linkonce.wi.*) } \ - .debug_abbrev 0 : { *(.debug_abbrev) } \ - .debug_line 0 : { *(.debug_line) } \ - .debug_frame 0 : { *(.debug_frame) } \ - .debug_str 0 : { *(.debug_str) } \ - .debug_loc 0 : { *(.debug_loc) } \ - .debug_macinfo 0 : { *(.debug_macinfo) } \ - .debug_pubtypes 0 : { *(.debug_pubtypes) } \ - /* DWARF 3 */ \ - .debug_ranges 0 : { *(.debug_ranges) } \ - /* SGI/MIPS DWARF 2 extensions */ \ - .debug_weaknames 0 : { *(.debug_weaknames) } \ - .debug_funcnames 0 : { *(.debug_funcnames) } \ - .debug_typenames 0 : { *(.debug_typenames) } \ - .debug_varnames 0 : { *(.debug_varnames) } \ - /* GNU DWARF 2 extensions */ \ - .debug_gnu_pubnames 0 : { *(.debug_gnu_pubnames) } \ - .debug_gnu_pubtypes 0 : { *(.debug_gnu_pubtypes) } \ - /* DWARF 4 */ \ - .debug_types 0 : { *(.debug_types) } \ - /* DWARF 5 */ \ - .debug_addr 0 : { *(.debug_addr) } \ - .debug_line_str 0 : { *(.debug_line_str) } \ - .debug_loclists 0 : { *(.debug_loclists) } \ - .debug_macro 0 : { *(.debug_macro) } \ - .debug_names 0 : { *(.debug_names) } \ - .debug_rnglists 0 : { *(.debug_rnglists) } \ - .debug_str_offsets 0 : { *(.debug_str_offsets) } +#ifndef PM_KERN +#define PM_KERN 0 +#endif #endif /* APOS_LINK_LDS_H */ diff --git a/include/apos/types.h b/include/apos/types.h new file mode 100644 index 0000000..2e30080 --- /dev/null +++ b/include/apos/types.h @@ -0,0 +1,4 @@ +#ifdef APOS_TYPES_H +#define APOS_TYPES_H + +#endif /* APOS_TYPES_H */ -- cgit v1.3