* ldlang.c (insert_pad): Fix typos in last patch.
This commit is contained in:
parent
bba1a0c062
commit
2af022575a
2 changed files with 12 additions and 2 deletions
10
ld/ChangeLog
10
ld/ChangeLog
|
@ -1,5 +1,15 @@
|
||||||
2001-08-20 Alan Modra <amodra@bigpond.net.au>
|
2001-08-20 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* ldlang.c (insert_pad): Fix typos in last patch.
|
||||||
|
|
||||||
|
* ldlang.c: When traversing lang_statement_union_type lists,
|
||||||
|
consistently use "header.next" rather than "next".
|
||||||
|
* mpw-eppcmac.c: Likewise.
|
||||||
|
* emultempl/beos.em: Likewise.
|
||||||
|
* emultempl/hppaelf.em: Likewise.
|
||||||
|
* emultempl/pe.em: Likewise.
|
||||||
|
* ldlang.h (union lang_statement_union): Remove "next" field.
|
||||||
|
|
||||||
* ldlang.c (insert_pad): Use offsetof macro.
|
* ldlang.c (insert_pad): Use offsetof macro.
|
||||||
(lang_size_sections): Always neuter padding statements.
|
(lang_size_sections): Always neuter padding statements.
|
||||||
* emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
|
* emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
|
||||||
|
|
|
@ -2637,9 +2637,9 @@ insert_pad (ptr, fill, alignment_needed, output_section, dot)
|
||||||
lang_statement_union_type *pad;
|
lang_statement_union_type *pad;
|
||||||
|
|
||||||
pad = ((lang_statement_union_type *)
|
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
|
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)
|
&& pad->padding_statement.output_section == output_section)
|
||||||
{
|
{
|
||||||
/* Use the existing pad statement. The above test on output
|
/* Use the existing pad statement. The above test on output
|
||||||
|
|
Loading…
Reference in a new issue