shithub: rgbds

Download patch

ref: 275b8e15ff2eb13eeeef9e8d60783ffa839007e6
parent: e123b6dec79f25a765ae0d0f960db10e14b4644d
author: ISSOtm <[email protected]>
date: Fri Mar 20 20:29:58 EDT 2020

Document modification to object file format

--- a/src/rgbds.5
+++ b/src/rgbds.5
@@ -48,8 +48,10 @@
     BYTE    Type          ; 0 = LOCAL symbol only used in this file.
                           ; 1 = IMPORT this symbol from elsewhere
                           ; 2 = EXPORT this symbol to other objects.
+                          ; Bit 7 is independent from the above value, and
+                          ; encodes whether the section is unionized
 
-    IF      Type != 1     ; If symbol is defined in this object file.
+    IF (Type & 0x7F) != 1 ; If symbol is defined in this object file.
 
         STRING  FileName  ; File where the symbol is defined.