Accepting request 888979 from Base:System
OBS-URL: https://build.opensuse.org/request/show/888979 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/memtest86+?expand=0&rev=36
This commit is contained in:
commit
96aab067b5
29
memtest86+-5.31b-discard-note_gnu_property.patch
Normal file
29
memtest86+-5.31b-discard-note_gnu_property.patch
Normal file
@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 27 06:57:21 UTC 2021 - Josef Möllers <josef.moellers@suse.com>
|
||||
|
||||
- Due to recent binutils update the gnu assembler defaults to
|
||||
generate a ".note.gnu.property" section. The linker happily picks
|
||||
it up to the output binary that offsets the real code entry and
|
||||
crashes at runtime.
|
||||
This patch discards the ".note.gnu.property" section.
|
||||
[bsc#1185272, memtest86+-5.31b-discard-note_gnu_property.patch]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 17 13:48:44 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -26,6 +26,7 @@ URL: https://www.memtest.org
|
||||
Source: https://www.memtest.org/download/%{version}/memtest86+-%{version}.tar.gz
|
||||
Patch0: fix-destdir
|
||||
Patch1: memtest86+-5.01-no-optimization.patch
|
||||
Patch2: memtest86+-5.31b-discard-note_gnu_property.patch
|
||||
#!BuildIgnore: gcc-PIE
|
||||
Requires(pre): /sbin/update-bootloader
|
||||
Requires(pre): perl
|
||||
@ -45,6 +46,7 @@ it can be used to test the computer's memory.
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
# dependencies are broken for the package and it should not be built in parallel
|
||||
|
Loading…
x
Reference in New Issue
Block a user