Initial commit
This commit is contained in:
23
tools/obj.proto
Normal file
23
tools/obj.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user