summaryrefslogtreecommitdiff
path: root/other/burneye2/tmp/linktest
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/tmp/linktest
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/burneye2/tmp/linktest')
-rw-r--r--other/burneye2/tmp/linktest/Makefile21
-rw-r--r--other/burneye2/tmp/linktest/dummy.c6
-rw-r--r--other/burneye2/tmp/linktest/hello-final.obin0 -> 9461 bytes
-rw-r--r--other/burneye2/tmp/linktest/hello.c13
-rw-r--r--other/burneye2/tmp/linktest/hello.obin0 -> 896 bytes
-rw-r--r--other/burneye2/tmp/linktest/obj-dietstart/start.obin0 -> 628 bytes
6 files changed, 40 insertions, 0 deletions
diff --git a/other/burneye2/tmp/linktest/Makefile b/other/burneye2/tmp/linktest/Makefile
new file mode 100644
index 0000000..7aadd4b
--- /dev/null
+++ b/other/burneye2/tmp/linktest/Makefile
@@ -0,0 +1,21 @@
1
2CC=gcc
3CFLAGS=-Os -nostdlib
4
5# 1. order of start.o important, -L/-l does not matter
6LIBS=obj-dietstart/start.o -L/usr/lib/diet/lib-i386 -lc -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lgcc
7
8all: hello
9
10clean:
11 rm -f hello *.o
12
13hello: hello-final.o
14 ld -o hello hello-final.o
15
16# hello-final.o is what we need as burneye input
17hello-final.o: hello.o
18 ld -r -o hello-final.o hello.o $(LIBS)
19
20hello.o: hello.c
21 $(CC) $(CFLAGS) -c -o hello.o hello.c
diff --git a/other/burneye2/tmp/linktest/dummy.c b/other/burneye2/tmp/linktest/dummy.c
new file mode 100644
index 0000000..9dbdb38
--- /dev/null
+++ b/other/burneye2/tmp/linktest/dummy.c
@@ -0,0 +1,6 @@
1
2int
3__write (void)
4{
5}
6
diff --git a/other/burneye2/tmp/linktest/hello-final.o b/other/burneye2/tmp/linktest/hello-final.o
new file mode 100644
index 0000000..3714f27
--- /dev/null
+++ b/other/burneye2/tmp/linktest/hello-final.o
Binary files differ
diff --git a/other/burneye2/tmp/linktest/hello.c b/other/burneye2/tmp/linktest/hello.c
new file mode 100644
index 0000000..9ff86fd
--- /dev/null
+++ b/other/burneye2/tmp/linktest/hello.c
@@ -0,0 +1,13 @@
1
2#include <stdio.h>
3
4
5int
6main (int argc, char *argv[])
7{
8 printf ("hello world\n");
9
10 return (0);
11}
12
13
diff --git a/other/burneye2/tmp/linktest/hello.o b/other/burneye2/tmp/linktest/hello.o
new file mode 100644
index 0000000..04cf1eb
--- /dev/null
+++ b/other/burneye2/tmp/linktest/hello.o
Binary files differ
diff --git a/other/burneye2/tmp/linktest/obj-dietstart/start.o b/other/burneye2/tmp/linktest/obj-dietstart/start.o
new file mode 100644
index 0000000..2e10da1
--- /dev/null
+++ b/other/burneye2/tmp/linktest/obj-dietstart/start.o
Binary files differ