* ldlang.c (lang_process): don't pass null pointers when
authorSteve Chamberlain <sac@cygnus>
Thu, 27 Aug 1992 00:32:05 +0000 (00:32 +0000)
committerSteve Chamberlain <sac@cygnus>
Thu, 27 Aug 1992 00:32:05 +0000 (00:32 +0000)
abs_output_section is what is required.
* ldwrite.c (ldwrite): use malloc to allocate the largest space
used, and pass that down.
* relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
than alloca.

ld/ChangeLog
ld/relax.c
ld/relax.h

index 536e3d7879808119ad480710de39985396ce1094..f602b45f0c451f0de043cd19e16005f8ba15aa4b 100644 (file)
@@ -1,3 +1,12 @@
+Wed Aug 26 17:28:51 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
+
+       * ldlang.c (lang_process): don't pass null pointers when
+       abs_output_section is what is required.
+       * ldwrite.c (ldwrite): use malloc to allocate the largest space
+       used, and pass that down.
+       * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
+       than alloca. 
+       
 Mon Aug 24 14:42:06 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * configure.in, config/ose68.mt: renamed OSE to ose.
index 5335b2381e75feb04fcb5be8d370f2eba11e8b70..5738b5bddb1b6f997a7f10e9dcf4a8b4173a2f0d 100644 (file)
@@ -27,8 +27,9 @@ DEFUN(build_it,(statement),
       lang_statement_union_type *statement)
 {
   switch (statement->header.type) {
-    {
 #if 0
+    {
+
       bfd_byte play_area[SHORT_SIZE];
       unsigned int i;
       bfd_putshort(output_bfd, statement->fill_statement.fill, play_area);
@@ -55,10 +56,11 @@ DEFUN(build_it,(statement),
                                   1);
 
        }
-#endif
+
       abort();
     }
     break;
+#endif
   case lang_data_statement_enum:
 #if 0
     {
@@ -147,8 +149,9 @@ DEFUN(build_it,(statement),
 
 
 void 
-DEFUN(write_relaxnorel,(output_bfd),
-      bfd *output_bfd)
+DEFUN(write_relaxnorel,(output_bfd, data),
+      bfd *output_bfd AND
+      PTR data)
 {
 /* Tie up all the statements to generate an output bfd structure which
    bfd can mull over */
@@ -156,7 +159,7 @@ DEFUN(write_relaxnorel,(output_bfd),
 
   lang_for_each_statement(build_it);
 
-  seclet_dump(output_bfd);
+  seclet_dump(output_bfd, data);
 
 }
 
index 06322b9ce01b5671abf91706af6229293e658cc3..a280b970364d1081c4961b0eea6c63ca244054ca 100644 (file)
@@ -1,4 +1,4 @@
-void  EXFUN(write_relaxnorel,( bfd *output_bfd));
+void  EXFUN(write_relaxnorel,( bfd *output_bfd, PTR data));
 boolean EXFUN(relax_section,( lang_statement_union_type **this_ptr));