diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-06-01 13:24:51 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-06-08 08:10:22 +0100 |
commit | e33c487c3930357a4f53455e019c72be0477ef98 (patch) | |
tree | 18adf73139ed8ddad5ea4bc85dffa48c82b8d67d /com32/mboot | |
parent | 6bf3351711fe6c3f5731e519c2fbb298c6bcf2b4 (diff) | |
download | syslinux-e33c487c3930357a4f53455e019c72be0477ef98.tar.gz syslinux-e33c487c3930357a4f53455e019c72be0477ef98.tar.xz syslinux-e33c487c3930357a4f53455e019c72be0477ef98.zip |
module: Actually use last component of DT_NEEDED pathname
The comment in module_load() claims that we strip everything from the
DT_NEEDED pathnames but the last component. That's not true as we
leave the initial '/', which works fine if the module is in the root
directory, but not so well if we're in a sub-directory. Worse still,
if the DT_NEEDED entry pathname doesn't include a '/' the module is
skipped entirely.
We should also be loading dependencies in reverse order, as modules
loaded because of DT_NEEDED entries may also have dependencies and
their dependencies should be loaded first.
Also, now we need the strrchr() implementation in the core, so move
strrchr.o into $CORELIBOBJS.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/mboot')
0 files changed, 0 insertions, 0 deletions