From ec5a1bc71f66d133dff23784ff97ca627bcd68b6 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 24 Sep 2020 10:26:02 +0200 Subject: [PATCH] Fix incorrect obj file documentation Bit 7 of section types was actually documented in the symbol type Bit 6 of section types was not documented at all --- src/rgbds.5 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rgbds.5 b/src/rgbds.5 index a12a197f..d98f99c3 100644 --- a/src/rgbds.5 +++ b/src/rgbds.5 @@ -48,8 +48,6 @@ REPT NumberOfSymbols ; Number of symbols defined in this object file. 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 & 0x7F) != 1 ; If symbol is defined in this object file. @@ -84,6 +82,10 @@ REPT NumberOfSections ; 5 = WRAMX ; 6 = SRAM ; 7 = OAM + ; Bits 7 and 6 are independent from the above value: + ; Bit 7 iencodes whether the section is unionized + ; Bit 6 encodes whether the section is a fragment + ; Bits 6 and 7 may not be both set at the same time! LONG Org ; Address to fix this section at. -1 if the linker should ; decide (floating address).