This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: another tweak to ld padding
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: another tweak to ld padding
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Mon, 20 Aug 2001 12:38:00 +0930
- References: <20010820104956.N31523@bubble.sa.bigpond.net.au>
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