From: Rémi Bernon Subject: [PATCH 1/2] makefiles: Align PE sections so that they get directly mmap-ed Message-Id: <20190718075535.8898-2-rbernon@codeweavers.com> Date: Thu, 18 Jul 2019 09:55:34 +0200 In-Reply-To: <20190718075535.8898-1-rbernon@codeweavers.com> References: <20190718075535.8898-1-rbernon@codeweavers.com> This will make linux perf tool able to find the origin of the code in memory. Signed-off-by: Rémi Bernon --- tools/makedep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/makedep.c b/tools/makedep.c index 24866b31455..9713f62b25d 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -3242,6 +3242,7 @@ static void output_module( struct makefile *make ) output_filenames_obj_dir( make, make->res_files ); output_filenames( all_libs ); output_filename( make->is_cross ? "$(CROSSLDFLAGS)" : "$(LDFLAGS)" ); + output_filename( make->is_cross ? "-Wl,--file-alignment,4096" : "" ); output( "\n" ); if (spec_file && make->importlib) -- 2.20.1