memtest86_/memtest86+-5.31b-discard-note_gnu_property.patch

30 lines
872 B
Diff

Index: memtest86+-5.31b/Makefile
===================================================================
--- memtest86+-5.31b.orig/Makefile
+++ memtest86+-5.31b/Makefile
@@ -10,11 +10,11 @@
FDISK=/dev/fd0
TARGETDIR=/boot
-AS=as -32
+AS=as -32 -mx86-used-note=no
CC=gcc
CFLAGS= -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \
- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector
+ -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector -Wa,-mx86-used-note=no
SELF_TEST_CFLAGS = -Wall -Werror -march=i486 -m32 -O1 -g
Index: memtest86+-5.31b/memtest.bin.lds
===================================================================
--- memtest86+-5.31b.orig/memtest.bin.lds
+++ memtest86+-5.31b/memtest.bin.lds
@@ -11,5 +11,6 @@ SECTIONS {
*(.data)
_end = . ;
}
+ /DISCARD/ : { *(.note.gnu.property) }
_syssize = (_end - _start + 15) >> 4;
}