summaryrefslogtreecommitdiff
path: root/LibC/install.sh
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-27 12:48:21 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-27 12:48:21 +0100
commit23bb276fcdd6cc3b57e7fc0eae2a614a798cfddf (patch)
tree5dd690844111811857fa21a1511fde010358c9f3 /LibC/install.sh
parentf1a2cb0882bf192ecffa1b12e997648cdd367a07 (diff)
downloadserenity-23bb276fcdd6cc3b57e7fc0eae2a614a798cfddf.zip
LibC: Run constructors on process startup.
Cooperate with the compiler to generate and execute the _init_array list of constructor functions on userspace program statup. This took two days to get working, my goodness. :^)
Diffstat (limited to 'LibC/install.sh')
-rwxr-xr-xLibC/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibC/install.sh b/LibC/install.sh
index f2d52755dd..8b78656ecf 100755
--- a/LibC/install.sh
+++ b/LibC/install.sh
@@ -10,3 +10,5 @@ cp arpa/*.h ../Root/usr/include/arpa/
cp netinet/*.h ../Root/usr/include/netinet/
cp libc.a ../Root/usr/lib/
cp crt0.o ../Root/usr/lib/
+cp crti.ao ../Root/usr/lib/crti.o
+cp crtn.ao ../Root/usr/lib/crtn.o