qld 0.1.1

A fast, parallel linker compatible with GNU ld, gold, lld and mold
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Hello world without system headers, so it compiles for macOS without an
// SDK. Exercises a stub call, a data pointer (a rebase), a string literal and
// a static.
int printf(const char *, ...);

static int counter = 3;
int answer = 42;
int *answer_ptr = &answer;

int main(void) {
    printf("hello from qld %d %d\n", counter, *answer_ptr);
    return *answer_ptr == 42 ? 0 : 1;
}