nm
shows symbols defined in an executable. GHC includes library name in
symbols, so we can use this to inspect libraries that make it into the compiled
binary. GHC uses z-encoding so we pipe the output of nm
into an ad-hoc invocation of sed, viz.
GHC embeds linker flags into the final ELF binary:
I turned to my own Jacinda to view the output of otool and was pleasantly surprised.
The GNU sed manual offers the following to join backslash-continued lines:
Jacinda can imitate cloc by combining it with other command-line tools on the Unix command-line, viz.
next