summaryrefslogtreecommitdiffstats
path: root/libgcc/x86
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/x86')
-rw-r--r--libgcc/x86/CMakeLists.txt15
-rw-r--r--libgcc/x86/crti.nasm (renamed from libgcc/x86/crti.s)0
-rw-r--r--libgcc/x86/crtn.nasm (renamed from libgcc/x86/crtn.s)0
3 files changed, 15 insertions, 0 deletions
diff --git a/libgcc/x86/CMakeLists.txt b/libgcc/x86/CMakeLists.txt
new file mode 100644
index 0000000..2a1bec9
--- /dev/null
+++ b/libgcc/x86/CMakeLists.txt
@@ -0,0 +1,15 @@
+add_library(CRTI INTERFACE)
+add_library(CRTIBUNDLE STATIC)
+target_sources(CRTIBUNDLE PRIVATE
+ ${CMAKE_CURRENT_LIST_DIR}/crti.nasm
+ $<TARGET_OBJECTS:CRTBEGIN>
+)
+target_link_libraries(CRTI INTERFACE CRTIBUNDLE)
+
+add_library(CRTN INTERFACE)
+add_library(CRTNBUNDLE STATIC)
+target_sources(CRTNBUNDLE PRIVATE
+ ${CMAKE_CURRENT_LIST_DIR}/crtn.nasm
+ $<TARGET_OBJECTS:CRTEND>
+)
+target_link_libraries(CRTN INTERFACE CRTNBUNDLE)
diff --git a/libgcc/x86/crti.s b/libgcc/x86/crti.nasm
index 57cb8c1..57cb8c1 100644
--- a/libgcc/x86/crti.s
+++ b/libgcc/x86/crti.nasm
diff --git a/libgcc/x86/crtn.s b/libgcc/x86/crtn.nasm
index 537fa65..537fa65 100644
--- a/libgcc/x86/crtn.s
+++ b/libgcc/x86/crtn.nasm