From owner-cvs-all Mon Apr 17 19:39:32 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CB35337B6BE; Mon, 17 Apr 2000 19:39:27 -0700 (PDT) (envelope-from obrien@FreeBSD.org) Received: (from obrien@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA03852; Mon, 17 Apr 2000 19:39:27 -0700 (PDT) (envelope-from obrien@FreeBSD.org) Message-Id: <200004180239.TAA03852@freefall.freebsd.org> From: "David E. O'Brien" Date: Mon, 17 Apr 2000 19:39:27 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/binutils/bfd elf.c src/sys/sys elf_common.h imgact_elf.h src/sys/kern imgact_elf.c src/sys/i386/linux linux_sysvec.c src/sys/svr4 svr4_sysvec.c src/usr.bin/brandelf Makefile brandelf.1 brandelf.c ... Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG obrien 2000/04/17 19:39:27 PDT Modified files: contrib/binutils/bfd elf.c sys/sys elf_common.h imgact_elf.h sys/kern imgact_elf.c sys/i386/linux linux_sysvec.c sys/svr4 svr4_sysvec.c usr.bin/brandelf Makefile brandelf.1 brandelf.c usr.bin/gcore elfcore.c lib/csu/i386-elf crti.S Log: Change our ELF binary branding to something more acceptable to the Binutils maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. * Revision Changes Path 1.5 +17 -14 src/contrib/binutils/bfd/elf.c 1.6 +22 -4 src/sys/sys/elf_common.h 1.18 +4 -4 src/sys/sys/imgact_elf.h 1.74 +27 -30 src/sys/kern/imgact_elf.c 1.56 +3 -3 src/sys/i386/linux/linux_sysvec.c 1.11 +6 -6 src/sys/svr4/svr4_sysvec.c 1.4 +3 -1 src/usr.bin/brandelf/Makefile 1.10 +16 -8 src/usr.bin/brandelf/brandelf.1 1.14 +62 -34 src/usr.bin/brandelf/brandelf.c 1.6 +3 -3 src/usr.bin/gcore/elfcore.c 1.3 +15 -1 src/lib/csu/i386-elf/crti.S To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message