Use _init and etext on NetBSD to find the text segment's bounds.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 23 Jul 2010 18:33:32 +0000 (18:33 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 23 Jul 2010 18:33:32 +0000 (18:33 +0000)
src/microcode/uxtrap.h

index 51f820829920856b5e5e45b7a38efccc1194cbdd..ed6a3ef5e94e6ac18bc4ddcbb9c5dc63f7744c32 100644 (file)
@@ -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)                                                \