bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17068] --as-needed and --start-group/--end-group interact in str


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/17068] --as-needed and --start-group/--end-group interact in strange ways if .so files are mentioned in --start-group/--end-group
Date: Thu, 03 Jul 2014 08:07:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17068

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  d215621ebe5a6b60dff2e60c788a0f761e3cb5bd (commit)
      from  fd48cee0093fef69608959d0f577c0c81fe24eec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d215621ebe5a6b60dff2e60c788a0f761e3cb5bd

commit d215621ebe5a6b60dff2e60c788a0f761e3cb5bd
Author: Alan Modra <address@hidden>
Date:   Thu Jul 3 16:32:45 2014 +0930

    Reload --as-needed libraries inside groups

    When a shared library appears within --start-group/--end-group ld may
    only discover a need for loading the library on the second or
    subsequent pass over archive libraries, as more objects are extracted.

    ld/
        PR 17068
        * ldlang.c (load_symbols): Always check flags.reload.
        (open_input_bfds): Always reload --as-needed shared libraries,
        not just when rescanning.
        * ldlang.h (struct lang_input_statement_flags): Update reload comment.
        * plugin.c (plugin_should_reload): Assume shared library arg.
        * plugin.h (plugin_should_reload): Update comment.
    ld/testsuite
        * ld-elf/pr17068.s: New.
        * ld-elf/pr17068a.s: New.
        * ld-elf/pr17068b.s: New.
        * ld-elf/pr17068c.s: New.
        * ld-elf/pr17068d.s: New.
        * ld-elf/pr17068e.s: New.
        * ld-elf/pr17068ez.s: New.
        * ld-elf/elf.exp: Run new test.

-----------------------------------------------------------------------

Summary of changes:
 ld/ChangeLog                    |   10 ++++++++++
 ld/ldlang.c                     |   28 ++++++++++------------------
 ld/ldlang.h                     |    2 +-
 ld/plugin.c                     |    6 ++----
 ld/plugin.h                     |    2 +-
 ld/testsuite/ChangeLog          |   11 +++++++++++
 ld/testsuite/ld-elf/elf.exp     |   26 ++++++++++++++++++++------
 ld/testsuite/ld-elf/pr17068.s   |    2 ++
 ld/testsuite/ld-elf/pr17068a.s  |    4 ++++
 ld/testsuite/ld-elf/pr17068b.s  |    4 ++++
 ld/testsuite/ld-elf/pr17068c.s  |    4 ++++
 ld/testsuite/ld-elf/pr17068d.s  |    6 ++++++
 ld/testsuite/ld-elf/pr17068e.s  |    3 +++
 ld/testsuite/ld-elf/pr17068ez.s |    4 ++++
 14 files changed, 82 insertions(+), 30 deletions(-)
 create mode 100644 ld/testsuite/ld-elf/pr17068.s
 create mode 100644 ld/testsuite/ld-elf/pr17068a.s
 create mode 100644 ld/testsuite/ld-elf/pr17068b.s
 create mode 100644 ld/testsuite/ld-elf/pr17068c.s
 create mode 100644 ld/testsuite/ld-elf/pr17068d.s
 create mode 100644 ld/testsuite/ld-elf/pr17068e.s
 create mode 100644 ld/testsuite/ld-elf/pr17068ez.s

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]