From owner-cvs-src-old@FreeBSD.ORG Tue Feb 10 15:50:35 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D1CC106564A for ; Tue, 10 Feb 2009 15:50:35 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8977F8FC14 for ; Tue, 10 Feb 2009 15:50:35 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1AFoZgi021070 for ; Tue, 10 Feb 2009 15:50:35 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1AFoZxF021069 for cvs-src-old@freebsd.org; Tue, 10 Feb 2009 15:50:35 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200902101550.n1AFoZxF021069@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Tue, 10 Feb 2009 15:50:19 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_linker.c link_elf.c link_elf_obj.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 15:50:36 -0000 attilio 2009-02-10 15:50:19 UTC FreeBSD src repository Modified files: sys/kern kern_linker.c link_elf.c link_elf_obj.c Log: SVN rev 188440 on 2009-02-10 15:50:19Z by attilio Scanning all the formats for binary translation of modules loading can result in errors for a format loading but subsequent correct recognizing for another format. File format loading functions should avoid printing any additional informations but just returning appropriate (and different between each other) error condition, characterizing different informations. Additively, the linker should handle appropriately different format loading errors. While a general mechanism is desired, fix a simple and common case on amd64: file type is not recognized for link elf and confuses the linker. Printout an error if all the registered linker classes can't recognize and load the module. Reviewed by: jhb Sponsored by: Sandvine Incorporated Revision Changes Path 1.166 +8 -0 src/sys/kern/kern_linker.c 1.102 +2 -4 src/sys/kern/link_elf.c 1.104 +1 -2 src/sys/kern/link_elf_obj.c