source:
scripts/patch/binutils/2.19.1/15-orphan_section.patch@
ba03323
Last change on this file since ba03323 was 914669c, checked in by , 15 years ago | |
---|---|
|
|
File size: 1.5 KB |
-
ld/ldlang.c
old new output_prev_sec_find (lang_output_sectio 1615 1615 idea is to skip over anything that might be inside a SECTIONS {} 1616 1616 statement in a script, before we find another output section 1617 1617 statement. Assignments to "dot" before an output section statement 1618 are assumed to belong to it. An exception to this rule is made for 1619 the first assignment to dot, otherwise we might put an orphan 1620 before . = . + SIZEOF_HEADERS or similar assignments that set the 1621 initial address. */ 1618 are assumed to belong to it, except in two cases; The first 1619 assignment to dot, and assignments before non-alloc sections. 1620 Otherwise we might put an orphan before . = . + SIZEOF_HEADERS or 1621 similar assignments that set the initial address, or we might 1622 insert non-alloc note sections among assignments setting end of 1623 image symbols. */ 1622 1624 1623 1625 static lang_statement_union_type ** 1624 1626 insert_os_after (lang_output_section_statement_type *after) … … insert_os_after (lang_output_section_sta 1662 1664 continue; 1663 1665 case lang_output_section_statement_enum: 1664 1666 if (assign != NULL) 1665 where = assign; 1667 { 1668 asection *s = (*where)->output_section_statement.bfd_section; 1669 1670 if (s == NULL || (s->flags & SEC_ALLOC) != 0) 1671 where = assign; 1672 } 1666 1673 break; 1667 1674 case lang_input_statement_enum: 1668 1675 case lang_address_statement_enum:
Note:
See TracBrowser
for help on using the repository browser.