From 406af09ade55553e2b064506c3ba3c89bd965d73 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 4 Mar 2021 19:11:42 -0500 Subject: start of a c++ widget toolkit, c++ runtime --- src/user/runtimes/cxx/extra.asm | 7 +++++++ src/user/runtimes/cxx/extra.ld | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/user/runtimes/cxx/extra.asm create mode 100644 src/user/runtimes/cxx/extra.ld (limited to 'src/user/runtimes/cxx') 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 -- cgit v1.2.3