diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-12-07 21:57:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-12-07 21:57:35 +0000 |
commit | 8b1f74c67de2fa79aa76e9baa52521c2e2158e25 (patch) | |
tree | ff18d7dc1d4ef7fee76f0f8d85aaa4d2ddeb8917 /gnu/usr.bin/binutils-2.17/ld/ldgram.y | |
parent | 4f3eab36b1937f632563dce5ab1b918012ff0351 (diff) |
Collect .openbsd.syscalls sections into a new PT_OPENBSD_SYSCALLS segment.
This will be used soon to pin system calls to designated call sites.
ok deraadt@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/ld/ldgram.y')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/ld/ldgram.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/ldgram.y b/gnu/usr.bin/binutils-2.17/ld/ldgram.y index 5ed2a5fc752..60097ab1323 100644 --- a/gnu/usr.bin/binutils-2.17/ld/ldgram.y +++ b/gnu/usr.bin/binutils-2.17/ld/ldgram.y @@ -1101,6 +1101,8 @@ phdr_type: $$ = exp_intop (0x65a41be6); else if (strcmp (s, "PT_OPENBSD_MUTABLE") == 0) $$ = exp_intop (0x65a3dbe5); + else if (strcmp (s, "PT_OPENBSD_SYSCALLS") == 0) + $$ = exp_intop (0x65a3dbe9); else { einfo (_("\ |