Fix snafu parsing $ORIGIN.
authorNick Clifton <nickc@redhat.com>
Thu, 24 Nov 2016 10:00:20 +0000 (10:00 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Nov 2016 10:00:20 +0000 (10:00 +0000)
commit51750acd087cc20ae3f72393fa897d9e3059c65d
tree135edb7a0bc0031932a177817bcaa5c43a3b781b
parent0b14696aedc2b56291bc98d62fe232c8dceb1385
Fix snafu parsing $ORIGIN.

PR ld/20858
* emultempl/elf32.em (_search_needed): Allow for path separator
and terminating NUL byte when allocating space for new $ORIGIN
path.
ld/ChangeLog
ld/emultempl/elf32.em