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
14
15
16
// An exception thrown through a frame that only DWARF call frame
// information describes (call_through, in dwarf-<arch>.s).
extern "C" int printf(const char *, ...);
extern "C" void call_through(void (*)());

static void thrower() { throw 7; }

int main() {
    try {
        call_through(thrower);
    } catch (int value) {
        printf("dwarf %d\n", value);
        return value == 7 ? 0 : 1;
    }
    return 2;
}