elflink: Set PATH to the directory containing ldlinux.c32syslinux-5.01-pre5
commitc250a42263c8717469c8a07d04567ce8333814dd
authorMatt Fleming <matt.fleming@intel.com>
Fri, 25 Jan 2013 11:12:52 +0000 (25 11:12 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 25 Jan 2013 11:19:02 +0000 (25 11:19 +0000)
tree25783b6539021997b7c51fa3f85d17440181dfb0
parentb3be60133a334edf1bada24e4fd39d4c724e326e
elflink: Set PATH to the directory containing ldlinux.c32

On ISOLINUX and PXELINUX, CurrentDirName doesn't contain anything
useful when we enter load_env32(). commit 10bb72d1528b ("PATH: Use
installation directory for 'PATH'") didn't handle the case where we
don't have an installation path, or don't find ldlinux.c32 there. If
we find ldlinux.c32 in one of 'search_directories' use that directory
as the PATH string.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/elflink/load_env32.c