Mailinglist Archive: opensuse-commit (1206 mails)

< Previous Next >
commit binutils
  • From: root@xxxxxxx (h_root)
  • Date: Sun, 7 May 2006 15:48:24 +0200 (CEST)
  • Message-id: <20060507134824.568478C600@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package binutils
checked in at Sun May 7 15:48:24 CEST 2006.

--------
--- binutils/binutils.changes 2006-04-11 11:45:55.000000000 +0200
+++ STABLE/binutils/binutils.changes 2006-05-05 16:35:46.000000000 +0200
@@ -1,0 +2,5 @@
+Fri May 5 16:32:26 CEST 2006 - schwab@xxxxxxx
+
+- Fix huge link times [#167593].
+
+-------------------------------------------------------------------
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-ppc-binutils.changes: same change
cross-ppc64-binutils.changes: same change
cross-s390-binutils.changes: same change
cross-s390x-binutils.changes: same change
cross-sparc-binutils.changes: same change
cross-x86_64-binutils.changes: same change

New:
----
elf-kept-section.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ binutils.spec ++++++
--- /var/tmp/diff_new_pack.VXynS2/_old 2006-05-07 15:46:40.000000000 +0200
+++ /var/tmp/diff_new_pack.VXynS2/_new 2006-05-07 15:46:40.000000000 +0200
@@ -49,7 +49,7 @@
%endif
Autoreqprov: on
Version: 2.16.91.0.5
-Release: 16
+Release: 21
Summary: GNU Binutils
Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
Source1: pre_checkin.sh
@@ -76,6 +76,7 @@
Patch20: bfd-find-nearest-line.diff
Patch21: pr2442.diff
Patch22: pr2513.diff
+Patch23: elf-kept-section.diff
# Collected by Alan Modra
Patch42: lookup-symbol-in-function-table.diff
Patch43: ppc-stub-sym.diff
@@ -203,6 +204,7 @@
%patch20 -p1
%patch21
%patch22 -p1
+%patch23
#
%patch42
%patch43
@@ -452,6 +454,8 @@
%endif

%changelog -n binutils
+* Fri May 05 2006 - schwab@xxxxxxx
+- Fix huge link times [#167593].
* Tue Apr 11 2006 - schwab@xxxxxxx
- PR ld/2442: fix quadratic behaviour with many relocations [#157119].
- PR ld/2513: fix invalid TLS reloc merging [#162901].

cross-alpha-binutils.spec: same change
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-ppc-binutils.spec: same change
cross-ppc64-binutils.spec: same change
cross-s390-binutils.spec: same change
cross-s390x-binutils.spec: same change
cross-sparc-binutils.spec: same change
cross-x86_64-binutils.spec: same change

++++++ elf-kept-section.diff ++++++
>From nobody Thu May 4 11:21:13 2006
From: "H. J. Lu" <hjl@xxxxxxxxx>
Subject: Re: PATCH: Cache the result of _bfd_elf_check_kept_section
To: binutils@xxxxxxxxxxxxxxxxxx
Cc: matz@xxxxxxx
Date: Mon, 24 Apr 2006 20:22:19 -0700

On Mon, Apr 24, 2006 at 07:27:44PM -0700, H. J. Lu wrote:
> On Mon, Apr 24, 2006 at 04:10:56PM -0700, H. J. Lu wrote:
> > On Mon, Apr 24, 2006 at 10:52:53AM -0700, H. J. Lu wrote:
> > > This patch addresses the link speed issue by caching the result of
> > > _bfd_elf_check_kept_section.
> > >
> >
> > Apparently, I didn't include the correct patch. Here is the right one.
> >
>
> Here is a patch without adding a new field to ELF section.
>
>

I think the new field in ELF section is useful to avoid setting
kept_section to -1L.



H.J.
----
2006-04-24 Michael Matz <matz@xxxxxxx>
H.J. Lu <hongjiu.lu@xxxxxxxxx>

* elf-bfd.h (bfd_elf_section_data): Add kept_section.
(elf_kept_section): New.

* elflink.c (match_group_member): Correctly iterate group
members.
(_bfd_elf_check_kept_section): Cache the result in
elf_kept_section.

--- bfd/elf-bfd.h.kept 2006-03-16 12:37:42.000000000 -0800
+++ bfd/elf-bfd.h 2006-04-24 20:11:00.000000000 -0700
@@ -1168,6 +1168,10 @@ struct bfd_elf_section_data
the linker. */
asection *next_in_group;

+ /* The pointer to the real kept section. It is computed from the
+ kept_section field in asection due to section group. */
+ asection *kept_section;
+
/* A pointer used for various section optimizations. */
void *sec_info;
};
@@ -1180,6 +1184,7 @@ struct bfd_elf_section_data
#define elf_group_id(sec) (elf_section_data(sec)->group.id)
#define elf_next_in_group(sec) (elf_section_data(sec)->next_in_group)
#define elf_sec_group(sec) (elf_section_data(sec)->sec_group)
+#define elf_kept_section(sec) (elf_section_data(sec)->kept_section)

/* Return TRUE if section has been discarded. */
#define elf_discarded_section(sec) \
--- bfd/elflink.c.kept 2006-04-24 15:36:18.000000000 -0700
+++ bfd/elflink.c 2006-04-24 20:18:03.000000000 -0700
@@ -6782,6 +6782,7 @@ match_group_member (asection *sec, asect
if (bfd_elf_match_symbols_in_sections (s, sec))
return s;

+ s = elf_next_in_group (s);
if (s == first)
break;
}
@@ -6798,7 +6799,14 @@ _bfd_elf_check_kept_section (asection *s
{
asection *kept;

+ kept = elf_kept_section (sec);
+ if (kept)
+ return kept;
+
kept = sec->kept_section;
+ if (!kept)
+ return kept;
+
if (kept != NULL)
{
if (elf_sec_group (sec) != NULL)
@@ -6806,6 +6814,12 @@ _bfd_elf_check_kept_section (asection *s
if (kept != NULL && sec->size != kept->size)
kept = NULL;
}
+
+ if (kept)
+ elf_kept_section (sec) = kept;
+ else
+ sec->kept_section = NULL;
+
return kept;
}




++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...


< Previous Next >
This Thread