diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-01-30 08:45:49 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-01 12:29:26 -0500 |
commit | 88fba8a4b3c22e953a634b81dd0b67ec66eb5e72 (patch) | |
tree | 75a46332ad32cfeaf4f4d52b3b60fd452f2493b6 /rts/Linker.c | |
parent | 06185102bb06d6d56e00d40172a6a473fc228501 (diff) | |
download | haskell-88fba8a4b3c22e953a634b81dd0b67ec66eb5e72.tar.gz |
Fix a few Note inconsistencies
Diffstat (limited to 'rts/Linker.c')
-rw-r--r-- | rts/Linker.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index e30fadb262..6c13213092 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -80,7 +80,7 @@ #endif /* Note [runtime-linker-support] - ----------------------------- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When adding support for a new platform to the runtime linker please update `$TOP/configure.ac` under heading `Does target have runtime linker support?`. @@ -94,7 +94,7 @@ addresses of unloaded symbols. Note [runtime-linker-phases] - -------------------------------------- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Broadly the behavior of the runtime linker can be split into the following four phases: @@ -247,7 +247,7 @@ static void ghciRemoveSymbolTable(StrHashTable *table, const SymbolName* key, */ /* Note [weak-symbols-support] - ------------------------------------- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ While ghciInsertSymbolTable does implement extensive logic for weak symbol support, weak symbols are not currently fully supported by the RTS. This code is mostly here for COMDAT @@ -610,7 +610,7 @@ internal_dlopen(const char *dll_name) /* Note [RTLD_LOCAL] - + ~~~~~~~~~~~~~~~~~ In GHCi we want to be able to override previous .so's with newly loaded .so's when we recompile something. This further implies that when we look up a symbol in internal_dlsym() we have to iterate @@ -1716,6 +1716,7 @@ HsInt loadOc (ObjectCode* oc) } /* Note [loadOc orderings] + ~~~~~~~~~~~~~~~~~~~~~~~ The order of `ocAllocateExtras` and `ocGetNames` matters. For MachO and ELF, `ocInit` and `ocGetNames` initialize a bunch of pointers based on the offset to `oc->image`, but `ocAllocateExtras` may relocate |