summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/emultempl
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/ld/emultempl')
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elf32.em4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elf32.em b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
index 8d4b0636fd0..394e21b3f7f 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elf32.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
@@ -100,10 +100,13 @@ gld${EMULATION_NAME}_search_dir (dirname, filename)
force_maj = -1;
force_min = -1;
dot = strchr (filename, '.');
+#ifdef DO_FORCE_VERS
if (dot == NULL)
{
+#endif /* DO_FORCE_VERS */
len = strlen (filename);
alc = NULL;
+#ifdef DO_FORCE_VERS
}
else
{
@@ -119,6 +122,7 @@ gld${EMULATION_NAME}_search_dir (dirname, filename)
if (dot != NULL)
force_min = atoi (dot + 1);
}
+#endif /* DO_FORCE_VERS */
found = NULL;
max_maj = max_min = 0;