This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Enable PIEs for m68k-linux



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]