mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
11 lines
444 B
C
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);
|