From: "Rémi Bernon" Subject: [PATCH v3 4/5] makedep: Align PE sections so they can be directly mmaped. Message-Id: <20191009074713.21116-4-rbernon@codeweavers.com> Date: Wed, 9 Oct 2019 09:47:12 +0200 In-Reply-To: <20191009074713.21116-1-rbernon@codeweavers.com> References: <20191009074713.21116-1-rbernon@codeweavers.com> This should help linux perf tool match the binary files on disk with the code regions 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 67dfea43bb3..6d74507661e 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -3247,6 +3247,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.23.0