summaryrefslogtreecommitdiff
path: root/devel/elfsh/files/patch-libelfsh_relinject.c
blob: 0d05eec7ef9eaa550e910c880be57ed7f00f75ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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);