diff --git a/include/link/symbol.hpp b/include/link/symbol.hpp index b625f228..d49e0272 100644 --- a/include/link/symbol.hpp +++ b/include/link/symbol.hpp @@ -33,6 +33,9 @@ struct Symbol { int32_t, // Constants just have a numeric value Label // Label values refer to an offset within a specific section > data; + + Label &label(); + Label const &label() const; }; void sym_AddSymbol(Symbol &symbol); diff --git a/src/link/object.cpp b/src/link/object.cpp index c24f55da..985c7301 100644 --- a/src/link/object.cpp +++ b/src/link/object.cpp @@ -340,11 +340,11 @@ static void readSection(FILE *file, Section §ion, char const *fileName, static void linkSymToSect(Symbol &symbol, Section §ion) { uint32_t a = 0, b = section.symbols.size(); - int32_t symbolOffset = std::get