synth/tools/obj.proto

24 lines
374 B
Protocol Buffer
Raw Normal View History

2021-02-17 21:20:30 +00:00
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;
}