From owner-cvs-src@FreeBSD.ORG Sat Aug 28 23:03:06 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F320516A4CE; Sat, 28 Aug 2004 23:03:05 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E742943D45; Sat, 28 Aug 2004 23:03:05 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7SN35LN025254; Sat, 28 Aug 2004 23:03:05 GMT (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7SN35FI025253; Sat, 28 Aug 2004 23:03:05 GMT (envelope-from iedowse) Message-Id: <200408282303.i7SN35FI025253@repoman.freebsd.org> From: Ian Dowse Date: Sat, 28 Aug 2004 23:03:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/boot/common Makefile.inc bootstrap.h load_elf.c reloc_elf.c reloc_elf32.c reloc_elf64.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 28 Aug 2004 23:03:06 -0000 iedowse 2004-08-28 23:03:05 UTC FreeBSD src repository Modified files: sys/boot/common Makefile.inc bootstrap.h load_elf.c Added files: sys/boot/common reloc_elf.c reloc_elf32.c reloc_elf64.c Log: Separate out the ELF relocation code from the ELF loader, and add better relocation support for the amd64 and i386 platforms. This should not result in any change in functionality, but moves a step towards supporting the relocatable object file modules on amd64. The same hack/trick as load_elf*.c uses is used here to simultaneously support both elf32 and elf64 on amd64 and i386. Revision Changes Path 1.18 +3 -2 src/sys/boot/common/Makefile.inc 1.40 +10 -0 src/sys/boot/common/bootstrap.h 1.32 +70 -33 src/sys/boot/common/load_elf.c 1.1 +199 -0 src/sys/boot/common/reloc_elf.c (new) 1.1 +6 -0 src/sys/boot/common/reloc_elf32.c (new) 1.1 +6 -0 src/sys/boot/common/reloc_elf64.c (new)