clayborg added inline comments.

================
Comment at: 
lldb/source/Plugins/DynamicLoader/wasm-DYLD/DynamicLoaderWasmDYLD.cpp:121
+                                             : image_load_address);
+      if (m_process->GetTarget().SetSectionLoadAddress(section_sp, load_addr))
+        loaded_module_list.AppendIfNeeded(module_sp);
----------------
Is there only ever just a code address and an image address? If you have more 
than 2 sections you don't want to load the different sections at the same 
address because converting a load address back into a section should provide a 
one to one mapping. So looking up 0x1000 currently should not return N 
sections, it should return 1 section. If this doesn't happen the binary search 
of an address in the target section load list could return any of the sections 
that match.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72751/new/

https://reviews.llvm.org/D72751



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to