This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: another tweak to ld padding


On Mon, Aug 20, 2001 at 10:49:56AM +0930, Alan Modra wrote:
> 
> ld/ChangeLog
> 	* ldlang.c (insert_pad): Use offsetof macro.
> 	(lang_size_sections): Always neuter padding statements.
> 	* emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.

How ever on earth did I mess that up?

ld/ChangeLog
	* ldlang.c (insert_pad): Fix typos in last patch.

-- 
Alan Modra

Index: ld/ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.60
diff -u -p -r1.60 ldlang.c
--- ldlang.c	2001/08/20 02:14:49	1.60
+++ ldlang.c	2001/08/20 03:05:05
@@ -2637,9 +2637,9 @@ insert_pad (ptr, fill, alignment_needed,
   lang_statement_union_type *pad;
 
   pad = ((lang_statement_union_type *)
-	 ((char *) ptr - offsetof (lang_statement_union_type *, header.next)));
+	 ((char *) ptr - offsetof (lang_statement_union_type, header.next)));
   if (ptr != &statement_list.head
-      && pad->header.type == lang_padding_statement_enum)
+      && pad->header.type == lang_padding_statement_enum
       && pad->padding_statement.output_section == output_section)
     {
       /* Use the existing pad statement.  The above test on output


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]