<div dir="auto">I don't know if this is possible, but maybe you could use -opta (or -optlc or -optlo) to pass an appropriate option to the assembler (or LLVM compiler). Or -optlm to pass something to the linker. GHC itself probably doesn't support what you're trying to do, because obfuscating object code has never been a development priority.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 18, 2021, 2:30 PM Caeeh <<a href="mailto:caeeh@yandex.com">caeeh@yandex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>How can the names of functions from the generated executable be hidden/shrinked/erased?</div><div>I tried with -O2 option in GHC, but it does not work. In the binary I found names that are present in the source code. I want to remove them.</div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>