From: kettenis Date: Mon, 30 Dec 2013 10:30:00 +0000 (+0000) Subject: Recognize PT_OPENBSD_RANDOMIZE in linker scripts. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ce234db7935b2890e0880e442d2a68b8f25b2c93;p=openbsd Recognize PT_OPENBSD_RANDOMIZE in linker scripts. ok miod@, matthew@ --- diff --git a/gnu/usr.bin/binutils-2.17/ld/ldgram.y b/gnu/usr.bin/binutils-2.17/ld/ldgram.y index 3829e6ae00a..890b64dfcdb 100644 --- a/gnu/usr.bin/binutils-2.17/ld/ldgram.y +++ b/gnu/usr.bin/binutils-2.17/ld/ldgram.y @@ -1089,6 +1089,8 @@ phdr_type: $$ = exp_intop (0x6474e550); else if (strcmp (s, "PT_GNU_STACK") == 0) $$ = exp_intop (0x6474e551); + else if (strcmp (s, "PT_OPENBSD_RANDOMIZE") == 0) + $$ = exp_intop (0x65a3dbe6); else { einfo (_("\ diff --git a/gnu/usr.bin/binutils/ld/ldgram.y b/gnu/usr.bin/binutils/ld/ldgram.y index 6c46c854473..e83e0e1464a 100644 --- a/gnu/usr.bin/binutils/ld/ldgram.y +++ b/gnu/usr.bin/binutils/ld/ldgram.y @@ -1019,6 +1019,8 @@ phdr_type: $$ = exp_intop (0x6474e550); else if (strcmp (s, "PT_GNU_STACK") == 0) $$ = exp_intop (0x6474e551); + else if (strcmp (s, "PT_OPENBSD_RANDOMIZE") == 0) + $$ = exp_intop (0x65a3dbe6); else { einfo (_("\