aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-15 20:46:43 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-15 20:46:43 +0000
commit7fb9ca5fc27e521d28d5ef74bfd73b0b8bab8da6 (patch)
tree7ba9f19d65ccbfa55579fd36b4c05e827c77aa1d /ld/ldmain.c
parent57569ce8d17b939e41d9af72237207fe3e3ede89 (diff)
downloadgdb-7fb9ca5fc27e521d28d5ef74bfd73b0b8bab8da6.zip
gdb-7fb9ca5fc27e521d28d5ef74bfd73b0b8bab8da6.tar.gz
gdb-7fb9ca5fc27e521d28d5ef74bfd73b0b8bab8da6.tar.bz2
Let the user change the dynamic linker used by ELF code.
* ld.h (args_type): Add new field interpreter. * lexsup.c (parse_args): Add dynamic-linker to longopts, and handle it. * ldmain.c (main): Initialize command_line.interpreter to NULL. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get the ELF backend to return the .interp section. If command_line.interpreter is not NULL, set the contents of .interp to it. * ld.texinfo: Mention -dynamic-linker.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index bfe74f0..82b5a40 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -162,6 +162,7 @@ main (argc, argv)
config.build_constructors = true;
config.dynamic_link = false;
command_line.force_common_definition = false;
+ command_line.interpreter = NULL;
link_info.callbacks = &link_callbacks;
link_info.relocateable = false;