summaryrefslogtreecommitdiff
path: root/sys-apps/memtest86+/files/memtest86+-5.31b-discard-note_gnu_property.patch
blob: e24ad4318f37d60d77b2104713867f0479d7071e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/Makefile	2021-12-04 15:15:45.845429722 +0100
+++ b/Makefile	2021-12-04 15:22:51.924755794 +0100
@@ -11,9 +11,9 @@
 OBJCOPY=objcopy
 
 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
 CPPFLAGS= -m32
-ASFLAGS= -32
+ASFLAGS= -32 -mx86-used-note=no
 
 SELF_TEST_CFLAGS = -Wall -Werror -march=i486 -m32 -O1 -g
 
--- a/memtest.bin.lds	2020-04-12 17:14:51.000000000 +0200
+++ b/memtest.bin.lds	2021-12-04 14:54:33.178625382 +0100
@@ -11,5 +11,6 @@
 		*(.data) 
 		_end = . ;
 	}
+	/DISCARD/ : { *(.note.gnu.property) }
 	_syssize = (_end - _start + 15) >> 4;
 }