elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.

This commit is contained in:
David Edelsohn
1995-02-08 20:58:01 +00:00
parent 12516a373c
commit 121a846514
2 changed files with 7 additions and 2 deletions

View File

@ -2265,8 +2265,9 @@ elf_sort_hdrs (arg1, arg2)
return -1;
else if (hdr1->sh_addr > hdr2->sh_addr)
return 1;
else
return 0;
/* Put !SHT_NOBITS sections before SHT_NOBITS ones.
The main loop in map_program_segments assumes this. */
return (hdr1->sh_type == SHT_NOBITS) - (hdr2->sh_type == SHT_NOBITS);
}
else
{