From ce234db7935b2890e0880e442d2a68b8f25b2c93 Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 30 Dec 2013 10:30:00 +0000 Subject: [PATCH] Recognize PT_OPENBSD_RANDOMIZE in linker scripts. ok miod@, matthew@ --- gnu/usr.bin/binutils-2.17/ld/ldgram.y | 2 ++ gnu/usr.bin/binutils/ld/ldgram.y | 2 ++ 2 files changed, 4 insertions(+) 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 (_("\ -- 2.20.1