[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully
From: |
Chen Gang S |
Subject: |
Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user. |
Date: |
Fri, 13 Feb 2015 12:03:16 +0800 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 2/13/15 06:32, Chris Metcalf wrote:
> On 2/11/2015 10:48 PM, Chen Gang S wrote:
>> On 2/12/15 11:32, Chen Gang S wrote:
>>>>>>> >>> >> +#define EM_TILE 191 /* Tile */
>>>>>>> >>> >>+#define EM_TILE_OLD 0x2597 /* Tile compat */
>>>>> >> >
>>>>> >> >No need for EM_TILE_OLD - it never really got out into the wild.
>>>>> >> >
>>>>> >> >Also, 191 is EM_TILEGX in <elf.h>, so you really should use the same
>>>>> >> >name here, not EM_TILE.
>>>>> >> >
>> Oh, I can not fine EM_TILEGX in "elf.h" in master branch. I guess, I
>> need to define it, too.
>
> It is in glibc's /usr/include/elf.h since version 2.16.
>
OK, thanks. Really it is, and glibc also defines another archs (e.g.
microblaze). But I guess, at present, we have to use qemu's "elf.h":
- qemu may use another libc libraries (e.g. newlibc, I guess), which
may not have these macros.
- If qemu will consider about the system elf.h file in the future, it
will change all related macros (it almost means rewrite its elf.h).
So for me, at present, just follow with the current qemu's elf.h is OK:
(define EM_TILEGX directly without ifdef EM_TILEGX or endif).
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
- [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chen Gang S, 2015/02/11
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chen Gang S, 2015/02/11
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chris Metcalf, 2015/02/12
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chen Gang S, 2015/02/12
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Peter Maydell, 2015/02/12
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chen Gang S, 2015/02/13
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Peter Maydell, 2015/02/13
- Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Chen Gang S, 2015/02/13
Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user., Peter Maydell, 2015/02/11