From 2d86126c71476389c5b761dd4a78c6976c379c72 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 17 May 2012 16:47:58 +0200 Subject: [PATCH] Fix up updating .debug_types in -m mode - put .debug_types section into the SAVED_SECTIONS group. --- dwz.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dwz.c b/dwz.c index 7b6fc02..9702320 100644 --- a/dwz.c +++ b/dwz.c @@ -336,14 +336,14 @@ static struct #define DEBUG_LINE 2 #define DEBUG_STR 3 #define DEBUG_MACRO 4 -#define DEBUG_ARANGES 5 -#define DEBUG_PUBNAMES 6 -#define DEBUG_PUBTYPES 7 -#define DEBUG_MACINFO 8 -#define DEBUG_LOC 9 -#define DEBUG_FRAME 10 -#define DEBUG_RANGES 11 -#define DEBUG_TYPES 12 +#define DEBUG_TYPES 5 +#define DEBUG_ARANGES 6 +#define DEBUG_PUBNAMES 7 +#define DEBUG_PUBTYPES 8 +#define DEBUG_MACINFO 9 +#define DEBUG_LOC 10 +#define DEBUG_FRAME 11 +#define DEBUG_RANGES 12 #define DEBUG_GDB_SCRIPTS 13 #define GDB_INDEX 14 #define GNU_DEBUGALTLINK 15 @@ -352,6 +352,7 @@ static struct { ".debug_line", NULL, NULL, 0, 0, 0 }, { ".debug_str", NULL, NULL, 0, 0, 0 }, { ".debug_macro", NULL, NULL, 0, 0, 0 }, + { ".debug_types", NULL, NULL, 0, 0, 0 }, { ".debug_aranges", NULL, NULL, 0, 0, 0 }, { ".debug_pubnames", NULL, NULL, 0, 0, 0 }, { ".debug_pubtypes", NULL, NULL, 0, 0, 0 }, @@ -359,13 +360,12 @@ static struct { ".debug_loc", NULL, NULL, 0, 0, 0 }, { ".debug_frame", NULL, NULL, 0, 0, 0 }, { ".debug_ranges", NULL, NULL, 0, 0, 0 }, - { ".debug_types", NULL, NULL, 0, 0, 0 }, { ".debug_gdb_scripts", NULL, NULL, 0, 0, 0 }, { ".gdb_index", NULL, NULL, 0, 0, 0 }, { ".gnu_debugaltlink", NULL, NULL, 0, 0, 0 }, { NULL, NULL, NULL, 0, 0, 0 } }; -#define SAVED_SECTIONS (DEBUG_MACRO + 1) +#define SAVED_SECTIONS (DEBUG_TYPES + 1) /* Pointers that might need cleaning up during write_multifile. */ static unsigned char *saved_new_data[SAVED_SECTIONS]; static size_t saved_new_size[SAVED_SECTIONS]; -- 2.43.5