Missing bit to make ld.bfd actually emit PT_OPENBSD_NOBTCFI.
authorpascal <pascal@openbsd.org>
Fri, 7 Jul 2023 17:23:03 +0000 (17:23 +0000)
committerpascal <pascal@openbsd.org>
Fri, 7 Jul 2023 17:23:03 +0000 (17:23 +0000)
ok deraadt@

gnu/usr.bin/binutils-2.17/bfd/elflink.c

index d6fe664..afb40ba 100644 (file)
@@ -5111,6 +5111,7 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
 
   elf_tdata (output_bfd)->relro = info->relro;
   elf_tdata (output_bfd)->wxneeded = info->wxneeded;
+  elf_tdata (output_bfd)->nobtcfi = info->nobtcfi;
   elf_tdata (output_bfd)->executable = info->executable;
   if (info->execstack)
     elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X;