ports/devel/elfsh/files/patch-libelfsh_relinject.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
444 B
C

--- libelfsh/relinject.c.orig 2003-08-21 01:33:53 UTC
+++ libelfsh/relinject.c
@@ -347,7 +347,7 @@ static int elfsh_inject_etrel_section(el
writable = elfsh_get_section_writableflag(sect->shdr);
/* FreeBSD is incompatible with pre-interp injection */
-#ifdef __FreeBSD__
+#if defined __FreeBSD__ || defined __DragonFly__
mode = ELFSH_DATA_INJECTION;
#else
mode = (writable ? ELFSH_DATA_INJECTION : ELFSH_CODE_INJECTION);