Check-in [ccfab72945]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Testbin PIE binary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:ccfab72945d3a03621d0d372d562875c78076cb7ae3f9a3dd5cfb1550909ca98
User & Date: kc5tja 2018-01-28 01:46:03
Context
2018-01-29
00:31
Find a DYN ELF file, process a handful of program header entries, locate string table and symbol table, and attempt to "relocate" the PLT. (It just prints out stuff that it would do if it were doing it for realz). Holy hell this is fucking complex. WWAAAAAAAYY more complex than Amiga hunk format. And for what? I just don't see the benefit of any of this. check-in: b67cec6988 user: kc5tja tags: trunk
2018-01-28
01:46
Testbin PIE binary check-in: ccfab72945 user: kc5tja tags: trunk
2018-01-27
18:30
initial empty check-in check-in: 7764a042ac user: kc5tja tags: trunk
Changes

Added testbin/Makefile.











>
>
>
>
>
1
2
3
4
5
.c.o:
	gcc -fPIE -shared -c -o $@ $<

testbin: main.o banner.o
	ld -pie -o $@ $^ -lc

Added testbin/banner.c.



>
1
const char *banner = "Hello world from the test binary.\n";

Added testbin/main.c.



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
#include <stdio.h>

extern const char *banner;

void
_start(void) {
	puts(banner);
}