summaryrefslogtreecommitdiff
path: root/src/user/runtimes/cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/runtimes/cxx')
-rw-r--r--src/user/runtimes/cxx/extra.asm7
-rw-r--r--src/user/runtimes/cxx/extra.ld5
2 files changed, 12 insertions, 0 deletions
diff --git a/src/user/runtimes/cxx/extra.asm b/src/user/runtimes/cxx/extra.asm
new file mode 100644
index 0000000..78bb0a8
--- /dev/null
+++ b/src/user/runtimes/cxx/extra.asm
@@ -0,0 +1,7 @@
+bits 32
+
+global __cxa_pure_virtual
+
+section .text
+__cxa_pure_virtual:
+ ret \ No newline at end of file
diff --git a/src/user/runtimes/cxx/extra.ld b/src/user/runtimes/cxx/extra.ld
new file mode 100644
index 0000000..8eddedb
--- /dev/null
+++ b/src/user/runtimes/cxx/extra.ld
@@ -0,0 +1,5 @@
+/* void *operator new(size_t) */
+_Znwj = get_block;
+
+/* void operator delete(void *, size_t) */
+_ZdlPvj = free_block; \ No newline at end of file