diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-11-08 02:48:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-11-08 02:48:53 +0000 |
commit | a21e91c6604036d32acbec4d34e4e9fe081cc34f (patch) | |
tree | 403df6c3f6c7dac0d6e6ff36279f7f8d6661cebe /binutils/objcopy.c | |
parent | fed33f270cf1350ebd6d8606ec64f385ce418aa7 (diff) | |
download | binutils-redhat-a21e91c6604036d32acbec4d34e4e9fe081cc34f.tar.gz |
bfd/
* hash.c (bfd_hash_hash): Extract from..
(bfd_hash_lookup): ..here.
(bfd_hash_rename): New function.
* section.c (bfd_rename_section): New function.
* bfd-in.h (bfd_hash_rename): Declare.
* bfd-in2.h: Regenerate.
* elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
when compressing or decompressing. Don't assert name match.
* elf64-hppa.c (get_reloc_section): Don't assert name match.
* elfxx-ia64.c (get_reloc_section): Likewise.
binutils/
* objcopy.c (copy_main): No need to rename sections when compressing
or decompressing.
binutils/testsuite/
* binutils-all/objdump.W: Adjust expected result for debug section
rename.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 2077fca481..ac176df589 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3196,7 +3196,6 @@ copy_main (int argc, char *argv[]) struct section_list *p; struct stat statbuf; const bfd_arch_info_type *input_arch = NULL; - struct dwarf_debug_section *d; while ((c = getopt_long (argc, argv, "b:B:i:I:j:K:N:s:O:d:F:L:G:R:SpgxXHhVvW:w", copy_options, (int *) 0)) != EOF) @@ -3912,22 +3911,6 @@ copy_main (int argc, char *argv[]) fatal (_("warning: could not create temporary file whilst copying '%s', (error: %s)"), input_filename, strerror (errno)); - switch (do_debug_sections) - { - case compress: - for (d = dwarf_debug_sections; d->uncompressed_name; d++) - add_section_rename (d->uncompressed_name, d->compressed_name, - (flagword) -1); - break; - case decompress: - for (d = dwarf_debug_sections; d->uncompressed_name; d++) - add_section_rename (d->compressed_name, d->uncompressed_name, - (flagword) -1); - break; - default: - break; - } - copy_file (input_filename, tmpname, input_target, output_target, input_arch); if (status == 0) { |