From owner-cvs-src@FreeBSD.ORG Mon Dec 18 05:40:02 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE9CE16A403; Mon, 18 Dec 2006 05:40:01 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB4443CA3; Mon, 18 Dec 2006 05:40:01 +0000 (GMT) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBI5e1fh039339; Mon, 18 Dec 2006 05:40:01 GMT (envelope-from jkoshy@repoman.freebsd.org) Received: (from jkoshy@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBI5e1t5039338; Mon, 18 Dec 2006 05:40:01 GMT (envelope-from jkoshy) Message-Id: <200612180540.kBI5e1t5039338@repoman.freebsd.org> From: Joseph Koshy Date: Mon, 18 Dec 2006 05:40:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libelf Makefile elf_types.m4 gelf.h gelf_cap.c gelf_move.c gelf_syminfo.c libelf_convert.m4 libelf_fsize.m4 libelf_msize.m4 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 05:40:02 -0000 jkoshy 2006-12-18 05:40:01 UTC FreeBSD src repository Modified files: lib/libelf Makefile elf_types.m4 gelf.h gelf_cap.c gelf_move.c gelf_syminfo.c libelf_convert.m4 libelf_fsize.m4 libelf_msize.m4 Log: Use rather than the OS version reported by the kernel to determine which Elf Types are to be handled. Change the M4 templates to wrap an `#if __FreeBSD_version >= NNN'/`#endif' pair around the generated code for each ELF data type, where `NNN' is the OS version where the ELF type was added to the source tree. This change allows cross-builds of old sources on newer FreeBSD systems to work correctly. Problem reported by: ru Revision Changes Path 1.4 +6 -11 src/lib/libelf/Makefile 1.2 +34 -24 src/lib/libelf/elf_types.m4 1.2 +2 -2 src/lib/libelf/gelf.h 1.2 +5 -0 src/lib/libelf/gelf_cap.c 1.2 +5 -0 src/lib/libelf/gelf_move.c 1.2 +5 -0 src/lib/libelf/gelf_syminfo.c 1.2 +9 -12 src/lib/libelf/libelf_convert.m4 1.2 +4 -9 src/lib/libelf/libelf_fsize.m4 1.2 +4 -9 src/lib/libelf/libelf_msize.m4