From: Michael Brown Date: Sun, 11 Jun 2006 01:55:43 +0000 (+0000) Subject: Add NULL_TRAP as a config option X-Git-Tag: v0.9.3~1284 X-Git-Url: http://git.etherboot.org/people/andreif/gpxe.git/commitdiff_plain/c10698b8b45cd3250d5cddaa60bd257514b72085?hp=55bb40c39afd94bc0c0005b3b7da947b943488da Add NULL_TRAP as a config option --- diff --git a/src/config.h b/src/config.h index 7dfba144..ac15f779 100644 --- a/src/config.h +++ b/src/config.h @@ -124,5 +124,6 @@ * "make bin/rtl8139.dsk bs" */ #undef BUILD_ID /* Include a custom build ID string, * e.g "test-foo" */ +#undef NULL_TRAP /* Attempt to catch NULL function calls */ /* @END general.h */ diff --git a/src/core/config.c b/src/core/config.c index ce92d90a..3a57ffd5 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -199,3 +199,11 @@ REQUIRE_OBJECT ( wince ); #ifdef PXE_IMAGE REQUIRE_OBJECT ( pxe ); #endif + +/* + * Drag in miscellaneous objects + * + */ +#ifdef NULL_TRAP +REQUIRE_OBJECT ( nulltrap ); +#endif