|
| From: | Cleber Rosa |
| Subject: | Re: [Qemu-devel] [PATCH v6 1/3] loader: Allow ELF loader to auto-detect the ELF arch |
| Date: | Tue, 24 May 2016 19:08:31 -0300 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
On 05/13/2016 05:37 PM, Alistair Francis wrote:
+ if (elf_machine < 1) {
+ /* The caller didn't specify and ARCH, we can figure it out */
Spotted a comment typo: s/and/an/
+ lseek(fd, 0x12, SEEK_SET);
+ if (read(fd, &e_machine, sizeof(e_machine)) != sizeof(e_machine)) {
+ goto fail;
+ }
+ elf_machine = e_machine;
+ }
+
-- Cleber Rosa [ Sr Software Engineer - Virtualization Team - Red Hat ] [ Avocado Test Framework - avocado-framework.github.io ]
| [Prev in Thread] | Current Thread | [Next in Thread] |