]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/objfiles.c
import gdb-1999-09-08 snapshot
[thirdparty/binutils-gdb.git] / gdb / objfiles.c
index a763a66d5d435ef2996cc8921f2854dfad01a336..7e57562e53acb69e19bdaa60512142bd1ddd97a0 100644 (file)
@@ -521,9 +521,8 @@ objfile_relocate (objfile, new_offsets)
      struct objfile *objfile;
      struct section_offsets *new_offsets;
 {
-  struct section_offsets *delta = (struct section_offsets *)
-  alloca (sizeof (struct section_offsets)
-         + objfile->num_sections * sizeof (delta->offsets));
+  struct section_offsets *delta =
+    (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
 
   {
     int i;