summaryrefslogtreecommitdiff
path: root/src/user/runtimes
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-04 19:11:42 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-04 19:11:42 -0500
commit406af09ade55553e2b064506c3ba3c89bd965d73 (patch)
treedd6da93bc329d6b1097aa1afcde2af19491dfc8e /src/user/runtimes
parent86af7f631080bc4b45846bd7f382c4cedcbec2b4 (diff)
downloadportland-os-406af09ade55553e2b064506c3ba3c89bd965d73.tar.gz
start of a c++ widget toolkit, c++ runtime
Diffstat (limited to 'src/user/runtimes')
-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