From ee0c0c503deffb7baf900ac8e092b18bf8c1528a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 28 Jun 2015 06:30:10 -0700 Subject: [PATCH] Remove COMPRESS_DEBUG_ZLIB COMPRESS_DEBUG_ZLIB isn't needed. This patch removes COMPRESS_DEBUG_ZLIB and replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB. bfd/ * bfd-in.h (compressed_debug_section_type): Remove COMPRESS_DEBUG_ZLIB. * bfd-in2.h : Regenerated. gas/ * as.c (parse_args): Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB. * config/tc-i386.c (flag_compress_debug): Likewise. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB. --- bfd/ChangeLog | 6 ++++++ bfd/bfd-in.h | 5 ++--- bfd/bfd-in2.h | 5 ++--- gas/ChangeLog | 6 ++++++ gas/as.c | 2 +- gas/config/tc-i386.c | 2 +- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 2 +- 8 files changed, 24 insertions(+), 9 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 89a6a0c062a..c4ff6589716 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-06-28 H.J. Lu + + * bfd-in.h (compressed_debug_section_type): Remove + COMPRESS_DEBUG_ZLIB. + * bfd-in2.h : Regenerated. + 2015-06-26 Matthew Fortune * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 2e324cdc9e9..ae99d1e3561 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -443,9 +443,8 @@ enum compressed_debug_section_type { COMPRESS_DEBUG_NONE = 0, COMPRESS_DEBUG = 1 << 0, - COMPRESS_DEBUG_ZLIB = COMPRESS_DEBUG | 1 << 1, - COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 2, - COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 3 + COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 1, + COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 2 }; /* This structure is used to keep track of stabs in sections diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 2d32c7481b7..35e9d77f347 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -450,9 +450,8 @@ enum compressed_debug_section_type { COMPRESS_DEBUG_NONE = 0, COMPRESS_DEBUG = 1 << 0, - COMPRESS_DEBUG_ZLIB = COMPRESS_DEBUG | 1 << 1, - COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 2, - COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 3 + COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 1, + COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 2 }; /* This structure is used to keep track of stabs in sections diff --git a/gas/ChangeLog b/gas/ChangeLog index eb18335a6d6..7c49ea6b18f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2015-06-28 H.J. Lu + + * as.c (parse_args): Replace COMPRESS_DEBUG_ZLIB with + COMPRESS_DEBUG_GNU_ZLIB. + * config/tc-i386.c (flag_compress_debug): Likewise. + 2015-06-24 H.J. Lu * doc/as.texinfo (.cfi_lsda): Remove the extra @section. diff --git a/gas/as.c b/gas/as.c index fecfcd21432..b8a5be4c717 100644 --- a/gas/as.c +++ b/gas/as.c @@ -665,7 +665,7 @@ This program has absolutely no warranty.\n")); if (strcasecmp (optarg, "none") == 0) flag_compress_debug = COMPRESS_DEBUG_NONE; else if (strcasecmp (optarg, "zlib") == 0) - flag_compress_debug = COMPRESS_DEBUG_ZLIB; + flag_compress_debug = COMPRESS_DEBUG_GNU_ZLIB; else if (strcasecmp (optarg, "zlib-gnu") == 0) flag_compress_debug = COMPRESS_DEBUG_GNU_ZLIB; else if (strcasecmp (optarg, "zlib-gabi") == 0) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 34b5c28e513..d8405b5d8ee 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -36,7 +36,7 @@ #ifdef TE_LINUX /* Default to compress debug sections for Linux. */ enum compressed_debug_section_type flag_compress_debug - = COMPRESS_DEBUG_ZLIB; + = COMPRESS_DEBUG_GNU_ZLIB; #endif #ifndef REGISTER_WARNINGS diff --git a/ld/ChangeLog b/ld/ChangeLog index 69eef8f8b47..eeb08cdac38 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2015-06-28 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): + Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB. + 2015-06-26 H.J. Lu * emulparams/elf_iamcu.sh (COMPILE_IN): New. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index cdea5d8704e..14f7963fbd4 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -2223,7 +2223,7 @@ gld${EMULATION_NAME}_handle_option (int optc) if (strcasecmp (optarg, "none") == 0) link_info.compress_debug = COMPRESS_DEBUG_NONE; else if (strcasecmp (optarg, "zlib") == 0) - link_info.compress_debug = COMPRESS_DEBUG_ZLIB; + link_info.compress_debug = COMPRESS_DEBUG_GNU_ZLIB; else if (strcasecmp (optarg, "zlib-gnu") == 0) link_info.compress_debug = COMPRESS_DEBUG_GNU_ZLIB; else if (strcasecmp (optarg, "zlib-gabi") == 0) -- 2.30.2