efi: create map file

When debugging the EFI bootloader it is helpful to have a map file
available.

Write file efi.map when linking.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Change-Id: I6d566df50fb2713f53375970f6645353bac54042
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2964
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
Heinrich Schuchardt
2020-06-28 21:04:29 +00:00
committed by Alex von Gluck IV
parent dc8d6e73f8
commit 35323f65d5
+1
View File
@@ -283,6 +283,7 @@ for platform in [ MultiBootSubDirSetup ] {
# efi loader needs to be shared.
if $(TARGET_BOOT_PLATFORM) = efi {
ldflags += -shared ;
ldflags += -Map=efi.map ;
}
BootLd boot_loader_$(platform:G=) :