* objcopy.c: Include elf-bfd.h.
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Jan 2004 15:41:00 +0000 (15:41 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 13 Jan 2004 15:41:00 +0000 (15:41 +0000)
commitf0312d395b830bea0f17a279ad1a6d8009c46db0
treea950546984735fab6bc1283fe5b739ab696b9909
parent6bdafbeb578394fd9fff6c45b15f71dd5678190b
* objcopy.c: Include elf-bfd.h.
(is_strip_section): Don't strip debugging sections if
STRIP_NONDEBUG.
(setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.

* objcopy.c (copy_section): Free relpp if relcount == 0.
binutils/ChangeLog
binutils/objcopy.c