mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-11 02:06:59 +08:00
elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 8 09:53:42 1995 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.
|
||||||
|
|
||||||
Tue Feb 7 16:27:33 1995 Jeff Law (law@snake.cs.utah.edu)
|
Tue Feb 7 16:27:33 1995 Jeff Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
* som.c (som_bfd_find_nearest_line): Just return false, don't
|
* som.c (som_bfd_find_nearest_line): Just return false, don't
|
||||||
|
@ -2265,8 +2265,9 @@ elf_sort_hdrs (arg1, arg2)
|
|||||||
return -1;
|
return -1;
|
||||||
else if (hdr1->sh_addr > hdr2->sh_addr)
|
else if (hdr1->sh_addr > hdr2->sh_addr)
|
||||||
return 1;
|
return 1;
|
||||||
else
|
/* Put !SHT_NOBITS sections before SHT_NOBITS ones.
|
||||||
return 0;
|
The main loop in map_program_segments assumes this. */
|
||||||
|
return (hdr1->sh_type == SHT_NOBITS) - (hdr2->sh_type == SHT_NOBITS);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user