From 566eb955be10ff865acbf3b8d1669b91c238dafa Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Sat, 28 Aug 2021 15:12:58 -0700 Subject: [PATCH] Add comment about why some roc apps are currently broken --- linker/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linker/src/lib.rs b/linker/src/lib.rs index 20f30ae0c3..198be451d1 100644 --- a/linker/src/lib.rs +++ b/linker/src/lib.rs @@ -1050,6 +1050,9 @@ pub fn surgery(matches: &ArgMatches) -> io::Result { } } offset += size; + // TODO: we need to deal with relocatoins in these sections. + // They may point to the text section, which means we need to know where it is. + // This currently breaks some roc apps with closures. } if verbose {