Skip to content

Commit

Permalink
Don't drop the dummy segment if it actually has data on it
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 24, 2023
1 parent 43f3c27 commit acf4513
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/output/oot_gcc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
{
"segments": [
{
"name": "$nosegment",
"vram": "0x00000000",
"size": "0x0",
"vrom": "0x000000",
"files": [
{
"filepath": "build/src/makerom/rom_header.o",
"sectionType": ".text",
"vram": "0x00000000",
"size": "0x40",
"vrom": "0x000000",
"symbols": []
},
{
"filepath": "build/src/makerom/ipl3.o",
"sectionType": ".text",
"vram": "0x00000040",
"size": "0xFC0",
"vrom": "0x000040",
"symbols": []
},
{
"filepath": "build/src/makerom/entry.o",
"sectionType": ".text",
"vram": "0x00001000",
"size": "0x60",
"vrom": "0x001000",
"symbols": [
{
"name": "entrypoint",
"vram": "0x00001000",
"size": "0x60",
"vrom": "0x001000"
}
]
}
]
},
{
"name": "..boot",
"vram": "0x80000460",
Expand Down
1 change: 1 addition & 0 deletions tests/output/oot_gcc.sym
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
00001000,code,entrypoint
80000460,code,cleararena
80000480,code,bootproc
80000580,code,Main_ThreadEntry
Expand Down
16 changes: 16 additions & 0 deletions tests/output/w0_000.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"segments": [
{
"name": "$nosegment",
"vram": "0x00000000",
"size": "0x0",
"vrom": "0x000000",
"files": [
{
"filepath": "build/us/src/weapon/header.c.o",
"sectionType": ".reginfo",
"vram": "0x00000000",
"size": "0x18",
"vrom": "0x000000",
"symbols": []
}
]
},
{
"name": ".WEAPON_OVL",
"vram": "0x8017A000",
Expand Down
39 changes: 39 additions & 0 deletions tests/output/z64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
{
"segments": [
{
"name": "$nosegment",
"vram": "0x00000000",
"size": "0x0",
"vrom": "0x000000",
"files": [
{
"filepath": "build/src/makerom/rom_header.o",
"sectionType": ".text",
"vram": "0x00000000",
"size": "0x40",
"vrom": "0x000000",
"symbols": []
},
{
"filepath": "build/src/makerom/ipl3.o",
"sectionType": ".text",
"vram": "0x00000040",
"size": "0xFC0",
"vrom": "0x000040",
"symbols": []
},
{
"filepath": "build/src/makerom/entry.o",
"sectionType": ".text",
"vram": "0x00001000",
"size": "0x60",
"vrom": "0x001000",
"symbols": [
{
"name": "entrypoint",
"vram": "0x00001000",
"size": "0x60",
"vrom": "0x001000"
}
]
}
]
},
{
"name": "..boot",
"vram": "0x80000460",
Expand Down
1 change: 1 addition & 0 deletions tests/output/z64.sym
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
00001000,code,entrypoint
80000460,code,cleararena
80000498,code,bootproc
800005A0,code,Main_ThreadEntry
Expand Down

0 comments on commit acf4513

Please sign in to comment.