Teach ld to access that and PT_GNU_RELRO in linker scripts.
ok deraadt@
case PT_GNU_RELRO: pt = "RELRO"; break;
case PT_OPENBSD_RANDOMIZE: pt = "OPENBSD_RANDOMIZE"; break;
case PT_OPENBSD_WXNEEDED: pt = "OPENBSD_WXNEEDED"; break;
+ case PT_OPENBSD_BOOTDATA: pt = "OPENBSD_BOOTDATA"; break;
default: pt = NULL; break;
}
return pt;
return "OPENBSD_RANDOMIZE";
case PT_OPENBSD_WXNEEDED:
return "OPENBSD_WXNEEDED";
+ case PT_OPENBSD_BOOTDATA:
+ return "OPENBSD_BOOTDATA";
default:
if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC))
#define PT_OPENBSD_RANDOMIZE 0x65a3dbe6 /* Fill with random data. */
#define PT_OPENBSD_WXNEEDED 0x65a3dbe7 /* Program does W^X violations */
+#define PT_OPENBSD_BOOTDATA 0x65a41be6 /* Section for boot arguments */
/* Program segment permissions, in program header p_flags field. */
$$ = exp_intop (0x6474e550);
else if (strcmp (s, "PT_GNU_STACK") == 0)
$$ = exp_intop (0x6474e551);
+ else if (strcmp (s, "PT_GNU_RELRO") == 0)
+ $$ = exp_intop (0x6474e552);
else if (strcmp (s, "PT_OPENBSD_RANDOMIZE") == 0)
$$ = exp_intop (0x65a3dbe6);
else if (strcmp (s, "PT_OPENBSD_WXNEEDED") == 0)
$$ = exp_intop (0x65a3dbe7);
+ else if (strcmp (s, "PT_OPENBSD_BOOTDATA") == 0)
+ $$ = exp_intop (0x65a41be6);
else
{
einfo (_("\