From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4DB381381F3 for ; Thu, 10 Oct 2013 20:53:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C6CDE0A64; Thu, 10 Oct 2013 20:53:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B515DE0A01 for ; Thu, 10 Oct 2013 20:53:31 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D861433F00D for ; Thu, 10 Oct 2013 20:53:30 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2273) id A41862004C; Thu, 10 Oct 2013 20:53:29 +0000 (UTC) From: "Anthony G. Basile (blueness)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, blueness@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/memtest86/files: memtest86-4.3.3-build-nopie.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: memtest86-4.3.3-build-nopie.patch X-VCS-Directories: sys-apps/memtest86/files X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20131010205329.A41862004C@flycatcher.gentoo.org> Date: Thu, 10 Oct 2013 20:53:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2bb3a452-fe2c-4ccf-96fd-8ea706cc0a14 X-Archives-Hash: 554e6b8359e83b9118b9c3e5a63b71e3 blueness 13/10/10 20:53:29 Added: memtest86-4.3.3-build-nopie.patch Log: Expand the build patch to include -nopie, bug #206726 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) Revision Changes Path 1.1 sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch?rev=1.1&content-type=text/plain Index: memtest86-4.3.3-build-nopie.patch =================================================================== diff -Naur src.orig/Makefile src/Makefile --- src.orig/Makefile 2013-10-10 16:52:14.292140058 -0400 +++ src/Makefile 2013-10-10 16:51:37.431138380 -0400 @@ -8,11 +8,9 @@ # FDISK=/dev/fd0 -AS=as -32 -CC=gcc +ASFLAGS=-32 -CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ - -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector +CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -nopie $(SMP_FL) OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ config.o memsize.o error.o smp.o cpuid.o vmem.o random.o @@ -23,7 +21,7 @@ # symbols and then link it dynamically so I have full # relocation information memtest_shared: $(OBJS) memtest_shared.lds Makefile - $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ + $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds -m elf_i386 \ -o $@ $(OBJS) && \ $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) @@ -50,10 +48,10 @@ $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c test.o: test.c - $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c + $(CC) -c $(CFLAGS:-fPIC=) -o $@ $< random.o: random.c - $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c + $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -nopie random.c clean: rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \ @@ -72,3 +70,7 @@ dos: all cat mt86+_loader memtest.bin > memtest.exe +head.o: head.s +bootsect.o: bootsect.s +setup.o: setup.s +