On Tue, Jul 09, 2019 at 05:52:58PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On mingw i386-pc without this option mingw generates a > rdata$zzz symbol that is page-aligned and hence lzma_decompress no > longer fits in its allocated space.
Out of curiosity, why is the size of lzma_decompress limited to an value? I thought that the total size of core.img is limited not lzma_decompress module. > With mingw this also saves a bit of space in modules > On other platforms we should already strip this, so no effect May I ask you to polish a comment a bit. And please add your SOB. > --- > configure.ac | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/configure.ac b/configure.ac > index 7656f2434..a86951b90 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -999,6 +999,29 @@ if test "x$grub_cv_cc_fno_unwind_tables" = xyes; then > TARGET_CFLAGS="$TARGET_CFLAGS -fno-unwind-tables" > fi > > +# Do not generate .ident sections > +AC_CACHE_CHECK([whether -fno-ident works], [grub_cv_cc_fno_ident], [ > + CFLAGS="$TARGET_CFLAGS -fno-ident" > + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], > + [grub_cv_cc_fno_ident=yes], > + [grub_cv_cc_fno_ident=no]) > +]) > + > +if test "x$grub_cv_cc_fno_ident" = xyes; then > + TARGET_CFLAGS="$TARGET_CFLAGS -fno-ident" > +fi OK... > + > +AC_CACHE_CHECK([whether -fno-unwind-tables works], > [grub_cv_cc_fno_unwind_tables], [ > + CFLAGS="$TARGET_CFLAGS -fno-unwind-tables" > + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], > + [grub_cv_cc_fno_unwind_tables=yes], > + [grub_cv_cc_fno_unwind_tables=no]) > +]) > + > +if test "x$grub_cv_cc_fno_unwind_tables" = xyes; then > + TARGET_CFLAGS="$TARGET_CFLAGS -fno-unwind-tables" > +fi > + ...but I am afraid that you copied this part from above by mistake. Could you drop that? Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel