mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix incorrect PC in LOAD blocks at link time
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "linkdefs.h"
|
||||
|
||||
struct Section;
|
||||
|
||||
struct AttachedSymbol {
|
||||
struct Symbol *symbol;
|
||||
struct AttachedSymbol *next;
|
||||
@@ -27,9 +29,13 @@ struct AttachedSymbol {
|
||||
struct Patch {
|
||||
char *fileName;
|
||||
int32_t offset;
|
||||
uint32_t pcSectionID;
|
||||
uint32_t pcOffset;
|
||||
enum PatchType type;
|
||||
int32_t rpnSize;
|
||||
uint8_t *rpnExpression;
|
||||
|
||||
struct Section const *pcSection;
|
||||
};
|
||||
|
||||
struct Section {
|
||||
|
||||
Reference in New Issue
Block a user