Make default compression gABI compliant
All programs in binutils+gdb git repo now support gABI compression with the SHF_COMPRESSED bit. This patch makes the zlib-gabi option as compression default for gas, gold, ld and objcopy, instead of the zlib-gnu option whose outputs are incompatible with gABI. binutils/ * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not zlib-gnu. * doc/binutils.texi: Change --compress-debug-sections and --compress-debug-sections=zlib to zlib-gabi. binutils/testsuite/ * binutils-all/compress.exp: Update. gas/ * as.c (parse_args): Make --compress-debug-sections and --compress-debug-sections=zlib the same as --compress-debug-sections=zlib-gabi. * doc/as.texinfo: Change --compress-debug-sections and --compress-debug-sections=zlib to zlib-gabi. gold/ * compressed_output.cc (Output_compressed_section::set_final_data_size): Make --compress-debug-sections=zlib the same as --compress-debug-sections=zlib-gabi. * testsuite/Makefile.am (flagstest_compress_debug_sections.check): Expect ".debug_.*" with the SHF_COMPRESSED bit, instead of ".zdebug_". * testsuite/Makefile.in: Regenerated. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make --compress-debug-sections=zlib the same as --compress-debug-sections=zlib-gabi. * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi. ld/testsuite/ * ld-elf/zlibbegin.rS: Updated to .debug_.* with the SHF_COMPRESSED bit. * ld-elf/zlibnormal.rS: Likewise.
This commit is contained in:
parent
22121df01f
commit
19a7fe52ae
18 changed files with 93 additions and 41 deletions
|
@ -2607,7 +2607,7 @@ copy_file (const char *input_filename, const char *output_filename,
|
|||
ibfd->flags |= BFD_COMPRESS;
|
||||
/* Don't check if input is ELF here since this information is
|
||||
only available after bfd_check_format_matches is called. */
|
||||
if (do_debug_sections == compress_gabi_zlib)
|
||||
if (do_debug_sections != compress_gnu_zlib)
|
||||
ibfd->flags |= BFD_COMPRESS_GABI;
|
||||
break;
|
||||
case decompress:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue