mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Use the same filename extension for the bfd_elf_dt_needed_name call as we did for finding the library.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
|
Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
|
||||||
|
Use the same filename extension for the bfd_elf_dt_needed_name call
|
||||||
|
as we did for finding the library.
|
||||||
|
|
||||||
* emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
|
* emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
|
||||||
(OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
|
(OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
|
||||||
|
|
||||||
|
@ -133,13 +133,19 @@ gld${EMULATION_NAME}_open_dynamic_archive (arch, search, entry)
|
|||||||
if (bfd_check_format (entry->the_bfd, bfd_object)
|
if (bfd_check_format (entry->the_bfd, bfd_object)
|
||||||
&& (entry->the_bfd->flags & DYNAMIC) != 0)
|
&& (entry->the_bfd->flags & DYNAMIC) != 0)
|
||||||
{
|
{
|
||||||
char *needed_name;
|
char *filname, *needed_name;
|
||||||
|
|
||||||
ASSERT (entry->is_archive && entry->search_dirs_flag);
|
ASSERT (entry->is_archive && entry->search_dirs_flag);
|
||||||
needed_name = (char *) xmalloc (strlen (filename)
|
|
||||||
+ strlen (arch)
|
/* Rather than duplicating the logic above. Just use the
|
||||||
+ sizeof "lib.so");
|
filename we recorded earlier.o
|
||||||
sprintf (needed_name, "lib%s%s.so", filename, arch);
|
|
||||||
|
First strip off everything before the last '/'. */
|
||||||
|
filename = strrchr (entry->filename, '/');
|
||||||
|
filename++;
|
||||||
|
|
||||||
|
needed_name = (char *) xmalloc (strlen (filename)) + 1;
|
||||||
|
strcpy (needed_name, filename);
|
||||||
bfd_elf_set_dt_needed_name (entry->the_bfd, needed_name);
|
bfd_elf_set_dt_needed_name (entry->the_bfd, needed_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user