diff options
author | Wilken 'Akiko' Gottwalt | 2021-05-27 09:29:01 +0200 |
---|---|---|
committer | Wilken 'Akiko' Gottwalt | 2021-05-27 09:29:01 +0200 |
commit | 79b08b2af3a551bcc32dd469ef8b50666c581c14 (patch) | |
tree | a5fddf03bc13818aaac4fdeaf41f72ecead86e84 /no-pie.patch | |
parent | 7c7ee87e51afb0b166e93fc399d39cf5c0729717 (diff) | |
download | aur-79b08b2af3a551bcc32dd469ef8b50666c581c14.tar.gz |
updated version to last maintained debian version (77)
Current binutils 2.36+ introduces an odd bug that causes the stage1
and stage2 files to bloat to over 100 MiB. This is not fixed yet.
Diffstat (limited to 'no-pie.patch')
-rw-r--r-- | no-pie.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/no-pie.patch b/no-pie.patch new file mode 100644 index 000000000000..83246796a9a4 --- /dev/null +++ b/no-pie.patch @@ -0,0 +1,40 @@ +Description: Disable PIE for stage1 and stage2 + This is no use for freestanding binaries and causes an explosion in binary + size. +Author: Colin Watson <cjwatson@debian.org> +Forwarded: no +Last-Update: 2016-10-08 + +Index: b/configure.ac +=================================================================== +--- a/configure.ac ++++ b/configure.ac +@@ -143,6 +143,28 @@ + if test "x$no_combine_stack_adjustments_flag" = xyes; then + GRUB_CFLAGS="$GRUB_CFLAGS -fno-combine-stack-adjustments" + fi ++ # Disable PIE if possible. ++ AC_CACHE_CHECK([whether gcc has -fno-PIE], ++ no_pie_flag, [ ++ saved_CFLAGS=$CFLAGS ++ CFLAGS="-fno-PIE" ++ AC_TRY_COMPILE(, , no_pie_flag=yes, no_pie_flag=no) ++ CFLAGS=$saved_CFLAGS ++ ]) ++ if test "x$no_pie_flag" = xyes; then ++ STAGE1_CFLAGS="$STAGE1_CFLAGS -fno-PIE" ++ STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-PIE" ++ fi ++ AC_CACHE_CHECK([whether gcc has -no-pie], ++ no_pie_linker_flag, [ ++ saved_LDFLAGS=$LDFLAGS ++ LDFLAGS="-no-pie" ++ AC_TRY_LINK(, , no_pie_linker_flag=yes, no_pie_linker_flag=no) ++ LDFLAGS=$saved_LDFLAGS ++ ]) ++ if test "x$no_pie_linker_flag" = xyes; then ++ LDFLAGS="$LDFLAGS -no-pie" ++ fi + fi + fi + |