* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Search for file with .sl extension if no file with a .so extension is found.
This commit is contained in:
parent
b2e311df32
commit
070f1aed4e
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
|
Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
|
||||||
|
Search for file with .sl extension if no file with a .so extension
|
||||||
|
is found.
|
||||||
|
|
||||||
* emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
|
* emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
|
||||||
at the start of the .dlt output section.
|
at the start of the .dlt output section.
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,8 @@ gld${EMULATION_NAME}_before_parse()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to open a dynamic archive. This is where we know that ELF
|
/* Try to open a dynamic archive. This is where we know that ELF
|
||||||
dynamic libraries have an extension of .so. */
|
dynamic libraries have an extension of .so (or .sl on oddball systems
|
||||||
|
like hpux). */
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
gld${EMULATION_NAME}_open_dynamic_archive (arch, search, entry)
|
gld${EMULATION_NAME}_open_dynamic_archive (arch, search, entry)
|
||||||
|
@ -103,8 +104,15 @@ gld${EMULATION_NAME}_open_dynamic_archive (arch, search, entry)
|
||||||
|
|
||||||
if (! ldfile_try_open_bfd (string, entry))
|
if (! ldfile_try_open_bfd (string, entry))
|
||||||
{
|
{
|
||||||
free (string);
|
/* It failed using .so, try again with .sl for oddball systems
|
||||||
return false;
|
that use a different naming scheme (ie hpux). */
|
||||||
|
sprintf (string, "%s/lib%s%s.sl", search->name, filename, arch);
|
||||||
|
|
||||||
|
if (! ldfile_try_open_bfd (string, entry))
|
||||||
|
{
|
||||||
|
free (string);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
entry->filename = string;
|
entry->filename = string;
|
||||||
|
|
Loading…
Reference in New Issue