From: Taylor R Campbell Date: Fri, 23 Jul 2010 18:33:32 +0000 (+0000) Subject: Use _init and etext on NetBSD to find the text segment's bounds. X-Git-Tag: 20101212-Gtk~133 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=abe5e4d573a41eb556ed6342bf1e8b3a4a041cd4;p=mit-scheme.git Use _init and etext on NetBSD to find the text segment's bounds. --- diff --git a/src/microcode/uxtrap.h b/src/microcode/uxtrap.h index 51f820829..ed6a3ef5e 100644 --- a/src/microcode/uxtrap.h +++ b/src/microcode/uxtrap.h @@ -795,7 +795,7 @@ typedef struct extern int _etext; #endif -#ifdef __linux__ +#if defined(__linux__) || defined(__NetBSD__) extern unsigned int _init; extern unsigned int etext; # define ADDRESS_UCODE_P(addr) \