Generate a kernel.map map file for the example kernel. This helps with examining the generated machine code, making the example kernel more educational.
Signed-off-by: Hans Ulrich Niedermann <h...@n-dimensional.de> diff --git a/.gitignore b/.gitignore index 7a035c267..889e17f69 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ Makefile /doc/*.c.texi /doc/*.h.texi /doc/kernel +/doc/kernel.map /doc/multiboot.info* /doc/stamp-vti /doc/version.texi diff --git a/doc/Makefile.am b/doc/Makefile.am index cc07ceec8..21cdff0b2 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -18,6 +18,9 @@ kernel_CFLAGS = $(kernel_cflags) -fno-builtin -nostdinc -O -g -Wall \ -imacros $(top_builddir)/config.h kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,80100000 -Wl,--build-id=none +CLEANFILES += kernel.map +kernel_LDFLAGS += -Wl,-Map,kernel.map + CLEANFILES += *.lst kernel_CCASFLAGS += -Wa,-adhlns=$(@:.o=.lst) kernel_CFLAGS += -Wa,-adhlns=$(@:.o=.lst) -- 2.26.2 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel