Hello community, here is the log from the commit of package binutils checked in at Thu Sep 13 18:35:48 CEST 2007. -------- --- binutils/binutils.changes 2007-07-26 12:25:04.000000000 +0200 +++ /mounts/work_src_done/STABLE/binutils/binutils.changes 2007-09-03 15:51:46.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Sep 3 15:51:39 CEST 2007 - schwab@suse.de + +- Add fix for PR4888. + +------------------------------------------------------------------- cross-alpha-binutils.changes: same change cross-arm-binutils.changes: same change cross-avr-binutils.changes: same change cross-hppa-binutils.changes: same change cross-i386-binutils.changes: same change cross-ia64-binutils.changes: same change cross-mips-binutils.changes: same change cross-ppc64-binutils.changes: same change cross-ppc-binutils.changes: same change cross-s390-binutils.changes: same change cross-s390x-binutils.changes: same change cross-sh4-binutils.changes: same change cross-sparc-binutils.changes: same change cross-spu-binutils.changes: same change cross-x86_64-binutils.changes: same change New: ---- pr4888.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ binutils.spec ++++++ --- /var/tmp/diff_new_pack.i16035/_old 2007-09-13 18:35:06.000000000 +0200 +++ /var/tmp/diff_new_pack.i16035/_new 2007-09-13 18:35:06.000000000 +0200 @@ -46,7 +46,7 @@ PreReq: %{install_info_prereq} Autoreqprov: on Version: 2.17.50.20070726 -Release: 1 +Release: 11 %define binutils_version %(echo %version | sed 's/\\.[0-9]\\{8\\}$//') Summary: GNU Binutils Source: binutils-%{binutils_version}.tar.bz2 @@ -64,6 +64,7 @@ Patch10: enable-targets.diff Patch11: use-hashtype-both-by-default.diff Patch12: s390-pic-dso.diff +Patch13: pr4888.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -228,6 +229,7 @@ %patch10 %patch11 %patch12 +%patch13 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 @@ -430,6 +432,8 @@ %{_libdir}/lib*.a %changelog +* Mon Sep 03 2007 - schwab@suse.de +- Add fix for PR4888. * Thu Jul 26 2007 - schwab@suse.de - Update to head of trunk. * Fri Jul 13 2007 - schwab@suse.de ++++++ cross-alpha-binutils.spec ++++++ --- /var/tmp/diff_new_pack.i16035/_old 2007-09-13 18:35:06.000000000 +0200 +++ /var/tmp/diff_new_pack.i16035/_new 2007-09-13 18:35:06.000000000 +0200 @@ -46,7 +46,7 @@ PreReq: %{install_info_prereq} Autoreqprov: on Version: 2.17.50.20070726 -Release: 1 +Release: 11 %define binutils_version %(echo %version | sed 's/\\.[0-9]\\{8\\}$//') Summary: GNU binutils for Cross-Development to ALPHA Processors Source: binutils-%{binutils_version}.tar.bz2 @@ -64,6 +64,7 @@ Patch10: enable-targets.diff Patch11: use-hashtype-both-by-default.diff Patch12: s390-pic-dso.diff +Patch13: pr4888.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -162,6 +163,7 @@ %patch10 %patch11 %patch12 +%patch13 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 @@ -359,6 +361,8 @@ %endif %changelog +* Mon Sep 03 2007 - schwab@suse.de +- Add fix for PR4888. * Thu Jul 26 2007 - schwab@suse.de - Update to head of trunk. * Fri Jul 13 2007 - schwab@suse.de cross-arm-binutils.spec: same change cross-avr-binutils.spec: same change cross-hppa-binutils.spec: same change cross-i386-binutils.spec: same change cross-ia64-binutils.spec: same change cross-mips-binutils.spec: same change cross-ppc64-binutils.spec: same change cross-ppc-binutils.spec: same change cross-s390-binutils.spec: same change cross-s390x-binutils.spec: same change cross-sh4-binutils.spec: same change cross-sparc-binutils.spec: same change cross-spu-binutils.spec: same change cross-x86_64-binutils.spec: same change ++++++ pr4888.diff ++++++ 2007-08-04 Alan Modra <amodra@bigpond.net.au> PR 4888 * objcopy.c (setup_section): Do modify section flags for ELF STRIP_NONDEBUG (reverting part of 2007-05-30 change). Prevent header rewrite by twiddling input section flags instead. Simplify code setting SHT_NOBITS. =================================================================== RCS file: /cvs/src/src/binutils/objcopy.c,v retrieving revision 1.117 retrieving revision 1.118 diff -u -r1.117 -r1.118 --- src/binutils/objcopy.c 2007/07/05 16:54:45 1.117 +++ src/binutils/objcopy.c 2007/08/04 08:26:38 1.118 @@ -2165,6 +2165,7 @@ const char *err; const char * name; char *prefix = NULL; + bfd_boolean make_nobits; if (is_strip_section (ibfd, isection)) return; @@ -2193,12 +2194,26 @@ name = n; } + make_nobits = FALSE; if (p != NULL && p->set_flags) flags = p->flags | (flags & (SEC_HAS_CONTENTS | SEC_RELOC)); else if (strip_symbols == STRIP_NONDEBUG - && obfd->xvec->flavour != bfd_target_elf_flavour - && (flags & SEC_ALLOC) != 0) - flags &= ~(SEC_HAS_CONTENTS | SEC_LOAD); + && (flags & SEC_ALLOC) != 0 + && (ibfd->xvec->flavour != bfd_target_elf_flavour + || elf_section_type (isection) != SHT_NOTE)) + { + flags &= ~(SEC_HAS_CONTENTS | SEC_LOAD); + if (obfd->xvec->flavour == bfd_target_elf_flavour) + { + make_nobits = TRUE; + + /* Twiddle the input section flags so that it seems to + elf.c:copy_private_bfd_data that section flags have not + changed between input and output sections. This hack + prevents wholesale rewriting of the program headers. */ + isection->flags &= ~(SEC_HAS_CONTENTS | SEC_LOAD); + } + } osection = bfd_make_section_anyway_with_flags (obfd, name, flags); @@ -2208,13 +2223,7 @@ goto loser; } - if (strip_symbols == STRIP_NONDEBUG - && obfd->xvec->flavour == bfd_target_elf_flavour - && (flags & SEC_ALLOC) != 0 - && elf_section_type (osection) != SHT_NOTE - && (ibfd->xvec->flavour != bfd_target_elf_flavour - || elf_section_type (isection) != SHT_NOTE) - && (p == NULL || !p->set_flags)) + if (make_nobits) elf_section_type (osection) = SHT_NOBITS; size = bfd_section_size (ibfd, isection); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de