summaryrefslogtreecommitdiff
path: root/rts/Linker.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-07-16 10:56:54 -0400
committerBen Gamari <ben@smart-cactus.org>2020-07-16 10:56:54 -0400
commitc0979cc53442b3a6202acab9cf164f0a4beea0b7 (patch)
treed08b956887e69f9bd2959f1ac75cc2a2182f9a32 /rts/Linker.c
parentae11bdfd98a10266bfc7de9e16b500be220307ac (diff)
parent2143c49273d7d87ee2f3ef1211856d60b1427af1 (diff)
downloadhaskell-c0979cc53442b3a6202acab9cf164f0a4beea0b7.tar.gz
Merge remote-tracking branch 'origin/wip/winio'
Diffstat (limited to 'rts/Linker.c')
-rw-r--r--rts/Linker.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index 443de6a356..4b551f0073 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1681,12 +1681,10 @@ int ocTryLoad (ObjectCode* oc) {
are to be loaded by this call.
This call is intended to have no side-effects when a non-duplicate
- symbol is re-inserted. A symbol is only a duplicate if the object file
- it is defined in has had it's relocations resolved. A resolved object
- file means the symbols inside it are required.
+ symbol is re-inserted.
- The symbol address is not used to distinguish symbols. Duplicate symbols
- are distinguished by name, oc and attributes (weak symbols etc).
+ We set the Address to NULL since that is not used to distinguish
+ symbols. Duplicate symbols are distinguished by name and oc.
*/
int x;
Symbol_t symbol;