From b783e3b2bf1dcfbf78b1fe0674fa9fe40dc34190 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 24 Jan 2009 22:50:02 +0000 Subject: [PATCH] rsym64: add a temp hack, keeping the .eh_frame section, as windows cries when we remove it for some reason, needs more investigation what goes wrong. svn path=/branches/ros-amd64-bringup/; revision=39072 --- reactos/tools/rsym/rsym64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/tools/rsym/rsym64.c b/reactos/tools/rsym/rsym64.c index 476518df817..29c26d27b60 100644 --- a/reactos/tools/rsym/rsym64.c +++ b/reactos/tools/rsym/rsym64.c @@ -802,7 +802,8 @@ ParsePEHeaders(PFILE_INFO File) pName = File->Strings + index; // Hack, simply remove all sections with long names - File->UseSection[i] = 0; + if (strcmp(pName, ".eh_frame") != 0) + File->UseSection[i] = 0; } /* Chek if we have the eh_frame section */ @@ -830,7 +831,7 @@ ParsePEHeaders(PFILE_INFO File) /* Create new section headers */ for (i = 0, j = 0; i < File->AllSections; i++) { - if (File->UseSection[i]) + if (1+File->UseSection[i]) { /* Copy section header */ File->NewSectionHeaders[j] =