From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7026b71ddcf9c2f4d3458287f921e000@plan9.bell-labs.com> Date: Tue, 26 Mar 2013 19:29:25 -0400 From: geoff@plan9.bell-labs.com To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] changes to loader elf generation Topicbox-Message-UUID: 36ee1616-ead8-11e9-9d60-3106f5b1d025 The loader code to produce ELF or ELF64 binaries is now consolidated into /sys/src/cmd/8l/elf.[ch], and it no longer modifies (in loader-dependent ways) the text-start virtual address to produce a physical equivalent. In the process, bugs such as incorrect byte-order header elements were fixed. There are new options in all the loaders that can produce ELF binaries (i.e., not kl): -k marks the ELF file as a kernel rather than user executable, and -Fphys sets the text-start physical address to `phys' instead of the text-start virtual address. See 8l(1). Note that 9boot can now load ELF64 kernels.