* scripttempl/pe.sc: Use SORT to sort sections appropriately.
authorIan Lance Taylor <ian@airs.com>
Fri, 3 Jul 1998 21:52:58 +0000 (21:52 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 3 Jul 1998 21:52:58 +0000 (21:52 +0000)
commit7617a8228339cc990338d23ea2d35fdc57c1fca1
treecd35f7c94053b8a601008ddfa0f6c55ddfdc1520
parent6ccce8e82b4b18e5008f94808ddaf554bdd6c040
* scripttempl/pe.sc: Use SORT to sort sections appropriately.
* emultempl/pe.em (sort_by_file_name): Remove.
(sort_by_section_name): Remove.
(sort_sections_1, sort_sections): Remove.
(gld_${EMULATION_NAME}_before_allocation): Don't call
sort_sections.
(hold_section, hold_section_name): New static variables.
(hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
(gld_${EMULATION_NAME}_place_orphan): Rewrite.  Look for a good
place to put the section.  Align the section.  Sort the input
sections by name.
(gld_${EMULATION_NAME}_place_section): New static function.
ld/emultempl/pe.em