aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-24 15:03:01 +0000
committerNick Clifton <nickc@redhat.com>2001-09-24 15:03:01 +0000
commit72358f656865476617bb9ee497d08b32a48c95c8 (patch)
treea438c5f20c6a24bc65c55e49090550d8956f7661 /ld/pe-dll.c
parent89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22 (diff)
downloadgdb-72358f656865476617bb9ee497d08b32a48c95c8.zip
gdb-72358f656865476617bb9ee497d08b32a48c95c8.tar.gz
gdb-72358f656865476617bb9ee497d08b32a48c95c8.tar.bz2
Define and use pe_get_data_import_dll_name().
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index ae72eaa..f62835d 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -123,6 +123,10 @@
static void
add_bfd_to_link PARAMS ((bfd *, const char *, struct bfd_link_info *));
+/* Defined in emultempl/pe.em. */
+extern char *
+pe_get_data_import_dll_name PARAMS ((void));
+
/* For emultempl/pe.em. */
def_file * pe_def_file = 0;
@@ -2065,9 +2069,8 @@ pe_create_import_fixup (rel)
}
{
- extern char * pe_data_import_dll; /* Defined in emultempl/pe.em. */
-
- bfd *b = make_import_fixup_entry (name, fixup_name, pe_data_import_dll,
+ bfd *b = make_import_fixup_entry (name, fixup_name,
+ pe_get_data_import_dll_name (),
output_bfd);
add_bfd_to_link (b, b->filename, &link_info);
}