scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stdio.h>
 2
 3#include <scc/mach.h>
 4
 5#include "libmach.h"
 6
 7#include "elf/fun.h"
 8#include "coff32/fun.h"
 9
10static Section *(*ops[NFORMATS])(Obj *, int *, Section *) = {
11	[COFF32] = coff32setsec,
12};
13
14Section *
15setsec(Obj *obj, int *idx, Section *sec)
16{
17	return (*ops[objfmt(obj)])(obj, idx, sec);
18}