aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 03a79b8..30de02b 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2637,9 +2637,9 @@ insert_pad (ptr, fill, alignment_needed, output_section, dot)
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