From 7586f613d58db8f210649c890c467edce11643b9 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Fri, 28 Jun 2019 00:58:35 +0200 Subject: Added function-section functionality --- src/link.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index 277dcbc5c6..401f477760 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -791,6 +791,8 @@ static Buf *build_a_raw(CodeGen *parent_gen, const char *aname, Buf *full_path, new_link_lib->provided_explicitly = parent_gen->libc_link_lib->provided_explicitly; } + child_gen->function_sections = true; + codegen_build_and_link(child_gen); return &child_gen->output_file_path; } -- cgit v1.2.3