File otp-R15B03-1-lib-stdlib.patch of Package erlang

lib/stdlib/src/beam_lib.erl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl
index e9a5e68..07ca7b2 100644
--- a/lib/stdlib/src/beam_lib.erl
+++ b/lib/stdlib/src/beam_lib.erl
@@ -395,7 +395,7 @@ strip_fils(Files) ->
 
 %% -> {ok, {Mod, FileName}} | {ok, {Mod, binary()}} | throw(Error)
 strip_file(File) ->
-    {ok, {Mod, Chunks}} = read_significant_chunks(File, significant_chunks()),
+    {ok, {Mod, Chunks}} = read_significant_chunks(File, unstripped_chunks()),
     {ok, Stripped0} = build_module(Chunks),
     Stripped = compress(Stripped0),
     case File of
@@ -840,6 +840,9 @@ error(Reason) ->
 significant_chunks() ->
     ["Line" | md5_chunks()].
 
+unstripped_chunks() ->
+    ["Attr" | significant_chunks()].
+
 %% The following chunks are significant when calculating the MD5
 %% for a module. They are listed in the order that they should be MD5:ed.