summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>1996-09-29 12:36:31 +0000
committerpefo <pefo@openbsd.org>1996-09-29 12:36:31 +0000
commit611b7e407e91979835b63b2970ae18c36cb34173 (patch)
treedf6db9c61e3cbc82e07098781ec99ccb5697bdf8
parentnaw, grown bufcache does not help this workload (diff)
downloadwireguard-openbsd-611b7e407e91979835b63b2970ae18c36cb34173.tar.xz
wireguard-openbsd-611b7e407e91979835b63b2970ae18c36cb34173.zip
Missing #if case
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elfarc.em6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elfarc.em b/gnu/usr.bin/binutils/ld/emultempl/elfarc.em
index 988bae7c339..0b052eb033c 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elfarc.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elfarc.em
@@ -96,10 +96,10 @@ findshlib(arch, search, entry)
if(dd == NULL)
return(NULL);
- string = (char *)xmalloc((strlen (search->name)
+ string = (char *)xmalloc(strlen (search->name)
+ strlen (entry->filename)
+ strlen (arch)
- + sizeof "/lib.so.")
+ + sizeof "/lib.so."
+ 16); /* XXX 16 would be sufficient for a version no */
sprintf(string, "lib%s%s.so.", entry->filename, arch);
len = strlen(string);
@@ -676,7 +676,7 @@ gld${EMULATION_NAME}_before_allocation ()
}
}
-#if defined (TARGET_IS_elf32bmip) || defined (TARGET_IS_elf32lmip)
+#if defined (TARGET_IS_elf32bmip) || defined (TARGET_IS_elf32lmip) || defined (TARGET_IS_elf32arc)
/* For MIPS ELF the .reginfo section requires special handling.
Each input section is 24 bytes, and the final output section must
also be 24 bytes. We handle this by clobbering all but the first