Recognize PT_OPENBSD_RANDOMIZE in linker scripts.
authorkettenis <kettenis@openbsd.org>
Mon, 30 Dec 2013 10:30:00 +0000 (10:30 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 30 Dec 2013 10:30:00 +0000 (10:30 +0000)
ok miod@, matthew@

gnu/usr.bin/binutils-2.17/ld/ldgram.y
gnu/usr.bin/binutils/ld/ldgram.y

index 3829e6a..890b64d 100644 (file)
@@ -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 (_("\
index 6c46c85..e83e0e1 100644 (file)
@@ -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 (_("\