ports/devel/elfsh/files/patch-libelfsh_plt.c
John Marino 6aca1a12ff devel/elfsh: document ncurses requirement
while here, bring over patches from dports to support DF.
2016-08-23 16:49:47 +00:00

11 lines
370 B
C

--- libelfsh/plt.c.orig 2003-08-21 01:11:03 UTC
+++ libelfsh/plt.c
@@ -47,7 +47,7 @@ int elfsh_copy_plt(elfshobj_t *file)
0, 0, plt->shdr->sh_size, 0, 0, 0, 0);
/* FreeBSD is incompatible with pre-interp injection */
-#ifdef __FreeBSD__
+#if defined __FreeBSD__ || defined __DragonFly__
mode = ELFSH_DATA_INJECTION;
#else
mode = ELFSH_CODE_INJECTION;