X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=binutils%2Fsrconv.c;h=39c1a4f4e751d19a7ae6a64afd0fa825346b9798;hb=895b6d98785ba89819820aa5f4abed17fbb28c37;hp=9df325b7ebf3fc1cbecd6ce8bb139375b74caf0d;hpb=1e0f0b4d0191263e35d81a3670d56bf639be274a;p=external%2Fbinutils.git diff --git a/binutils/srconv.c b/binutils/srconv.c index 9df325b..39c1a4f 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -1,5 +1,5 @@ /* srconv.c -- Sysroff conversion program - Copyright (C) 1994-2016 Free Software Foundation, Inc. + Copyright (C) 1994-2019 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -874,13 +874,14 @@ static void walk_tree_type (struct coff_sfile *sfile, struct coff_symbol *symbol, struct coff_type *type, int nest) { - if (symbol->type->type == coff_function_type) - { - struct IT_dty dty; + struct IT_dty dty; - dty.end = 0; - dty.neg = 0x1001; + dty.spare = 0; + dty.end = 0; + dty.neg = 0x1001; + if (symbol->type->type == coff_function_type) + { sysroff_swap_dty_out (file, &dty); walk_tree_type_1 (sfile, symbol, type, nest); dty.end = 1; @@ -906,10 +907,6 @@ walk_tree_type (struct coff_sfile *sfile, struct coff_symbol *symbol, } else { - struct IT_dty dty; - - dty.end = 0; - dty.neg = 0x1001; sysroff_swap_dty_out (file, &dty); walk_tree_type_1 (sfile, symbol, type, nest); dty.end = 1;