diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index c4a592957cbdc251ac79763768e7046511eeea13..32e6ffbd1998aa651850c64050299a0ecf6e5b0b 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -476,6 +476,7 @@ wanteds os = concat
           ,closureFieldOffset Both "StgStack" "stack"
           ,closureField       C    "StgStack" "stack_size"
           ,closureField       C    "StgStack" "dirty"
+          ,closureField       C    "StgStack" "marking"
 
           ,structSize C "StgTSOProfInfo"
 
@@ -485,6 +486,11 @@ wanteds os = concat
           ,closureField C "StgCatchFrame" "handler"
           ,closureField C "StgCatchFrame" "exceptions_blocked"
 
+          ,structSize  C "StgRetFun"
+          ,fieldOffset C "StgRetFun" "size"
+          ,fieldOffset C "StgRetFun" "fun"
+          ,fieldOffset C "StgRetFun" "payload"
+
           ,closureSize       C "StgPAP"
           ,closureField      C "StgPAP" "n_args"
           ,closureFieldGcptr C "StgPAP" "fun"