diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/tmp/linktest | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/burneye2/tmp/linktest')
| -rw-r--r-- | other/burneye2/tmp/linktest/Makefile | 21 | ||||
| -rw-r--r-- | other/burneye2/tmp/linktest/dummy.c | 6 | ||||
| -rw-r--r-- | other/burneye2/tmp/linktest/hello-final.o | bin | 0 -> 9461 bytes | |||
| -rw-r--r-- | other/burneye2/tmp/linktest/hello.c | 13 | ||||
| -rw-r--r-- | other/burneye2/tmp/linktest/hello.o | bin | 0 -> 896 bytes | |||
| -rw-r--r-- | other/burneye2/tmp/linktest/obj-dietstart/start.o | bin | 0 -> 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 | |||
| 2 | CC=gcc | ||
| 3 | CFLAGS=-Os -nostdlib | ||
| 4 | |||
| 5 | # 1. order of start.o important, -L/-l does not matter | ||
| 6 | LIBS=obj-dietstart/start.o -L/usr/lib/diet/lib-i386 -lc -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lgcc | ||
| 7 | |||
| 8 | all: hello | ||
| 9 | |||
| 10 | clean: | ||
| 11 | rm -f hello *.o | ||
| 12 | |||
| 13 | hello: hello-final.o | ||
| 14 | ld -o hello hello-final.o | ||
| 15 | |||
| 16 | # hello-final.o is what we need as burneye input | ||
| 17 | hello-final.o: hello.o | ||
| 18 | ld -r -o hello-final.o hello.o $(LIBS) | ||
| 19 | |||
| 20 | hello.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 | |||
| 2 | int | ||
| 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 | |||
| 5 | int | ||
| 6 | main (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 | |||
