gdb and binutils branch master updated. eeed9cc785ca447868967e5c84dae63e9ca8e6c2

hp@sourceware.org hp@sourceware.org
Wed Oct 15 01:23:00 GMT 2014


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  eeed9cc785ca447868967e5c84dae63e9ca8e6c2 (commit)
       via  bfa234344327776fb3b16e8bfd9c8de6ec73ae31 (commit)
       via  ef1ab8e216a01d94a4cd23dc94363a78e2971b84 (commit)
       via  bdd65db9b9cd6d5dbdff9b48e97379029f8a3a1a (commit)
       via  cad60a339b2a0a6af675d4243daa78c61eea06b5 (commit)
       via  b3b9c41dc6ac302f5880b3e84b8974488c5bc120 (commit)
      from  d9ab24174cc3b853c186e77c12b55f36574621fe (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=eeed9cc785ca447868967e5c84dae63e9ca8e6c2

commit eeed9cc785ca447868967e5c84dae63e9ca8e6c2
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 03:10:25 2014 +0200

    Allow unquoted = as the first character in ldscript input_list names
    
    	* ldlex.l (INPUTLIST): New start condition.
    	(comment pattern, ",", "(", ")", "AS_NEEDED")
    	({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
    	(quoted string pattern, whitespace pattern): Add INPUTLIST to
    	valid start conditions.
    	(<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
    	(ldlex_inputlist): New start-condition-setter function.
    	* ldgram.y (input_list1): Rename from input_list.  All recursive
    	use changed.
    	(input_list): New wrapper rule for input_list1, setting
    	INPUTLIST lexer state for the duration of parsing input_list1.
    
    All this to say INPUT(=/path/to/file) and not be forced to use
    INPUT("=/path/to/file") whenever there's a need to force a sysroot-
    prefix.  Still, IMHO it seems better to make use of a previously
    invalid syntax and not only change the meaning of quoted =-prefixed
    paths (though arguably that's not very useful before this patchset).
    
    This got a little bit hairier than I'd expected: I had to add a new
    lexer state (aka. start condition) to avoid a first "=" being lexed as
    the token "=", despite that not making sense in constructs expecting
    file-names in the first place.  (The grammar doesn't allow for
    expressions in any part of those lists.)  I guess I *could* have made
    it work using that token anyway, but I didn't like the idea that you
    would be able to separate the "=" from the rest of the file-name with
    whitespace.

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

commit bfa234344327776fb3b16e8bfd9c8de6ec73ae31
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 03:03:59 2014 +0200

    If "=" is the first character in a ldscript input file, force a sysroot prefix.
    
    	* ldlang.c (lang_add_input_file): If the first character in the
    	filename is '=', prepend the sysroot and force the context of that
    	input file to non-sysroot.
    
    The "input_flags.sysrooted = 0" thing described in the comment is
    covered by the testsuite part ("root-anchored =-prefixed script
    inside"), but only observable for --with-sysroot configurations.

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

commit ef1ab8e216a01d94a4cd23dc94363a78e2971b84
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 02:59:41 2014 +0200

    Add sysroot-prefix ld linker tests.
    
    	* ld-scripts/sysroot-prefix.exp, ld-scripts/sysroot-prefix-x.s,
    	ld-scripts/sysroot-prefix-y.s: New files.
    
    N.B: full coverage is only possible with complementary use of
    --with-sysroot when configuring.

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

commit bdd65db9b9cd6d5dbdff9b48e97379029f8a3a1a
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 02:54:56 2014 +0200

    lib/ld-lib.exp (check_sysroot_available): New proc.

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

commit cad60a339b2a0a6af675d4243daa78c61eea06b5
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 02:50:03 2014 +0200

    ld.texinfo: "=" path-prefix forces sysroot in scripts not only SEARCH_DIR
    
    	* ld.texinfo (input files in linker scripts): When mentioning
    	behavior of first character "/" on scripts within sysroot, also
    	mention that effect can be forced by prefixing with "=" and
    	refer to SEARCH_DIR.

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

commit b3b9c41dc6ac302f5880b3e84b8974488c5bc120
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Wed Oct 15 02:42:14 2014 +0200

    ld.texinfo: Clarify that sysroot affects "=" expansion.
    
    	* ld.texinfo (Options): When mentioning "=" and sysroot, mention
    	that --sysroot controls it, not only through the configuration.

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

Summary of changes:
 ld/ChangeLog                               |   23 ++++
 ld/ld.texinfo                              |    7 +-
 ld/ldgram.y                                |   23 ++--
 ld/ldlang.c                                |   20 +++
 ld/ldlex.h                                 |    1 +
 ld/ldlex.l                                 |   32 ++++--
 ld/testsuite/ChangeLog                     |    6 +
 ld/testsuite/ld-scripts/sysroot-prefix-x.s |    5 +
 ld/testsuite/ld-scripts/sysroot-prefix-y.s |    4 +
 ld/testsuite/ld-scripts/sysroot-prefix.exp |  183 ++++++++++++++++++++++++++++
 ld/testsuite/lib/ld-lib.exp                |   18 +++
 11 files changed, 302 insertions(+), 20 deletions(-)
 create mode 100644 ld/testsuite/ld-scripts/sysroot-prefix-x.s
 create mode 100644 ld/testsuite/ld-scripts/sysroot-prefix-y.s
 create mode 100644 ld/testsuite/ld-scripts/sysroot-prefix.exp


hooks/post-receive
-- 
gdb and binutils



More information about the Binutils-cvs mailing list