From c9546b27d9620925e36179c1e08a25e3be94f4e0 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Fri, 8 Mar 2019 21:28:54 +0000 Subject: Allow list of chunks to be given to strip*() This allows extra chunks to be preserved for languages such as Elixir --- lib/stdlib/doc/src/beam_lib.xml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/beam_lib.xml b/lib/stdlib/doc/src/beam_lib.xml index 8bb4cf9101..bb44ca3201 100644 --- a/lib/stdlib/doc/src/beam_lib.xml +++ b/lib/stdlib/doc/src/beam_lib.xml @@ -469,6 +469,18 @@ CryptoKeyFun(clear) -> term() + + + Remove chunks not needed by the loader from a BEAM file. + + +

Removes all chunks from a BEAM + file except those needed by the loader or passed in. In particular, + the debug information (chunk debug_info and abstract_code) + is removed.

+
+
+ Removes chunks not needed by the loader from BEAM files. @@ -482,6 +494,19 @@ CryptoKeyFun(clear) -> term() + + + Removes chunks not needed by the loader from BEAM files. + + +

Removes all chunks except + those needed by the loader or passed in from BEAM files. In particular, + the debug information (chunk debug_info and abstract_code) + is removed. The returned list contains one element for each + specified filename, in the same order as in Files.

+
+
+ Remove chunks not needed by the loader from all BEAM files of @@ -496,6 +521,20 @@ CryptoKeyFun(clear) -> term() + + + Remove chunks not needed by the loader from all BEAM files of + a release. + +

Removes all chunks + except those needed by the loader or passed in from the BEAM files of a + release. Dir is to be the installation root + directory. For example, the current OTP release can be + stripped with the call + beam_lib:strip_release(code:root_dir()).

+
+
+ Read the module version of the BEAM file. -- cgit v1.2.3