summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-29 12:36:32 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-29 12:36:32 +0000
commite0f6c27e5660a29c7b49525558c4e021266a69fe (patch)
treeb602b030be9b699948c4f999e60b706bc266852b /gnu/usr.bin/binutils
parent7830bbc64f50cdbb4a8d221441fa5f7f3ff2cee5 (diff)
Missing #if case
Diffstat (limited to 'gnu/usr.bin/binutils')
-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