[Git][ghc/ghc][wip/unloading-fixes] Try fixing it

Ben Gamari gitlab at gitlab.haskell.org
Sat Nov 28 15:22:08 UTC 2020



Ben Gamari pushed to branch wip/unloading-fixes at Glasgow Haskell Compiler / GHC


Commits:
34cd1430 by Ben Gamari at 2020-11-28T10:21:58-05:00
Try fixing it

- - - - -


1 changed file:

- rts/LinkerInternals.h


Changes:

=====================================
rts/LinkerInternals.h
=====================================
@@ -35,6 +35,7 @@ void printLoadedObjects(void);
 
 typedef void SymbolAddr;
 typedef char SymbolName;
+typedef struct _ObjectCode ObjectCode;
 
 #if defined(OBJFORMAT_ELF)
 #  include "linker/ElfTypes.h"
@@ -199,7 +200,7 @@ typedef enum {
 /* Top-level structure for an object module.  One of these is allocated
  * for each object file in use.
  */
-typedef struct _ObjectCode {
+struct _ObjectCode {
     OStatus    status;
     pathchar  *fileName;
     int        fileSize;     /* also mapped image size when using mmap() */
@@ -319,7 +320,7 @@ typedef struct _ObjectCode {
 
     /* virtual memory ranges of loaded code */
     NativeCodeRange *nc_ranges;
-} ObjectCode;
+};
 
 #define OC_INFORMATIVE_FILENAME(OC)             \
     ( (OC)->archiveMemberName ?                 \



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/34cd14304c86ccc0d9d97bbca0b81830a7060d0f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/34cd14304c86ccc0d9d97bbca0b81830a7060d0f
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201128/b4f98adb/attachment-0001.html>


More information about the ghc-commits mailing list