This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Enable PIEs for m68k-linux
- From: Roman Zippel <zippel at linux-m68k dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 2 Mar 2008 20:16:39 +0100 (CET)
- Subject: Re: Enable PIEs for m68k-linux
- References: <Pine.LNX.4.64.0803021820510.10895@digraph.polyomino.org.uk>
On Sun, 2 Mar 2008, Joseph S. Myers wrote:
> This patch makes ld generate the linker script required to build PIEs
> on m68k-linux-gnu. OK to commit?
Could we also set COMMONPAGESIZE (which would enable the relro option) to
bring m68k into sync with other elf targets?
I can confirm that this patch works on real m68k hardware.
bye, Roman
--- ld/emulparams/m68kelf.sh.org 2007-10-03 17:51:07.000000000 +0200
+++ ld/emulparams/m68kelf.sh 2008-01-30 05:21:50.000000000 +0100
@@ -2,10 +2,12 @@
OUTPUT_FORMAT="elf32-m68k"
TEXT_START_ADDR=0x80000000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH=m68k
MACHINE=
NOP=0x4e754e75
TEMPLATE_NAME=elf32
EXTRA_EM_FILE=m68kelf
GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes