Author: arty
Date: Sun Sep 2 15:14:58 2007
New Revision: 28766
URL:
http://svn.reactos.org/svn/reactos?rev=28766&view=rev
Log:
Ignore elf.
Modified:
trunk/reactos/tools/rsym.c
Modified: trunk/reactos/tools/rsym.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym.c?rev=28766&…
==============================================================================
--- trunk/reactos/tools/rsym.c (original)
+++ trunk/reactos/tools/rsym.c Sun Sep 2 15:14:58 2007
@@ -795,6 +795,7 @@
void *FileData;
ULONG RosSymLength;
void *RosSymSection;
+ char elfhdr[4] = { '\177', 'E', 'L', 'F' };
if (3 != argc)
{
@@ -816,6 +817,9 @@
PEDosHeader = (PIMAGE_DOS_HEADER) FileData;
if (PEDosHeader->e_magic != IMAGE_DOS_MAGIC || PEDosHeader->e_lfanew == 0L)
{
+ /* Ignore elf */
+ if (!memcmp(PEDosHeader, elfhdr, sizeof(elfhdr)))
+ exit(0);
perror("Input file is not a PE image.\n");
free(FileData);
exit(1);