mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-24 18:32:38 +08:00
2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5670 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias warning.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/5670
|
||||||
|
* ldlang.c (process_insert_statements): Silence gcc 4.1 alias
|
||||||
|
warning.
|
||||||
|
|
||||||
2008-01-25 Alan Modra <amodra@bigpond.net.au>
|
2008-01-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* ld.texinfo (INSERT): Describe.
|
* ld.texinfo (INSERT): Describe.
|
||||||
|
15
ld/ldlang.c
15
ld/ldlang.c
@ -3390,19 +3390,26 @@ process_insert_statements (void)
|
|||||||
if (last_os != NULL)
|
if (last_os != NULL)
|
||||||
{
|
{
|
||||||
asection *first_sec, *last_sec;
|
asection *first_sec, *last_sec;
|
||||||
|
struct lang_output_section_statement_struct **next;
|
||||||
|
|
||||||
/* Snip out the output sections we are moving. */
|
/* Snip out the output sections we are moving. */
|
||||||
first_os->prev->next = last_os->next;
|
first_os->prev->next = last_os->next;
|
||||||
if (last_os->next == NULL)
|
if (last_os->next == NULL)
|
||||||
lang_output_section_statement.tail
|
{
|
||||||
= (union lang_statement_union **) &first_os->prev->next;
|
next = &first_os->prev->next;
|
||||||
|
lang_output_section_statement.tail
|
||||||
|
= (lang_statement_union_type **) next;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
last_os->next->prev = first_os->prev;
|
last_os->next->prev = first_os->prev;
|
||||||
/* Add them in at the new position. */
|
/* Add them in at the new position. */
|
||||||
last_os->next = where->next;
|
last_os->next = where->next;
|
||||||
if (where->next == NULL)
|
if (where->next == NULL)
|
||||||
lang_output_section_statement.tail
|
{
|
||||||
= (union lang_statement_union **) &last_os->next;
|
next = &last_os->next;
|
||||||
|
lang_output_section_statement.tail
|
||||||
|
= (lang_statement_union_type **) next;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
where->next->prev = last_os;
|
where->next->prev = last_os;
|
||||||
first_os->prev = where;
|
first_os->prev = where;
|
||||||
|
Reference in New Issue
Block a user