--- lib/commands/toolcontext.c.orig 2007-02-08 10:52:33.000000000 -0600 +++ lib/commands/toolcontext.c.orig 2007-02-08 10:55:20.000000000 -0600 @@ -772,7 +772,8 @@ list_iterate_safe(sgtl, tmp, &cmd->segtypes) { segtype2 = list_item(sgtl, struct segment_type); - if (!strcmp(segtype2->name, segtype->name)) { + if (segtype2 != segtype && + !strcmp(segtype2->name, segtype->name)) { log_error("Duplicate segment type %s: " "unloading shared library %s", segtype->name, cv->v.str);