summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gather.c4
-rw-r--r--src/prelink.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gather.c b/src/gather.c
index a7ebcfd..4bed182 100644
--- a/src/gather.c
+++ b/src/gather.c
@@ -551,7 +551,9 @@ make_unprelinkable:
}
dl = dynamic_linker ?: dso->arch->dynamic_linker;
- if (strcmp (dl, data->d_buf) != 0)
+ if (strcmp (dl, data->d_buf) != 0
+ && (dynamic_linker != NULL || dso->arch->dynamic_linker_alt == NULL
+ || strcmp (dso->arch->dynamic_linker_alt, data->d_buf) != 0))
{
error (0, 0, "%s: Using %s, not %s as dynamic linker", dso->filename,
(char *) data->d_buf, dl);
diff --git a/src/prelink.h b/src/prelink.h
index 72ebf5d..64cd348 100644
--- a/src/prelink.h
+++ b/src/prelink.h
@@ -120,6 +120,7 @@ struct PLArch
int alternate_machine[3];
int max_reloc_size;
const char *dynamic_linker;
+ const char *dynamic_linker_alt;
int R_COPY;
int R_JMP_SLOT;
int R_RELATIVE;