Initial commit

This commit is contained in:
Paul Mathieu
2021-02-17 13:20:30 -08:00
commit 363944d417
35 changed files with 3318 additions and 0 deletions

23
tools/obj.proto Normal file
View File

@@ -0,0 +1,23 @@
syntax = "proto3";
message Section {
string name = 1;
bytes text = 2;
}
// there is always exactly ONE header with a magic "pol0" at the start
message Header {
string magic = 1;
}
message Reloc {
string section = 1;
int32 offset = 2;
string target = 3;
}
message ObjFile {
Header header = 1;
repeated Section sections = 2;
repeated Reloc relocs = 3;
}