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;
}